# Feedback Loops and the Data Flywheel

> How user feedback and live logs make an AI product better over time, how the loop can go wrong, and what to say in your AI interview.

**In short:** A feedback loop turns what users do and say into better tests, labels and fixes, so the product improves with use. Repeated over and over, it is a data flywheel, and it needs careful sampling and a release gate, or it can learn the wrong lesson.

AI and LLM interview question Q367, LLM system design. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/feedback-loops-and-the-data-flywheel

## Say it in 30 seconds

A feedback loop means the product gets better from how people use it. Users rate answers, and every chat is logged. My team labels a sample, adds the hard cases to a test set, fixes the cause and checks the new version against that set before it ships. Repeat that cycle and you have a data flywheel. The catch is that the signals are biased, so the loop can learn the wrong lesson.

## Say it in 2 minutes

Think of a bank's support assistant that answers questions about fees, cards and loans. Every chat is a small lesson. A customer who taps thumbs-down, asks the same question again, or walks away mid-chat is telling us something. A feedback loop is the path that carries those lessons back into the product.

A data flywheel is that loop running again and again. Chats are logged with their ratings. Each week, specialists label a sample, including chats nobody rated. The hard cases join a fixed test set. The team fixes the cause, whether it is the prompt, the search or the model, and the new version has to pass that test set before it ships. Anthropic's advice is to "triage feedback constantly, sample transcripts to read weekly, and dig deeper as needed". Each pass also leaves a bigger test set for the next one.

The risk is that the signals are biased. People rate only some chats, and the ones they rate skew toward severe issues. A system can also learn from its own outputs, so a narrow loop gets narrower. Logs hold personal data too, so keep only what a test needs. Check that the test set has both good and bad cases, and that the loop itself is measured.

In an interview, say the flywheel is only as good as its labels and its gate. Name the signals you trust, the sample you read each week, and the check a new version must pass.

## What is a feedback loop, in plain words?

A feedback loop is a path that carries what happens in use back into the product. Someone uses the product, the system records what happened, a person or a script judges it, and the team changes something. The next round starts with better material.

Think of a call-centre lead who listens to a sample of complaint calls every week and rewrites the script where customers get stuck. The calls are the feedback and the new script is the fix. An AI product works the same way, but the calls are chats and the script is a prompt, a search setup or a model.

Here is the AI case. A customer asks, "Is there a fee for a wire transfer?" The bank's assistant gives a wrong answer about the fee. The customer thumbs it down. Without a loop, the same mistake repeats until someone notices. With one, the chat becomes a test case that every later version must pass.

- **Feedback loop:** A cycle where what the product does changes what it does next.
- **Data flywheel:** A feedback loop that keeps turning, so each round leaves a bigger test set.
- **Test set:** A fixed set of real cases with the right answers, used to check every new version.
- **Implicit signal:** Something a user does without saying so, like retrying a question or leaving the chat.
- **Label:** A judgement added to a case, such as right, wrong or unsafe, by a person or a grader.

## How does the flywheel turn, step by step?

1. **Log:** Save each chat with its prompt, answer, rating and any follow-up question.
2. **Sample:** Pick a random share of chats, not only the angry ones, for review.
3. **Label:** Experts mark each sampled case as right, wrong or unsafe.
4. **Add to the test set:** Keep the hard cases and the fixed ones in a set that every version runs against.
5. **Fix and gate:** Change the prompt, the search or the model, then block the release unless the test set passes. That block is a gate: a check that must be passed before anything ships.

*Diagram, The data flywheel: Each pass adds labelled cases to the test set. A fix that passes the set ships, and its chats feed the next round. That repeating cycle is the flywheel.*
1. Each chat is saved with its rating and any follow-up.
2. A sample goes to experts for a judgement.
3. Labelled cases join the test set.
4. Failing cases show what to fix.
5. A fix that passes every test is released.
6. The next round starts with more labelled cases.

The test set is the part that stops the wheel from turning backwards.

A worked example. Say the bank's bot handles 9,000 chats a week and gets a rating on about 3 in 100 of them. Each week, experts read 150 sampled chats, including 50 that nobody rated. They find that fee answers are out of date after a policy change. The team adds 22 cases to the test set, fixes the fee rule, and the new version passes before release.

Here is the filter in plain Python. It is a made-up sketch with no real model: it picks chats for expert review (the thumbs-downs, plus every second chat as a stand-in for a random sample) and drops the account number first.

```python
# A simplified filter that picks which bank-bot chats go into the test set. Made-up logs, no real model.
logs = [
    {"id": 1, "rating": "up", "text": "Gold cards have no annual fee", "account": "4411"},
    {"id": 2, "rating": "down", "text": "Wire transfers are free for students", "account": "9023"},
    {"id": 3, "rating": None, "text": "Reset your PIN at any branch", "account": None},
    {"id": 4, "rating": None, "text": "Your loan rate is fixed for 5 years", "account": "1187"},
    {"id": 5, "rating": "down", "text": "Overdraft has no fee this month", "account": None},
]

def pick_for_review(log):
    # Queue every thumbs-down, plus every second chat as a stand-in for a random sample.
    return log["rating"] == "down" or log["id"] % 2 == 0

def remove_personal(log):
    # Data minimisation: the account number is not needed for a test, so it is dropped.
    return {key: value for key, value in log.items() if key != "account"}

review_queue = [remove_personal(log) for log in logs if pick_for_review(log)]
for row in review_queue:
    print(row["id"], row["rating"] or "no rating", row["text"])
print("kept", len(review_queue), "of", len(logs))
```

Output:

```text
2 down Wire transfers are free for students
4 no rating Your loan rate is fixed for 5 years
5 down Overdraft has no fee this month
kept 3 of 5
```

> **Tip:** In an interview, name the sample size you read each week and the gate that blocks a release. That shows a working loop, not just a pile of logs.

## Which feedback can you trust?

Feedback comes in four kinds. Each one is useful, and each one misleads in its own way.

- **Explicit: Thumbs-down, bug reports.** Clear when it comes, but rare. Users seldom say why something failed, and only the people who choose to speak up send them.
- **Implicit: Retries, edits, walk-aways.** Plenty of it, collected for free. But a retry can mean a wrong answer or a happy follow-up, so you have to guess.
- **Human labels: Experts judge each case.** The most trusted label for a test set. Slow and costly, so use it on a sample.
- **Graders: A model or script scores cases.** Runs at scale. But it can be wrong, so check it against human labels from time to time.

> "A complete picture includes production monitoring, user feedback, A/B testing, manual transcript review, and systematic human evaluation." (Anthropic, on agent evals)

Anthropic says the same about graders: "Reserve systematic human studies for calibrating LLM graders or evaluating subjective outputs where human consensus serves as the reference standard."

Microsoft's monitoring guidance adds a live check after launch: "Quality and safety evaluation of production traffic at a sampled rate".

Check the date on a vendor guide before you cite it. OpenAI's page says "OpenAI is deprecating the Evals platform." and that "the platform is scheduled to shut down on November 30, 2026."

> **Tip:** Don't trust a thumbs-up rate alone. A quick, vague answer can earn a thumbs-up from someone in a hurry.

## What can go wrong with a feedback loop?

A loop can also make a product worse. The system's own choices shape what users see, and what users click then becomes its training signal. A research paper on recommender systems says that such decisions "can influence user beliefs and preferences which in turn affect the feedback the learning system receives". Its authors also offer practical ways to "slow down system degeneracy", meaning the system slowly narrows and gets worse.

*Diagram, A feedback loop that narrows: A search tool shows five results, and lawyers click those five. The ranker learns from those clicks, so the same five rise again. Good matches further down never get seen, and a team that only watches clicks misses it.*
1. The five results at the top are shown first.
2. Lawyers click mostly those five.
3. Those clicks teach the ranker to rank them higher.
4. The next search shows the same five, and the loop repeats.

A worked example. A legal team searches 40,000 contracts. After six months the ranker sends most searches to the same 50 documents. Nobody notices at first, because the click numbers look healthy. The fix is to show a random slice of lower-ranked results now and then, check how many of the right answers it still finds on a labelled set, and track which relevant clauses never get shown.

> "adequate, relevant and limited to what is necessary in relation to the purposes for which they are processed ('data minimisation')" (EU GDPR, Article 5)

Logs are personal data too, when they carry account numbers or names. Under the EU's data rules, a test set should hold only what the test needs, so strip the rest before it leaves production.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] A plain definition: a loop where use feeds the next version.
- [ ] Where the feedback comes from, and which signals you trust.
- [ ] Sampling: read a random share, not only the complaints.
- [ ] A release gate: nothing ships without passing the test set.
- [ ] The risks: biased signals, narrowing loops, personal data in logs.
- [ ] Who labels, how often, and how you check the labellers.

**Common traps**

- Trap: "More logs always make the product better." Better: Only with labels and sampling. Raw logs mostly add storage cost and privacy risk.
- Trap: "A high thumbs-up rate means we are done." Better: A quick, vague answer can earn a thumbs-up. Pair the rate with labelled checks.
- Trap: "Let the model train on everything users do." Better: That copies the mistakes too, and the logs may hold personal data. Filter and label first.

## Can you spot the bias?

**Spot the bias:** Your team reviews 200 chats a week, and every one came from a thumbs-down. Which problem is hidden here?

A. The bot must be fine, since nobody complained about the other chats.
B. These chats came only from users who chose to rate, so silent failures never reach the team.
C. A thumbs-down always means the answer was wrong.
D. Two hundred chats is always enough for a test set.

**Answer:** B. People who rate are a self-selected group. A wrong fee quoted in a chat nobody rated never enters the review. Add a random sample of all chats to find those.

**Quick check:** A team tracks only the thumbs-up rate, and it climbs while the answers get vaguer. What is the best next step?

A. Stop collecting feedback, since the rate is going up.
B. Add labelled checks on answer quality, because a quick vague answer can still earn a thumbs-up.
C. Raise the model's temperature so answers vary more.
D. Buy a bigger model so the answers get longer.

**Answer:** B. A thumbs-up measures how people felt, not whether the answer was right. Labelled checks measure accuracy, and they catch the drop the rate hides.

## Can you answer these from memory?

**Flash cards**

- **What is a feedback loop?** A cycle where what the product does feeds the next version.
- **What is a data flywheel?** A feedback loop that keeps turning, so each round leaves a bigger test set.
- **Which feedback is clear but sparse?** Explicit feedback: thumbs-down and bug reports. Users seldom say why.
- **Why sample random chats?** Rated chats skew toward severe issues, and silent failures never get rated.
- **What is a narrowing loop?** The system's own choices shape what it learns from, so the results shrink.
- **What stops a bad release?** A fixed test set that every new version must pass before it ships.

## Likely follow-up questions

- Q264 When do you need human evaluation? https://designervenkat.online/interview/ai/when-do-you-need-human-evaluation
- Q265 How do you sample production traffic for evals? https://designervenkat.online/interview/ai/how-do-you-sample-production-traffic-for-evals
- Q258 How do you A/B test an LLM feature? https://designervenkat.online/interview/ai/how-do-you-ab-test-an-llm-feature
- Q261 How do you detect drift? https://designervenkat.online/interview/ai/how-do-you-detect-drift
- Q256 Capability evals vs regression evals? https://designervenkat.online/interview/ai/capability-evals-vs-regression-evals

## Learn it in depth

- [Production monitoring](https://designervenkat.online/learn/ai-engineering/production-monitoring)
- [People as the judges](https://designervenkat.online/learn/ai-engineering/human-evals)
