arXiv(opens in a new tab)cs.AIAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.23982

Memory Is Not Always Needed: Characterizing Conditional Memory in Scientific Reasoning

Zhen Bi, Xueshu Chen, Yan Wang, Zhizhi Peng, Haosen Hong, Zhen Wang, Zhixuan Chu, Bingyu Zhu, Jungang Lou

Abstract

Scientific reasoning requires language models to retrieve specialized knowledge and incorporate it reliably into multi-step computation. Conditional memory provides an explicit lookup pathway that complements dense neural representations, but its usefulness is inherently input- and computation-dependent: retrieved information may repair missing scientific associations, yet it may also introduce distracting shortcuts or interfere with reasoning that the base model can already perform correctly. In this work, we systematically investigate when, where, and to what extent conditional memory should participate in scientific reasoning. We characterize the scientific knowledge boundary and controlled interventions on memory-enabled knowledge-circuit nodes. Based on these analyses, we propose a Knowledge Boundary-Aware Router that uses task-specific input proxies available before generation to determine whether memory is activated, which layer-stage nodes receive memory signals, and how strongly these signals contribute. Experiments on biological and chemical reasoning benchmarks, covering two backbone families and six task types, show that memory effects vary substantially across inputs, tasks, and injection locations. Compared with static and activation-rate-matched random routing, our approach more consistently preserves beneficial memory contributions while suppressing memory-induced regressions, establishing selective memory allocation as an important principle for reliable scientific reasoning.

1 Introduction

Scientific discovery increasingly requires models to reason over complex biological, chemical, physical, and mathematical systems (Jablonka et al. 2024; Ross et al. 2022; Merchant et al. 2023; Boiko et al. 2023; Romera-Paredes et al. 2024). Improving the scientific reasoning capabilities of large language models is therefore essential for reliable scientific analysis and discovery (Wei et al. 2025). At its core, this requires models not only to access specialized knowledge, but also to integrate it faithfully throughout multi-step inference.

Existing approaches mainly rely on domain-specialized models or retrieval-augmented generation (Zhang et al. 2024; Wen et al. 2024; Team, Peng, and Qiao 2025; Guu et al. 2020). Although they store knowledge differently, both lack a clear separation between knowledge lookup and neural computation. Conditional memory offers a complementary lookup path (Cheng et al. 2026) and is particularly promising for

Figure

Figure

Figure 1: Left: Conditional memory is a model-internal lookup-and-injection mechanism: memory modules are placed within Transformer computation. Right: Even on knowledge-intensive scientific reasoning tasks, memory produces mixed effects rather than uniform gains, motivating selective activation.

knowledge-intensive scientific reasoning, where specialized entities, motifs, structures, and rules recur frequently.

Recent studies have applied conditional memory to genomic foundation models and molecular language models, reporting benefits from the explicit lookup of biological motifs and molecular patterns (Xu et al. 2026; Zhang et al. 2026). However, these results remain concentrated in specific scientific settings and do not establish that memory should be activated uniformly in broader scientific reasoning. Across heterogeneous tasks, memory may repair a missing scientific association in one case, provide little benefit in another, or introduce misleading shortcuts that disrupt an otherwise correct reasoning path (shown in Figure 1). Its utility must therefore be evaluated relative to the knowledge boundary of the memory-free base model and the computational location at which memory is injected.

Therefore, in this work, we investigate when conditional memory is a viable computational mechanism for scientific reasoning and we systematically study its effects through the scientific knowledge boundary. Specifically, through behavioral knowledge-boundary analysis and controlled layer-stage interventions, we show that memory utility depends jointly on the input, injection location, and contribution strength. These findings lead to a Knowledge

∗^{*}Equal Contribution

†^{\dagger}Corresponding Author.

Boundary-Aware Router that determines whether, where, and how strongly memory participates, revealing selective memory allocation as a broader design principle for scientific reasoning models.

Our contributions are threefold:

• We conduct a systematic empirical study of conditional memory in scientific reasoning across biological and chemical domains, two backbone families, and six task types. We show that memory is a viable but inherently non-uniform augmentation: it repairs some scientific reasoning failures while inducing regressions in others.

• We characterize this heterogeneity through behavioral capability-boundary indicators and layer-stage memory interventions, revealing that memory utility depends on both the input regime and its location in the reasoning computation.

• We translate these findings into a boundary-aware routing mechanism that selectively activates memory using task-specific input proxies. The router outperforms activation-rate-matched random routing and avoids several regressions caused by static memory configurations.

References (53)