Auditing RL training trajectories: a field guide from metrics to root causes
青稞AI · wechat · 2026-12-05
A detailed workflow for trajectory analysis in RL post-training, based on the author's internship at a foundation model lab.
Why trajectories matter: RLVR rewards are sparse and outcome-only — an agent that finds the key file in 10 searches gets the same reward as one needing 100, and inefficient behavior rarely triggers errors while quietly burning token budgets.
Two-layer audit system:
- Layer 1: automated metric monitoring (token length, step counts, reward curves, timeouts/budget-exceeded errors, think-token share) to decide when to inspect trajectories;
- Layer 2: actually reading trajectories — not just when reward stalls, but also when it rises (shortcut hacking?). Prioritize error trajectories, abnormally long ones, plateau cases, and same-task 0→1 transitions across checkpoints.
A four-stage framework for coding trajectories (Search → Planning → Execution → Verification) with bad patterns per stage:
- Search: no search hypothesis, repeated greps with zero information gain;
- Planning: prematurely locking onto one root cause while ignoring alternatives like cache invalidation or concurrency;
- Execution: repeated failed edits with identical parameters;
- Verification: insufficient validation.
The article closes with how agents themselves can assist trajectory analysis, turning it into a reusable, semi-automated workflow.
More from coding & agent
- KOL revisits take: Skills are an open plot to absorb long-horizon tasks for training — vista8 · 2026-12-06
- Guizang rebuilds personal site with Fable, Neon and Opus, powered by his agent-memory project — op7418 · 2026-12-06
- 20 concepts to learn before building agentic AI, from Python to orchestration — atullchaurasia · 2026-12-06
- Dev open-sources DuoM, a catalog surfacing risk signals for 50k MCP servers — Official-Duom · 2026-12-06
- The six Claude Code commands worth learning first — VridhiMehta · 2026-12-06
- hbench: open-source runner to benchmark coding agents like Claude Code, Codex, Gemini CLI — Psychological_Cry920 · 2026-12-06