mlsanityData to 7 Oct 2026

MemOPD: On-Policy Distillation through Memory State Alignment for Long-Horizon Agents

arXiv 2608.07068 ↗First posted 7 Aug 2026cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Long-horizon agents accumulate growing contexts during interaction, impairing performance and stability. Compact memory mitigates this problem by compressing and rewriting the history retained between model invocations. Learning what to retain typically relies on proximal policy optimization (PPO) with final task rewards, but sparse rewards provide little guidance for individual memory updates. This limitation motivates on-policy distillation (OPD), which supplies dense teacher supervision on student rollouts. For such supervision to be valid, the teacher must evaluate each sampled action under the same state in which it was generated. However, the context rewriting performed during memory compression can break this alignment. When sampled responses are retained and re-encoded for later invocations, flattening the interaction into a persistent history may cause the teacher to score the action under a state that the student never visited during rollout. The action therefore remains on-policy by provenance, but not necessarily by state. We therefore propose Memory-Aligned On-Policy Distillation (MemOPD). MemOPD records the inputs and sampled outputs of each model invocation, restores its original token positions and causal visibility, and packs the reconstructed invocations for efficient teacher scoring. The teacher provides full-vocabulary supervision at the sampled action positions, while PPO preserves the final task objective. Experiments verify state alignment across several context updates and show that it improves F1 by 7.0% over persistent-history teacher scoring in a matched control. Overall, MemOPD-3B improves F1 over PPO by up to 416.2%, while packing yields up to a 1.63x speedup in actor computation during training. The code for this work is publicly available at: https://github.com/TPssp/MemOPD.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 27 of its 37 references that are in the map. First posted on arXiv 7 Aug 2026.

Builds on

27 of 37 references.

References · 27

  1. 2017Attention Is All You Needcited by 59,932
  2. 2017Proximal Policy Optimization Algorithmscited by 14,441
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  6. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  7. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  8. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  9. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  10. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  11. 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
  12. 2020Knowledge Distillation: A Surveycited by 1,578
15 more
  1. 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
  2. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
  3. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
  4. 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
  5. 2016Sequence-Level Knowledge Distillationcited by 761
  6. 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
  7. 2023A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesiscited by 350
  8. 2025DeepResearcher: Scaling Deep Research via Reinforcement Learning in Real-world Environmentscited by 268
  9. 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 226
  10. 2024A Human-Inspired Reading Agent with Gist Memory of Very Long Contextscited by 140
  11. 2025Scaling Long-Horizon LLM Agent via Context-Foldingcited by 136
  12. 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 60
  13. 2024Retaining Key Information under High Compression Ratios: Query-Guided Compressor for LLMscited by 24
  14. 2026MemPO: Self-Memory Policy Optimization for Long-Horizon Agentscited by 11
  15. 2026InfMem: Learning System-2 Memory Control for Long-Context Agentcited by 8

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Multi-Turn On-Policy Distillation with Prefix Replay
  2. 2026Dense Is Not Enough: Hierarchical Supervision Allocation for Long-Horizon On-Policy Distillation
  3. 2026Agent Memory Distillation: Empowering Small LLM Agents with Hierarchical Teacher Memory
  4. 2025Memory as Action: Autonomous Context Curation for Long-Horizon Agentic Tasks
  5. 2026OPID: On-Policy Skill Distillation for Agentic Reinforcement Learning
  6. 2026Reward-Aligned Reweighting for On-Policy Distillation
  7. 2026Know When to Stop, Where to Restart: Accelerating Multi-Turn Agentic On-Policy Distillation
  8. 2026Rethinking On-Policy Distillation of Large Language Models: Phenomenology, Mechanism, and Recipe