arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.02945

Continual Graph Memory for Mathematical Research Agents

Junyi Zhang, Jinxi Yu, Eric Hanchen Jiang, Jiachen Lu, Zhi Zhang, Xinjie He, Hyunsik Chae, Ethan Ji, Alexander K Taylor, Vigyan Sahai, Yiwen Kou, Kai-Wei Chang, Raghu Meka, Nanyun Peng, Amit Sahai, Terence Tao, Wei Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Using frontier agent harnesses to tackle mathematical research problems has emerged as an effective means of advancing mathematics. However, solving frontier problems in mathematics may require a massive number of agents working in parallel for extended periods to construct proofs, thereby generating an enormous volume of intermediate proof results. Organizing these intermediate results throughout a long-horizon proof-search process and reusing knowledge gained from prior explorations remain major challenges. We present Ansatz, a mathematical research agent built around CONTINUAL GRAPH MEMORY, a graph-based, evolvable, cross-problem mathematical research memory system that explicitly organizes the entire proof search process and reuses information from exploration trajectories of previous problems. Specifically, we develop a unified graph memory that represents all intermediate exploration results, including facts, plans, and counterexamples, together with edges that explicitly represent the relationships among them; dependency-aware retrieval supplies precisely targeted local context; an evidence-sensitive curator updates the research frontier and distills lessons from prior attempts; and scoped recall surfaces earlier statements and negative findings for local re-proving rather than uncritical reuse. Experiments cover runs across all ten First Proof Second Batch problems, together with four component studies. Ansatz reports closure on all ten research tasks, demonstrating its ability to sustain and resume long-horizon mathematical search. Beyond these problems, Ansatz also produces solutions to the Jamison caterpillar conjecture and Erdős Problems 289, 348, and 488 without human intervention, and makes partial progress on several open problems, illustrating its strong ability to solve open mathematical research problems. Our code and results are available at https://github.com/uclanlp/continual-graph-memory

1 Introduction

Mathematical research is not a sequence of isolated proofs. Difficult problems generate partial reductions, failed constructions, useful counterexamples, promising analogies, and lemmas whose significance may become clear only much later. Language-model agents can already explore multiple lines of reasoning through stepwise inference and sampled solution paths [40, 39], while research-oriented systems such as DANUS and Albilich extend this process with parallel workers, persistent proof state, and verification [31, 25]. But persistence alone is not enough. A research agent must decide what to remember, retrieve, trust, and reuse. These memories serve different roles: a method suggests what to try, a lemma is valid only when its assumptions hold, and a plan records a search choice rather than a proven fact. Treating them all as the same kind of text hides their evidential status and reuse conditions. This is especially risky for LLMs, which may store a flawed intermediate argument and later propagate the error through persistent memory.

∗^{*}Equal contribution.

†^{\dagger}Senior authors served as equal advisors and are listed alphabetically.

References (32)