From Trajectories to Prefixes: Reusing Teacher Trajectories via Replayed Prefixes and Online Continuation
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
Abstract (arXiv)
Small language models are attractive backbones for interactive agents, but direct distillation from strong teacher trajectories often turns rich multi-turn behavior into one-shot imitation targets. This is inefficient in long-horizon environments, where early decisions shape later states and rewards. We propose Prefix-GRPO, a reinforcement learning framework that decomposes teacher trajectories into replay-aligned prefix queries and online continuations. Each prefix is replayed in the environment to recover a valid intermediate state, after which the student continues online interaction and receives task reward. Unlike response-only GRPO, Prefix-GRPO also applies clipped policy updates to historical assistant tokens inside the replayed prefix, using a policy-distilled SFT checkpoint to estimate their old log-probabilities. This unifies prefix learning and continuation learning within the same policy-optimization form. Experiments on TextCraft, BabyAI, and ALFWorld show that Prefix-GRPO improves small-model agents over distillation and standard RL baselines, while ablations show that replay alone is insufficient without explicit prefix-token optimization. The implementation and reproduction scripts are available at https://github.com/HappynessI/Prefix_GRPO.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 29 of its 31 references that are in the map. First posted on arXiv 3 Jul 2026.
Builds on
29 of 31 references.
References · 29
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,143
- 2025RAGEN: Understanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement Learningcited by 357
- 2025Small Language Models are the Future of Agentic AIcited by 254
- 2023ADaPT: As-Needed Decomposition and Planning with Language Modelscited by 172
- 2025Agentic Reinforced Policy Optimizationcited by 166
- 2025The Danger of Overthinking: Examining the Reasoning-Action Dilemma in Agentic Taskscited by 150
- 2024AgentGym: Evolving Large Language Model-based Agents across Diverse Environmentscited by 120
- 2025AgentGym-RL: Training LLM Agents for Long-Horizon Decision Making through Multi-Turn Reinforcement Learningcited by 68
- 2025AgentRL: Scaling Agentic Reinforcement Learning with a Multi-Turn, Multi-Task Frameworkcited by 58
- 2025Blending Supervised and Reinforcement Fine-Tuning with Prefix Samplingcited by 57
17 more
- 2026Fast and Effective On-policy Distillation from Reasoning Prefixescited by 43
- 2025Distilling LLM Agent into Small Models with Retrieval and Code Toolscited by 41
- 2025AgentDistill: Training-Free Agent Distillation with Generalizable MCP Boxescited by 28
- 2025Trade-offs in Large Reasoning Models: An Empirical Analysis of Deliberative and Adaptive Reasoning over Foundational Capabilitiescited by 20
- 2025RLFactory: A Plug-and-Play Reinforcement Learning Post-Training Framework for LLM Multi-Turn Tool-Usecited by 17
- 2025A Practitioner's Guide to Multi-turn Agentic Reinforcement Learningcited by 16
- 2025DRPO: Efficient Reasoning via Decoupled Reward Policy Optimizationcited by 16
- 2026Reuse your FLOPs: Scaling RL on Hard Problems by Conditioning on Very Off-Policy Prefixescited by 16
- 2025Making Small Language Models Efficient Reasoners: Intervention, Supervision, Reinforcementcited by 13
- 2024Multi-View Empowered Structural Graph Wordification for Language Modelscited by 7
- 2025Attention Mechanisms Perspective: Exploring LLM Processing of Graph-Structured Datacited by 7
- 2026A Step Back: Prefix Importance Ratio Stabilizes Policy Optimizationcited by 7
- 2024Enhancing Collaborative Semantics of Language Model-Driven Recommendations via Graph-Aware Learningcited by 5
- 2026Missing Old Logits in Asynchronous Agentic RL: Semantic Mismatch and Repair Methods for Off-Policy Correctioncited by 4
- 2025Recall-Extend Dynamics: Enhancing Small Language Models through Controlled Exploration and Refined Offline Integrationcited by 3
- 2025Well Begun, Half Done: Reinforcement Learning with Prefix Optimization for LLM Reasoningcited by 3
- 2026Training Reasoning Models on Saturated Problems via Failure-Prefix Conditioningcited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Multi-Turn On-Policy Distillation with Prefix Replay
- 2026Reward-Aligned Reweighting for On-Policy Distillation
- 2026MemOPD: On-Policy Distillation through Memory State Alignment for Long-Horizon Agents
- 2026What Shared Prefixes Hide: Trajectory Dropout for On-Policy Distillation
- 2026Know When to Stop, Where to Restart: Accelerating Multi-Turn Agentic On-Policy Distillation
- 2026Prefix-Guided On-Policy Distillation: Mining Golden Trajectories from Rollouts
- 2025Student-Centered Distillation Narrows the Agentic Gap Between Small and Large LLMs
- 2026Guide, Then Let Go: Gap-Adaptive Teacher Scheduling for Sparse-Reward Agentic RL