The Reasoning-Memorization Interplay in Language Models Is Mediated by a Single Direction

Large language models (LLMs) excel on a variety of reasoning benchmarks, but previous studies suggest they sometimes struggle to generalize to unseen questions, potentially due to over-reliance on memorized training examples.However, the precise conditions under which LLMs switch between reasoning and memorization during text generation remain unclear.In this work, we provide a mechanistic understanding of LLMs' reasoning-memorization dynamics by identifying a set of linear features in the model's residual stream that govern the balance between genuine reasoning and memory recall.These features not only distinguish reasoning tasks from memory-intensive ones but can also be manipulated to causally influence model performance on reasoning tasks.Additionally, we show that intervening in these reasoning features helps the model more accurately activate the most relevant problemsolving capabilities during answer generation.Our findings offer new insights into the underlying mechanisms of reasoning and memory in LLMs and pave the way for the development of more robust and interpretable generative AI systems.Our code and data are at https://github.com/yihuaihong/ Linear_Reasoning_Memory_Features.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.1111
Primary Topic
Speech and dialogue systems
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

The Reasoning-Memorization Interplay in Language Models Is Mediated by a Single Direction

Zhijing Jin, Yu Lei, Dian Zhou, Yihuai Hong et al.
Speech and dialogue systems
article

The Reasoning-Memorization Interplay in Language Models Is Mediated by a Single Direction

Zhijing Jin, Yu Lei, Dian Zhou, Yihuai Hong, Meng Cao
article en

Abstract

Large language models (LLMs) excel on a variety of reasoning benchmarks, but previous studies suggest they sometimes struggle to generalize to unseen questions, potentially due to over-reliance on memorized training examples.However, the precise conditions under which LLMs switch between reasoning and memorization during text generation remain unclear.In this work, we provide a mechanistic understanding of LLMs' reasoning-memorization dynamics by identifying a set of linear features in the model's residual stream that govern the balance between genuine reasoning and memory recall.These features not only distinguish reasoning tasks from memory-intensive ones but can also be manipulated to causally influence model performance on reasoning tasks.Additionally, we show that intervening in these reasoning features helps the model more accurately activate the most relevant problemsolving capabilities during answer generation.Our findings offer new insights into the underlying mechanisms of reasoning and memory in LLMs and pave the way for the development of more robust and interpretable generative AI systems.Our code and data are at https://github.com/yihuaihong/ Linear_Reasoning_Memory_Features.

Bundesministerium für Bildung und Forschung
Openalex Percentile: Top 90%
Speech and dialogue systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

The Reasoning-Memorization Interplay in Language Models Is Mediated by a Single Direction — Zhijing Jin, Yu Lei, et al. · (2025) | TGRS Research Map | TGRS