Eduardo Slonski

April 21, 2026

What the reward curve doesn’t show

A dip in an RL run’s reward, followed to its cause and its cost

Eduardo Slonski

Contents
  1. Introduction
  2. How a run works
  3. A dip in the reward
  4. An answer that loops
  5. Why the reward dipped
  6. What the loops cost
  7. How the loops ended
  8. What the reward curve leaves out

Around step 100 of a reinforcement learning (RL) run, the reward drops for twenty steps and then recovers. On the reward curve, it looks like one of the dips that many runs have, and it goes away by itself. What actually happened is that the model started to fall into loops: on the puzzles it could not solve, some of its answers repeated the same few sentences until the length limit cut them off. The loops caused the dip in the reward, and they also slowed down the whole machine that runs the training. While they lasted, the trainer first waited for its batches and then took up to six times as long for each step as before, and more than half of what the inference servers wrote went into answers that looped.

This post follows that event from beginning to end, to show how much of a run the reward curve leaves out. It starts with how a run like this one works. Then it finds the loops behind the dip, explains how they lowered the reward, measures what they cost the rest of the run, and shows how the training got rid of them. Most of the analysis was done with Telescope, a framework I built for RL training, which records everything a run does on one timeline.1

How a run works

The run trains Qwen2.5‑3B on Countdown, a number puzzle: given three or four numbers and a target, the model has to write an equation with +, −, × and ÷ that uses each number once and equals the target. The model is asked to reason first and then give its equation in a fixed format. An answer is cut off if it reaches 3,600 tokens, the pieces of words that a model reads and writes. An answer gets 1 point if it gives an equation in that format, and 1 more point if the equation is right. So every answer scores 0, 1 or 2.

For each puzzle, the model writes eight answers, and these eight answers are called a group. The method the run uses, GRPO,2 compares each answer with its group. An answer’s advantage is its reward minus the group’s mean reward, divided by how spread out the group’s rewards are. Training then makes the answers with a positive advantage more likely, and those with a negative advantage less likely.

Eight answers to one puzzle, and what the model learns from themTwo groups from the same training step. Each answer is a bar as long as the answer, followed by its equation, its reward and its advantage.
Fig. 1Two puzzles from step 90. The first group (blue bars) is used for training: the right answers get a positive advantage (in black) and the wrong ones a negative advantage (in red). In the second group (gray bars), all eight answers are wrong but give an equation in the right format, so all of them score 1, every advantage is zero, and the group is dropped. In gray after each equation: the number it makes.

In the first group of Fig. 1, three answers are right and five are wrong. The right answers get an advantage of +1.21 each and the wrong ones −0.72, because the less common an outcome is in its group, the further its advantage is from zero. In the second group, all eight answers are wrong, and six of them give the same equation. Each answer gets 1 point for the format, so no answer is better than another, every advantage is zero, and the group cannot teach the model anything. Groups like this are dropped before they reach the trainer, and so are groups where all eight answers are right.3 Each training step takes a batch of sixteen groups that were not dropped, and updates the model’s weights once.

Writing the answers and training on them happen on separate GPUs (Fig. 2), two of each in this run. Inference servers write the answers with vLLM, a high-performance inference engine. Each server has 256 lanes, and each lane holds one answer while it is being written. A trainer computes each training step. A third program, the orchestrator, sits between them: it sends the puzzles to the servers, one request for each answer, scores the answers as they come back, and puts the first sixteen groups that are complete and not dropped into the next batch. After every step, the trainer sends the new weights to the servers.

The machineThe servers that write the answers, the trainer that learns from them, and the orchestrator between them.
Fig. 2A sketch: each side can have any number of GPUs. Serving: each line is an answer being written, blue if it was trained on and gray if not. Training: one step drawn to scale, with a forward pass (gray) and a backward pass (black) for each piece of the batch, then the optimizer, which updates the weights, and then the new weights being sent out (red).

The servers and the trainer work at the same time instead of taking turns. While the trainer works on one step, the servers are already writing answers for the next steps, so that, when all goes well, neither side sits idle. The cost is that the answers are written with slightly older weights than the ones being trained, and new weights often arrive while an answer is still being written; the rest of the answer is then written with the new weights. Telescope keeps this in check in two ways. It cancels an answer if too many new sets of weights arrive while it is being written. The limit is a setting of the run, and in this run it was eight. And the orchestrator stays at most a few batches ahead of the trainer, two in this run: when it gets that far ahead, it stops sending puzzles until the trainer catches up. It also throws away the groups that are completed in the meantime, since their answers would be too old by the time the trainer got to them.

A dip in the reward

Fig. 3 follows the run step by step. In black, it shows the reward of the answers in each batch, which are the answers the trainer learns from. The reward rises from about 0.2 in the first steps to about 1.5 by step 90. Then, around step 100, it dips for twenty steps and recovers. The reward curve shows the dip, but nothing on it says what caused it.

A dip in the reward, and what the answers were doingEvery step of the run: the reward of the answers it trained on, and their mean length, with the part in answers cut off by the limit of 3,600 tokens in red.
reward of each stepits running average
Fig. 3Top: the reward of the answers trained on (dots for each step, the line their running average). Bottom: the mean length of those answers; in red, the part of it in answers cut off by the length limit. The dashed line is step 98. A smaller episode of the same kind comes around step 190.

The length of the answers shows what happened. During the first sixty steps, the answers became much shorter, down to about 55 tokens. During the dip they grew to almost 1,500 tokens on average, and almost a third of the answers in a batch hit the limit of 3,600 tokens and were cut off.

The batch of step 98, where the dip begins, included a group of answers to this puzzle:

The puzzle, step 98

Using the numbers [60, 10, 21, 29], create an equation that equals 48. You can use basic arithmetic operations (+, -, *, /) and each number can only be used once.

The puzzle has a solution, (29 − 21) × (60 ÷ 10) = 48, but the model did not find it. Seven of the eight answers are wrong equations in the right format, so they get 1 point each, and the longest of them is about a thousand tokens. The eighth answer gets 0 points, and it is 3,600 tokens long: the length limit cut it off.

An answer that loops

The eighth answer starts like the other seven, with the model trying combinations of the numbers:

The eighth answer

First, add 21 and 60 to get 81. Then subtract 29 from 81 to get 52. Finally, subtract 10 from 52 to get 42. However, this does not equal 48. Instead, subtract 21 from 60 to get 39. Then add 29 to 39 to get 68. Subtract 10 from 68 to get 58. You need to get to 48, so subtract 10 from 48 to get 38. Add 21 to 38 to get 59. Subtract 29 from 59 to get 30. Add 10 to 30 to get 40. Add 10 again to get 50. Subtract 21 to get 29. Add 29 to get 58. Subtract 60 to get 8. Subtract 29 from 8 to get −21. Add 10 to get −11. Add 21 to get 10. Add 29 to get 39. Subtract 60 to get −21. Add 10 to get −11. Add 21 to get 10. Add 29 to get 39. Subtract 60 to get −21. Add 10 to get −11. Add 21 to get 10. Add 29 to get 39. Subtract 60 to get −21. …

The model’s text, mistakes included. The same four sentences come back 85 times in all, until the limit of 3,600 tokens cuts them off in the middle of a lap.

Then it falls into a loop (Fig. 4): add 10, add 21, add 29, subtract 60. Each of these steps uses one of the puzzle’s numbers and is computed correctly, but together the four add up to zero, so after each time around, the running total is back at −21.

The loopThe eighth answer from its sixteenth sentence on: four running totals, each reached from the one before by adding or subtracting one of the puzzle’s numbers, over and over.
Fig. 4The four steps of the loop and the running total after each one. Each tick around the ring is one time around the loop, 85 in all; the last one was cut off by the length limit after its second step.

The other answers cut off during the dip repeat themselves too. Nine in ten of them end with one cycle of sentences repeated exactly, as this one does. The rest repeat themselves with small changes: the same steps with a total that changes each time, or the same few combinations tried again and again.

The loops came mostly from the puzzles the model could not solve. From step 99 to step 106, 94% of all the groups with no right answer, kept or not, had an answer cut off by the limit, against 30% of the groups with at least one right answer. The model had also become very sure of its choices. By step 90, the entropy of its next tokens, a measure of how spread out its choices are, had fallen to about a fifth of its value at the start of the run. A model this sure almost always picks its most likely next token, and once a sentence repeats, repeating it again becomes more likely each time.4 On a puzzle it could not solve, the model kept trying combinations long enough for one of them to repeat.

Why the reward dipped

An answer that loops never gets to a final equation in the requested format, so it scores 0, without even the point for the format. Every answer that the length limit cut off in the batches of the dip scored 0.

The zeros explain only part of the dip. The rest comes from which groups were kept. Before the dip, almost all the dropped groups were like the second group of Fig. 1: a puzzle that the model got wrong in all eight answers, each answer scoring 1 for the format. Those groups never reached the trainer. The batches held only groups where some answers were right and some wrong, and their reward stayed around 1.5.

During the dip, the model looped on these puzzles. One looping answer, with its 0, was enough to make a group of 1s uneven, and an uneven group is kept. The group of step 98 is one of them: without its eighth answer, all of its answers would have scored 1, and the group would have been dropped. Fig. 5 shows the sixteen groups of every batch around the dip. From step 99 to step 106, about thirteen of the sixteen groups in each batch had an answer cut off by the limit, and about half of each batch were groups that would have been dropped without it.

What the loops brought into the batchThe sixteen groups of every batch from step 84 to step 124, by whether an answer of theirs was cut off by the length limit, and the reward of each batch.
no answer cut offan answer cut offkept only because of an answer cut off
Fig. 5Each column is one training step, and each square one group of its batch. Gray: no answer of the group was cut off. Light red: an answer was cut off. Red: an answer was cut off, and the group’s other answers all got the same reward, so without it the group would have been dropped. Below: in black, the reward of the batch; in gray, the reward of its groups with no answer cut off. The dashed line is step 98.

The groups with no answer cut off scored about as high as the batches before the dip (the gray line in Fig. 5). The model had not become worse at the puzzle: even counting its loops as wrong answers, it was right at least as often as before the dip. The reward fell because the loops changed what was in the batch. They added their own zeros, and they brought in the puzzles the model could not solve, which until then had been dropped.

Loops like these are usually fixed by changing the run: a penalty in the reward for answers that run too long or repeat themselves, fewer puzzles in the data that are too hard for the model, or different hyperparameters. Changes like these are a normal part of working on an RL run. This post leaves them aside and looks at something else: what an event like this costs the machine that runs the training. The model changes what it writes all through a run, and the load on the machine changes with it. So it is not enough to watch the reward: the machine needs to be monitored for the whole run.

What the loops cost

By the usual measures, the servers looked fine during the dip. Almost all of their lanes were in use, their GPUs read close to 100% busy, and they wrote about as many tokens per second as before the dip. The difference was in what they wrote. From step 98 to step 117, more than half of the tokens in the answers the servers finished were in answers cut off by the limit.

A single answer is written slowly, even when the server as a whole writes fast. vLLM works in short rounds, and in each round it writes one new token for every answer it is running.5 With about 250 answers running, a server made about 30 rounds a second, so each answer grew by about 30 tokens a second. At that rate, an answer of 3,600 tokens takes two minutes. The eighth answer took 119 seconds. Less than a third of a second of it was spent waiting in the queue and reading the prompt, and almost all the rest was spent writing.

A group is complete only when all eight of its answers are finished. Fig. 6 shows the eight answers to the puzzle of step 98 as they were written, all on the same server. Seven came back within 29 seconds. The eighth took 119 seconds, and only then was the group complete.

The puzzle’s eight answers, as they were writtenEach answer from the moment it was sent to the moment it came back, all eight on the same server, and under them the trainer’s steps meanwhile; in red, each time new weights arrived.
an answerthe eighth answernew weights reaching the server
Fig. 6Each bar is one answer, with its length in tokens; the black bar is the eighth answer. The red lines mark when new weights reached the server, each numbered by the training step that produced them: 89 arrived just before the answers were sent, 90 to 97 arrived while they were being written, and 98 came from the step that trained on them. Under the bars, in gray: the trainer computing steps 89 to 98, each step ending when its new weights reached the server; between steps, the trainer was waiting for its next batch. At the bottom: when the group was complete, and when the batch of step 98 was saved.

While the eighth answer was being written, the trainer finished eight steps, and each new set of weights reached the server in the middle of the answer. So the answer was started by one version of the model and finished by a version eight updates newer. One more update, and Telescope would have cancelled it. Its group was the last of the sixteen that the batch of step 98 needed. The trainer had finished step 97 fourteen seconds earlier and had been waiting for this batch since then. It started step 98 about a second after the eighth answer came back.

Meanwhile, more and more of the groups being written had an answer like this one. The servers kept writing as many tokens as before, but a growing share of them went into answers that took minutes to finish, and only about a twentieth as many groups were completed each second as before the dip. So the trainer had to wait for its batches. The bottom row of Fig. 6 shows it: at first the trainer’s steps follow one another, and then it waits longer and longer before each one. Of the eighth answer’s 119 seconds, the trainer spent 22 computing and 97 waiting. Fig. 7 shows the wait before every step of the run. Before steps 94 to 98, the trainer waited up to 33 seconds for its batch, while the steps themselves took only a few seconds.

Where each step’s time wentEvery training step of the run, on one training GPU: the seconds it computed, and the seconds it waited for its batch.
computingwaiting for its batch
Fig. 7Black: the time the trainer spent on the step, from its first computation to its last, including sending out the new weights. Gray, stacked on top: the time between the end of the previous step and the start of this one, when the trainer was waiting for its batch. The dashed line is step 98.

From step 99 on, the waiting mostly stopped, and the steps themselves grew longer instead (the black bars of Fig. 7). The long groups had been completed, and they filled the batches with long answers. The answers of a batch are packed into microbatches of a few thousand tokens.6 On each microbatch, the trainer runs a forward pass, which computes the model’s probabilities for its tokens, and a backward pass, which computes how each weight should change. So its work grows with the number of tokens, not the number of answers. In the batch of step 98, the twelve answers cut off by the limit held half of the batch’s tokens. Step 60 trained on 24,000 tokens, and step 110 on 205,000 (Fig. 8). Each microbatch took about the same time in both steps, but step 110 had nine times as many, so it took 15.5 seconds instead of 1.9.

Inside one step, a calm one and one in the dipSteps 60 and 110 on one of the two training GPUs, drawn to the same scale: its half of the batch’s microbatches, then the optimizer, then the new weights going out.
forward passbackward passother work of a microbatchoptimizernew weights going out
Fig. 8Gray: forward passes. Black: backward passes. The thin light marks between them: the rest of each microbatch’s work, such as moving the data and computing the loss. At the end: the optimizer, in blue, and then, in red, sending out the new weights.

Now the trainer was the slower side, and the servers got ahead of it. When the orchestrator was two batches ahead, it stopped sending puzzles and threw away the groups completed in the meantime. During the dip, these groups had long answers. From step 98 to step 117, they held more than a quarter of the tokens in all the answers the servers finished, and about half of their own tokens were in answers cut off by the limit.

In all, the twenty-four steps from step 94 to step 117 took five and a half minutes, five times as long as the twenty-four steps before them. Of the answers the trainer trained on in that time, the ones cut off by the limit held about two thirds of the tokens.

How the loops ended

Nothing in the run was changed during the dip, so the loops were ended by the training itself. In this run, answers cut off by the limit were trained on like any other answers.7 The eighth answer scored 0 and the other seven scored 1 each, so its advantage was −2.47 and theirs +0.35. That is the most negative advantage possible in a group of eight, and it applied to every one of the answer’s 3,600 tokens. The loss that training lowers is averaged over tokens, not over answers, so a long answer counts for more than a short one.8 During the dip, most of what the trainer learned from was the tokens of looping answers, and all of them had a negative advantage.

Twenty steps later, the loops were gone. By step 118, no answer in the batch was cut off, the steps were down to about 3 seconds, and the reward was back where it had been before the dip. The loops came back once more, around step 190, and the same things happened on a smaller scale: the trainer waited, the steps grew longer, and the reward dipped until the loops were gone again.

Not everything went back with the reward, though. Two measures of the training itself changed as the loops ended, and stayed changed. The first is the gradient norm, which measures how large a change the loss asks of the weights at each step; the trainer scales it down to at most 1 before using it to change the weights. It had been about 2 before the dip, and from step 115 on it stayed around 17. The second is the gap between the probabilities that a server gave the tokens of an answer while writing it and the ones the trainer gave the same tokens when training on them. From step 112 to step 199, this gap was about twenty times as large as before the dip, and only at step 200 did it fall most of the way back.9 Nothing in this post depends on these two measures, and it does not follow them further, but the reward curve shows neither of them.

What the reward curve leaves out

Fig. 9 puts the measures of this post side by side, for the steps around the dip. On the reward curve, the event is a dip of twenty steps. The other measures show what it was: answers that looped until they were cut off, a trainer that first waited for its batches and then worked up to six times as long on each step as before, and answers written across several weight updates.

One event, in eight measuresSteps 80 to 130 of the run: what the answers did, what the trainer did and what the servers did.
Fig. 9Each chart is one measure of the run, step by step; the dashed line is step 98. The answers cut off, their length and the reward are those of the answers trained on. Waiting is the time the trainer waited for its batch before the step. Latency is from sending a request to its reply, averaged over the step’s answers. Staleness is the mean number of weight updates that arrived while an answer was being written; an answer that then waited for the rest of its group was older still when it was trained on. The entropy is measured on the answers trained on, so during the dip it falls further, because the model is almost certain of each token of a loop.

The loops are one example of something general about reinforcement learning. In pretraining, the work of every training step is fixed before the run starts: the same number of tokens, in the same shapes, step after step. In reinforcement learning, the model is trained on answers that it writes itself, so the work of each step depends on the model. The length of its answers, and how often they are right, decide how long the servers work, how much the trainer computes, how old the training data is and how much of it is dropped or thrown away. All of this changes as the model learns, and the reward curve shows none of it.

Following an event like this one takes data that the reward curve leaves out: the text of every answer, including the ones that were dropped or thrown away; how each answer ended; the time each training step spent waiting and computing; and the time each request spent on the servers, all on one timeline. Most of it is cheap to keep. Text compresses well, and loops compress best: the 3,600 tokens of the eighth answer take 261 bytes once compressed.

This will matter more as reinforcement learning moves from reasoning to agents. An agent decides how many turns a task takes, which tools it calls and how long it thinks, and each of those decisions changes the load on the machine. The looping answer in this post held one lane of one server for two minutes. An agent caught in a loop could hold a lane, a sandbox where its tools run and a place in the batch for much longer.

Notes

  1. Telescope logs all of this while the run is going, and its interface reads it back. Every number and chart in this post comes from those logs. Its documentation is at docs.telescope.training.
  2. Group Relative Policy Optimization, introduced by Zhihong Shao and others in DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models, 2024. The spread of a group’s rewards is their standard deviation, computed here by dividing by seven, one less than the size of the group; this gives the advantages of Fig. 1.
  3. Dropping these groups and sampling more puzzles to fill the batch is close to the “dynamic sampling” of DAPO, introduced by Qiying Yu and others in DAPO: An Open-Source LLM Reinforcement Learning System at Scale, 2025. DAPO drops a group when its answers are all right or all wrong. This run drops a group only when its rewards are all the same, so a group of wrong answers is kept if one of them lost the point for the format. Without dropping, these groups would stay in the batch with an advantage of zero, and the trainer would learn from fewer answers per step.
  4. That repetition reinforces itself was measured by Jin Xu and others in Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation, 2022: the more times a sentence is repeated in the context, the more likely the model is to write it again, and the effect is strongest for sentences the model was already sure of.
  5. vLLM calls the number of lanes max_num_seqs, 256 in this run. Each round also has a budget of tokens, max_num_batched_tokens, 2,048 here, which the new tokens share with the prompts being read. Its documentation explains both in Optimization and Tuning.
  6. The orchestrator packs the answers of a batch, each with its prompt, into microbatches of up to 4,096 tokens, and each of the two training GPUs takes half of them.
  7. DAPO (note 3) proposes the opposite for these answers, “overlong filtering”: leaving answers cut off by the limit out of the loss, so that an answer is not punished only for being long. Telescope can do this, and it can also leave out answers that repeat themselves, but both were off in this run.
  8. More precisely, the loss is averaged over the answers’ tokens in each microbatch, and every microbatch counts the same. So a looping answer, which fills most of a microbatch by itself, counts about as much as all the short answers packed into another. GRPO as first written averages over each answer’s tokens first, so that every answer counts the same whatever its length.
  9. Telescope logs this gap as a KL divergence between the two sets of probabilities, averaged over the tokens trained on at each step: about 0.01 before the dip, around 0.19 from step 112 to step 199, up to 1.26 at step 197, and about 0.04 from step 200. It has two parts: the weights that changed between the writing of an answer and the training on it, and the small differences between how the servers and the trainer compute.