Manuscript Offprint

arXiv:2610.32046

Can Test-Time Memory Evolution Outperform Test-Time Training for Scientific Discovery?

Yepeng Liu, Shengmai Chen, Xuandong Zhao, Chengzhi Liu, Dawn Song, Xin Eric Wang, Yuheng Bu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Yepeng Liu ∗,†^{*,\dagger}

UC Santa Barbara

Shengmai Chen ∗^{*}

UC Santa Barbara

Xuandong Zhao

UC Berkeley

Chengzhi Liu

UC Santa Barbara

Dawn Song

UC Berkeley

Xin Eric Wang

UC Santa Barbara

Yuheng Bu

UC Santa Barbara

Abstract

Recent test-time training (TTT) frameworks have enabled open-weight large language models (LLMs) to outperform inference-only frameworks powered by frontier models on scientific discovery tasks. However, TTT introduces additional computational cost for online weight updates during the discovery process, making computational efficiency an important consideration when scaling to larger models. This motivates us to explore an efficient test-time adaptation method for scientific discovery. We introduce Test-Time Memory Evolution (TTME), a plug-and-play test-time adaptation method, as an alternative to TTT. TTME continually updates the external memory by distilling the experience to guide subsequent discovery without updating model weights. To have a clean comparison, we evaluate TTME and TTT under the same discovery framework, replacing only the test-time adaptation method. Our evaluation shows that TTME outperforms TTT on all five mathematical tasks, while reducing computational cost by 82.8-84.6% in FLOPs and 47.7-58.4% in runtime. These results establish TTME as an effective and computationally efficient alternative to TTT in the evaluated discovery settings. Our code is available at https://github.com/yepengliu/TTME.

w/ TTME

w/o TTT

w/ TTT

Figure

Figure 1: Best-found scores versus computational cost under the TTT-Discover framework [1] with Qwen3-8B. The three settings use the same discovery framework, with TTT, with TTME replacing TTT, or with neither method. TTME achieves the best scores at low computational cost across all three tasks.

1 Introduction

Scientific discovery often involves proposing hypotheses, evaluation, and using the resulting evidence to guide further investigation [2, 3]. Advances in reasoning, coding, and agentic tool-use capabilities of large language models (LLMs) have enabled systems that automate part of this discovery process [4, 5]. In the iterative discovery loop, a failed attempt can reveal an implementation constraint, while a

∗^{*}These authors contributed equally to this work.

†^{\dagger}Correspondence to: yepengliu@ucsb.edu.

successful modification can suggest an idea worth applying elsewhere. A key design question is how to learn from this accumulated experience to improve subsequent search efficiently.

Recent test-time training (TTT) frameworks, such as TTT-Discover [1] and ThetaEvolve [6], provide a promising solution to this challenge by combining iterative search with test-time reinforcement learning (RL) [7, 8]. Specifically, an LLM generates candidate solutions and receives evaluation feedback. These evaluated attempts provide training data for RL, which internalizes search experience in model weights to guide subsequent generation. Their results demonstrate that TTT is a powerful test-time adaptation method on challenging scientific discovery tasks, enabling smaller open-weight models to outperform inference-only systems based on frontier models, such as AlphaEvolve [4]. However, TTT requires online model weight adaptation during the whole discovery process, which is usually computationally expensive and time-consuming (see Table 3). It makes TTT hard to scale to larger models for more complex discovery tasks. This motivates us to explore: under the same discovery framework, is there a more efficient test-time adaptation method that can achieve comparable or even better performance than test-time training?

We hypothesize that evolving external memory could be a efficient alternative to online weight updates for scientific discovery. Our core intuition is that current LLMs already have broad foundational knowledge, reasoning and coding capabilities to use experience accumulated during discovery. Continually distilling and organizing this experience in external memory may therefore be sufficient to improve subsequent discovery, without internalizing it through weight updates. Building on this intuition, we introduce Test-Time Memory Evolution (TTME), a plug-and-play self-evolving memory system for scientific discovery. We update the memory from evaluation feedback and provide relevant content in the context to guide the subsequent steps.

Specifically, we divide the search experience into two components: practical lessons for implementing candidate solutions and algorithmic ideas for improving task scores. Correspondingly, TTME maintains two complementary memory modules: Guideline Memory and Strategy Memory. Guideline Memory distills execution and evaluation feedback into shared operational guidelines for reliable implementation. Strategy Memory extracts effective algorithmic ideas from score-improving modifications and consolidates related experiences into reusable strategies. We select and adapt relevant strategies to guide subsequent exploration, combining ideas from different search attempts.

Our contributions are summarized as follows:

● We investigate whether a test-time memory evolution can outperform test-time weight updates in scientific discovery, and introduce an plug-and-play self-evolving memory method that continually updates external memory from evaluated search experience to guide subsequent discovery with a fixed-weight model.

● We evaluate TTME under two TTT frameworks across five mathematical construction tasks and three models spanning 8B and 120B parameters. We preserve each framework’s experimental configuration, replacing only its TTT part with TTME. TTME outperforms the reported TTT results in all evaluated tasks. Our analysis shows that TTME reduces running time by 47.7 – 58.4% and computational costs by 82.8 – 84.6% relative to TTT. These results demonstrate that TTME is a more efficient alternative to TTT for scientific discovery.

● We analyze the search behavior of TTME and TTT during the discovery. Both methods improve the implementation validity rate relative to the underlying discovery framework without TTT or TTME, but TTME achieves better performance. Moreover, compared with TTT, TTME more frequently builds on score-improving combinations of previously explored ideas.

References (38)