MLIRBench: Evaluating LLM Reasoning over Compiler IR Execution Semantics
ORIGINAL / MLIRBench - A Benchmark and Dataset for Compiler and Hardware-Aware Reasoning
This work introduces MLIRBench, which builds execution-validated torch and linalg program pairs labeled equivalent, divergent, or erroneous, to test whether models truly understand MLIR program behavior rather than relying on training patterns, offering a reproducible benchmark for semantic reasoning over compiler IRs.
01 ABSTRACT
The paper releases MLIRBench, a benchmark of 1,768 execution-validated MLIR program pairs (888 linalg, 880 torch) labeled EQUIV, DIVERGE, or ERROR. Nine models were evaluated, with Gemini 3.1 Pro reporting the highest hard-label accuracy of 92.65%, an aggregate score of 74.18, and a judge-assigned result-behavior score of 5.04/10. The authors conclude that strong semantic classification does not imply accurate prediction of fine-grained execution behavior, highlighting a gap in LLM reasoning over compiler IRs.
02 KEY FINDINGS
- The dataset has 1,768 execution-validated program pairs from linalg and torch sources, labeled EQUIV, DIVERGE, or ERROR
- Nine models were evaluated (five open-weight, four proprietary); Gemini 3.1 Pro had the highest hard-label accuracy at 92.65%
- The same model scored 74.18 aggregate and 5.04/10 on result-behavior judging, showing a gap between classification and execution-behavior prediction
AI GENERATED SUMMARY / DISCOVERED BY ARXIV CS.LG