arXiv:2610.36434cs.DCOct 2026

Manuscript Offprint

arXiv:2610.36434

JustGoal: With Only a Goal, the AI Baseline Is Above the Expert Kernels

Yaojian Chen, Dazhi Peng, Zhui Zhu, Leshan Li, Haojun Sun, Yiyun Zheng, Qingfeng He, Shangzhan Li, Xianglong Deng, Yifei Shen, Shengye Xiang, Zhen Li, Lin Gan, Yuxuan Li, Xu Han, Zhiyuan Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yaojian Chen 1∗^{1*}, Dazhi Peng 2∗^{2*}, Zhui Zhu 1^{1}, Leshan Li 1^{1}, Haojun Sun 2^{2}, Yiyun Zheng 2^{2}, Qingfeng He 1^{1}, Shangzhan Li 3^{3}, Xianglong Deng 4^{4}, Yifei Shen 2^{2}, Shengye Xiang 1^{1}, Zhen Li 2^{2}, Lin Gan 1^{1}, Yuxuan Li 2†^{2\dagger}, Xu Han 1†^{1\dagger}, Zhiyuan Liu 1†^{1\dagger}

1^{1}Tsinghua University 2^{2}ModelBest Inc. 3^{3}Harbin Institute of Technology

4^{4}University of Chinese Academy of Sciences

ABSTRACT

A small number of GPU kernels often determines the efficiency of large language model training and inference. High-performance kernel development still typically draws on expert knowledge, from direct expert implementation, to collaboration with general-purpose models, to specialized agents that encode expert-designed evaluation methods, domain knowledge, and search workflows. These approaches differ mainly in how expert knowledge enters the development process. We ask how much additional value that knowledge still provides for kernel optimization as foundation models grow stronger. To study this question, we construct a goal-only baseline and call its concrete experimental configuration JustGoal: a general-purpose agent receives only the optimization objective and constraints, with no kernel-specific evaluation infrastructure, knowledge base, or search workflow, and builds its own evaluation loop. On NVIDIA B200 GPUs, JustGoal outperforms open-source libraries on 8 of the 10 operators entering the comparison, with per-operator geometric mean speedups of 1.14−2.34×1.14-2.34\times, and surpasses the fastest publicly released specialized-agent kernel on 5 of the 9 operators that have one. This marks a capability threshold: without task-time injection of kernel-specific knowledge or optimization workflows, current frontier models can already surpass human-maintained implementations on a range of operators. In a controlled same-model comparison with Fable 5.1 on single shapes, the KDA-0.5 harness reaches 0.95×0.95\times the performance of JustGoal, and single-mechanism ablations find no consistent benefit from domain knowledge or predefined workflows. These results show that the effectiveness of specialized machinery cannot be presumed from its complexity or from results on earlier models. It should be established by a clear gain over a goal-only baseline under the same model and task scope, and reevaluated when the foundation model changes.

1 INTRODUCTION

The computational efficiency of large language model training and inference depends critically on a small set of GPU kernels. Developing high-performance implementations of these kernels requires jointly optimizing tiling strategies, memory hierarchy utilization, asynchronous execution pipelines, and hardware-specific instructions. These design choices are tightly coupled, and their optimal configuration changes across hardware generations. Consequently, the development of high-performance kernels has long relied on leading experts devoting weeks or even months to manual optimization. The FlashAttention series exemplifies this recurring investment: achieving high performance on successive GPU architectures has required substantial redesigns of its algorithms and execution pipelines (Dao et al., 2022; Shah et al., 2024; Dao et al., 2026).

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors: Yuxuan Li, Xu Han, Zhiyuan Liu.

Large language models have recently entered kernel development. Experts may collaborate directly with general-purpose models. They may also encode evaluation methods, domain knowledge, and search workflows into specialized kernel agents such as KDA, AVO, AKO, and CAKE. These agents have matched or surpassed expert-written implementations on selected operators (MIT HAN Lab, 2026; NVIDIA, 2026; AKO Team, 2026a; Ye et al., 2026). What these approaches share is their reliance on expert knowledge. As foundation models improve, capabilities that previously had to be supplied explicitly may become native to the model. This raises two related questions: how much additional value does expert knowledge continue to provide for kernel optimization as model capabilities increase, and how far can a model optimize kernels when given only the task objective and constraints, with as little predefined expert knowledge as possible?

To examine these questions, we construct a goal-only baseline and call its concrete experimental configuration JustGoal. It provides no kernel-specific evaluation infrastructure, domain knowledge, or search workflow. A general-purpose agent receives only the task objective and constraints. It builds its own evaluation loop and optimization process. We observe the role of expert knowledge from two measurable perspectives. First, we compare kernels generated by JustGoal with human-maintained open-source libraries and publicly released specialized-agent kernels, asking what performance level a goal-only configuration already reaches. Second, under the same model and task scope, we compare JustGoal with a specialized harness that adds evaluation infrastructure, domain knowledge, and search workflows, directly measuring the marginal value of these explicit expert mechanisms. Our experiments cover 11 operators spanning attention, linear attention, sparse attention, and mixture-of-experts (MoE). We independently verify every kernel in the comparison.

From the first perspective, JustGoal is faster than human-maintained open-source libraries on 8 of the 10 operators entering the comparison, and faster than the best publicly released specialized-agent kernel on 5 of the 9 operators that have one. This marks a capability threshold: without task-time injection of kernel-specific knowledge or optimization workflows, current frontier models can construct evaluation feedback, identify performance bottlenecks, and surpass human-maintained implementations on a range of operators. From the second perspective, in the scope-matched Fable 5.1 comparison, the full KDA-0.5 harness produces no overall gain on single-shape tasks, and single-mechanism ablations show no consistent gain from domain knowledge or predefined workflows. When the goal expands from optimizing one shape to covering every workload in an operator definition, the harness still provides a gain. To measure the net gain that the full specialized harness adds beyond the model's own capabilities, it must be compared with a goal-only baseline under the same model and task scope. This net gain should be reevaluated whenever the foundation model changes.