arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.16625cs.CLcs.AIcs.LG
收藏

AdaExplore: 基于失败的适应与多样性保持搜索用于高效内核生成

AdaExplore: Failure-Driven Adaptation and Diversity-Preserving Search for Efficient Kernel Generation

Carnegie Mellon University(卡内基梅隆大学);University of Washington(华盛顿大学);Arm Ltd(Arm有限公司)

Weihua Du, Jingming Zhuo, Yixin Dong, Andre Wang He, Weiwei Sun, Zeyu Zheng, Manupa Karunaratne, Ivan Fox, Tim Dettmers, Tianqi Chen, Yiming Yang, Sean Welleck

AI总结:

AdaExplore通过积累执行反馈实现自我改进,通过失败驱动适应和多样性保持搜索提升内核生成的正确性和优化性能,无需额外微调或外部知识。

摘要:

近期大型语言模型(LLM)代理在利用执行反馈进行测试时间适应方面表现出潜力。然而,稳健的自我改进仍远未解决:大多数方法仍单独处理每个问题实例,缺乏可重用的知识积累。这种限制在领域特定语言如Triton中尤为明显,这些语言在LLM预训练数据中代表性不足。其严格约束和非线性优化景观进一步使简单生成和局部细化不可靠。我们提出AdaExplore,一个代理框架,通过积累执行反馈实现自我改进,用于关键性能内核代码生成,通过两个互补阶段:失败驱动适应和多样性保持搜索,共同提升正确性和优化性能,无需额外微调或外部知识。在适应阶段,代理合成任务并将重复失败转化为可重用的有效性规则记忆,帮助后续生成保持在可行集内。在搜索阶段,代理将候选内核组织成树状结构,并在小局部细化和大结构再生之间交替,使其能够探索优化景观超越局部最优。在内核运行时优化基准测试中验证了这些收益:AdaExplore在100步内实现3.12倍和1.72倍的KernelBench Level-2和Level-3速度提升,并在额外计算后持续改进。

英文摘要:

Recent large language model (LLM) agents have shown promise in using execution feedback for test-time adaptation. However, robust self-improvement remains far from solved: most approaches still treat each problem instance independently, without accumulating reusable knowledge. This limitation is particularly pronounced in domain-specific languages such as Triton, which are underrepresented in LLM pretraining data. Their strict constraints and non-linear optimization landscape further make naive generation and local refinement unreliable. We propose AdaExplore, an agent framework that enables self-improvement via accumulated execution feedback for performance-critical kernel code generation through two complementary stages: failure-driven adaptation and diversity-preserving search, jointly improving correctness and optimization performance without additional fine-tuning or external knowledge. In the adaptation stage, the agent synthesizes tasks and converts recurring failures into a reusable memory of validity rules, helping subsequent generations remain within the feasible set. In the search stage, the agent organizes candidate kernels as a tree and alternates between small local refinements and larger structural regeneration, allowing it to explore the optimization landscape beyond local optima. Experiments on kernel runtime optimization benchmarks validate these gains: AdaExplore achieves 3.11x and 1.62x speedups on KernelBench Level-2 and Level-3, respectively, within 100 steps, and continues to improve with additional computation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑