arXiv:2609.04476cs.AISep 2026

Manuscript Offprint

arXiv:2609.04476

PerfReasoning: How Well Do LLMs Reason on Hardware Performance?

Dan Zhao, Karthikeyan Sankaralingam, Christos Kozyrakis, Qijing Huang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Performance modeling is central to hardware design and software optimization, yet constructing these models requires structured reasoning about computation, data reuse, storage, and movement. We introduce PERFREASONING, a benchmark that evaluates LLMs both as direct performance reasoners and as generators of analytical performance-model code. Given workload, architecture, and mapping specifications, models compare mappings and predict off-chip traffic and buffer requirements. The strongest closed-source models exceed 90% on reasoning-based Q&A, and the best open-weight model reaches 82.4%. However, model construction is substantially harder: while GPT-5.6 Sol exceeds 80% pass rate, all other model configurations average below 15% and vary markedly across runs. Task-specific RL raises a 4B model's mapping-reasoning accuracy by 15.7 points, whereas feedback-free multi-round self-revision prompting is not reliably effective. PERFREASONING exposes the gap between plausible architectural reasoning and reliable performance-model construction. We will publicly release the benchmark to support reproducible evaluation and track future progress.

1 Introduction

Performance models guide hardware design and software optimization before expensive simulation or implementation Chen et al. [2018], Zheng et al. [2020], Parashar et al. [2019]. Given a workload, an architecture, and a mapping, an analytical model estimates quantities such as memory traffic, storage utilization, execution time, energy, and cost. These models are typically developed manually by domain experts Gober et al. [2022], Binkert et al. [2011], Lowe-Power et al. [2020], Kim et al. [2016], Jung et al. [2015], Won et al. [2023], Raj et al. [2025], Parashar et al. [2019], Wilton and Jouppi [1996], Muralimanohar et al. [2007]. Learned predictors reduce manual effort, but require trusted data and may generalize poorly outside their training distribution Renda et al. [2020], Kumar et al. [2021].

Frontier LLMs offer two complementary paths: reasoning directly about a design's performance, or generating analytical performance-model code from specifications. Both require the model to connect tiling, loop order, and tensor placement to parallelism, reuse, storage, and traffic, then relate those demands to compute, memory, and interconnect constraints. Errors can silently steer an optimization loop toward poor decisions, especially when measurements are unavailable. We therefore ask: Can LLMs reliably reason about performance and build analytical performance models?

We answer this question with PERFREASONING, which couples reasoning-based Q&A with execution-based evaluation of generated models. This paired design separates performance understanding from the ability to turn that understanding into quantitatively reliable code. Across recent open-weight and closed-source models, we find strong comparative reasoning but a large and unstable gap in model construction. Moreover, code-induced mapping rankings closely match direct LLM comparisons on average, showing that generated programs can preserve useful ordinal signal even when their absolute predictions are wrong.

Preprint.

Figure

Figure 1: PERFREASONING evaluates LLMs as direct performance reasoners and as generators of analytical performance-model code.

Prior AI benchmarks span systems code generation Ouyang et al. [2025], Wen et al. [2025], Wang et al. [2026b], Lin et al. [2026], HLS and RTL Abi-Karam and Hao [2025], Khan et al. [2026], Liu et al. [2023], Lu et al. [2023], Liu et al. [2025], Pinckney et al. [2025], and chip and physical design Yu et al. [2026], Li et al. [2026]; ArchEval evaluates broader tool-using architecture agents Wang et al. [2026a]. Meanwhile, learning-based design-space exploration and emerging AI-architect flows depend on trusted evaluators to score candidate designs Krishnan et al. [2023], Samajdar et al. [2021], Architecture 2.0 Contributors [2026], Sankaralingam [2026]. PERFREASONING complements these efforts by isolating performance reasoning and analytical performance-model construction.

References (52)