LGAIMar 24

AscendOptimizer: Episodic Agent for Ascend NPU Operator Optimization

arXiv:2603.2356686.2h-index: 6Has Code
AI Analysis

This work addresses a domain-specific problem for developers optimizing AI hardware on Huawei Ascend NPUs, offering a novel approach to overcome knowledge bottlenecks in a less-established ecosystem.

The paper tackled the challenge of optimizing operators for Huawei Ascend NPUs, where a lack of public reference implementations and complex two-part artifacts hinder performance, by introducing AscendOptimizer, an episodic agent that uses evolutionary search and motif mining to achieve a 1.19x geometric-mean speedup on a benchmark of 127 operators.

AscendC (Ascend C) operator optimization on Huawei Ascend neural processing units (NPUs) faces a two-fold knowledge bottleneck: unlike the CUDA ecosystem, there are few public reference implementations to learn from, and performance hinges on a coupled two-part artifact - a host-side tiling program that orchestrates data movement and a kernel program that schedules and pipelines instructions. We present AscendOptimizer, an episodic agent that bootstraps this missing expertise by turning execution into experience. On the host side, AscendOptimizer performs profiling-in-the-loop evolutionary search to discover valid and high-performing tiling and data-movement configurations directly from hardware feedback. On the kernel side, it mines transferable optimization motifs by rewinding optimized kernels - systematically de-optimizing them to synthesize instructive "bad-to-good" trajectories - and distills these motifs into a retrievable experience bank for guided rewriting. By alternating host tuning and kernel rewriting in a closed loop, AscendOptimizer steadily expands feasibility and pushes latency down. On a benchmark of 127 real AscendC operators, AscendOptimizer achieves a 1.19x geometric-mean speedup over the open-source baseline, with 49.61% of operators outperforming their references, outperforming strong agent and search baselines.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes