Explore the research collection
3 entries · Follow this search
- Paper
AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents
Trains long-horizon coding agents to proactively decide when to compact their own context — a form of model-harness co-design: the harness provides the compaction mechanism, the model learns when to invoke it, what working state to preserve, and how to continue afterward. Data collection: run the base agent on coding tasks, use a judge to review its compaction decisions, summaries, and post-compaction actions; flawed outputs are replaced with corrected ones before environment execution so trajectories continue from corrected decisions. These trajectories feed supervised fine-tuning, then joint RL optimizes coding and compaction with task-success rewards. Absolute gains: +9.2 points on SWE-bench Verified, +5.0 on SWE-PolyBench Verified. Improvements hold across all inference budgets — including with a 256K context window that never overflows (so learned compaction helps even when context space isn't the limit) and with a 16K window whose overflow triggers fallback compaction. Latest in the AutoHarness → AutoContext → AutoCompact trend of moving harness responsibilities into the model itself; related to Meta's Context Language Models paper. Open questions: scaling, robustness across harnesses, combining rule-based compaction packaged in harnesses with model-invoked proactive compaction.
- Post
Intelligence Density (Density Aware Training)
Trajectory's 'Intelligence Density' field notes argue the right efficiency metric is cost per completed task, not cost per token, and introduce Density Aware Training — a knob-free post-training technique that cuts wasted output (90k→37k tokens at equal pass rate on a legal-agent benchmark) and resists the reward hacking where standard RL inflates training reward via verbosity while held-out performance collapses.
- Paper
Training Language Models to Self-Correct via Reinforcement Learning
arXiv 2409.12917 (v2): SCoRe multi-turn RL for self-correction using only self-generated data; addresses SFT distribution mismatch and behavior collapse. Reports +15.6% / +9.1% self-correction lifts on MATH / HumanEval for Gemini 1.0 Pro / 1.5 Flash baselines. Discord: Training LLMs to self-correct.