arXiv cs.AI· Simran Kaur, Evan Becker, Benjamin Bowman, Aditya Golatkar, Alessandro Achille, Wei Xia, Stefano Soatto·· 2 天前AI 评分34
面向 Trainium 内核验证生成的智能体记忆缩放律研究
Agent Memory Scaling Laws for Verified Trainium Kernel Generation
AI 导读
arXiv 论文研究在带形式化验证的 Trainium 内核生成任务中,上下文课程库大小与求解成本(以输出 token 计)的缩放关系。任务相关课程与 log 加速比近似呈幂律,精选课程相对无课程达到约 2.9x 输出 token 加速,最低求解成本降低 52%(含课程 prefill)。
正文 · 原文
Abstract:Coding agents, while powerful, exhibit the tendency to produce voluminous code artifacts that lead to a lack of trust and reliability. Formal verification methods mitigate this by enforcing that the agent's code satisfy a set of predetermined "contracts", where the code must pass a proof-of-correctness check to be admissible. In the limit, any language model with full support will produce a verified solution given unbounded time. Thus, time-to-solution is the principal metric that distinguishes the quality of agents in the verified setting. We study how this search cost, measured in output tokens, scales with the size of an in-context curriculum and depends on its composition. Our testbed is iterative Trainium kernel generation, using a formal verifier on Rust representations and fixed acceptance checks. Across held-out targets, task-relevant curricula exhibit an approximate power law between curriculum size and log-speedup over the measured range, and outperform generic verified code. According to the theory of stochastic dynamical systems, the power-law exponent provides an empirical estimate of the growth rate of algorithmic mutual information between curriculum and target task as the curriculum grows. Curated curricula reach about a 2.9x output-token speedup over no curriculum; the lowest measured solve cost is 52% lower, including curriculum prefill. To select examples before running the search, we evaluate a score based on how they change the likelihood of the unfinished target program, which strongly predicts downstream speedup. Curriculum also improves solve rates for weaker agents and yields faster executable kernels at a fixed search budget.
| Subjects: | Artificial Intelligence (cs.AI); Machine Learning (stat.ML) |
| Cite as: | arXiv:2612.04978 [cs.AI] |
| (or arXiv:2612.04978v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2612.04978 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Evan Becker [view email]
[v1]
Thu, 3 Dec 2026 04:48:21 UTC (2,605 KB)
来源:arXiv cs.AI · arxiv.org