Explore the research collection
5 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.
- Paper
Marathoner: Ultra-Long-Horizon Autonomous Intelligence
Marathoner: Ultra-Long-Horizon Autonomous Intelligence (arXiv 2609.34378; CC BY 4.0). Marathoner-9B, built on Qwen3.5-9B, trained for ultra-long-horizon autonomous coding with a three-stage post-training pipeline: (1) Ultra-Long-Horizon Task Synthesis -- mining major-release PRs (1000+ new lines of code each) from 10,000 GitHub repositories into task-level data in the Harbor framework format, plus 'Multi-Task Chaining' that chains multiple synthesized tasks into one harder task; (2) Rejection Sampling Finetuning -- using Kimi K3 as teacher with diverse harnesses (Claude Code, Codex, etc.), then SFT on rejection-sampled trajectories; (3) Reinforcement Learning -- GRPO in the AReaL framework with real execution in independent sandboxes, plus a novel 'Later Stage Bonus Reward' (+0.5) that explicitly rewards exceptionally valuable operations late in a run (e.g., finding a hidden bug, delivering a major optimization). Endurance: average on FrontierSWE 3.56h / 426.2 steps / 648.3 tool calls; on Terminal-Bench 2.0 0.58h / 104.8 steps / 239.4 tool calls; a case study shows an 11.8-hour trajectory (872 steps) implementing native Rust control-flow operations in Qiskit. Results with Claude Code harness: SWE-bench Verified 43.8% (Qwen3.5-9B) -> 58.4% (after RFT) -> 77.5% (final Marathoner-9B); Terminal-Bench 2.0 27.3% -> 49.7% -> 57.2%; FrontierSWE 10.2 -> 18.2 -> 26.4; NL2Repo 17.9 -> 23.8 -> 34.7; SWE-Marathon 0 -> 2.9 -> 8.2. Compares against proprietary models (Kimi K3, Claude Fable 5.1, GPT-6-Astra, GLM-5.2). Listed under cs.CV; 30 pages, 4 figures. No code, model, or dataset release visible in the paper or arXiv 'Code, Data, Media' section at research time.
- Paper
Beyond Teacher Assignment: Domain-Normalized Multi-Teacher On-Policy Distillation
RL can turn one language model into several specialists (math, coding, instruction-following), and multi-teacher on-policy distillation (MOPD) merges them by having the specialist for each prompt's domain give per-token feedback. But the routing decides which specialist teaches, not how strongly its feedback moves the shared student: in Qwen3.5 models at three sizes, the MOPD student does not beat one taught by the best single specialist and captures little of the math specialist's advantage, because instruction-following feedback is several times more spread out than math feedback and dominates updates. Domain-Normalized MOPD (DN-MOPD) keeps the routing and rescales each domain's feedback by its measured spread; on six public benchmarks it improves average score over MOPD at every size, across three seeds and two answer-length limits, recovering most of the lost math gain. Controls show the gain comes mainly from turning down instruction-following feedback rather than turning up math alone.
- Paper
Rufus-Air: An Open LLM Post-Training Recipe
Rufus-Air is an eight-stage serial post-training pipeline on GLM-4.5-Air-Base (106B-A12B): SFT, Reasoning RL, Coding RL, Instruction-Following RL, General Agent, Coding Agent, Search Agent, and RLHF. It combines public data and open-source components without newly commissioned human annotation or an in-house distillation teacher, and emphasizes difficulty filtering, reliable rewards, and infrastructure details. The resulting model improves over the official GLM-4.5-Air release on every reported benchmark except Arena-Hard v2 Creative Writing and is competitive with similarly sized open models.
- 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.