PaperarXiv:2611.32975 · cs.DC · Nov 24, 2026
Estimating GPU Roofline Arithmetic Intensity with Off-the-Shelf LLMs and Compiler Artifacts
Gregory Bolet, Giorgis Georgakoudis, Konstantinos Parasyris, Harshitha Menon, Niranjan Hasabnis, Kirk W. Cameron, Gal Oren
This extends the authors' prior LLM Roofline-classification and FLOP-counting work to device-memory traffic and numerical RAI. The statistics are careful: paired case bootstraps, a near-ridge breakdown, and an in-sample baseline that is disclosed. But the study covers five kernel families, has no static-tool or IMIX ablation baseline, never tests the triage use it motivates, and reports modest numerical accuracy. The agentic-versus-zero-shot cost data is the part most useful to harness builders, and it comes from one fixed harness configuration.
Novelty
2 out of 5Rigor
3 out of 5Reproducibility
2 out of 5Relevance to harnesses
2 out of 5
TL;DR
Three off-the-shelf LLMs (deepseek-v4-flash, gemini-3.7-flash, gpt-5.6-sol) estimate Roofline arithmetic intensity (RAI) for 179 GPU kernel cases without running them. Adding SASS/GCN disassembly and a static instruction mix raises within-1.20x RAI accuracy from 8-14% to 26-32%, and regime classification reaches 78-92%. A sandboxed agent adds 6.5 points only for gpt-5.6, at 3.6x the median cost. Device-memory traffic is the main source of error.
Adversarial review by Harness Hub · Nov 27, 2026 · read full text (truncated) · Suggest a correction
Original abstract (authors’ text, select to expand)
GPU developers use profiling to understand computation and data movement, but access to target hardware can delay optimization. We investigate whether off-the-shelf large language models (LLMs) can estimate Roofline arithmetic intensity (the ratio of floating-point operations (FLOPs) to device-memory bytes) without executing the target GPU workload. We evaluate three models (deepseek-v4-flash, gemini-3.7-flash, and gpt-5.6-sol) across 179 combinations of five kernel families, four NVIDIA and AMD GPUs, four parallel runtimes (CUDA, HIP, OpenMP, and OpenCL), and modified code variants, comparing source-only queries, queries with compiler artifacts, and sandboxed agentic analysis. Compiler artifacts raise the share of arithmetic-intensity estimates within a factor of 1.20 of profiled values from 8-14% to 26-32%, while the resulting bandwidth-bound or compute-bound classifications are correct in 78-92% of runs. With compiler artifacts, FLOP estimates meet the 1.20x tolerance in 59-88% of runs, compared with 36-40% for device-memory traffic. Agentic analysis increases the share of arithmetic-intensity estimates within the 1.20x tolerance by 6.5 percentage points for gpt-5.6-sol, at 3.6x the median cost and 2.5x the median latency of compiler-assisted queries; the other models incur higher costs without a statistically clear improvement. These findings suggest LLM estimates could help prioritize optimization when GPU access is constrained, while identifying cache-dependent device-memory traffic as the main obstacle to precise arithmetic-intensity prediction.
Authors’ note
26 pages, 21 figures, 15 tables
Summary
The paper tests whether LLMs can predict FLOPs, device-memory bytes and their ratio (RAI) for GPU kernels from static evidence, then derive a bandwidth-bound (BB) or compute-bound (CB) label from the target GPU's balance point. Setup: - Five kernel families: inversek2j, lavaMD, particlefilter, particles, srad. - Four GPUs (A10, A100, H100, MI300X) and four runtimes (CUDA, HIP, OpenMP, OpenCL). - Four code variants: original (O), altered flags/inputs (CI), renamed (R), renamed plus datatype change (RD). - 180 nominal cases, of which 179 are evaluated. - Three strategies, five repetitions each, 8,055 runs in total: - ZS-Code: zero-shot with source only. - ZS-ISA: zero-shot with source plus SASS/GCN disassembly and static instruction mix (IMIX). - AG: a sandboxed agent with no GPU and no network, capped at 100 model responses. - Ground truth is the mean of ten vendor-profiler trials per case. - NVIDIA: L2-DRAM traffic during the first target-kernel dispatch. - MI300X: requests from TCC/L2 toward MALL. - The three models survived a cost and completion pruning phase under a $2,000 total budget. Results: - RQ1: ISA evidence raises RAI accuracy by 18-20 points. The gain comes mostly from FLOP counts (gpt-5.6 goes from 16% to 88%), while traffic accuracy stays at 36-40% under ZS-ISA. - RQ2: classification is 78-92% under ZS-ISA, against a 73.2% in-sample per-GPU/precision majority baseline. Within 2x of the balance point, gpt-5.6 rises from 42.5% to 79.5%. - RQ4 (Table 1): AG raises gpt-5.6 RAI accuracy from 32.4% to 38.9% (paired bootstrap CI [3.4, 9.6]) at 3.6x median cost and 2.5x median latency. For deepseek and gemini, AG gains have intervals spanning zero, completion falls to 88.4% and 63.9%, and median cost rises 6.7-17.7x.
Key findings
- Within-1.20x RAI accuracy is 8-14% under ZS-Code and 26-32% under ZS-ISA. At 2x tolerance, ZS-ISA reaches 48-60% (Section 4.1, Figure 6).
- Under ZS-ISA, total-FLOP accuracy is 59-88% (gpt-5.6 rises from 16% to 88%), while device-memory traffic accuracy is 36-40% (Section 4.1).
- Classification accuracy rises from 65-80% under ZS-Code to 78-92% under ZS-ISA. The comparison baseline is a 73.2% per-GPU/precision majority rule fitted on the same cases (Section 4.2, Table A.8).
- For the 40 cases within 2x of the balance point, gpt-5.6 classification goes from 42.5% to 79.5%; paired bootstrap CI [19.5, 54.0] (Section 4.2, Figure 8).
- gpt-5.6 ZS-ISA RAI accuracy on lavaMD is 90% on A100 and 100% on H100, but 2.5% on A10 and 5% on MI300X. particlefilter is 0% on every GPU (Section 4.3, Figure 9).
- For particlefilter O CUDA/HIP, median traffic predictions are 4-26x below the reference across all four GPUs (Section 4.3, Table A.13).
- AG vs ZS-ISA (Table 1): - gpt-5.6: RAI accuracy 32.4% to 38.9%, median cost $0.223 to $0.800 per run, median latency 1.3 to 3.4 min. - deepseek: 27.7% to 30.2%. - gemini: 26.5% to 26.7%, with completion falling from 93.5% to 63.9%.
- For gemini AG, the 323 unsuccessful runs account for $294.51 of the $638.24 recorded cost, or 46% (Appendix A.5).
The paper at a glance
- Profile 254 HeCBench kernels on A10/A100/H100, then 8 candidate families on all four GPUs; select 5 families by near-balance-point share (Appendix A.3)
- Build 179 cases: 5 families x 4 variants (O, CI, R, RD) x 9 GPU-runtime pairs, minus OpenCL particles CI
- Prune candidate LLMs by projected cost and usable-prediction rate, leaving 3
- Query with ZS-Code, ZS-ISA (SASS/GCN + IMIX) or the AG sandbox (no GPU, 100-response cap), 5 repetitions each
- Parse the rai_prediction_result tool call: launch bounds, FP16/32/64 FLOPs, bytes read/written
- Score against profiler counters at 1.20x and 2x tolerance; derive the BB/CB label from the balance point
Data table
| Method | % |
|---|---|
| deepseek ZS-ISA (this paper) | 27.7% |
| deepseek AG | 30.2% |
| gemini ZS-ISA (this paper) | 26.5% |
| gemini AG | 26.7% |
| gpt-5.6 ZS-ISA (this paper) | 32.4% |
| gpt-5.6 AG | 38.9% |
Why it matters
For most harness builders this paper is narrow: it is about GPU kernel performance estimation, not agent loops, memory or tool design. Two parts transfer. First, it is a cost-accounted comparison on one task between a zero-shot prompt carrying precomputed evidence (compiler disassembly plus a static instruction mix) and a sandboxed agent loop. The precomputed evidence did most of the work. The agent added 6.5 points for one model and no clearly measurable gain for the other two. For those two, most failed agent runs exhausted the 100-response cap, and 46% of gemini's recorded agentic spend went to unsuccessful runs. That is a concrete data point for deciding between feeding a model better static context and wrapping it in a tool loop. It comes from one harness configuration with a fixed response cap, so it does not generalize to agents as a whole. Second, builders of kernel-optimization agents could in principle use an LLM-estimated Roofline regime to triage candidates before profiling. However, the paper never evaluates that triage use, numerical accuracy is low (26-32% within 1.20x), and there is no comparison against cheap static tools.
Issues (9)
- High severityWhere in paper: Section 4.5 (Scope and Validity); Section 3.3 (IMIX inclusion); Section 2
There is no comparison against non-LLM static estimators, even though the ZS-ISA prompt already supplies a static instruction-mix count. Much of the FLOP gain (gpt-5.6 from 16% to 88%) might be reproduced by a script that multiplies IMIX counts by launch geometry and trip counts, or by existing tools such as CUDAsap, which the paper cites. There is also no ablation separating IMIX from raw disassembly. Without either, it is untested whether the LLM adds value over the static artifacts it is given. The authors acknowledge the missing comparison.
- High severityWhere in paper: Section 3.1; Appendix A.3; Section 4.3, Figure 9; Section 4.5
The workload base is very small. There are only five kernel families, chosen from eight candidates by a staged procedure. The 179 cases are variants of these five programs, and the five repetitions measure model variance rather than workload diversity. Per-family results range from 0% (particlefilter) to 100% (lavaMD/H100), so the pooled percentages in the abstract depend heavily on the family mix. Atomic-heavy kernels are excluded entirely.
- Medium severityWhere in paper: Abstract; Section 1, Figure 1; Section 5
The abstract and conclusion say LLM estimates could help prioritize optimization when GPU access is constrained, and Figure 1 motivates candidate triage. No experiment measures ranking or triage quality, for example ordering optimization candidates or choosing which to profile first. The motivating use case is asserted, not evaluated.
- Medium severityWhere in paper: Abstract; Section 4.2; Figure 8; Section 4.5
The 78-92% classification headline is inflated by easy cases: - 109 of 179 cases lie more than 4x from the balance point, where gpt-5.6 exceeds 95% under every strategy. - The only baseline is a 73.2% per-GPU/precision majority rule, fitted in-sample, so deepseek and gemini at the low end of 78-92% sit only a few points above a rule that reads no code. - The text reports near-ridge accuracy (79.5% on 40 cases) only for gpt-5.6. The abstract gives the pooled range without this context.
- Medium severityWhere in paper: Section 3.3; Section 4; Section 4.3
The ground-truth target is narrow and differs by vendor. NVIDIA traffic is measured only during the first target-kernel dispatch at the L2-DRAM boundary. MI300X counts requests toward MALL, including those served by MALL. First-dispatch cache state may not reflect steady-state behavior that developers optimize for. The differing boundaries mean NVIDIA and MI300X traffic accuracy are not like-for-like, which complicates the cross-vendor comparisons in RQ3.
- Medium severityWhere in paper: Section 3.2; Section 4.3, Figure 10
Contamination is only weakly controlled. All sources are public Rodinia/HeCBench/AxBench code, and the variants are described as a best-effort check that does not establish training-data exposure. RD drops gpt-5.6 ZS-Code accuracy from 13.8% (O) to 5.3%. This is consistent with partial reliance on recalled values for the original datatype, though it could also reflect genuine difficulty with datatype changes. The paper does not disentangle the two.
- Medium severityWhere in paper: Section 3.3; Section 4.4, Table 1; Appendix A.4, Figure A.12; Section 4.5
The agentic comparison is confounded by harness choices: - a fixed 100-response cap; - manufacturer-default reasoning settings; - a single prompt design with no wording sensitivity check; - one fixed toolset. For deepseek and gemini, cap exhaustion accounts for most unsuccessful AG runs, so the reported AG shortfalls partly measure the budget rather than the strategy. The conclusion that agentic prompting can be detrimental rests on this one configuration.
- Low severityWhere in paper: Table 1 caption; Appendix A.1, Table A.2; Appendix A.5
Cost figures are lower bounds. Unreported charges are omitted, and some planning prices are conservative or shadow valuations paid with credits. The 3.6x and 6.7-17.7x cost ratios therefore carry unquantified error.
- Low severityWhere in paper: Section 3.4; Figure 5; Appendix Table A.2
Model pruning removed claude-opus-5 and qwen-3.8-max on projected cost, and several others on usable-prediction rate below 80%, using O-variant queries. The results therefore describe models that fit a roughly $200-per-model zero-shot budget, not necessarily the most capable available. Kimi K3 and GPT-5.5 appear in Table A.2, but their exclusion is not explained in the text.
Questions for the authors
- How does a simple non-LLM estimator compare on FLOP and traffic accuracy, for example IMIX counts scaled by launch geometry and trip counts plus a footprint model?
- How much of the ZS-ISA gain comes from the IMIX summary versus the raw disassembly?
- What is near-ridge (D(I) <= 2) classification accuracy for deepseek and gemini under ZS-ISA and AG?
- Does raising the AG response cap above 100 recover deepseek and gemini completion and accuracy, and at what cost?
- Would ranking optimization candidates by predicted RAI or regime actually reduce profiling effort in a kernel-search loop?
- Does using steady-state rather than first-dispatch counters change traffic accuracy, especially for lavaMD on A10?
- Will the prompts, sandbox tooling, profiled counters and study-created OpenCL ports be released?
Related in the directory
Commercial products
Product · Remote
Related papers
arXiv:2610.32632 · cs.DC · Oct 23, 2026
RISC-V is emerging as a candidate architecture for high-performance computing (HPC), but its competitiveness against established x86 and Arm processors remains difficult to assess because existing studies use different platforms, workloads, and methodologies, and rarely consider energy efficiency. Our work provides an evaluation of contemporary HPC RISC-V, Arm, and x86 processors using a common software stack and methodology. We characterize the Sophgo SG2044 and compare it with the NVIDIA Grace CPU Superchip and Intel Xeon Platinum 8480+ across four HPC benchmarks (STREAM, HPL, HPL-MxP, and HPCG) and four representative applications (iPIC3D, PLUTO, OpenFOAM, and llama.cpp). The version of HPL-MxP linked to OpenBLAS built and used for this work is made available as open-source software. The SG2044 reaches 8.02 GFLOP/s of FP64 performance and 7.8 GB/s of memory bandwidth per core, increasing to 294 GFLOP/s and 107 GB/s at 64 cores. L2-cache-aware process placement enables near-linear scaling up to 16 cores, beyond which memory-bandwidth saturation limits further gains. Across generations of RISC-V hardware, in the context of the Monte Cimone (MC) project, the SG2044-based MCv3 doubles both single-core performance and peak memory bandwidth relative to MCv2, while improving memory bandwidth, node-level FP64 performance, and energy efficiency by approximately 100x, 158x, and 10x, over MCv1. Against the Arm and x86 systems, the SG2044 shows 8-15x less absolute performance, reflecting its narrower vector resources and less advanced technology node, but delivers competitive scaling and energy efficiency on several workloads. Its most notable result is LLM decode, where 64-core execution provides the highest relative scaling and energy efficiency among the evaluated platforms while exceeding Intel in throughput. Our results show that RISC-V processors are closing the gap with the competition.
Emanuele Venieri, Giacomo Madella +10
arXiv:2611.24324 · cs.AI · Nov 18, 2026
AI coding agents have become one of the most popular applications of large language models. Yet, agentic AI comes at the cost of a tremendous amount of GPU compute resources, which limits its profitability and its viability at scale. In this paper, we investigate whether smaller, cheaper models can cut this cost without sacrificing accuracy. We evaluate 36 popular large and small open-weight models released since 2024 on a software engineering benchmark, and find that recent small models are closing the accuracy gap compared to their large counterparts. We investigate the structure of this gap and find that the gap is highly concentrated around hard tasks that small language models fail to solve while achieving remarkably good accuracy for easy and medium complexity tasks. Following this observation, we show that by utilizing a hybrid inference strategy that tries a small model first and escalates to a large one only when needed, we can achieve up to 33% reduction in total GPU-hour costs and 16.4% on all tasks from SWE-bench Verified, without sacrificing accuracy. Strikingly, this simple cascade nearly matches an oracle-style task router, highlighting a practical path for deploying cost-aware coding agents in production without complex learned task routers and with minimal engineering complexity.
Boxi Zhou, German Sviridov +2
arXiv:2611.26450 · cs.AI · Nov 19, 2026
Pretrained language models (LMs) remain unreliable on exact multi-digit arithmetic without gradient fine-tuning or external tool interpreters. We introduce closed-form, zero-gradient circuit-grafting primitives that compile deterministic computation directly into pretrained LM weights using zero training examples and zero runtime hooks, while bounding per-layer normalization drift and preserving natural-language (NL) competence. Our construction combines three analytical mechanisms: (1) two-layer Mellin-GLU quadrature over bias-free SwiGLU/GeGLU layers, turning unknown per-token RMSNorm scaling into translation along a log-spaced gate grid ($>250\times$ dynamic range) with IEEE 754 error bounds; (2) cross-token scale cancellation via signed Chebyshev Indefinite-RoPE self-sink attention and memoryless SiLU-antisymmetric GatedDeltaNet shifts; and (3) axis-aligned width extension ($d \to d+K$) with $\sqrt{d/(d+K)}$ norm compensation, Base-1000 canonical BPE emission, and differential $(+254,-256)$ tied unembeddings. An automated 5-stage compiler synthesizes 4-8 digit signed $\{+,-,\times\}$ circuits in constant $\mathsf{TC}^0$ depth alongside 3-literal Boolean (100%, $N=1{,}728$; plus 42-layer Gemma 4 E4B audits) and 5-bit Majority/Parity (100%) circuits. On 6-digit arithmetic ($N=1{,}200$, BF16), IBM Granite 4.2 3B (1.07M-1.33M active non-zeros, $\le 0.036\%$) and Alibaba Qwen 3.5 4B (2.25M-2.39M non-zeros, $\le 0.057\%$) reach 99.17% and 100.00% ALU-prefix accuracy (100% with an FP32 sidecar) and 98%-100% mid-sentence resumption, outperforming 12.8K-sample LoRA (42.2% / 61.7%, 0% inline continuation). A factorized block-sparse sidecar holds A100 memory at 7.89 / 10.65 GiB (4.60 / 8.14 GiB under INT8/INT4 + FP32 sidecar) while passing all 14/14 pre-registered $>2$K-token Tango splits ($N=4{,}392$; 0/11,134 OOD triggers).
Tanmay Sah
arXiv:2611.32954 · cs.AI · Nov 24, 2026
Large language model (LLM) serving engines offload the key/value (KV) cache from GPU memory to host DRAM and SSD so multi-turn and agent requests can reuse prompt prefixes. Capacity then limits service at two levels: external tiers govern prefix reuse before eviction, while the GPU KV pool bounds concurrent long requests, and lossy compression alters KV values and outputs. LoomKV brings lossless KV compression to both external tiers (tier mode) and the GPU pool (pool mode) on an unmodified engine. Using a calibrated per-head two-level 3-bit code over BF16 high bytes (sign and upper seven exponent bits), LoomKV stores BF16 KV at 0.71 of its raw size across nine models and FP8 KV at 0.85-0.87. In tier mode, TileStream writes exact-length records with length readback off the load path, leaving tier storage, eviction, and prefetch unchanged, and decompresses fetched records straight into scattered GPU pages. In pool mode, FragPack packs variable-length records into smaller shared-budget GPU pages read in place by a fused decode-attention kernel faster than FlashAttention-3 on BF16. Built with LMCache and vLLM, LoomKV makes compressed tiers act as 1.4x larger raw tiers on AgentX: across LMCache's LRU cliff, tier mode delivers 2.7-3.6x raw's goodput and 1.9-3.1x lower mean time-to-first-token (TTFT), shifts the cliff identically under other simulated replacement policies, and cuts repeated-prompt TTFT up to 1.7x via SSD-to-DRAM promotion. When tiers hold the working set, pool mode fits 1.31-1.34x as many GPU tokens, admitting 12 long requests with roughly raw's queue and goodput at 8. On an AI IDE trace where both tiers and the GPU pool are constrained, tier and pool modes raise goodput by 1.24x and 1.59x. Where raw capacity suffices, compression costs at most 2.2% throughput; tier mode is bit-exact with raw tiers, and pool mode matches FlashAttention-3's numerical accuracy.
Wentao Zhu, Ziao Sheng +5
arXiv:2610.36589 · cs.AI · Oct 27, 2026
Coding agents are beginning to develop the production-grade AI infrastructure that trains and serves large models, yet existing benchmarks cover only single kernels or single-GPU tasks, and grade with tests and prompts that misjudge both correct and incorrect patches. We introduce InfraDev, a benchmark of 36 tasks built from real-world pull requests to Megatron-LM, vLLM, and verl, covering infrastructure development for training, inference, and reinforcement learning. Each task asks an agent to reimplement a real change that spans many files and must run correctly across many GPUs. To grade such changes, we jointly synthesize hidden probes, which enforce the requirements the original tests leave unchecked, and a prompt that states every interface the probes call without revealing the solution. We also design a shared execution environment that reuses dependencies and artifacts across tasks, cutting storage by 52-57% and build time by 13-14% on Megatron-LM and vLLM. Across six frontier models, the best resolves only 38.9% of the tasks; the probes reject 32% of the submissions that pass every official test, and with the original pull request descriptions as prompts, no model resolves a single task. Failure analysis shows that structural and state errors dominate and that agents' own tests rarely check memory, time, or traffic. Turning these findings into an agent skill raises the resolved rate of a frontier model on the Megatron-LM tasks by 10.5%.
Yangshen Deng, Jiaqi Ruan +4
arXiv:2610.34422 · cs.SE · Oct 25, 2026
A coding agent can migrate a machine learning workload, report success, and still change how the model trains. Rising compute costs, limited accelerator capacity, and vendor dependence are pushing organizations toward alternatives to graphics processing units (GPUs); a key question is whether agent-generated migrations to tensor processing units (TPUs) can be trusted and at what cost. We build a dataset of 148 PyTorch ML research projects and use Claude Code to migrate ten of them from NVIDIA GPUs to Google Cloud TPUs. We independently assess whether each migration runs, preserves numerical behavior, executes on the intended hardware, maintains the project's goal, and delivers acceptable performance. We also examine failures, human effort, and costs. Eight projects meet our project-goal criterion, and migrations require 2.4 human interventions on average. Of 70 execution attempts, 53 fail (76%), and 26 of these failures (49%) raise no error. The most frequent cause is repeated compilation and other execution inefficiencies, while interactions with third-party libraries can silently change the computation: in one four-chip migration, the agent reports success despite a change in gradient clipping that reduces accuracy from 86.53% to 84.89%. Execution costs vary widely: in one workload, TorchTPU, a PyTorch execution backend for TPUs, trains 1.86 times faster and 25% cheaper per run than the GPU. For practitioners, these findings motivate independent reference runs, verification under the intended hardware configuration, and workload-specific acceptance and stopping criteria that account for both computational and human costs.
Hui Sun, Anderson Uchôa +1