Wink Pings

Reward went up, but the model may be slacking off: the most underrated job in RL training is reading trajectories

A widely shared RL blog post makes a counterintuitive point: the reward curve only tells you the outcome, while trajectories reveal what the model is actually doing. From two-layer auditing to four stages, and then to loops and an attribution loop, this approach is more worth reading than tuning hyperparameters.

When the reward curve goes up, most people's first reaction is that training is working. But a widely shared RL blog post reminds us: the curve only shows that the outcome has changed, not how the model changed. The model may have truly learned a more efficient solution, or it may simply have found a longer shortcut.

This blog post is by Jiaqi Wang from the Chinese University of Hong Kong, titled 'RL Training Notes (1): A Practical Guide to Reading Trajectories'. Drawing on experience from an internship doing RL post-training at a foundation model company, the author writes about a set of habits for reading trajectories. These are not algorithmic tricks from papers, but the dirty work that has to be done every day in industrial training: look at metrics, dig through trajectories, find anomalies, attribute causes, change data or the environment, and run another round.

Someone added a very accurate line when sharing it: reward curve goes up, trajectories snitch. The curve rises, and the trajectories tell on the model.

Why looking only at reward is not enough

In RLVR settings, reward is often very sparse. A coding agent runs hundreds of steps, calls tools dozens of times, and in the end the reward is 1 if the tests pass and 0 if they do not. Whether the model located things efficiently along the way or searched repeatedly is something reward does not care about.

The blog gives an example: one agent searches 100 times to find the key file, while another completes the same task in 10 searches. Both pass the final tests, and the two trajectories get exactly the same reward. But the extra 90 searches just burn tokens and runtime. This is exactly the problem with reward-only training: as long as the outcome meets the condition, there are no constraints on the efficiency and quality of the intermediate behavior.

So reading trajectories has to answer two questions: why reward is rising or why it is not; and whether any anomalous behavior appears during the model's problem-solving process that aggregate metrics cannot see.

Two-layer auditing: first let metrics tell you which trajectory to look at

The author divides trajectory inspection into two layers. The first layer is automated metric monitoring. It is not responsible for diagnosis, only for narrowing the scope. It focuses on four categories: length (whether token length or number of steps has inflated abnormally), reward (rising, plateaued, or suddenly dropping), error (the share of timeouts and token budget exceeded), and thinking (the share of think tokens and repetition patterns).

The second layer is actually reading trajectories. There is a counterintuitive habit here: do not look at trajectories only when reward is not rising. Also look when reward is rising, to confirm whether the model has really learned a new strategy or is just gaming the score through shortcuts. Priority samples to inspect include error trajectories, abnormally long trajectories, plateau trajectories, and trajectories for the same problem that go from 0 to 1 across different checkpoints. The last ones are especially worth comparing: has the model found the key file faster, has it reduced ineffective searches, or has it formed a more reasonable verification process?

两层审计体系:指标监控触发轨迹审计

Four stages, four kinds of bad patterns

A trajectory may contain hundreds of steps, and reading it from beginning to end is very inefficient. The author's approach is to break it into four stages by behavior: Search/Localization, Planning, Execution, and Verification. These are not strictly linear; the model may go back to searching halfway through execution, or replan after verification fails. The split is for categorization, not for labeling every step.

四阶段轨迹框架与各阶段典型bad pattern

A common bad pattern in the Search stage is searching without boundaries. For example, repeatedly grepping the same keyword, changing case, or adding flags, with no change in results. The problem is not that any single search is wrong, but that the model has not formed a search hypothesis and does not use the previous result to adjust direction.

The problem in the Planning stage is an incomplete high-level plan. The model may lock onto a cause from the beginning, for example deciding that the bug comes from caching, and then repeatedly change the cache key around that hypothesis without considering cache invalidation, concurrency, or state synchronization. The subsequent execution looks coherent, but it keeps moving in the wrong direction.

In the Execution stage, watch out for repeated operations that provide no information gain. For example, repeatedly adjusting spaces around an equals sign, failing four times, and yet not changing strategy based on the failure feedback. A healthy coding trajectory does not necessarily need a large number of edits; it is not necessarily bad for read and search to make up most steps. The key is whether every operation has a clear purpose.

The most typical problem in the Verification stage is stopping as soon as self-tests pass. Happy-path tests written by the model itself cannot cover edge conditions, and all-green tests do not mean the implementation is correct. The blog's original wording is: the model completing the verification it believes to be correct does not mean the task has been correctly completed in the real environment.

Loops deserve more attention than you might think

The blog divides loops into two types. Token-level loops are repeated output of the same token or phrase at the text level, such as continuously repeating the same sentence in a think block. Tool-level loops are more subtle: at the agent level, similar tools are called repeatedly. Each call looks reasonable on its own, and only when you connect them do you realize that it has been going in circles.

Loops do more than waste tokens. Under settings such as GRPO that normalize reward within a group, if all rollouts for the same prompt fall into the same loop and get the same reward, the within-group advantage approaches zero, and the effective training signal is eaten up. The author also cautions, however, that not every loop means a serious problem; moderate repetition may be normal exploration. The key is whether the proportion keeps increasing, whether it starts consuming budget, and whether it affects task performance.

The loop is not complete until after attribution

The endpoint of reading trajectories is not discovering a bad pattern, but deciding where to put resources next. When reward is not rising, it could be insufficient model capability, a task that is too hard, a verifier that misses cases, or a problem in the inference infra. The blog provides a troubleshooting mapping table, but emphasizes that these are only directions, not causal conclusions. Insufficient model capability and environment problems may look exactly the same on the reward curve, yet their solutions are completely different.

The full loop is: Metric Monitoring → Trajectory Inspection → Diagnosis → Intervention → Verification. After making changes, you need to rerollout under a comparable task distribution to see whether anomalous behavior decreases and whether new problems have been introduced. For example, an intervention that reduces repeated searching may cause the model to stop exploring too early on difficult tasks.

The next step is directing agents to read trajectories

The blog finally discusses the possibility of agents participating in trajectory analysis. A human can give the agent a clear diagnostic task and trajectory files, and have it check for repeated tool calls, whether edits bring progress, whether thinking is spinning in place, and whether reward hacking exists. But hypothesis-driven audits have blind spots: if the prompt presupposes bad patterns, the agent may only look for the expected problems. So the author argues that open-ended audits should also be kept, letting the agent proactively compare different trajectories without presuppositions.

This view resonated with some people in the replies. Others joked about whether you could just ask Claude to find interesting things. The author's answer is actually clear: human domain expertise still matters. Humans are responsible for asking questions, judging evidence, and deciding the next step, while agents are responsible for expanding the scope of inspection.

Back to the opening line. The reward curve going up does not necessarily mean the model has become stronger; it may also mean the model has learned a less effortful way to game the score. Reading trajectories looks unglamorous, but it determines whether you can promptly discover problems in data, environment, and model behavior. The next step after knowing how to read data is knowing how to direct agents to read data.

Blog link: https://kokolerk.github.io/blog/rl-trajectory-audit/

发布时间: 2026-12-06 01:27