cs.LGOct 13, 2026

Explore with Memory, Learn without It: In-Context Exploration and Self-Distillation for LLM Reasoning

Authors: Yutong Chen, Zhichao Xu, Rui Liu, Kunpeng Liu

Organizations: Department of Computer Science, Clemson University · Kahlert School of Computing, University of Utah

Abstract

Exploration bounds learning efficiency in reinforcement learning with verifiable rewards (RLVR). Current methods explore mostly through independent sampling, without fully using the information gathered along the way, such as known wrong answers and environment feedback. We propose LEAF, which injects a dynamic, problem-specific memory into the context before every rollout. The memory contains the most recent response, its reward, and other environment feedback. It is updated after every verifier call. We decouple policy updates from rollouts and update the policy through self-distillation. On four benchmarks and two open models, LEAF accelerates exploration by about 4x compared with a random sampling baseline. On unseen test sets, it improves accuracy over the strongest baseline by 1.59 and 1.83 percentage points on the two models, while using less compute than any RL baseline. These results highlight the potential of LEAF in improving both exploration and learning efficiency. Code is available at: https://github.com/on1262/LEAF

Figures & tables

Appendix figures & tables23 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Decoupling Exploration from Optimization in RLVR

    Oct 7, 2026Saif Punjwani, Micah GoldblumRL for Language Model ReasoningRL Exploration

  2. Exploration via Activation-Space Steering for Reinforcement Learning with Verifiable Rewards

    Oct 19, 2026Yunan Zeng, Jinhao Jing, Xi Cheng +1RL for Language Model ReasoningRL Exploration