The researchers introduced PTXBench, a specialized benchmark designed to evaluate and adapt large language models (LLMs) for optimizing GPU kernels using architecture-specific PTX instructions. The framework assesses models based on functional correctness, the actual execution of target instructions during runtime, and achieved speedups compared to frontier libraries. Testing was conducted on H100 and B200 GPUs, focusing on GEMM and attention workloads. The study revealed significant limitations in current LLMs: success rates drop sharply during complex attention backward workloads, and the successful execution of target instructions does not inherently guarantee competitive performance. Notably, no evaluated model consistently matched the performance of frontier libraries. To address these gaps, the authors performed supervised fine-tuning on Qwen3.6-27B. They found that while repair-conditioned training enhances performance across several tasks, the model's ability to generalize remains inconsistent. The findings suggest that achieving high-performance kernel optimization requires careful consideration of data coverage, dataset balance, and the quality of the reasoning teacher used during training, rather than simply increasing dataset size. Ultimately, PTXBench serves as an auditable testbed for measuring how effectively LLMs can exploit evolving GPU architectures through low-level assembly-level programming.
Read original
huggingface/daily-papers