TL;DR
Guidance-TTT is a novel framework for scientific discovery that decouples strategic planning from code implementation. By training a compact "guidance" model at test time while keeping a large "execution" model frozen, it achieves state-of-the-art results in complex domains like GPU kernel optimization and combinatorial packing at a fraction of the computational cost of traditional methods.
What Problem Does This Paper Address?
Open-ended scientific discovery—such as finding a more efficient GPU kernel or a better way to pack irregular shapes—often involves an iterative loop: propose a solution, verify it, and refine it based on feedback. Large Language Models (LLMs) are great at this, but current "Test-Time Training" (TTT) methods face two major hurdles:
- Computational Cost: Updating the parameters of a massive model (e.g., 120B+ parameters) during the discovery process is prohibitively expensive in terms of memory and compute.
- Credit Assignment: When a verifier gives a low score to a piece of code, it’s unclear if the high-level strategy was bad or if the low-level implementation was just buggy.
Existing paradigms either keep the model frozen (Self-evolution) or try to train the whole thing at once (TTT-Discover). Guidance-TTT aims to find a "middle way" that is both efficient and strategically sharp.
Methods
The core innovation of Guidance-TTT is role specialization. The system splits the discovery task between two models:
- The Guidance Model (Small & Trainable): A compact model (e.g., Qwen-8B or 14B) that learns to propose high-level strategic changes in natural language ("thought space").
- The Execution Model (Large & Frozen): A powerful model (e.g., GLM-5.2) that takes the high-level guidance and the previous best solution to implement the actual code.
The Workflow: 1. Selection: The system uses a PUCT (Predictor Upper Confidence Bound applied to Trees) algorithm to pick a promising parent solution from an archive. 2. Ideation: The guidance model proposes $K$ different strategic modifications. 3. Implementation: The frozen execution model translates these "thoughts" into $K$ executable child programs. 4. Verification: An external verifier (like a compiler or a benchmark suite) evaluates the programs. 5. Learning: An adaptive group-relative Reinforcement Learning (RL) objective updates only the small guidance model based on the verifier's rewards.
Datasets
The authors evaluated Guidance-TTT across four diverse and challenging discovery domains:
- Polyomino Packing: A combinatorial optimization task (FrontierCS problem 0) requiring irregular pieces to be packed into a grid.
- Lasso Path Optimization: Optimizing C++ solvers for machine learning regularization paths.
- AHC058 (Apple Production Planning): A complex heuristic programming task from AtCoder.
- TriMul: Optimizing the Triangle Multiplicative Update GPU kernel from AlphaFold3 using Triton.
Key Insights and Ideas
- Learning in Thought Space: The authors found that it is more effective to train a model to "think" about strategy in natural language than to train it to write code directly. This abstracts away the syntax and focuses the learning on the underlying logic of the problem.
- Hierarchical Advantage: By freezing the large executor, the system retains the high-quality coding capabilities of a frontier model while the small guidance model becomes a specialist in the specific problem at hand.
- Efficiency Gains: In a head-to-head comparison on Polyomino Packing, Guidance-TTT achieved comparable results to TTT-Discover while reducing adaptation costs by approximately 58%.
- Structural Evolution: The system doesn't just tweak parameters; it discovers new algorithmic structures. For example, in TriMul, it moved from a standard hybrid pipeline to a specialized "fused front end" design (see Figure 4).
Key Results
Guidance-TTT outperformed previous state-of-the-art (SOTA) methods and even human benchmarks across all four tasks:
- Polyomino: Achieved a score of 91.89, surpassing the human best of 89.10 and the previous multi-agent SOTA (CORAL) of 89.40.
- Lasso: Discovered a solver 1.40x faster than SimpleTES while maintaining strict correctness.
- TriMul: Reached a latency of 1129 µs, nearly matching the #1 rank on the public GPUMode leaderboard (1128 µs).
- AHC058: Obtained 850.08M AtCoder points, exceeding both SimpleTES and TTT-Discover.
Limitations and Future Work
Despite its success, the authors identify two recurring failure modes:
- Credit Ambiguity: If the execution model fails to implement a brilliant strategic idea (e.g., due to a syntax error), the guidance model still receives a zero reward. The system cannot yet distinguish between a "bad idea" and a "badly implemented good idea."
- Local Refinement Traps: The search process can become "trapped" in a specific solution family, repeatedly refining a strong lineage rather than exploring diverse new strategies.
Future Directions: The team suggests exploring richer guidance representations (beyond simple natural language), improving credit assignment between the two models, and developing more diversity-aware search algorithms to escape local optima.
Summary updated