Accelerating the Inference Era with AI-Driven, Globally Optimized HW/SW Co-Design

Miria Feng, Fangzhao Zhang, Adrian Gamarra Lafuente, Mert Pilanci, Azalia MirhoseiniNeurIPS 2026

TL;DR

Designing custom AI chips and the software schedules that run on them involves navigating a search space larger than the number of atoms in the universe ($\mathcal{O}(10^{2300})$)—a puzzle usually tackled with clumsy, step-by-step guesswork. CHEETAH throws out that sequential playbook, unifying hardware sizing and software scheduling into a single, massive linear program guided by an LLM "Architect." In under six hours, it designs custom accelerators that run LLM workloads up to $24\times$ faster than a baseline TPU-v3.

What Problem Does This Paper Address?

AI inference demand is projected to grow $10,000\times$ over the next five years, and general-purpose chips can't keep up. Custom silicon is the answer, but co-designing hardware and software is a logistical nightmare. You have to simultaneously decide how big to make your compute units and memory banks, how to slice up matrices (tiling), which operations to merge (fusion), what data stays on-chip versus going out to slow DRAM (placement), and when it’s cheaper to just recalculate a value from scratch rather than reload it (rematerialization).

Because all these choices compete for the same chip area, power, and memory bandwidth, the joint design space exceeds $\mathcal{O}(10^{2300})$ configurations. To stay sane, existing tools split the problem into sequential stages: pick a hardware layout first, find the fastest tiles for each isolated operation second, and figure out memory fusion last.

The catch? Locally optimal choices routinely cause globally terrible schedules. If an isolated operation greedily picks a fast tile that hogs all the on-chip SRAM, it forces a neighboring tensor out to slow off-chip DRAM, tanking overall speed. Because sequential pipelines lock in decisions stage by stage, they are blind to these cross-stage trade-offs.

Figure 1: Heuristics-based sequential design versus our unified optimization paradigm. (Left) Baseline methods make the problem tractable by decoupling the stages of HW/SW optimization, precluding cross-stage trade-offs. (Right) CHEETAH presents a unified master linear program that jointly optimizes tiling, placement, and more while learning from a causal ledger.

Methods

Instead of adding band-aids to sequential pipelines, CHEETAH unifies hardware sizing, tiling, fusion, time-indexed memory placement, and rematerialization into one giant master Linear Program (LP).

Key innovations that make this tractable include:

  • Linearizing the Nonlinear: Interactions like "does tile choice $X$ save memory traffic given residency state $Y$?" involve multiplying variables together. The authors use McCormick envelopes—a mathematical technique to wrap bilinear products in tight linear inequalities—keeping the master formulation solvable as an LP while remaining exact when choices are binary.
  • Pareto Pruning & Custom Scale-Out Solving: A pre-pass discards strictly dominated tile options upfront so the solver never calls slow external mappers mid-search. Even then, the LP for a 13B-parameter LLM spans 10.1 million columns and 18.3 million rows (1.48 PB if stored densely!). Off-the-shelf solvers choke on this, so the authors use a custom branch-and-bound solver (OCS) that outputs mathematically certified lower bounds, followed by an integral recovery step that converts continuous relaxations into valid, discrete chip blueprints.
  • The LLM Architect Outer Loop: Rather than brute-forcing outer hardware search, an LLM reads natural-language deployment profiles (e.g., "overnight batch throughput" vs. "low-latency streaming") alongside Lagrangian duals (mathematical shadow prices from the LP showing exactly which hardware resource is bottlenecking performance) to propose smart search neighborhoods.
  • Strict Physical Auditing: Every proposed design must survive five audit tiers, including six pre-RTL physical feasibility gates (checking reticle area $\le 600\text{ mm}^2$, power density $\le 2.0\text{ W/mm}^2$, pin counts, and SRAM macro limits) so the optimizer can't hallucinate physically impossible silicon.

Datasets

Because this is an accelerator architecture paper, CHEETAH is evaluated across 12 neural network workloads rather than training datasets:

  • Vision & Diffusion: EfficientNet (B1 through B7) and Stable Diffusion 1.5 UNet.
  • Dense & Mixture-of-Experts (MoE) LLMs: Llama-1 (13B, 65B), Llama-3 70B, and DeepSeek-V3.
  • Evaluation Input: To bind real routing behavior for DeepSeek-V3's MoE layers, the authors evaluate autoregressive decoding on thirty-two 4,096-token Wikitext-2 prompts (decoded for 512 tokens). No new datasets are introduced.

Key Insights and Ideas

  • Slower pieces make faster wholes: CHEETAH mathematically proves that prior sequential pipelines live inside its relaxation space—and empirically shows instances where picking a locally slower tile leaves just enough SRAM to avoid a DRAM round-trip, speeding up global inference.
  • Static memory pinning breaks on modern models: Traditional "static" pipelines (which pin tensors to fixed memory tiers for the whole run) completely fail to find any feasible layout on SD1.5 UNet, Llama-3 70B, and DeepSeek-V3. Time-indexed dynamic residency isn't just an optimization at this scale; it's a necessity.
  • Dense vs. MoE models crave fundamentally different silicon: Dense Llamas are starved for bandwidth—gaining most of their speedup from off-chip DRAM and on-chip delivery bandwidth. Conversely, DeepSeek-V3 (where a batch of 32 tokens wakes up ~163 of 256 experts) gets 64.6% of its gains from smart temporal placement and deep memory capacity to keep active experts and KV caches resident.
  • Math holds the guardrails, not the LLM: The LLM Architect never certifies correctness or physics; all physical constraints live strictly inside the inner LP and deterministic validators. The LLM simply acts as an intuitive navigator reading shadow prices.

Key Results

CHEETAH speedup across vision, diffusion, and LLM workloads compared to a naive TPU-v3 baseline.

Figure 2: Speedup over the naive TPU-v3 baseline, for EfficientNet, SD1.5 UNet and LLM workloads. Vision workloads compare naive TPU-v3, static and CHEETAH. LLMs add separate CHEETAH prefill and decode results. Red crosses mark static infeasibility, since fixed one-level tensor pinning leaves too little placement freedom for a network of this scale and no feasible point is returned.
  • Headline Co-Design Speedups: Over a simulated TPU-v3 baseline, CHEETAH's co-designed chips achieve up to $24.20\times$ speedup on LLM prefill (Llama-1 13B), $17.93\times$ on LLM decode (Llama-3 70B), and $11.85\times$ on vision (EfficientNet-B1). On DeepSeek-V3, it hits $10.35\times$ (prefill) and $7.82\times$ (decode).
  • Software-Only Gains on Fixed Hardware: Even without changing the chip, CHEETAH's unified scheduler speeds up workloads by $1.50\times\text{–}2.51\times$ on a fixed TPU-v3 and up to $31.39\times$ on a compact NPU.
  • Search Efficiency & Tight Certificates: CHEETAH explores DeepSeek-V3 in 2.17 hours (and under 6 hours across the suite), closing its massive 1,557-branch continuous LP to a certified 0.07% optimality gap. Meanwhile, the LLM Architect slashes invalid trial proposals from 24.5% down to 5.9%.

Limitations and Future Work

  • Analytical Models vs. Real Silicon: All headline speedups come from analytical cost models (supplemented by select RTL/synthesis checks), not fabricated chips with full physical timing and place-and-route sign-off. For instance, aggregate network-on-chip (NoC) and SRAM bank proxies do not guarantee zero routing congestion.
  • Continuous-to-Discrete Gap: While the continuous LP relaxation is solved to a 0.07% gap on DeepSeek-V3 (~947k ms), rounding those fractional choices into an executable, discrete chip and serial schedule jumps latency to ~2.72M ms. Proving global discrete optimality remains an open mathematical challenge.
  • LLM vs. Rule-Based Heuristics: The authors candidly note they haven't proven the LLM Architect beats a clever hand-crafted rule controller fed the exact same Lagrangian duals—framing the LLM strictly as a convenient outer-loop guide rather than an optimization oracle.

Summary updated

Abstract

Deep learning inference demand is projected to grow $10{,}000\times$ over the next five years, a trajectory that general-purpose accelerators cannot match. Custom accelerators offer a path forward, but designing them requires co-optimizing hardware datapaths and software schedules across a search space exceeding $\mathcal O(10^{2300})$. Existing methodologies rely on decoupled, heuristics-driven pipelines that miss critical cross-stage trade-offs. We introduce CHEETAH: a globally optimized, AI-driven framework for inference accelerator co-design, and the first to combine joint tiling-fusion, dynamic placement, rematerialization, and hardware decisions in a single linear program (LP). Key contributions include: (i) time-indexed joint optimization variables via McCormick linearization, (ii) Pareto-pruned optimal tiling selection, and (iii) hardware decision variables with pre-RTL feasibility constraints strictly enforced. An LLM Architect outer loop steers the inner optimization formulation through causal interventions based on deployment profiles and Lagrangian sensitivity signals. In under 6 hours, CHEETAH discovers Pareto-frontier designs across $12$ workloads spanning CNNs, diffusion, dense and mixture-of-experts LLMs, reaching up to $\sim24.20\times$ on LLM prefill, and $\sim17.93\times$ on LLM decode over a simulated TPU-v3 baseline, thus unlocking efficiency previously inaccessible to sequential pipelines.
BibTeX
@inproceedings{feng2026accelerating,
  author = {Miria Feng and Fangzhao Zhang and Adrian Gamarra Lafuente and Mert Pilanci and Azalia Mirhoseini},
  title = {{Accelerating the Inference Era with AI-Driven, Globally Optimized HW/SW Co-Design}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=AjGASENFly},
}
Figure