mlsanityData to 7 Oct 2026

From Trajectories to Prefixes: Reusing Teacher Trajectories via Replayed Prefixes and Online Continuation

arXiv 2607.19395 ↗First posted 3 Jul 2026cs.LG cs.AIcited by 1

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

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  2. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
  3. 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,143
  4. 2025RAGEN: Understanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement Learningcited by 357
  5. 2025Small Language Models are the Future of Agentic AIcited by 254
  6. 2023ADaPT: As-Needed Decomposition and Planning with Language Modelscited by 172
  7. 2025Agentic Reinforced Policy Optimizationcited by 166
  8. 2025The Danger of Overthinking: Examining the Reasoning-Action Dilemma in Agentic Taskscited by 150
  9. 2024AgentGym: Evolving Large Language Model-based Agents across Diverse Environmentscited by 120
  10. 2025AgentGym-RL: Training LLM Agents for Long-Horizon Decision Making through Multi-Turn Reinforcement Learningcited by 68
  11. 2025AgentRL: Scaling Agentic Reinforcement Learning with a Multi-Turn, Multi-Task Frameworkcited by 58
  12. 2025Blending Supervised and Reinforcement Fine-Tuning with Prefix Samplingcited by 57
17 more
  1. 2026Fast and Effective On-policy Distillation from Reasoning Prefixescited by 43
  2. 2025Distilling LLM Agent into Small Models with Retrieval and Code Toolscited by 41
  3. 2025AgentDistill: Training-Free Agent Distillation with Generalizable MCP Boxescited by 28
  4. 2025Trade-offs in Large Reasoning Models: An Empirical Analysis of Deliberative and Adaptive Reasoning over Foundational Capabilitiescited by 20
  5. 2025RLFactory: A Plug-and-Play Reinforcement Learning Post-Training Framework for LLM Multi-Turn Tool-Usecited by 17
  6. 2025A Practitioner's Guide to Multi-turn Agentic Reinforcement Learningcited by 16
  7. 2025DRPO: Efficient Reasoning via Decoupled Reward Policy Optimizationcited by 16
  8. 2026Reuse your FLOPs: Scaling RL on Hard Problems by Conditioning on Very Off-Policy Prefixescited by 16
  9. 2025Making Small Language Models Efficient Reasoners: Intervention, Supervision, Reinforcementcited by 13
  10. 2024Multi-View Empowered Structural Graph Wordification for Language Modelscited by 7
  11. 2025Attention Mechanisms Perspective: Exploring LLM Processing of Graph-Structured Datacited by 7
  12. 2026A Step Back: Prefix Importance Ratio Stabilizes Policy Optimizationcited by 7
  13. 2024Enhancing Collaborative Semantics of Language Model-Driven Recommendations via Graph-Aware Learningcited by 5
  14. 2026Missing Old Logits in Asynchronous Agentic RL: Semantic Mismatch and Repair Methods for Off-Policy Correctioncited by 4
  15. 2025Recall-Extend Dynamics: Enhancing Small Language Models through Controlled Exploration and Refined Offline Integrationcited by 3
  16. 2025Well Begun, Half Done: Reinforcement Learning with Prefix Optimization for LLM Reasoningcited by 3
  17. 2026Training Reasoning Models on Saturated Problems via Failure-Prefix Conditioningcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Multi-Turn On-Policy Distillation with Prefix Replay
  2. 2026Reward-Aligned Reweighting for On-Policy Distillation
  3. 2026MemOPD: On-Policy Distillation through Memory State Alignment for Long-Horizon Agents
  4. 2026What Shared Prefixes Hide: Trajectory Dropout for On-Policy Distillation
  5. 2026Know When to Stop, Where to Restart: Accelerating Multi-Turn Agentic On-Policy Distillation
  6. 2026Prefix-Guided On-Policy Distillation: Mining Golden Trajectories from Rollouts
  7. 2025Student-Centered Distillation Narrows the Agentic Gap Between Small and Large LLMs
  8. 2026Guide, Then Let Go: Gap-Adaptive Teacher Scheduling for Sparse-Reward Agentic RL