arXiv AI
Sep 30

AI as a Compiler: Compiling Triton kernels without the Triton compiler

The paper explores using large language models (LLMs) to replace traditional compiler backends, a process termed AI lowering. An LLM agent translates Triton kernels directly into NVIDIA PTX, achieving 0.83x–3.34x the performance of autotuned Triton on a variety of GPUs and ML kernels. The study also extends a PTX verifier to support modern GPU features, highlighting the potential for AI compilers to reduce engineering effort for new hardware.

By Fran\c{c}ois Costa, Charly Castes, Thomas Bourgeat, Azalia Mirhoseini
Hugging Face Trending Papers
Aug 18

PTXBench: Benchmark and Adapt LLMs for GPU Kernel Optimization with Architecture-specific PTX

PTXBench is a benchmark designed to evaluate and adapt large language models (LLMs) for GPU kernel optimization using architecture-specific PTX code. It assesses functional correctness, runtime execution of target instructions, and speedup over leading libraries on GEMM and attention workloads on H100 and B200 GPUs. The study finds uneven performance across models, especially on complex attention backward tasks, and shows that fine‑tuning Qwen3.6‑27B improves some tasks but generalization remains inconsistent.

arXiv Machine Learning
Nov 2

TIRx: A Unified Tile Primitive ML Compiler Across Heterogeneous Backends

TIRx is a machine‑learning compiler that targets GPUs and AI accelerators by exposing explicit interfaces for execution scope, tensor layout, and tile‑primitive dispatch. It captures hardware teams at multiple granularities, maps logical tensors to heterogeneous hardware spaces using named axes and shard/replica/offset semantics, and automates address calculation, operand preparation, and instruction‑loop generation. Evaluation demonstrates vendor‑level performance on the latest GPUs and AI accelerators, while native‑code case studies show significant reductions in low‑level implementation code.

By Bohan Hou, Hongyi Jin, Guanjie Wang, Shushi Hong, Jinqi Chen, Yaxing Cai, Lijie Yang, Zihao Ye, Yaoyao Ding, Ruihang Lai, Todd Mowry, Tianqi Chen