NeurIPS 2026QuestionsPapersAreasAboutMarkdown

MemPilot: Learning Transferable Latent Memory Mechanisms for LLM Reasoning

Changlong Shi, LINHAO LUO, Shigeng Chen, Guibin Zhang, Yi Chang, Shirui Pan, Chengqi Zhang

NeurIPS page · OpenReview · Open on the map

Category: LLM Reasoning, Memory & RAG › LLM Reasoning Enhancement · Type: new method · Keywords: latent memory, external memory bank, cross-attention, gated residual fusion, domain adaptation, LLM reasoning

Areas: LLM Reasoning › Efficient Reasoning › Memory and Forgetting; Memory › Agent Memory Systems › Memory Augmentation

Summary

MemPilot introduces a decoupled latent memory framework that builds an external bank of compact latent representations from offline reasoning trajectories and injects them into frozen LLMs' hidden states via cross-attention and gated residual fusion, enabling domain adaptation without updating the base model.

Explained to a 5-year-old

MemPilot helps big computer brains remember things better. It creates a special storage of hidden thoughts from past problems. When solving new problems, it picks useful memories and mixes them into the brain’s thinking. This lets the brain learn new topics without forgetting what it already knows. It works for many kinds of puzzles, like reading, coding, and math.

Explained to a 5-year-old, longer

MemPilot is a tool that lets large language models keep useful memories separate from their normal thinking. First, it records the hidden thoughts of the model when it solves many different problems, turning those thoughts into small, compact notes. These notes are stored in an external memory bank that can be swapped out easily. When the model faces a new problem, MemPilot looks through the notes, picks the most helpful ones, and gently adds them into the model’s internal reasoning process using a special kind of attention and a gating mechanism. Because the memories are separate, you can change the notes for a new subject - like math or code - without having to retrain the whole model. This makes it possible to adapt the model to new domains quickly and efficiently. The method has been tested on reading comprehension, programming tasks, and math problems, showing that it not only works well on the tasks it was trained for but also transfers better to new, unseen tasks compared to older memory-augmentation techniques.

For a technical reader

MemPilot creates an external latent memory bank from offline reasoning traces and injects selected memory tokens into frozen LLMs via cross-attention and gated residual connections. This decoupling allows swapping memory content for new domains without fine-tuning the base model. Experiments across QA, coding, and math benchmarks show strong in-domain performance and improved cross-domain transfer versus existing memory-augmented methods.

Problem

Integrating external memory into large language models requires balancing editable memory with deep influence on reasoning, which existing approaches struggle to achieve without coupling domain knowledge with general reasoning capabilities.

Method

The approach constructs an external bank of compact latent representations from offline reasoning trajectories, retrieves relevant entries, and integrates their tokens into the model’s hidden states using cross-attention and gated residual fusion, separating memory content from the memory-use mechanism.

Results

The approach demonstrates strong in-domain performance and superior cross-domain transfer compared to other memory-augmented baselines.

Contributions

It proposes a decoupled latent memory framework that separates memory content from the memory-use mechanism, enabling domain adaptation via external memory-bank substitution without updating the base model, and shows reusable memory-use across multiple reasoning tasks.

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