# The Two-Loop Model-Improvement Flywheel
<!--
ref: @knowledge/frameworks/two-loop-model-training-flywheel
type: framework
tags: [AI improvement, feedback loops, model training, performance evaluation]
triggers: [model performance stagnates, feedback from real usage, need for continuous improvement, training data from product usage]
trigger_prompt: When an AI system needs to adapt and improve based on real-world usage data and feedback, this model provides a structured approach to enhance its performance.
version: 2
updated_at: 2026-07-18T22:56:02.737Z
-->

Separate the slow feedback that decides *what* to improve from the fast evaluation that measures *whether* you improved, and pour compute into the fast loop.

*Synthesized from Lee Robinson, The model trains the next model (AI Engineer World's Fair 2026).*

A self-improving model (or agent) system runs two nested loops. The **outer loop** is slow and serial: real usage produces feedback (explicit thumbs up/down, AB tests across checkpoints, internal dogfooding), which is distilled into better evaluations and harder training problems. The **inner loop** is fast: run candidates against those high-quality evals to measure whether a new version actually improved on the behaviors you care about.

When to apply: any system that ships a learned artifact and gets it back as usage data. The mental shift is that the outer loop is throughput-bounded (you can only do so many big runs), so the leverage is in making the inner loop cheap and continuous — every new candidate should be scored automatically against held-out, adversarial evals before it ships.

Two corollaries from the source. (1) The training data is a byproduct of the product's real mode of use — for a coding-agent vendor, essentially all data now comes from *agent* usage, not autocomplete, so instrument the mode you actually want to improve. (2) Evals have a half-life: once every candidate scores ~90% on an eval, retire it and manufacture harder problems, because a saturated eval no longer measures progress.

---

*Related: `@content/youtube/nate-herk/build-sell-grok-bots-2-hour-course` · `@content/youtube/aie/recursive-model-improvement-lee-robinson-cursor-spacexai` · `@knowledge/protocols/distill-a-specialist-from-a-model-array` · `@knowledge/frameworks/three-layer-agent-improvement`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*