Reasoning with Context Management and External Memory
Abstract
Reasoning models maintain information about the status of their reasoning process through in-context memory. Complex problems require larger context windows and memory requirements. In this scenario, context management without caching risks discarding useful information for reasoning. We propose RCMEM, an approach that extends context management with an external memory to maintain additional information without burdening the reasoning model with additional context. RCMEM significantly reduces computation time on problems that require repeated computation of intermediate steps, while achieving better performance on complex problems. We demonstrate our approach on a few mathematics problems using model sizes ranging from 0.4 to 25 million parameters, and GPT-2.
Create a lesson
Metadata
- Comments
- Preprint
Related papers
LimeTree: Linear-Memory Graph Neural Networks over Tree-Graphs for Resource-Efficient Language Modeling and Context Extrapolation
Shared title terminologycs.CLElisabeth Fink
Memories That Outlive Their Reasons: Dependency-Tethered Memory for Tool-Using LLM Agents
Shared title terminologycs.CLYiqi Wang, Jinqian Ju, Jiaqi Zhang et al.
Think More or Read More? A Token-Budget Theory of Reasoning with Shared Context
Shared title terminologycs.CLManh Nguyen, Sunil Gupta, Hung Le
LUCID: Statistically Grounded Self-Correction for LLM Reasoning Evaluation
Shared title terminologycs.CLSatiyabooshan Murugaboopathy, Adel Daoud, Connor T. Jerzak
When Does Reasoning Help Entity Disambiguation? Small LLMs In-Domain and Under Shift
Shared title terminologycs.CLSamy Haffoudhi, Fabian M Suchanek, Nils Holzenberger
Evaluating Persona Consistency in LLM User Simulators Without External Reference Annotations
Shared title terminologycs.CLAnping Zhang, Yang Tan, Yipeng Liu et al.