The data flywheel

In one sentence

Turn usage into improvement: log traces and feedback, select and label the informative cases, use them for evals first and training second, ship, and let more usage feed the next turn.

Analogy: A restaurant that records every dish sent back and why, tests fixes on the staff meal, and updates the menu weekly. More diners mean more notes, which mean a better menu.

Each turn adds eval cases before training data, and nothing ships unless it beats the current evals. More usage makes the next turn faster.

How it works

  • Base models are a commodity; your stream of real tasks and outcomes is not.
  • Explicit feedback (thumbs, corrections) is precise but sparse; implicit signals (accepts, edits, retries) are dense but noisy.
  • Select cases that teach something: failures, disagreements, low confidence, rare slices, plus a random sample.
  • New failures enter the eval set first; fine-tune only once volume justifies it.
  • Respect consent: scrub PII before humans see traces, set retention limits and honor tenant opt-outs.

Check yourself

Answer to mark it learned; your answers aren't scored.

Your support copilot's draft accept rate is 85% and climbing, yet reopened tickets are rising too. Joining with sent replies shows many accepted drafts were mostly rewritten before sending. How do you treat these traces in the flywheel?

Go deeper

Full explanation

A data flywheel is the loop that makes a product improve from its own usage: log → select → label → evaluate/train → ship → more usage. Base models are a commodity; the stream of real tasks and outcomes only you see is not.

  1. Log traces: input, retrieved context, prompt and model version, output, tool calls, cost and the outcome. See LLM observability & tracing.
  2. Capture feedback. Explicit signals (thumbs, ratings, corrections) are precise but sparse. Implicit ones are dense but noisy: a suggestion accepted or rejected, a draft edited before sending, a retry, an escalation to a human.
  3. Select what teaches you something: failures, disagreements, low confidence, rare slices, plus a random sample. Tesla's data engine is the canonical case: cars run networks in shadow mode, and triggers upload clips when the network and the driver disagree.
  4. Label and curate with guidelines and agreement checks (Training data quality & curation). New failures go into the eval set before similar cases go into training.
  5. Use it: cheap fixes first (prompts, retrieval, new Golden datasets & test sets cases), then fine-tuning or preference training once volume justifies it.

None of this is allowed without consent and privacy: honor what users agreed to, scrub PII before humans see traces (PII & data privacy), set retention limits and keep tenant opt-outs.

Code Pick which production traces to label
pythonPick which production traces to label
import random
from dataclasses import dataclass

@dataclass
class Trace:
    trace_id: str
    tenant: str
    output: str
    accepted: bool | None     # implicit: suggestion kept or dismissed
    edit_ratio: float         # implicit: 0 = sent as-is, 1 = fully rewritten
    thumbs: int | None        # explicit: +1 / -1 / None (most traces)
    escalated: bool           # handed off to a human
    consent: bool             # tenant/user allows use for improvement

def priority(t: Trace) -> float:
    # Rank by how much a label would teach us, not by recency
    score = 0.0
    if t.thumbs == -1 or t.escalated:
        score += 1.0                          # clear failure
    if t.accepted and t.edit_ratio > 0.5:
        score += 0.6                          # "accepted", then rewritten: hidden failure
    if t.accepted is False:
        score += 0.3
    return score

def select_for_labeling(traces: list[Trace], budget: int, explore: float = 0.1) -> list[Trace]:
    pool = [scrub_pii(t) for t in traces if t.consent]   # consent and PII first
    ranked = sorted(pool, key=priority, reverse=True)
    n_rand = int(budget * explore)            # random slice keeps evals unbiased
    head, tail = ranked[: budget - n_rand], ranked[budget - n_rand :]
    return head + random.sample(tail, min(n_rand, len(tail)))
Real example

Cursor's Tab model handles 400M+ requests a day, and every shown suggestion ends in an accept or a reject. In 2025 Cursor turned that into the reward for online RL: accepts score positive, rejects negative, showing nothing scores zero, so the model learns when not to suggest. New checkpoints ship to users several times a day; each collect-and-train cycle takes 1.5–2 hours. Result (Sep 2025): 21% fewer suggestions with a 28% higher accept rate. The flywheel works because the signal is dense and tied to the product goal, and the loop is short.

Trade-offs +3 · −3

+ You gain

  • A compounding advantage competitors can't buy: your users' real tasks and outcomes.
  • Evals stay representative of today's traffic instead of last year's guesses.
  • Implicit signals deliver labels at a volume no annotation team can match.

− You pay

  • Consent, privacy and contracts limit what you may use; many enterprise customers forbid training on their data.
  • Feedback loops: the model learns from data shaped by its own past outputs.
  • Logging, labeling and pipelines cost real money months before the payoff.

Use it when

A product with real usage and a measurable outcome (accepted, resolved, converted), where the quality gaps are specific to your users and you are allowed to use their data.

Avoid it when

Pre-launch or low-volume products: write evals by hand instead. Also when contracts forbid using customer data and you cannot get opt-in.

Numbers to know 5
  • Cursor Tab (Sep 2025): online RL on accept/reject signals from 400M+ daily requests → 21% fewer suggestions, 28% higher accept rate.
  • Tesla (Karpathy, CVPR 2021): 221 shadow-mode triggers and 7 data-engine loops built ~1M 10-second clips, ~6B labeled objects, 1.5 PB.
  • GitHub Copilot study (Ziegler et al., 2022): acceptance rate predicted perceived productivity better than how long the code persisted.
  • OpenAI API: customer data is not used for training by default since March 1, 2023. Check each provider's terms.
  • Rule of thumb: reserve ~10% of the labeling budget for a random sample, so evals don't inherit the selection bias.
Common pitfalls 4
  • Treating implicit signals as truth: an accepted draft that was then rewritten is a failure. Join with downstream edits.
  • Training on your own unverified outputs: errors and style quirks get amplified on every loop.
  • Leaking customer data into a shared model where another tenant can extract it. Gate by consent and tenant before training.
  • Eval/train contamination: near-duplicates in both sets make progress look better than it is.
Interview questions 3

Answer out loud first, then reveal.

Design the data flywheel for an enterprise support copilot.Show answer

I start from the outcome: tickets resolved without escalation, and drafts sent unedited. I log every trace with prompt, model and retrieval versions, plus implicit signals: edit distance between draft and sent reply, escalations, reopened tickets. A selector picks failures and disagreements plus a 10% random slice, only from tenants who opted in, with PII scrubbed. Agents' edits become labels after a rubric review. First use: new eval cases and prompt or retrieval fixes; fine-tuning only once we have thousands of clean examples. Every change ships behind the eval gate and an A/B test.

What can go wrong when you learn from user feedback?Show answer

Four things. Selection bias: mostly frustrated users click thumbs-down, so explicit feedback over-represents edge cases. Feedback loops: the model only gets signal on what it chose to show, so it can't learn about what it never tried; I keep an exploration slice. Reward hacking: optimize accept rate alone and you get short, safe, useless suggestions, so I pair it with a downstream outcome. And privacy: one tenant's data surfacing for another. Mitigations are random holdouts, multiple signals, periodic human audits of labels, and consent gates enforced in the pipeline, not in a policy doc.

How did Tesla's data engine work, and what's the LLM equivalent?Show answer

Tesla deploys a candidate network in shadow mode: it runs on the car but doesn't control it. Triggers fire on interesting events, like disagreement with the driver or a detection that flickers, and upload short clips. Those get labeled offline with bigger models plus human review, join the training and eval sets, and the retrained network goes back to shadow. Karpathy reported 221 triggers and seven loops for one release. The LLM version: run a candidate model in shadow on production traffic, trigger on disagreement with prod, low judge scores or heavy user edits, and route those traces to labeling.