NeurIPS 2026QuestionsPapersAreasAboutMarkdown

MILES: Modular Instruction Memory with Learnable Selection for Self-Improving LLM Reasoning

Ruilin Tong, Dong Gong

NeurIPS page · OpenReview · Open on the map

Category: LLM Reasoning, Memory & RAG › Agent Memory Management · Type: new method · Keywords: modular memory, learnable selection, LLM reasoning, self-improving, coarse-to-fine retrieval

Areas: LLM Reasoning › Reasoning Strategies › Test-Time Scaling; Memory › Agent Memory Systems › Memory-Augmented Agents; RL for LLMs & Agents › Language Model Agents › Credit Assignment for Reasoning

Summary

MILES introduces a modular instruction memory with learnable selection to dynamically expand step-wise memory and improve LLM reasoning accuracy-efficiency tradeoffs.

Explained to a 5-year-old

Large language models get better at solving problems when they remember little pieces of information. The system stores these pieces in small boxes, each with a picture of what to do and a hint. When a new problem comes, it looks at the pictures, picks the most helpful ones, and uses them to think step by step. This helps the model solve more problems faster and more accurately. It also works well on new kinds of problems it hasn't seen before.

Explained to a 5-year-old, longer

Large language models are computer programs that can talk and solve puzzles. They can get smarter by using extra memory while they think. Instead of remembering whole solutions, they keep small pieces of information called modules. Each module has a tiny picture that shows what to do and a short hint. The model learns how to choose which modules are useful for each new problem. It first looks at a few modules to see which ones might help. Then it uses a second step to pick the best ones among those. This two-step process makes the model think more carefully and give better answers. The system can grow its memory as it sees more problems, so it gets better over time. It also works well on problems it hasn't seen before, which means it can adapt. This approach saves computer power because it only uses a few modules instead of the whole model. Overall, it helps the model solve puzzles faster, more accurately, and with less effort.

For a technical reader

MILES introduces a modular memory architecture that stores sub-goal embeddings and sub-instructions as asymmetric pairs, each equipped with a learnable selection head. During inference, a coarse-to-fine retrieval first expands memory using confident samples and then refines candidate selection with the learned heads to guide reasoning. This composition optimizes final-answer correctness while respecting realistic test-time constraints. The framework can be integrated with existing LLM inference pipelines to improve accuracy-efficiency trade-offs. Extensive experiments show consistent gains over prior memory-based methods.

Problem

Existing memory-based methods for LLM reasoning either store whole-solution templates that generalize poorly to novel problems or use heuristic step-level selection that is not optimized for final-answer correctness, limiting performance when problems arrive sequentially.

Method

The approach maintains modular memory units of sub-goal embeddings and sub-instructions paired with learnable selection heads, enabling a coarse-to-fine retrieval mechanism where coarse-level memory expansion collects supervision from confident samples and fine-level selection reranks candidates to guide reasoning for uncertain samples.

Results

The approach matches or outperforms prior methods and achieves superior accuracy-efficiency tradeoffs.

Contributions

It introduces modular memory units with learnable selection heads and a coarse-to-fine retrieval mechanism that optimizes memory composition for final-answer correctness, enabling self-improving reasoning across sequential problems.

Limitations and assumptions

The approach relies on large-scale training data for learning selection policies and operates under realistic test-time constraints.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction