Pattern-Driven Evaluation of LLM Code Optimization: Isolating Compiler-Transcendent Semantic Reasoning
We present PatternBench, a benchmark for studying compiler-transcendent optimization, i.e., performance improvements that remain after aggressive compiler optimization.
ProofPaper ↗
Key points
- Existing evaluations of LLM-based code optimization primarily measure end-to-end speedup, obscuring whether a model actually performs the intended optimization.
- For compiled languages, this is especially problematic: observed gains may reflect transformations already recoverable by modern optimizing compilers rather than optimization behavior attributable to the model itself.
- PatternBench targets residual optimization opportunities across seven classes of transformations and pairs runtime evaluation with an AST-based optimization faithfulness analysis that verifies whether the intended optimization is realized in the generated program.
- Experiments with frontier, open-weight, and fine-tuned models show that runtime speedup alone provides an incomplete account of optimization capability.
Sources (1)
- [1]Pattern-Driven Evaluation of LLM Code Optimization: Isolating Compiler-Transcendent Semantic ReasoningarXiv (AI, ML, NLP, CV, robotics, multi-agent) · Oct 17, 07:33 PM
We present PatternBench, a benchmark for studying compiler-transcendent optimization, i.e., performance improvements that remain after aggressive compiler optimization.
Existing evaluations of LLM-based code optimization primarily measure end-to-end speedup, obscuring whether a model actually performs the intended optimization.
Extractive summary: sentences quoted from the sources.
Before this
- Oct 17, 2026Which Long Documents Matter? A Controlled Study of Data Selection for Context Extension
- Oct 17, 2026EdgeKernelBench: Unified LLM-Driven Kernel Generation for Edge Backends
- Oct 17, 2026ECHO: Efficient Causal Self-Recursion Beyond Auxiliary Multi-Token Prediction
- Oct 16, 2026Hugging Face ❤️ TorchTPU: TPUs, Natively
- Oct 15, 2026HeRE: A Novel Benchmark for Hebrew Relation Extraction via LLM-Guided Denoising of Knowledge Graph Alignments
- Oct 15, 2026NVIDIA Nemotron 3.5 Super VL Powers Specialized Agents with Multimodal Reasoning