Dancing in Fetters: Pareto-Optimal On-Device LLMs via Hardware Co-Design

Luoyang Sun, Jiwen Jiang, Yifeng Ding, Fengfa Li, Yan Song, Haifeng Zhang, Lei Ren, Kun Zhan, Chen Wei, Xie Yan, Jun Wang, Cheng DengNeurIPS 2026

TL;DR

Deploying Large Language Models (LLMs) on edge devices—like autonomous cars or mobile robots—usually means taking a model built for massive cloud servers and awkwardly cramming it onto a tiny chip. PLAS flips this script by mathematically modeling both how smart an LLM will be and how fast it will run before training it. The result? Custom, hardware-tailored models that run just as fast as popular compact LLMs like Qwen2.5-0.5B, while being nearly 20% more accurate.

What Problem Does This Paper Address?

Modern robotics and embodied AI rely on LLMs to reason and plan, which requires split-second, real-time responses on local hardware. However, standard Transformers were born in the cloud, where memory bandwidth and power are plentiful.

On an edge device, Transformers behave erratically. During inference, some parts of the model are bottlenecked by raw math speed (compute-bound), while others are stuck waiting for data to move from memory to the processor (memory-bandwidth bound). Tweaking a model's depth or width can suddenly push an operation over a hardware cliff, tanking efficiency. Previously, finding the sweet spot between accuracy and speed required Neural Architecture Search (NAS)—training or profiling thousands of models by brute force, which is prohibitively expensive and has to be redone for every new chip.

Methods

To let LLMs "dance in fetters" (perform gracefully under strict constraints), the authors introduce PLAS (Pareto-optimal LLM Architecture Search). Instead of guessing and checking, PLAS uses two fast analytical surrogate models to map out the Pareto frontier—the curve of optimal designs where you cannot make a model smarter without making it slower, and vice versa.

Figure 1: Overview of PLAS, a deployment-oriented framework for Pareto-optimal on-device LLM architecture exploration under hardware constraints.
  1. Architecture-to-Loss Modeling (The Brains): Rather than relying on traditional scaling laws that just count total parameters, the authors trained 170 diverse dense and Mixture-of-Experts (MoE) models on 10 billion tokens each. From this, they fitted an empirical power-law equation that predicts a model's validation loss directly from five structural choices: depth, width, KV-cache size, feedforward expansion ratio, and MoE expert activation rate.
  2. Roofline Latency Modeling (The Brawn): To predict speed without running the hardware, they use roofline analysis—a classic computer architecture model that calculates whether a given operation will be bottlenecked by chip compute (FLOPS) or memory bandwidth (Bytes/s). By summing operator estimates across the prompt-processing (prefill) and token-generation (decode) stages, PLAS predicts end-to-end latency.
  3. Three-Stage Funnel: PLAS analytically screens over 100,000 architectures in minutes, profiles the surviving Pareto-optimal candidates on actual edge hardware (via vLLM) to get ground-truth speeds, and finally trains only the winning designs.

Datasets

For evaluation, the authors measure language modeling quality using WikiText-2 perplexity. Each of the 170 calibration models (and the final case-study models) was trained on a fixed 10-billion-token budget using an identical data mixture and optimization recipe, though the specific name of the pre-training corpus is not discussed in the main text (deferred to Appendix B). Alongside their models, the authors also contribute an extensive empirical benchmark of 1,942 LLM architectures latency-profiled on an NVIDIA Jetson AGX Orin 64GB.

Key Insights and Ideas

  • Wide-and-Shallow Beats Deep-and-Narrow: Cloud LLMs tend to be deep and narrow. Under edge hardware constraints, PLAS reveals that scaling width reduces loss per millisecond of latency much more efficiently than adding layers, up until width saturates.
  • Sparse MoEs Rule the Edge: Edge devices usually process one user stream at a time (batch size = 1). In this regime, Mixture-of-Experts (MoE) models dominate the Pareto frontier because they pack massive total knowledge capacity while only loading a tiny fraction of weights from memory per token.
  • Workload Dictates Design: There is no single "best" edge architecture. Long-context reading (prefill) is compute-heavy and dislikes splitting tokens across too many MoE experts, whereas interactive chatting (decode) is memory-bound and thrives on huge expert pools with minimal active parameters.
  • Plug-and-Play Hardware Transfer: Because the loss equation is completely independent of hardware, adapting to a brand-new chip (e.g., jumping from NVIDIA Orin to next-gen Blackwell Thor) only requires plugging the new chip's FLOPS and bandwidth specs into the roofline equation—zero model retraining required.

Key Results

Both predictive engines in PLAS proved remarkably accurate: the loss model hit $R^2 = 0.952$ on held-out architectures, and the calibrated roofline latency model achieved $R^2 > 0.99$ (with under 10% error) on the Jetson AGX Orin.

Validation plots showing high accuracy for both the scaling-law loss predictor (left) and roofline latency estimator (right).
  • Screening Speed: PLAS evaluates 50,000+ candidate architectures in just 20 minutes.
  • Beating the State of the Art: When plotting existing popular compact models (including Qwen2.5, Llama-3.2-1B, SmolLM2, and MobileLLM) on the Orin, every single one sat above the PLAS Pareto frontier, leaving accuracy on the table.
  • Head-to-Head Win: In a controlled test matching the exact latency of Qwen2.5-0.5B (~250 ms) and using the exact same training data, the PLAS co-designed architecture achieved 19.42% lower WikiText-2 perplexity (50.88 vs. 63.14).

Limitations and Future Work

The authors are upfront about the boundaries of their framework:

  • Recipe Lock-in: The loss predictor is calibrated for standard/MoE Transformers trained on 10B tokens. Changing the training recipe, token horizon, or shifting to newer paradigms like State Space Models (Mamba) or linear attention requires refitting the loss and latency equations.
  • Blind to Quantization Degradation: While PLAS models how INT8 quantization speeds up latency, its loss equation does not account for the slight accuracy drop quantization can cause.
  • Estimates Aren't Everything: Roofline models are close approximations, not crystal balls—final deployment still requires on-device profiling, and cross-platform projections (like for NVIDIA Thor) remain analytical predictions until benchmarked on silicon.

Summary updated

Abstract

Recent embodied AI systems increasingly rely on large language models (LLMs) for high-level planning, semantic reasoning, and long-horizon decision making. However, deploying such capabilities on edge platforms such as autonomous vehicles and mobile robots requires balancing model quality against strict latency and hardware constraints. Existing LLM architectures are primarily designed for cloud-scale accelerators and often become inefficient in on-device settings. We present $\textbf{PLAS}$ ($\textbf{P}$areto-optimal $\textbf{L}$LM $\textbf{A}$rchitecture $\textbf{S}$earch), a hardware-aware framework for identifying Pareto-optimal on-device LLM architectures under deployment constraints. Our approach jointly models training loss and inference latency as functions of architectural design choices. We fit an empirical architecture-to-loss model from 170 LLMs trained on 10B tokens each, and estimate latency using roofline-based hardware modeling, enabling efficient exploration of the accuracy-latency Pareto frontier without exhaustively training or profiling every candidate architecture. Using PLAS, we evaluate 1942 candidate architectures on NVIDIA Jetson Orin. At the same measured latency as Qwen2.5-0.5B, our co-designed architecture achieves 19.42\% lower WikiText-2 perplexity. Our results suggest that effective edge deployment requires explicit hardware--model co-design, and that Pareto-based architecture modeling provides a practical alternative to exhaustive neural architecture search for on-device LLMs.
BibTeX
@inproceedings{sun2026dancing,
  author = {Luoyang Sun and Jiwen Jiang and Yifeng Ding and Fengfa Li and Yan Song and Haifeng Zhang and Lei Ren and Kun Zhan and Chen Wei and Xie Yan and Jun Wang and Cheng Deng},
  title = {{Dancing in Fetters: Pareto-Optimal On-Device LLMs via Hardware Co-Design}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=bR5Ck67tHh},
}
Figure