Summary (Overview)
- Introduces Test-Time Memory Evolution (TTME), a plug-and-play, non-parametric alternative to Test-Time Training (TTT) for scientific discovery tasks.
- TTME maintains two complementary external memory modules—Guideline Memory (operational lessons) and Strategy Memory (reusable algorithmic ideas)—to guide a fixed-weight LLM without updating model parameters.
- Outperforms TTT on all five mathematical tasks across two discovery frameworks (TTT-Discover, ThetaEvolve) and three models (8B–120B parameters).
- Reduces computational cost by 82.8–84.6% in FLOPs and 47.7–58.4% in runtime relative to TTT, while achieving better discovery outcomes.
- Demonstrates that self-evolving external memory is a more efficient and effective adaptation mechanism than online weight updates for scientific discovery.
Introduction and Theoretical Foundation
Scientific discovery is modeled as an iterative process: propose hypotheses → evaluate → use evidence to guide further investigation. Recent Test-Time Training (TTT) frameworks (e.g., TTT-Discover, ThetaEvolve) combine iterative search with test-time reinforcement learning, enabling open-weight LLMs to outperform inference-only frontier models. However, TTT incurs significant computational cost from online weight updates, limiting scalability.
Core hypothesis: Since LLMs already possess broad foundational knowledge, continually distilling and organizing search experience in external memory may be sufficient to improve subsequent discovery—without internalizing experience through weight updates.
The paper formalizes two adaptation mechanisms:
where updates model parameters, updates external memory, is the model parameter, and is the external memory. The goal is to maximize the best valid score:
Methodology
Guideline Memory ()
- Distills execution and evaluation feedback into compact operational guidelines (when applicable, failure/improvement explanation, recommended action).
- Updated every search steps via two stages: Distill (propose new guidelines from outcomes) and Maintain (match, merge, or add entries; enforce capacity and recency).
Strategy Memory ()
- Extracts algorithmic ideas from score-improving modifications (where modified program beats its parent by >).
- Groups related experience notes into strategy families; consolidates new notes into existing or new entries.
Strategy-Guided Search
For each parent with context :
- Select up to distinct strategies based on improvement potential (Eq. 5).
- Adapt selected strategies into parent-specific modification instructions, or Propose new ideas when none selected (Eq. 6).
- Generate candidates via two branches:
- Direct Generation (fraction of budget ): uses parent context + Guideline Memory (Eq. 7).
- Strategy-Guided Generation: uses parent context + Guideline Memory + modification instruction (Eq. 8).
The full procedure is outlined in Algorithm 1, preserving each framework's parent-selection and archive-update rules.
Empirical Validation / Results
Performance Across Frameworks and Models
Table 1: TTT-Discover framework (50 search steps, results for w/ TTT from Yuksekgonul et al.)
| Method | Model | Erdős ↓ | AC1 ↓ | AC2 ↑ |
|---|---|---|---|---|
| TTT-Discover (w/ TTT) | Qwen3-8B | 0.380932 | 1.50525 | 0.9472 |
| TTT-Discover (w/o TTT) | Qwen3-8B | 0.380957 | 1.505242 | 0.944771 |
| Ours (w/ TTME) | Qwen3-8B | 0.380927 | 1.504329 | 0.949248 |
| TTT-Discover (w/ TTT) | gpt-oss-120b | 0.380876 | 1.50287 | 0.9591 |
| TTT-Discover (w/o TTT) | gpt-oss-120b | 0.380945 | 1.505966 | 0.953682 |
| Ours (w/ TTME) | gpt-oss-120b | 0.380862 | 1.502745 | 0.960784 |
Table 2: ThetaEvolve framework (65 search steps, results for w/ TTT from Wang et al.)
| Method | Model | AC2 ↑ | AC3 ↓ | Hadamard ↑ |
|---|---|---|---|---|
| ThetaEvolve (w/ TTT) | Distill-Qwen3-8B | 0.9469 | 1.4930 | 0.5764 |
| ThetaEvolve (w/o TTT) | Distill-Qwen3-8B | 0.947375 | 1.519277 | 0.571085 |
| Ours (w/ TTME) | Distill-Qwen3-8B | 0.948148 | 1.464224 | 0.579938 |
Key finding: TTME outperforms TTT in all evaluated settings, and also surpasses the fixed-weight baseline (w/o TTT).
Efficiency Gains
Table 3: Runtime and computation under TTT-Discover with Qwen3-8B
| Task | Model | Runtime TTT (h) | Runtime TTME (h) | Reduction | FLOPs TTT (EFLOPs) | FLOPs TTME (EFLOPs) | Reduction |
|---|---|---|---|---|---|---|---|
| AC1 | Qwen3-8B | 11.76 | 5.36 | 54.5% | 29.47 | 4.53 | 84.6% |
| AC2 | Qwen3-8B | 12.73 | 6.66 | 47.7% | 33.09 | 5.69 | 82.8% |
| Erdős | Qwen3-8B | 11.67 | 4.85 | 58.4% | 26.21 | 4.15 | 84.2% |
Ablation Studies
Table 4: Combining TTME with TTT (TTT-Discover, Qwen3-8B)
| TTT | TTME | AC2 ↑ | Erdős ↓ |
|---|---|---|---|
| ✕ | ✕ | 0.944771 | 0.380957 |
| ✓ | ✕ | 0.9472 | 0.380932 |
| ✕ | ✓ | 0.949248 | 0.380927 |
| ✓ | ✓ | 0.944141 | 0.380944 |
Adding TTT to TTME worsens results, supporting TTME as a standalone alternative.
Table 5: Memory component ablation (TTT-Discover, gpt-oss-120b)
| Configuration | AC1 ↓ | AC2 ↑ | Erdős ↓ |
|---|---|---|---|
| Full TTME | 1.502745 | 0.960784 | 0.380862 |
| w/o Guideline Memory | 1.505644 | 0.958506 | 0.380865 |
| w/o Strategy Memory | 1.505981 | 0.956493 | 0.380864 |
| w/o TTME | 1.505966 | 0.953682 | 0.380946 |
Both memory components contribute; removing either degrades performance.
Search Behavior Analysis
- Validity rate: Both TTT and TTME improve implementation validity over baseline; TTME achieves better scores with similar validity, suggesting more effective idea generation.
- Idea combination: TTME selects combinations of previously explored ideas more frequently than TTT (AC1: 10.2% vs 8.2%; AC2: 24.7% vs 18.6%), and more frequently selects score-improving combinations (AC1: 5.4% vs 4.8%; AC2: 17.1% vs 13.3%).
Theoretical and Practical Implications
- Efficiency vs. effectiveness trade-off: TTME demonstrates that non-parametric adaptation (external memory) can outperform parametric adaptation (weight updates) while being substantially cheaper—challenging the assumption that online RL is necessary for test-time improvement.
- Scalability: The significant reduction in FLOPs and runtime makes TTME more feasible for scaling to larger models and more complex discovery tasks where TTT's computational cost becomes prohibitive.
- Modularity: As a plug-and-play method, TTME can be integrated into existing discovery frameworks without modifying their search logic, offering a practical drop-in replacement for TTT.
- Knowledge organization: The two-memory design (operational guidelines vs. algorithmic strategies) provides a principled way to structure search experience, with each component contributing complementary benefits.
Conclusion
The paper establishes Test-Time Memory Evolution (TTME) as an effective and computationally efficient alternative to Test-Time Training for scientific discovery. By distilling search experience into external Guideline and Strategy memories, TTME guides fixed-weight LLMs to achieve better discovery outcomes than TTT across two frameworks, three models, and five mathematical tasks—while reducing computational cost by up to 84.6% in FLOPs and 58.4% in runtime. The analysis reveals that TTME more frequently combines and builds upon productive ideas from previous search attempts. Future directions may include scaling TTME to larger models, applying it to more diverse discovery tasks, and exploring additional memory architectures or update mechanisms.
Related papers
- VibeVideoBench: Evaluating Multimodal Agents on Code-Driven Video Generation
VibeVideoBench introduces the first benchmark for code-driven video generation with audio, showing top agents still fail core requirements on 25% of tasks.
- Trajectory2Gym: Decision-Grounded Compositional Interaction Synthesis for Tool-Use Agents
Trajectory2Gym reframes tool-use agent training as constructing learnable interactions, not collecting successes, boosting benchmark means by up to 29.8 points across all model scales with SFT only.
- Towards Looped Models Done Right, Part I: Topology, Input Injection, Recurrent-State Design
Controlled ablations isolate the sandwich envelope as the primary driver of looped language model gains, with input injection helping context tasks but hurting math.