AutoAssumption:通过搜索假设发现机器学习系统算法
AutoAssumption: Searching over Assumptions Discovers ML-Systems Algorithms
AI总结:
AutoAssumption 工具通过将算法形式化为带明确假设的证明图,搜索并放松已发表算法的假设,生成了 KV 缓存驱逐、权重剪枝任务的最优算法,性能优于多数已发表方法及 OpenEvolve。
摘要:
机器学习系统的诸多进步源于打破早期方法默认的假设:投机解码(speculative decoding)摒弃了模型每个 token 需一次前向传播的假设。然而算法极少明确陈述自身假设,因此专家与发现工具会在程序层面搜索,一处修改会改变多个设计选择,且收益难以归因。对假设本身的搜索仍未得到充分探索。将算法编写为证明可明确其假设,把算法设计转化为在小型结构化空间内的搜索,该空间可由大语言模型(LLM)探索、由证明检查器审核。我们将 KV 缓存驱逐、权重剪枝、投机解码领域的 89 种算法形式化为带有明确假设的证明图,在 Lean 中完成检查。我们的工具 AutoAssumption 放松了某一已发表方法的一项假设,重新推导并证明该方法,生成其代码。在 KV 缓存驱逐与权重剪枝任务中,该搜索在我们运行的所有已发表算法上均实现了性能提升,生成了达到当前最优水平的算法:驱逐算法在我们运行的已发表方法中取得最高的 RULER-4K 分数,剪枝算法在四种 LLaMA 模型上取得 13 个基准中最低的困惑度;在相同计算预算下,该工具的得分与 AlphaEvolve 的开源实现 OpenEvolve 相差在 1 分以内,且重复运行的标准差更低。未来工作将形式化更多领域,并通过它们共享的核心假设将这些领域结合起来。
英文摘要:
Many advances in ML systems came from breaking an assumption that earlier methods took for granted: speculative decoding dropped the assumption that a model needs one forward pass per token. Yet algorithms rarely state their assumptions, so experts and discovery harnesses search over programs, where one edit changes several design choices and gains are difficult to attribute. Searching over the assumptions themselves remains largely unexplored. Writing algorithms as proofs makes their assumptions explicit and turns algorithm design into a search over a small, structured space that an LLM can explore and a proof checker can audit. We formalize 89 algorithms from KV-cache eviction, weight pruning and speculative decoding as proof graphs with explicit assumptions, checked in Lean. Our harness, AutoAssumption, relaxes one assumption of a published method, re-derives and re-proves it, and generates its code. In KV-cache eviction and weight pruning, this search improved on every published algorithm we ran and produced state-of-the-art algorithms. The eviction algorithm has the highest RULER-4K score of the published methods we ran, and the pruning algorithm the lowest perplexity of thirteen on four LLaMA models. At equal budget, the harness scores within a point of OpenEvolve, an open-source implementation of AlphaEvolve, with a lower standard deviation across repeats. Future work will formalize more fields and combine them through the principal assumptions they share.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。