Learning on the Job

Most AI is trained once and then frozen, while the world it serves keeps changing. A system that learns on the job keeps updating after deployment. On one GPU kernel task, a model that kept training on the problem reached 1,203 µs. The same model, frozen, with the same search, stalled at 2,061 µs.

Pick what changes and what teaches it, or tap a square of the map. The read-out names the lesson that covers that update, with its number. Under the map, a frozen system and a learning one face the same stream of shifting tasks. Then we build every part from zero: what can change, what can teach it, five ways it is done today, and what it costs.

You need what a language model does (it reads text and writes text, one token at a time) and what training is (nudge the model’s numbers so it does better on examples). We build the rest.

Place an update on the map

What changes
What teaches it

Squares and their numbers come from the lessons of this series, each checked against its paper (the table in Chapter 9 gives every source). Filled squares are lessons of this series; outlined squares are related lessons outside it; a dot means no lesson covers that square yet. The stream under the map is an illustration, not data: a toy skill that is good near one kind of task, facing a world that shifts every 30 tasks.

Chapter 0

Trained once, then frozen

See why a model that stops learning on its last day of training falls behind a world that keeps moving

Think of a new nurse on her first day. She knows the textbook. On the ward she meets patients the textbook never described. Every shift, she learns something: which doctor wants a call at night, which pump alarms for no reason, which patient hides pain.

A year later she is far better than on day one. Nobody sent her back to school. She learned on the job.

Most AI systems today do not work like that. A team collects data, trains a model for weeks, tests it, and ships it. From that moment the model’s numbers never change. We call such a model frozen: its weights (the billions of numbers that decide what it writes) stay exactly as they were on the last day of training.

A frozen model is not useless. It can still read new text in its prompt, and a well-built prompt can carry a lot. But the model itself does not get better at your problem. If it fails on Monday, it fails the same way on Friday, unless a person changes something around it.

Meanwhile the world moves. Users ask new kinds of questions. A codebase grows new conventions. A lab tries an experiment nobody wrote about. The gap between what the model learned and what it now faces is called distribution shift: the tasks arriving after deployment come from a different mix than the training data.

The device below shows the problem in miniature. It is a toy, not data. A skill is drawn as a bump: the system is good at tasks near its centre and bad far away. Tasks arrive one by one. Every so often the world shifts to a new kind of task.

Watch the world shift

Grey is the frozen system, teal the one that learns after each task. Press Run. Then make the world change faster, or set the learning step to zero and watch teal turn into grey.

30
0.16

Illustration. Each task is a point on a circle; a system scores well when the task is close to its skill centre (accuracy 0.15 plus 0.8 times a bell curve of the distance). The learner moves its centre a fraction of the way toward each task it sees: that fraction is the learning step. Lines are moving averages over 8 tasks. No paper measured these curves.

Three things show up as soon as you press Run. First, the frozen line drops at every shift and never comes back. Second, the learning line drops too, but climbs back as it sees the new kind of task. Third, if you keep testing the learner on the very first kind of task (the red dashed line), it gets worse there. It moved its skill to where the work is. That third effect has a name, forgetting, and Chapter 8 measures it in real papers.

Here is the same story in hand arithmetic. Say 90 tasks arrive, 30 of each of three kinds, A then B then C. The frozen model scores 90% on A, 30% on B and 25% on C.

frozen: 0.90 × 30 + 0.30 × 30 + 0.25 × 30 = 27 + 9 + 7.5 = 43.5 right of 90 = 48.3%

The learner also starts at 90% on A. On each new kind, its first 10 tasks average 50% while it adapts, and the other 20 reach 88%.

learner: 27 + (10 × 0.50 + 20 × 0.88) + (10 × 0.50 + 20 × 0.88) = 27 + 22.6 + 22.6 = 72.2 of 90 = 80.2%

The learner wins by 32 points, and it pays for that in two ways. It spends compute on every update, and it may now score worse on A than on day one. Keep both prices in mind. They come back in every lesson of this series.

import numpy as np
rng = np.random.default_rng(0)
def acc(task, centre):                      # the toy skill: a bump around its centre
    d = np.angle(np.exp(1j * (task - centre)))   # distance on a circle, -pi..pi
    return 0.15 + 0.8 * np.exp(-d**2 / (2 * 0.45**2))
kinds = [0.0, 2.1, -2.0]                  # three kinds of task, 30 each
frozen, learner, step = 0.0, 0.0, 0.16
score_f, score_l = [], []
for t in range(90):
    task = kinds[t // 30] + rng.normal(0, 0.2)
    score_f.append(acc(task, frozen))          # frozen: centre never moves
    score_l.append(acc(task, learner))
    learner += step * np.angle(np.exp(1j * (task - learner)))   # learn on the job
print(f"frozen {np.mean(score_f):.2f}  learner {np.mean(score_l):.2f}  learner on kind A now {acc(0.0, learner):.2f}")
# frozen 0.40  learner 0.73  learner on kind A now 0.15

So why is most AI frozen? Updating is risky and costly. You need a signal that says what “better” means. You need compute for each update. You must check that the system did not get worse somewhere else, and protect users’ data if the signal comes from them.

For a long time, the safe answer was to retrain once in a while, offline, with people in charge of each step.

That is changing. Recent papers show systems that update during the work. One model trains on a single hard problem until it beats a human record. Another reads its own error messages as a teacher. A small model learns which bigger model to call. A desktop agent learns when one person wants help.

A vision post by Yejin Choi and Carlos Guestrin at Noeri, “The Plural of Intelligence” (November 2026), names the goal. Most AI is “trained once and then frozen, while the world it serves keeps moving.” A living system “learns on the job, the way human experts do.” We take that framing as one source among several. This lesson is about the ideas, and every number comes from a paper.

The question of this lesson. When a deployed system learns, two things must be named: what changes (weights, data, the training signal, a router, a memory) and what teaches it (a score, text, a user’s reaction, an outcome). Every method in this series is one square of that grid. The hero map is the grid.

Here is the road. Each chapter explains one part of the hero, and the last one is a reading guide to the seven lessons of the series.

  1. What can change: the five places an update can land, and how big each update is.
  2. What can teach it: a score, text feedback, a user’s reaction and an outcome, and how much each tells the learner.
  3. Learn on the problem: training the weights at test time on one hard problem, aimed at the best attempt.
  4. Learn from words: the model reads its own error message and becomes its own teacher.
  5. Learn which data teaches: feedback written into the data, and data chosen by its gradients.
  6. Learn whom to ask: a small model trained to route work to tools and bigger models.
  7. Learn one person: an on-device observer that learns from reactions when help is welcome.
  8. The bill and the risks: compute, forgetting, reward hacking, privacy and leaky evaluation, in a sandbox you can break.
  9. Road map: the seven lessons in reading order, the numbers, the code and where to go next.
In the device, why does the learner score worse on the first kind of task after a few shifts?

Chapter 1

What can change

Open up a deployed AI system and find the five places where an update can land

“The system learned” is too vague to build. Learned where? A deployed AI system is not one thing. It is a model plus the things around it: its prompt, its memory, and the program that decides who does each step. Further back sit the data and the signal that trained it. An update can land in any of those places.

Take a coding assistant in a company. A user asks for a fix. A small router (a model or a rule that decides which helper handles each step) sends the request to a big model. The big model reads a prompt that holds instructions and a memory of notes about this codebase. It writes code. Tests run. Each of those parts could be the thing that improves tomorrow.

We will use five names, one per row of the hero map. Each name is one place an update can go.

  1. Weights. The model’s own numbers change, usually through a small add-on called a LoRA adapter. The model itself gets better at this problem or this person.
  2. The training signal. What the gradient is made of changes: one number per attempt, or a number per token read off a piece of text.
  3. The training data. Which examples the model trains on changes, or what is written around them: new examples are generated, chosen or labelled.
  4. The routing policy. The model that decides who does each step changes: which tool, which bigger model, in what order.
  5. Memory and prompt. The text the model reads changes: rules, notes, examples. The weights stay frozen.

The device lets you open each part and see what an update there writes, and how big it is. The sizes come from the papers of this series.

Open the system

Pick a part. The diagram lights the part and shows what one update writes there. For weights, drag the LoRA rank and watch the share of trained numbers.

32

Sizes: rank 32 LoRA in TTT-Discover (gpt-oss-120b, Table 9) and in Coco (rank 32, α = 64, App. E); top-K 100 tokens per position in SDPO (Table 12); judge labels cost 8.8% of training compute in IXT (Fig. 2); an 8B router in ToolOrchestra (Sec. 4); at most 50 rules, edited in batches of 8, in Coco’s prompt evolution (App. E). The 4,096 by 4,096 layer is an illustrative size.

Look at the weights first, because people often assume that “updating weights” means retraining the whole model. It almost never does here. A LoRA (low-rank adaptation) freezes a big weight matrix W and learns a small correction made of two thin matrices, B and A. Only B and A train.

W′
The weight matrix the model uses after the update.
W
The original matrix, frozen. It holds everything the model learned in pretraining.
B
A tall, thin matrix: d rows, r columns. Trained.
A
A short, wide matrix: r rows, d columns. Trained. B times A is a full d by d correction built from few numbers.
r
The rank: how many directions the correction may use. Both TTT-Discover and Coco use r = 32.

Count it by hand for one layer with d = 4,096. The frozen matrix has 4,096 × 4,096 = 16,777,216 numbers. At rank 32, B has 4,096 × 32 = 131,072 numbers and A has the same. Together that is 262,144 numbers.

262,144 ÷ 16,777,216 = 0.0156  →  1.56% of the layer trains; 98.44% stays frozen

That is why a learning system can keep one base model and many small adapters: one per problem in TTT-Discover, one per user in Coco. An adapter is small enough to store, swap and throw away.

The five places differ in three ways that matter for engineering. How fast is an update? Editing a prompt takes one model call; training a LoRA takes gradient steps on a GPU. Can a person read it? A rule in a prompt is plain text; a LoRA is 262,144 opaque numbers per layer. And how far does it reach? A better routing policy changes every task that passes through it; a better adapter for one kernel problem helps only that problem.

PartOne update writesReadable?Example in this series
Weightsa gradient step on a LoRAnoTTT-Discover, SDPO, Coco-LoRA
Signala new kind of advantage per token or per turnpartlySDPO, AgentFlow
Datanew or relabelled examplesyesIXT, Prismatic Synthesis
Routera gradient step on the router modelits choices, yesToolOrchestra, AgentFlow
Memorya rule or note added, sharpened or deletedyesCoco-PE
def lora_share(d, r):
    full = d * d                 # frozen W
    trained = d * r + r * d      # B (d x r) plus A (r x d)
    return trained, trained / full
print(lora_share(4096, 32))       # (262144, 0.015625)

One more thing to notice: the signal and the data rows are about training, not about the deployed model itself. Why put them on a map of learning after deployment? Because a living system keeps training. IXT and Prismatic Synthesis are about what the next round of training should eat. SDPO is about how a piece of feedback becomes an update. They are the plumbing that the on-the-job loop runs through.

A LoRA of rank 32 is added to a 4,096 by 4,096 layer. How many numbers train, and what happens to the original matrix?

Chapter 2

What can teach it

Compare four teaching signals on the same failed attempt, and count how much each one tells the learner

An update needs a reason. Something has to say “that was good” or “that was wrong”. After deployment there is no labelled answer key, so the signal must come from the work itself. In this series it comes in four forms, one per column of the hero map.

  1. A score. A checker or a judge returns a number: a kernel’s runtime, tests passed, a quality rating from 1 to 5. Cheap and exact, but one number for a whole attempt.
  2. Text feedback. The environment returns words: an error message, a failing test case, a judge’s critique. It can say where the attempt went wrong.
  3. A user’s reaction. Nobody grades the system on purpose. A person accepts an offer, ignores it, or closes it. The signal is implicit and noisy.
  4. An outcome reward. A long task with many steps ends right or wrong, often judged by another model. One verdict for the whole run.

The question that matters is: how much does each signal tell the learner about which part of its attempt to change? This is called credit assignment: deciding which tokens, turns or decisions deserve the blame or the credit.

Send the same failure four signals

The top row is one failed attempt, cut into pieces. Pick a signal. Bars show how much blame each piece gets. Then read how many pieces the signal can tell apart.

Illustration of who gets the blame, not measured values. The score case follows GRPO (one advantage for every token of a rollout); text follows SDPO’s per-token advantages (sparse, per its Figure 21); reaction follows Coco (a label on the moment the observer spoke, or on a silent moment its retrospective scan flags); outcome follows Flow-GRPO (one final verdict broadcast to every turn).

Start with the score, because it is the base case. The most common way to learn from scores today is GRPO, group relative policy optimization. For one question, the model writes a group of attempts. Each gets a score. Each attempt’s advantage (how much better than usual it was) is its score minus the group mean, divided by the group’s spread.

Ai
The advantage of attempt i. Positive pushes the attempt up, negative pushes it down. Every token of the attempt gets this same number.
ri
The score of attempt i, for example 1 if the code passed and 0 if it failed.
mean(r)
The average score of the group: what “usual” means for this question.
std(r)
How much the scores in the group spread. Dividing by it puts every question on the same scale.

Work one group by hand. Eight attempts, four pass and four fail. The mean is 4 ÷ 8 = 0.5. Each score is 0.5 away from the mean, so the spread is 0.5.

pass: (1 − 0.5) ÷ 0.5 = +1    fail: (0 − 0.5) ÷ 0.5 = −1, for every token of the attempt

Now see the problem. A failed attempt of 300 tokens gets −1 on all 300, including the 299 tokens that were fine. And if all eight attempts fail, the mean is 0, every advantage is 0, and the model learns nothing at all from that question. A score is precise about how good, and silent about where.

import numpy as np
def grpo_advantages(r, eps=1e-6):
    r = np.asarray(r, float)
    return (r - r.mean()) / (r.std() + eps)
print(grpo_advantages([1,1,1,1,0,0,0,0]))   # [ 1.  1.  1.  1. -1. -1. -1. -1.]
print(grpo_advantages([0]*8))                 # all zeros: nothing to learn

Text feedback fixes the “where”. An error such as ZeroDivisionError on line 3 points at a few tokens. Chapter 4 shows how a model can turn that sentence into a number for every token. Reactions sit at the other extreme: very little information per event, and only at the moments the system chose to act, unless it also looks back for moments it should have acted. Outcomes are like scores, but for runs of many turns, so the credit problem is even bigger.

SignalWho produces itSays where?Typical trap
Scorea checker (tests, a timer) or a judge modelno: one number per attemptall-fail groups give zero signal
Textthe environment (errors) or a judge (critiques)yes, if the model can read itsmall models read feedback poorly
Reactionthe user, without meaning toonly at moments the system actedsilence pushes toward never speaking
Outcomea checker or a judge, at the end of a long runno: one verdict per runa judge model can be gamed

Put the two chapters together and you have the hero’s grid: five places an update can land, four signals that can drive it. Twenty squares. The next five chapters visit the squares this series covers, one method at a time. We start with the most direct one: change the weights, on the problem in front of you, using a score.

Eight attempts at one question all fail, each with score 0. What does GRPO learn from this group?

Chapter 3

Learn on the problem in front of you

Train the weights at test time on one hard problem, and aim the training at the best attempt, not the average

Square one of the map: weights, taught by a score. The lesson is TTT-Discover (Learning to Discover at Test Time, arXiv 2601.16175). Its setting is the purest form of learning on the job. There is one problem. There is a checker that scores any attempt. The goal is one attempt that beats the best known answer.

Think of a GPU kernel contest. A kernel is a small program that runs on a graphics card. The checker runs your kernel, confirms it gives the right output, and times it. Faster is better. The best human kernel for one task (TriMul on an H100 GPU) ran in 1,371 µs. Can a model beat that?

The usual approach is test-time search. A frozen model writes many attempts; the best ones go back into the prompt as starting points; repeat. AlphaEvolve is the famous example. The prompts improve, but the model does not. TTT-Discover adds the missing half: after each round, the model’s weights take a gradient step toward its better attempts. Fifty steps later it is a specialist in one problem.

Here is the loop as data flow, with the sizes from the paper.

  1. Pick starts. A rule called PUCT picks 8 starting solutions from an archive of up to 1,000 past attempts.
  2. Sample. The model (gpt-oss-120b with a rank-32 LoRA) writes 64 attempts from each start: 512 per step, each up to 26,000 tokens of prompt and thinking.
  3. Score. The checker validates and times each attempt. An invalid kernel gets no reward.
  4. Weight. Within each group of 64, attempts are weighted by an exponential of their reward, so the best few dominate.
  5. Update. The LoRA takes one gradient step. The best attempts join the archive. Go to step 1.

Fifty steps of 512 attempts is 25,600 attempts per problem. The paper puts the cost at about $500 per run (Sec. 3.3).

Why exponential weights? Standard reinforcement learning wants a model that does well on average, because the model is the product. Here the model is only a tool. The product is one record-breaking kernel. A thousand good attempts that fall short are worth nothing; one attempt that beats the record is worth everything. So the paper uses an entropic objective: each attempt gets a weight that grows exponentially with its reward. A knob called β slides from “care about the mean” to “care about the max”.

wi
The share of the update that attempt i gets. The shares add up to 1.
eβ ri
An exponential of the attempt’s reward. β is the sharpness: at β = 0 every attempt counts the same (the mean); as β grows, the best attempt takes almost everything (the max).
Σj
The same exponential added over the whole group, so the shares sum to 1.

Work three attempts by hand, with rewards 0, 1 and 2 (already put on a common scale). At β = 0, every exponential is 1, so each attempt gets 1 ÷ 3 = 0.333. At β = 2:

e0 = 1,   e2 = 7.389,   e4 = 54.60;   sum = 62.99  →  weights 0.016, 0.117, 0.867

The best attempt now carries 87% of the update. The paper does not hand-pick β. It solves for the β that keeps the weights within a fixed distance (a KL budget of ln 2) of equal weights, separately for every group. Its fixed-β run did worse: 1,484 µs against 1,203 (Table 8).

Slide from mean to max

Eight attempts, each a kernel runtime. Drag β and watch the update’s weight flow to the fastest kernel. Then switch to the paper’s ablation to see what each part bought.

0.0

Weights view: the eight runtimes are illustrative; rewards are standardised within the group, as in the paper’s practice (App. A.1). Ablation view: final best runtimes on TriMul H100 from the paper’s Table 8, all timed by its own evaluator: full method 1,203 µs, constant β 1,484, mean reward 1,986, frozen model with the same reuse 2,061, no reuse 5,274, naive RL 5,329, best-of-25,600 5,352. Best human 1,371 µs (Table 4). Single runs.

Read the ablation in pairs. The frozen model with the same reuse rule stalls at 2,061 µs; add the entropic training and the same rule reaches 1,203. Training without reuse, always starting from scratch, barely moves (5,274). Naive test-time RL, aimed at the mean with no reuse, lands at 5,329, almost the same as plain sampling at 5,352. So learning on the job is not automatically a win. It wins here because the learning is aimed at the right target and builds on earlier attempts.

What about the record itself? On the official leaderboard, the best TTT-Discover kernel ran in 1,161 µs, below the best human’s 1,371. The same model, frozen and sampled 25,600 times, never went below 5,390 µs (Table 4). Across its domains the paper reports new records on several problems, ties on two and one miss (the second autocorrelation inequality, where it found 0.9591 against an earlier AI result of 0.9610). Every result is a single run.

import numpy as np
def entropic_weights(r, beta):
    z = (np.asarray(r, float) - np.mean(r)) / (np.std(r) + 1e-12)
    e = np.exp(beta * (z - z.max()))           # subtract the max for numerical safety
    return e / e.sum()
print(entropic_weights([0, 1, 2], 0).round(3))   # [0.333 0.333 0.333]
# the hand example used raw rewards 0, 1, 2 at beta 2; standardised z is [-1.22, 0, 1.22],
# so the same 0.867 share needs beta of about 1.63 on the z scale
print(entropic_weights([0, 1, 2], 2 * np.std([0, 1, 2])).round(3))  # [0.016 0.117 0.867]
What this square teaches. When the work is one hard problem with a checkable score, the problem itself is the training set. The update can be small (a rank-32 adapter), cheap enough to run per problem (about $500), and aimed at the single best answer rather than the average one.

The weak spot is the signal. A runtime is one number per attempt. The model learns that one kernel was faster, not which line made it faster. The next chapter keeps the weights row and swaps the signal for something richer: words.

In TTT-Discover’s ablation, the frozen model with the same reuse rule reached 2,061 µs and the full method 1,203 µs. What does that pair show?

Chapter 4

Learn from words: the model as its own teacher

Turn an error message into a learning signal for every token, using the same model that made the mistake

Two students submit wrong code. The first sees one red word: Wrong Answer. The second sees ZeroDivisionError on the line return sum(xs) / len(xs), with the failing test mean([]). The second student knows exactly what to fix. Most RL for language models treats every model like the first student.

Square two of the map: the training signal, taught by text. The lesson is Reinforcement Learning via Self-Distillation (SDPO, arXiv 2601.20802). Its trick is simple to say. After an attempt fails, show the same model its attempt again, this time with the feedback in the prompt. Now it “knows” what went wrong. Compare how likely each token looked before and after reading the feedback.

The version that reads the feedback is called the self-teacher. It is not a bigger model. It is the same weights with more context. Where the teacher finds a token much less likely than the student did, that token is to blame. Where both agree, the token was fine.

At
The advantage of token t: a separate push for every token, not one number for the whole attempt.
pteacher(yt)
How likely the model finds token t when the feedback is in its prompt.
pstudent(yt)
How likely the model found token t when it wrote the attempt, with no feedback.

Two tokens by hand. The student wrote return right after the colon with probability 0.60. Reading “division by zero on an empty list”, the teacher would rather start with a guard, so it gives return only 0.05. A later token len looked fine to both: 0.90 for the student, 0.88 for the teacher.

return: log(0.05 ÷ 0.60) = log(0.0833) = −2.48    len: log(0.88 ÷ 0.90) = log(0.978) = −0.02

GRPO would give both tokens the same −1 (Chapter 2). SDPO gives the guilty token a push 100 times bigger than the innocent one. That is the whole idea: dense credit, read off the model’s own change of mind.

Who gets the blame?

The attempt failed on an empty list. Under GRPO, every token gets the same push. Switch to SDPO, then turn the feedback on, and see the blame move onto the tokens that caused the failure.

Illustration. The task, attempt and probabilities are ours, chosen to show the mechanism; the paper prints its own per-token example in Figure 4 without numbers. GRPO uses −1 for a failed attempt in a group where half passed (Chapter 2). Without feedback text, SDPO’s teacher sees nothing new, so every advantage is near zero.

Now the loop with its sizes. For each question, the student writes 8 attempts. The environment returns a score and, when it has one, text.

The same model re-reads each attempt with the feedback and scores every token. To save memory, SDPO keeps only the top 100 candidate tokens at each position (Table 12). To keep the teacher stable, its weights are a slow moving average of the student’s (rate 0.01). One policy-gradient step uses the per-token advantages. The extra cost over GRPO is 5.8% to 17.1% per step (Figure 5), mostly the teacher’s extra forward pass.

What if the environment only says pass or fail? SDPO borrows a trick: if one sibling attempt in the group passed, its solution becomes the “feedback” shown to the teacher. The model learns from its own best attempt, token by token.

The results, read fairly. On LiveCodeBench v6 with Qwen3-8B, SDPO reaches 48.8% against 41.2% for an improved GRPO, and reaches GRPO’s final score with 4 times fewer generations (Figure 1). On science and tool-use tasks where only a sibling’s solution acts as feedback, the aggregate is 70.2% against 66.6%. Answers got 3.2 times shorter on average (Table 8). One honest caveat: the gain grows with model size, and on the smallest Qwen2.5 model tried, 1.5B, SDPO lost to GRPO (Figure 17). Reading feedback well is a skill that larger models have more of.

SDPO also runs at test time, which puts it in the weights row too. On very hard coding questions, the model trains on its own error messages while it works. Within 2,750 attempts it found a first solution on 53.2% of them, against 41.5% for best-of-k sampling and 35.6% for multi-turn retries (Section 5). That is TTT-Discover’s idea with a richer signal.

import numpy as np
def sdpo_token_advantages(p_student, p_teacher, eps=1e-9):
    # p_*: probability of each sampled token, shape (T,)
    return np.log(np.asarray(p_teacher) + eps) - np.log(np.asarray(p_student) + eps)
print(sdpo_token_advantages([0.60, 0.90], [0.05, 0.88]).round(2))   # [-2.48 -0.02]
What this square teaches. The signal row is not a detail. The same feedback, read as one number, blames every token; read as text by the model itself, it blames the right few. The model that made the mistake is often the best reader of the message about it.

Both of the last two chapters changed weights during training. The next square moves one step back: what if the feedback is written into the training data itself, and the data is chosen by what it teaches?

In SDPO, what is the “self-teacher”?

Chapter 5

Learn which data teaches

Write the feedback into the data, then choose new data by what it does to the model’s gradients

A system that keeps learning keeps eating data. Two questions follow. What should be written around each example, so that the model learns the right lesson from it? And which new examples are worth generating at all? Two lessons of the series answer one question each, both in the data row of the map.

Feedback in front of every document

The first is Introspective Training (IXT, arXiv 2605.20285), in the square data × text. Normal pretraining treats a textbook page and a cookie banner as equals: every token counts the same. Filtering throws the junk away, and with it the contrast between good and bad. IXT keeps everything and adds a note.

A judge model (Qwen3-30B-A3B) reads each document once, before training, against a five-part rubric. It writes a quality label, from [low] to [high], or a short critique. That note goes in front of the document. The language model then trains on the note followed by the document, with the ordinary next-token loss. At inference you write the note you want, such as [high], and the model writes in that style.

Why does a note help? Because a plain model learns the average of all qualities. Say the data is 40% junk, 30% medium and 30% high. A junk word such as “Subscribe” appears with probability 0.80 in junk pages, 0.05 in medium ones and 0 in high ones.

plain model: 0.4 × 0.80 + 0.3 × 0.05 + 0.3 × 0 = 0.32 + 0.015 + 0 = 0.335    with [high] in front: 0

The note adds no facts. It tells the model which part of the data each page came from, so the model stops blurring the parts together. The paper reports that a 7.5B model reaches the same score with up to 2.8 times less compute, and that count includes the judge’s labelling cost (Figure 1). On one general data blend the labels cost 8.8% of the training compute (Figure 2), and the benchmark average rose from 46.8 to 53.1 with labels and 55.7 with critiques (Tables 3 and 6).

Data chosen by its gradients

The second is Prismatic Synthesis (arXiv 2505.20161), in the square data × score. Its setting: a large model writes synthetic math problems and solutions for a small model to learn from. More of it should help, but plain generation stalls. At 100,000 examples, the average accuracy over 7 benchmarks sat near 60 to 62% for plain and persona-guided generation (Figure 1, read off the plot).

The paper’s question is: which data actually teaches? Its answer: data that pulls the model in many different directions. To measure that, take a small frozen proxy model (Qwen2.5-0.5B-Instruct). For each example, compute the gradient of its loss: the direction the proxy would move to learn that example. Squash each gradient to 1,024 numbers with a random projection. Two examples that push the model the same way are redundant, however different their words look.

The diversity score is called G-Vendi. It treats the set of gradient fingerprints like a cloud and asks how many truly different directions it spans. Two unit vectors make the simplest case. If they are at right angles (similarity 0), the score is 2: two directions. If their similarity is 0.8, the eigenvalues of their similarity matrix (divided by 2) are 0.9 and 0.1.

entropy = −(0.9 × ln 0.9 + 0.1 × ln 0.1) = 0.095 + 0.230 = 0.325  →  G-Vendi = e0.325 = 1.38 directions

Across 300 training runs, G-Vendi ranked datasets by how well they taught with a rank correlation of 0.899 on out-of-distribution math, against 0.754 for diversity measured in a text embedding (Table 1). The gradient view is the better yardstick.

Fill the thin regions

Each dot is one example’s gradient fingerprint, squashed to two dimensions. Pick a way to generate, then press Generate 60. Prismatic keeps a new example only if it lands in a thinly covered region.

Illustration in two dimensions; real fingerprints have 1,024. Plain generation clusters around the seed examples; persona prompts spread the words more than the gradients; Prismatic clusters the pool (k = 1% of the pool in the paper) and keeps samples that fall in the smallest half of clusters (Sec. 3.1). “Regions covered” counts occupied cells of a 12 by 12 grid. Paper numbers: 70.45% at 100,000 examples for Prismatic against about 60 to 62% for the baselines (Figure 1).

The synthesis loop uses that yardstick as its compass.

  1. Cluster the current pool of fingerprints.
  2. Generate new examples with few-shot prompts.
  3. Keep a new example only if it falls into one of the sparse clusters, and only if a majority vote of solutions agrees on its answer (2 of 3 for math).
  4. Add the keepers to the pool, and repeat.

At 100,000 examples this reached 70.45% where the baselines stalled near 60% (Figure 1). A 7B model trained on 1.0 million such samples averaged 75.25 against 72.80 for R1-Distill-Qwen-7B (Table 4).

import numpy as np
def g_vendi(G):
    # G: (n, d) gradient fingerprints, one row per example
    G = G / np.linalg.norm(G, axis=1, keepdims=True)
    lam = np.linalg.eigvalsh(G.T @ G / len(G))      # same nonzero eigenvalues as K/n, d x d is small
    lam = lam[lam > 1e-12]
    return float(np.exp(-np.sum(lam * np.log(lam))))
a, b = np.array([1.0, 0]), np.array([0.8, 0.6])          # cosine similarity 0.8
print(round(g_vendi(np.stack([a, b])), 2))              # 1.38
What this row teaches. A learning system is only as good as what it eats. IXT says: do not delete the bad examples, label them, and let the model learn the difference. Prismatic says: do not count examples, count the directions they push the model, and generate where the directions are missing.

So far every square has updated one model. The next square updates something else: the policy that decides which model, or which tool, should do the work.

Why does Prismatic Synthesis measure diversity with a small model’s gradients instead of with the words of each example?

Chapter 6

Learn whom to ask

Train a small model to route each step of a task to the right tool or the right bigger model, using only the final outcome

Picture a hospital. The best surgeon does not do every job herself. A good triage nurse decides who sees each patient: the GP, the X-ray room, the specialist. A wise nurse saves the specialist for the cases that need one. The hospital gets better results for less money, and no doctor changed.

Square four of the map: the routing policy, taught by an outcome. Two lessons sit here. Both train a model whose job is not to answer, but to decide who answers each step. Everything else in the system stays frozen.

A small conductor for big models

The first is ToolOrchestra (arXiv 2511.21689). Its router, Orchestrator-8B, starts from Qwen3-8B. At each turn it reads the whole history and writes some reasoning plus one tool call. The tools include web search, a code interpreter, small specialist models and big ones such as GPT-5. A task ends when the router answers or after 50 turns.

Why train a router at all? Why not prompt a strong model to route? Because prompted routers are biased. In a pilot on 300 hard questions, a prompted GPT-5 sent 98% of the work to GPT-5 or GPT-5-mini. A prompted Qwen3-8B sent 73% to GPT-5. Both had been told to keep costs low (App. A). A router that learns from outcomes can find out when the expensive helper is worth it.

The reward has one rule that does most of the work: a wrong answer earns nothing. For a right answer, the reward adds up several measures: correctness, low cost, low latency, and a match with the user’s stated tool preferences (for example, “keep my data on our own models”). Each measure is first rescaled to 0 to 1 within the group of attempts. The user sets how much each measure weighs. GRPO then compares each attempt with its siblings on the same task (Chapter 2).

R(τ)
The reward for one whole run τ (every turn and tool call of one attempt at the task).
[solved]
1 if the final answer is right, 0 if not. A wrong answer gets zero whatever it cost.
Pk
The user’s weight on measure k: how much they care about accuracy, cost, speed or a preferred tool.
M̂k(τ)
Measure k for this run, rescaled to 0 to 1 within the group, so that cents and minutes become comparable.

A worked number. Two runs both solve the task. Run A costs 4 cents, run B costs 20, and the cheapest and dearest runs in the group cost 4 and 20. Cost enters as “low cost”, so A scores 1 on it and B scores 0. With weight 1.0 on accuracy (both score 1) and 0.3 on low cost:

A: 1.0 × 1 + 0.3 × 1 = 1.3    B: 1.0 × 1 + 0.3 × 0 = 1.0    a wrong run C: 0, even at 2 cents

Train a router

A task has three steps: find a fact, compute, and reason. For each step the router picks a helper. Set how much you care about cost, then press Train. The bars show the router’s choice at each step.

0.30

Toy. Four helpers per step with success rates and prices that we chose; the prices keep the paper’s order (the big model is the dearest). The router is a softmax per step, trained live with the reward above (zero if any step fails, min-max scaling of cost within the group) and GRPO advantages, 8 rollouts per update. Paper results, not this toy: Orchestrator-8B 37.1% on HLE at 9.2 cents a task, GPT-5 with basic tools 35.1% at 30.2 cents (Table 1).

Training ran on synthetic worlds the authors built (ToolScale: 10 domains, 4,063 tasks), with 16 tasks per batch, 8 attempts per task, and 16 H100 GPUs (Sec. 4.4). On Humanity’s Last Exam, Orchestrator-8B scored 37.1% at 9.2 cents and 8.2 minutes a task. GPT-5 with basic tools scored 35.1% at 30.2 cents and 19.8 minutes (Table 1). The router called GPT-5 about 1.6 times per task (Table 15). Read it fairly: the router can call GPT-5 itself, so it is not a small model beating a big one alone. It is a small model spending a big model’s time wisely.

Train the planner inside the running agent

The second is AgentFlow (arXiv 2510.05592). Here the team is fixed: four modules (a planner, an executor, a verifier and a solution generator), all Qwen2.5-7B-Instruct, sharing an evolving memory. Five tools: a base generator, Python, Google search, Wikipedia search and web page reading. Only the planner learns. The others stay frozen.

The hard part is credit. A run has several turns, and only the end is judged right or wrong (by GPT-4o as a judge, in training). Which plan step deserves the credit? AgentFlow’s answer, Flow-GRPO, is blunt on purpose: give the single final verdict to every turn of the run. Then each turn becomes an ordinary one-step update, with its advantage compared across a group of 8 runs of the same question.

Does it matter that the planner learns inside the live loop? The paper’s Table 3 says yes. The frozen 7B planner averages 38.5 over six benchmarks. Swapping in GPT-4o as the frozen planner gives 44.3. Copying GPT-4o’s trajectories into the 7B planner with supervised fine-tuning drops it to 19.5, a collapse. Training the 7B planner with Flow-GRPO, in the loop, gives 55.7. Training used batches of 32 questions with 8 runs each, at most 3 turns per run, on 8 A100 GPUs (Sec. 4.1, App. C.1).

import numpy as np
def orchestra_reward(solved, measures, prefs):
    # measures: (G, K) per run, higher is better (accuracy, -cost, -minutes, tool match)
    lo, hi = measures.min(0), measures.max(0)
    norm = np.where(hi > lo, (measures - lo) / (hi - lo + 1e-12), 0.0)   # constant measure -> 0
    return solved * (norm @ prefs)
def flow_grpo_turn_advantages(outcomes, turns):
    # outcomes: (G,) final 0/1 verdicts; turns: (G,) number of turns per run
    a = (outcomes - outcomes.mean()) / (outcomes.std() + 1e-6)
    return [np.full(t, ai) for ai, t in zip(a, turns)]   # one verdict, broadcast to every turn
M = np.array([[1, -4], [1, -20], [0, -2]], float)        # accuracy, -cents
print(orchestra_reward(np.array([1, 1, 0]), M, np.array([1.0, 0.3])))   # [1.267 1.    0.   ]

Run it and the three runs score 1.27, 1.0 and 0. Run A gets 1.27, not the 1.3 of the hand example, because the wrong run is now in the group. Its 2 cents sets the cheapest end of the cost scale, so A’s 4 cents scores 0.89 on low cost, not 1. The reward depends on the whole group. That is what “rescaled within the group” means.

What this square teaches. You can make a whole system smarter without touching its biggest parts. Learn the policy that decides who does each step, from outcomes, and frozen experts become a better team. In both papers the gain came from learning in the live loop, not from copying a stronger model.

The router learns from a crisp outcome: right or wrong. The last square of the series has no outcome at all. Its teacher is a person who never says a word.

In ToolOrchestra’s reward, what does a wrong answer that cost only 2 cents earn?

Chapter 7

Learn one person

Let an on-device observer learn from a user’s reactions when help is welcome, and see why silence alone teaches the wrong lesson

You are fixing a team calendar. Twenty meetings sit at the wrong hour. You open each one, change the time, close it. By the fifth, an assistant could have done the rest in seconds. But you never asked. A helpful colleague would have noticed and offered. A pushy one would have offered every two minutes all day.

Square five of the map: memory and prompt (and also weights), taught by reactions. The lesson is Deep Personalization, about a desktop agent called Coco. A small local model, the observer, watches the screen and decides when to offer help. When it says yes, a second agent does the work. The hard part is not what to do. It is when, and the right moment differs from person to person.

Asked cold, three local observer models catch few of the moments a user wants help: macro F1 of 0.12 to 0.19 (Table 1). Macro F1 is a score from 0 to 1 that rewards catching the real moments and punishes false alarms, averaged over the test personas. Telling the model the user’s persona in the prompt helps a little: 0.27 to 0.39. Learning from the user’s own reactions helps more: the best Coco variant reaches 0.35 to 0.48, a 2.4 to 3.0 times gain.

Where does the signal come from? Nobody grades the observer. When it offers help, the user engages or dismisses: that is a label on that moment. But when it stays silent, nothing happens, so there is no label. That asymmetry is a trap. Try it.

Learn when to speak

Each day has 40 moments; filled marks are moments the user wanted help. The observer speaks when its cue passes the threshold line. Press Run a week with the look-back off, then on.

Toy. The observer is one threshold on a noisy cue; a dismissed offer raises the threshold, and (with the look-back on) a missed moment lowers it. Coco itself writes a note per moment, then adapts by evolving a list of rules in its prompt or by training a LoRA (Sec. 4). The 33% share of moments needing help matches OSWorld-Persona’s test split (Table 4). Paper results, not this toy: macro F1 0.118 to 0.186 asked cold, 0.349 to 0.483 for the best Coco variant (Table 1).

With direct reactions only, every lesson says “speak less”. A dismissed offer is a clear mistake; a moment of silence is never marked wrong. So the threshold climbs, and the observer learns to say nothing. Coco breaks the trap by looking back. Every so often, the same on-device model reads the day’s notes and searches for evidence that help was needed: repeated work, being stuck, or a need it should have seen coming. Each such moment becomes a “you should have spoken” label. Now the signal pushes both ways.

Here is the data flow, end to end. Frames from the screen, filtered so that a near-duplicate frame is dropped, plus the user’s actions, go to the observer. It writes a note: what it sees, what it thinks the user intends, why, and yes or no. Notes and longer-term facts about the user (called propositions) form its memory. Reactions and look-back labels turn notes into a small dataset of corrected examples. Then one of two adapters learns from it.

  1. Coco-PE (prompt evolution). The weights stay frozen. Batches of 8 examples go through generate, reflect and curate steps that add, sharpen or delete rules in the prompt, such as “when the user is reading logs, stay silent”. At most 50 rules (App. E).
  2. Coco-LoRA. The prompt stays fixed. A rank-32 LoRA trains on the same examples for one epoch (App. E).

A worked number on why memory matters. On Qwen-3.5-9B, Coco-PE with its memory context scores macro F1 0.483. Remove the memory and it falls to 0.388 (Table 2).

0.483 − 0.388 = 0.095, and 0.095 ÷ 0.483 = 20% of the score came from remembering what the user did earlier

Why on the device? Because the observer sees everything on the screen: email, code, bank tabs. Coco keeps the screenshots, the observer’s notes, the memory and all the adaptation on the user’s machine. On a consumer GPU (an RTX 5090), the 9B observer took 2.84 s per decision on average (Table 5). The paper is careful about the limit: when the second agent is a cloud model, the context it receives leaves the device. Privacy is reduced, not removed.

A week with real people tells the rest. Ten users ran Coco for a week. An F1-style score rose from 0.199 to 0.515, and on day 1 six of the ten users got zero useful offers (Sec. 6.2). That cold start is the price of learning one person: on day one, the system knows nothing about you.

def build_examples(log, missed_ids):
    # log: one dict per observer step: {id, spoke, reaction, note}
    data = []
    for e in log:
        if e["spoke"]:
            right = e["reaction"] in ("engaged", "thumbs_up")
            data.append((e["note"], "yes" if right else "no"))
        elif e["id"] in missed_ids:               # the look-back found a missed moment
            data.append((e["note"], "yes"))
        # silent and not flagged: no evidence either way, no example
    return data                                  # then evolve the prompt, or train a LoRA, on data
What this square teaches. When the teacher is a person who never grades you, the signal is lopsided: you hear about the times you spoke wrongly and never about the times you should have spoken. A learning system must look for its own misses, or it will learn to do nothing.

That completes the tour of the squares this series covers. Every one of them came with a price tag and a way to go wrong. The next chapter puts those side by side, in a sandbox where you can break each one.

An observer learns only from reactions to its offers. Why does it drift toward never speaking?

Chapter 8

The bill and the risks

Count what learning on the job costs, and break a learning system five ways to see what each guardrail protects

A frozen model has one big virtue: it does today what it did yesterday. You tested it once, and the test still holds. A system that learns gives that up. Every update can make it better here and worse somewhere else. Every signal it learns from can be wrong, gamed or private. This chapter names five risks, gives each one a number from the papers, and then lets you break a toy system on purpose.

The five risks, with numbers

  1. Compute per problem. Learning costs money each time. TTT-Discover spends 25,600 attempts and about $500 on one problem (Sec. 3.3). SDPO adds 5.8% to 17.1% per training step over GRPO (Figure 5). IXT’s judge labels cost 8.8% of one training epoch (Figure 2). Coco’s observer takes 2.84 s per decision on a consumer GPU (Table 5).
  2. Forgetting. Learning one thing can erase another. After training on code, SDPO’s average on held-out general tasks moved from 43.5 (the base model) to 42.4; GRPO fell to 41.8 and supervised fine-tuning to 41.4 (Table 5). Small, but not zero. In AgentFlow, imitation learning wrecked the planner: 38.5 down to 19.5 (Table 3).
  3. Reward hacking. A learner optimises the signal, not your intent. TTT-Discover gives no reward to a kernel that fails the correctness check, so a fast wrong kernel earns nothing. IXT shows the softer version: asked for [high] code, the model renamed the required function in 58.3% of answers, and the benchmark could not run the renamed code. Our reading: the top label had learned the judge’s taste in code, not what the test needs. AgentFlow’s training reward comes from GPT-4o acting as a judge, and a judge model is a target that can be gamed.
  4. Privacy. Learning from users means learning from their data. Coco keeps screenshots, notes, memory and training on the device, yet context sent to a cloud agent still leaves it. ToolOrchestra puts privacy in the reward: a user can weight “use our own models” above accuracy.
  5. Evaluation that leaks into training. If the test shapes the training, the score lies. SDPO trains on public unit tests and scores on private ones. Prismatic Synthesis filters its data for 10-word overlaps with the benchmarks. IXT flags its own two leaks: the GSM8K training set sits inside its data blend, and the inference prefix was chosen on the test benchmarks.

Notice the pattern. Each risk has a guardrail, and each guardrail costs something. A correctness check needs a real checker. An anchor that limits forgetting also limits how far the system can adapt. A held-out test set is data you may not train on. Keeping data on a device limits the model size. Learning on the job is a set of trade-offs, not a free upgrade.

Break a learning system

Press Run to stream 200 tasks with a shift every 50. Then switch one guardrail off and run again. Teal is the true score on today’s tasks, yellow what the system’s own signal reports, red dashed the score on the first task.

—true score, last 50 tasks
—score on the first task
—reported minus true
—attempts spent / records sent away
64

Toy, not data. The skill is the bump from Chapter 0. Without the correctness check, the learner can raise its signal by a shortcut that lowers its true score (a stand-in for a fast wrong kernel). The anchor pulls the skill back toward where it started, which slows adaptation and limits forgetting. Without a held-out test, the reported score is measured on tasks the learner trained on. Attempts per update speed learning with diminishing returns. The real numbers are in the list above.

Try four runs, one guardrail off each time. With the correctness check off, yellow climbs while teal sinks: the system reports success while doing worse. With the anchor off, teal recovers faster after each shift, and the red dashed line falls further: faster learning, more forgetting. With the held-out test off, the reported score sits above the truth, and the gap grows as the learner sees the same items again. With data kept off the device, nothing changes on the chart, but the records counter climbs: the cost is paid by the user, not the metric.

Then drag the attempts per update. Going from 8 to 64 helps a lot; going from 64 to 512 helps a little and costs 8 times more. That is the toy version of a real budget question: TTT-Discover’s 512 attempts per step were fixed early and never ablated, so nobody knows whether fewer would do.

def guarded_update(system, batch, holdout, check, anchor=0.1, max_drop=0.02):
    batch = [x for x in batch if check(x)]          # 1. no reward for invalid attempts
    before = system.evaluate(holdout)               # 2. a test set the learner never trains on
    candidate = system.step(batch, kl_to_start=anchor)  # 3. stay close to where it started
    after = candidate.evaluate(holdout)
    if after < before - max_drop:                   # 4. forgetting check: refuse the update
        return system, "rejected"
    return candidate, "accepted"
The bill in one line. A learning system pays in compute every time it updates, risks forgetting what it knew, learns whatever its signal rewards, touches its users’ data, and can fool its own tests. The papers that work pay those prices on purpose: a correctness check, a KL anchor, a private test split, an on-device learner.
SDPO trains on public unit tests and reports accuracy on private ones. Which risk does that split guard against?

Chapter 9

Road map and connections

Read the seven lessons in order, keep the numbers on one page, and run the whole idea in a few lines of Python

Here is the lesson in one paragraph. A deployed AI system that learns on the job must answer two questions: what changes, and what teaches it. The update can land in the weights (often a small LoRA), the training signal, the training data, a routing policy, or a memory and prompt. The teacher can be a score, text feedback, a user’s reaction or an outcome. Each method in this series is one square of that grid. Each wins only when its update is aimed well and built on earlier work, and each pays in compute, forgetting risk, hackable signals, privacy and test hygiene.

The road map, in reading order

Read them in this order. Each one builds on the one before: first weights on one problem, then a richer signal, then the data, then the router, then a single person.

  1. TTT-Discover: learning to discover at test time

    weights × score

    An open model keeps training on its own attempts at one hard problem, aimed at the best attempt. Best kernel 1,203 µs against 2,061 for the same search with the model frozen.

  2. SDPO: reinforcement learning via self-distillation

    signal × text, and weights × text at test time

    The model re-reads its failed attempt with the feedback and becomes its own teacher, token by token. 48.8% against 41.2% for GRPO on LiveCodeBench v6.

  3. Introspective Training (IXT)

    data × text

    A judge writes a quality note in front of every training document, from pretraining on. The same score with up to 2.8 times less compute, labels included.

  4. Prismatic Synthesis

    data × score

    Measure what data teaches by the diversity of a small model’s gradients, then generate where they are thin. 70.45% at 100,000 examples where plain generation stalls near 60%.

  5. ToolOrchestra

    router × outcome

    An 8B model learns to route each step to search, code, small models or GPT-5. 37.1% on HLE at 9.2 cents, against 35.1% at 30.2 cents for GPT-5 with tools.

  6. AgentFlow

    router × outcome, and signal × outcome

    Train only the planner, inside a live four-module agent, with one final verdict broadcast to every turn. 55.7 against 38.5 frozen and 19.5 for imitation.

  7. Deep Personalization (Coco)

    memory × reaction, and weights × reaction

    An on-device observer learns from one user’s reactions when help is welcome. Macro F1 from 0.12 to 0.19 cold to 0.35 to 0.48 after adapting.

The numbers that matter

WhatNumberSource
TTT-Discover, TriMul H100 ablationfull 1,203 µs; frozen with reuse 2,061; naive RL 5,329; best-of-N 5,352Table 8
TTT-Discover, leaderboard1,161 µs against best human 1,371Table 4
TTT-Discover, budget50 steps × 512 attempts; LoRA rank 32; about $500 per runSec. 3.3, Table 9
SDPO, LiveCodeBench v648.8% against 41.2%; 4× fewer generationsFigure 1
SDPO, cost and forgetting+5.8% to 17.1% per step; held-out average 43.5 base, 42.4 SDPO, 41.8 GRPOFigure 5, Table 5
SDPO at test timefirst solution within 2,750 attempts: 53.2% against 41.5% best-of-kSection 5
IXTup to 2.8× less compute; labels 8.8% of an epochFigures 1, 2
Prismatic Synthesisrank correlation 0.899 against 0.754; 70.45% at 100kTable 1, Figure 1
ToolOrchestraHLE 37.1% at 9.2 cents against 35.1% at 30.2 centsTable 1
AgentFlow, planner trainingfrozen 38.5; GPT-4o planner 44.3; imitation 19.5; Flow-GRPO 55.7Table 3
Cocomacro F1 0.118 to 0.186 cold; 0.349 to 0.483 adapted; 2.84 s per decisionTables 1, 5
Coco, real users10 people, 1 week, 0.199 to 0.515; 6 of 10 at zero on day 1Sec. 6.2

The core, as code

This sketch runs as written with NumPy. It is the hero’s stream with Chapter 8’s guardrails. A frozen system and a learning one see the same tasks. The learner has an anchor to its starting skill, and a held-out test that it never trains on measures what it forgot.

import numpy as np
def acc(task, centre):                                  # toy skill: a bump on a circle
    d = np.angle(np.exp(1j * (task - centre)))
    return 0.15 + 0.8 * np.exp(-d**2 / (2 * 0.45**2))
def run(learn=True, step=0.15, anchor=0.0, n=200, shift=50):
    rng = np.random.default_rng(1)                    # same stream for every system
    kinds = [0.0, 2.0, -2.1, 1.0]
    centre, start, scores = 0.0, 0.0, []
    for t in range(n):
        task = kinds[t // shift] + rng.normal(0, 0.25)
        scores.append(acc(task, centre))                # do the work, get scored
        if learn:                                      # the checker passed it; learn on the job
            centre += step * np.angle(np.exp(1j * (task - centre)))
            centre -= anchor * np.angle(np.exp(1j * (centre - start)))   # KL-style anchor
    holdout = [kinds[0] + rng.normal(0, 0.25) for _ in range(50)]   # never trained on
    return np.mean(scores), np.mean([acc(h, centre) for h in holdout])
for name, kw in [("frozen", dict(learn=False)), ("learner", {}), ("anchored", dict(anchor=0.1))]:
    stream, first = run(**kw)
    print(f"{name:9} stream {stream:.2f}   first task now {first:.2f}")
# frozen    stream 0.36   first task now 0.86
# learner   stream 0.76   first task now 0.25
# anchored  stream 0.49   first task now 0.50

The output shows the whole trade in three lines. The frozen system keeps its first-task skill (0.86) and fails the stream (0.36). The learner doubles the stream score (0.76) and forgets the first task (0.25). The anchor splits the difference (0.49 and 0.50). Three things to try. Set step=0.0 and the learner becomes the frozen system. Try anchor=0.03 to find a gentler middle. Change shift to 20 and see who suffers more from a fast-moving world.

Where it sits in the field

The takeaway. “Learning on the job” is not one technique. It is a grid: five places an update can land, crossed with four kinds of teacher. Name the square before you build. Then name the price: the compute per update, what might be forgotten, how the signal could be gamed, whose data it touches, and which test the learner must never see.
A coding agent rewrites a list of rules in its own prompt after users accept or reject its suggestions. Which square of the map is that?

Now press Present or Teach and explain, out loud and from memory, the two questions every learning system must answer, one method per square, and the five prices. If you can, you own the map. Then go back to the map and place a system you use every day on it.

Learning on the Job: a hub for the series on AI systems that keep learning after deployment. Sources: TTT-Discover (arXiv 2601.16175), SDPO (arXiv 2601.20802), Introspective X Training (arXiv 2605.20285), Prismatic Synthesis (arXiv 2505.20161), ToolOrchestra (arXiv 2511.21689), AgentFlow (arXiv 2510.05592), the Deep Personalization (Coco) paper as covered in its lesson, and, for the framing only, Noeri’s vision post “The Plural of Intelligence”.
Back to Gleams