# LazyWeights: Decode-on-Demand Edge LLMs

LazyWeights decodes compressed weights on demand so edge devices run larger LLMs faster

Arnab Sanyal, Gourav Datta, Sandeep P. Chinchali · arXiv · 2026-11-12

- **Problem** Fixed-width quantized formats spend equal bits on every weight code, so each token reads more bytes than needed. Software decoding of compressed weights runs too slowly to save time on edge devices.
- **Method** LazyWeights tunes GPTQ so the integer codes compress, then Huffman-codes them. A small decoder unit between DRAM and L2 expands them at DRAM rate, so GPU kernels run unchanged.
- **Results** On a Jetson Orin Nano Super, the decoder unit cuts time per token by 10 to 36% against llama.cpp at the same perplexity budget. Coded files are 5.7 to 31.4% smaller than the best llama.cpp format.

![Figure 3: (a) Bundle layout: a64×256tile of 4-bit codes is 32 lanes of two rows; each lane is one Huffman stream of 32-bit words (code boundaries illustrative)…](https://refivu.com/papers/e6b6c3c4-1bd3-46cf-8fce-73c9b9bbe83d/figures/figure-5bb15914309074b00c006e69c2c99a95.png?thumb=512)

**Fig. 3** . (a) Bundle layout: a64×256tile of 4-bit codes is 32 lanes of two rows; each lane is one Huffman stream of 32-bit words (code boundaries illustrative); the lanes’ words are interleaved, so one aligned read fetches the next word of every lane, and per-tile lane offsets let any tile start independently; two 4-bit codes form one 8-bit pair symbol. (b) Decode unit between the memory controller and L2 (as in Fig. 1):Tengines of 32 lanes sharing an 8-word read port through a masked round-robin arbiter; a lane compares an 11-bit peek against per-length limits (no 2048-entry table), adds the length’s offset to index the symbol table, and shifts its buffer by the length.

[Original paper](https://arxiv.org/abs/2611.17108v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Arnab Sanyal, Gourav Datta, Sandeep P. Chinchali · LazyWeights: Decode-on-Demand Edge LLMs · Original paper figure · Extracted the figure area from page 4 of the original PDF.

## Why edge decoding is set by weight bytes

Each token runs one GEMV per weight matrix, so the weight bytes set the pace of every token on an edge device. Equation (1) splits a weight pass into a bandwidth term and an arithmetic term, plus a storage term when the model does not fit. Fewer bytes help only while the bandwidth term dominates, and the storage term takes over once the model stops fitting.

On the Orin Nano Super, the fixed-width kernels use 40 to 64% of the bandwidth, so their time follows the byte count.

A smaller coded file cuts the bytes, but decoding work can cost more time than those saved bytes are worth. Software decoders fall 15 to 20 times short of the DRAM rate on an Orin Nano Super. That shortfall makes a token 2.5 to 3.2 times slower than the same codes at fixed width. On the Nano, software Huffman decoding takes 54 to 69% of a token, while the arithmetic time tracks fp32 work.

Weights are bell-shaped, so the inner codes of a 4-bit alphabet dominate and its entropy sits well below 4 bits. At high resolution, the code entropy is roughly the differential entropy of the weights minus log2 of the quantizer step. Scaling the step by c saves about log2 c bits per weight, which is 0.32 at ×1.25 and 0.58 at ×1.5. At 4 bits the measured saving is smaller, at 0.19 to 0.20 b/w on Phi-3 for ×1.25.

A coded file therefore helps only when its codes can expand at DRAM rate every token. LazyWeights places the decoder in a small unit between DRAM and L2, where the bytes are counted. On the Nano, with 4 GB of memory and 22.5 GB/s measured bandwidth, instructions and capacity bound the token instead.

## Shaping the codes before they are coded

LazyWeights lets the quantizer know its codes will be entropy-coded, so it can pick codes that compress. The method keeps each format's blocks, scales and alphabet, so the files still load in unmodified llama.cpp. Only the choice of integer codes changes, and GPTQ serves as the base for that choice.

For weights of density p(w) quantized at step Δ, the code entropy sits near h(w) minus log2 Δ at high resolution. Scaling the step by c saves about log2 c bits per weight, which is 0.32 at c = 1.25 and 0.58 at c = 1.5. At 4 bits the measured saving is smaller: 0.19 to 0.20 b/w at c = 1.25 on Phi-3 and 0.46 at c = 1.5 on Mistral.

![Figure 2: Code selection (histograms illustrative).LazyWeightskeeps the format but shares one step per super-block (γ) and widens it (c), so the codes concentr…](https://refivu.com/papers/e6b6c3c4-1bd3-46cf-8fce-73c9b9bbe83d/figures/figure-ef2a7fb2ac956d67f0f946fb0dad5589.png?thumb=512)

**Fig. 2** . Code selection (histograms illustrative).LazyWeightskeeps the format but shares one step per super-block (γ) and widens it (c), so the codes concentrate; GPTQ feeds each column’s error to the remaining columns, so the coarser grid keeps its quality.

[Original paper](https://arxiv.org/abs/2611.17108v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Shared sub-block steps bound each sub-block's range from below by γ times the largest range in its 256-weight super-block. At γ = 0 the fit reduces to llama.cpp's, while at γ = 1 the super-block shares one step and its codes concentrate. The fitted step is then scaled by c from {1, 1.25, 1.5}, chosen per point, and GPTQ's error feedback absorbs the error of the coarser grid.

Each column's choice minimizes the Hessian-weighted error plus λ times the code length, and every point uses λ = 0.

A search over settings minimizes coded bits per weight while the WikiText-2 perplexity increase stays within ε. The budgets are ε = 1% near-lossless and 3.5% as a small, usable loss. Calibration uses 128 sequences of 512 tokens from C4, and the best settings differ from point to point. Round-to-nearest reaches up to +12.1% on the coarse points at the same bits, so GPTQ feedback is needed there.

Setting γ to 0 lowers perplexity on those points, but every point then costs 9 to 12% more bits. Huffman coding alone adds 6.2 to 20.7% over the fixed-width twin. Together, the coded files end up 5.7 to 31.4% smaller than the best llama.cpp format within the same budget.

## A Huffman bundle and a decoder on the memory path

Huffman decoding is sequential, because each code's start depends on the code before it, so the bundle is built to break that dependency. In 4-bit formats two codes form one 8-bit pair symbol, so each decode step yields two weights.

The decode unit sits between the memory controller and L2, so DRAM moves only coded weights and the GPU kernel receives fixed-width codes. The lane's compare-and-shift logic closes 1 GHz, while a 2048-entry lookup table per lane is 9 times larger and misses that clock.

To keep pace with DRAM, the unit must decode \\(\\theta^\\ast = 8\\beta/(bc)\\) weights per second, where b c is the coded bits per weight and β is the DRAM bandwidth. At 102 GB/s that rate runs from 151 to 229 G weights per second over the six operating points. Four engines of 32 lanes, 0.206 mm2 in total, cover five of the six points, while SmolLM ≤1% needs five engines at 0.258 mm2 because its 5- and 6-bit codes decode one at a time.

The SystemVerilog RTL matched that model bit- and cycle-exact on 29 of 29 matrices in five configurations. The runtime keeps a fixed-width twin with the same codes but no entropy coding, plus the coded bundle decoded inside the GEMV kernels as a software reference. A fixed-order reduction across tile columns makes the two bit-identical, and each pass shape runs as a CUDA graph with bit-identical logits on all 14 bundles.

## Orin Nano Super latency and energy

LazyWeights takes the fixed-width twin's measured time as the unit's time, which is a conservative choice. Fewer DRAM bytes could also shorten each token, so the twin time overstates what the unit costs. Energy subtracts the DRAM energy saved per pass and adds the decoder's energy, scaled by the weight passes per token. The formula is E\_hw = E\_twin − k(e\_DRAM ΔS − E\_dec,pass), where k counts the weight passes per token.

On the Orin, the DRAM energy slope is 90.5 pJ/byte, the input-power slope of a streaming read minus the same read from L2.

Greedy decoding runs one weight pass per token, and every greedy point beat the budget baseline. Across the points, the unit cut time per token by 10 to 36% and energy by 9 to 38% against llama.cpp. Mistral-7B at the 1% budget is the clearest case, with time per token falling from 83.3 ms to 53.0 ms. Energy for that same point dropped from 1784 mJ to 1107 mJ per token.

The decoder costs 3 to 13 mJ per token, against 5 to 61 mJ of DRAM energy saved. With always-on engines at twice the power, greedy energy still drops 6 to 36%.

Prompt-lookup speculation drafts up to 7 tokens from an n-gram table, with no drafter model. Against llama.cpp with speculation, every point ran 29 to 54% faster and used 21 to 44% less energy. Speculation is the largest single step on the Orin, at 1.3 to 2.0 times. Speculation composes with the unit, because it cuts passes per token while the unit cuts bytes per pass.

## Jetson Nano results: resident models and a streamed 7B

On the Nano, the kernels are bound by instructions and capacity rather than bandwidth. Software Huffman decoding takes 54 to 69% of a token on this device, which the unit removes. With the unit, LazyWeights needs 58 to 64% less time and 53 to 57% less energy per token than llama.cpp on the CPU, greedy. With speculation, the reductions grow to 70 to 76% in time and 69 to 76% in energy.

Software decoding is 2.2 to 3.2 times slower than the twin, so the unit makes the coded path competitive. Software decoding beats the CPU only on Phi-3 and on SmolLM at ≤3.5%, by 9 to 20%. It loses on SmolLM at ≤1%, whose 5/6-bit codes decode one at a time. Most of the gain comes from the GPU kernels, as Table I predicts for an instruction-bound device.

Energy with the unit stays within ±0.03 J of the measured twin energy.

Mistral-7B doesn't fit the Nano as a resident model, so it streams from USB 3 at a 2560 MB resident budget. At ≤1%, LazyWeights runs 6.6 times faster than llama.cpp at 4.5 times less energy, even when decoding in software. Table IV puts llama.cpp at 22.6 s and 71.2 J per token, against 3.40 s and 15.8 J for the software GPU row. At ≤3.5%, llama.cpp wins greedy time narrowly because its 3.28 GB IQ3 M file stays in the reclaimable page cache.

Our bundle at 3.18 GB is smaller, but the cache can't hold its streamed matrices beside the pinned weights.

A pass costs about 1.0 s of compute, so accepted tokens per pass set the speculation gain. A USB 3 stick at 317 MB/s, instead of the SD card at 70 MB/s, cuts software-decoding token time 2.1 to 2.7 times.

## Huffman against rANS at equal throughput

Huffman wins on rate, because rANS is never smaller and needs 0.0 to 1.0% more bits. Huffman already lands within 1.2 to 2.1% of the entropy. rANS carries 32 bits of state per lane stream, plus padding, which adds to its size.

The hardware comparison holds throughput equal at 2 G weights per second. With pair symbols at 270 MHz, rANS needs 4.0× the area of Huffman. With single codes at 645 MHz, the ratio drops to 1.15×. The rANS state update must run a symbol search, pick a table, and multiply 13×20 bits in one cycle. Huffman's lane needs only a compare and a shift instead.

Table V puts a comparator lane at 1,566 µm² in ASAP7 at 1 GHz. The paper calls a 2048-entry table lane 9× larger, at 14,076 µm². An engine of 32 comparator lanes and the arbiter takes 51,550 µm², which matches the 0.05 mm² per engine in the contributions.

The authors didn't evaluate interleaving several rANS states per lane. That change could relax the rANS recurrence, but this paper leaves it untested. On the two measures they tested, Huffman beats rANS in rate and in area at equal throughput.

## What the reported numbers do not yet establish

The ZCU102 prototype closes timing for four engines at 112.5 MHz, not at the 1 GHz that the ASIC unit targets. The energy estimate rests on DRAM energy slopes of 90.5 pJ/byte on the Orin and 34.9 pJ/byte on the Nano. It also uses synthesized engine power with a 2× margin, bounded by clock-gated versus always-on engines.

For streamed Mistral-7B, the twin isn't a proxy for the unit, because it streams the fixed-width bytes. The twin moves 1.05 GB per token at a 2560 MB budget, compared to 0.68 GB and 0.26 GB for the coded models at ≤1% and ≤3.5%. At a 2048 MB budget read from the SD card, the streamed run was 1.2 to 1.8 times slower than software decoding.

So the authors don't report the unit's streaming time, and they give only the coded-byte read cost of 2.2 and 0.8 s per token from USB.

The study covers Phi-3-mini, Mistral-7B and SmolLM-1.7B, so it says nothing about other model families. The authors didn't evaluate Llama-3 or Qwen3, which the cited study reports as quantizing worse. Long contexts aren't tested either, and at 4K tokens the uncoded fp16 KV cache dilutes the saving. At 4K tokens, Mistral-7B needs 0.54 GB per pass, against 3.5 GB of weights.

The Nano baseline is current llama.cpp cross-compiled for the 4-core CPU, because its CUDA backend doesn't build on CUDA 10.2. Releases that predate the I-quants (IQ4 XS, IQ3 M) would have been the baselines for several comparisons. The fixed-width twin isolates the unit's share with identical kernels. They didn't test MLC-LLM or TensorRT-LLM, which alter only the kernel share.

## Paper info

- **Authors**: Arnab Sanyal, Gourav Datta, Sandeep P. Chinchali
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-12
- **Added**: 2026-11-14
- **Updated**: 2026-11-12
- **Version**: v1
- **arXiv**: 2611.17108
- **Category**: cs.LG · cs.AR · cs.CL · cs.IT
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.17108v1) · [PDF ↗](https://arxiv.org/pdf/2611.17108v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Memory decides which LLMs an edge device runs, and how fast: capacity on a $4$ GB Jetson Nano, bandwidth on an $8$ GB Jetson Orin Nano Super. Deployed formats (GPTQ, AWQ, $\\texttt{llama.cpp}$'s K- and I-quants) spend equal bits on every integer code of a matrix, although the codes are far from uniform. $\\texttt{LazyWeights}$ keeps these formats but tunes GPTQ so the codes compress, Huffman-codes them losslessly in interleaved lanes, and decodes them on demand in a small unit between DRAM and L2, so GPU kernels run unchanged and DRAM moves only coded bytes. At $1\\%$ and $3.5\\%$ perplexity budgets, coded Phi-3-mini, Mistral-7B and SmolLM-1.7B are $5.7-31.4\\%$ smaller than the best $\\texttt{llama.cpp}$ format. A bit-exact $0.21$ mm$^2$ ASIC decoder unit ($1$ GHz, $7$ nm) cuts Orin latency and energy per token by up to $36\\%$ and $38\\%$ ($54\\%$ and $44\\%$ with prompt-lookup speculation). On the Nano, $\\texttt{LazyWeights}$ needs $58-64\\%$ less time and $53-57\\%$ less energy per token than CPU $\\texttt{llama.cpp}$, and runs a streamed Mistral-7B 6.6$\\times$ faster at $3.89$ bits per weight. A Huffman decoder beats an rANS decoder in rate and area at equal throughput; the ASIC decoder unit runs bit-exact on a Zynq UltraScale+ FPGA (AMD ZCU102).

## Quote from the paper

Arnab Sanyal, Gourav Datta, Sandeep P. Chinchali (2026). LazyWeights: Decode-on-Demand Edge LLMs. arXiv:2611.17108v1. https://arxiv.org/abs/2611.17108v1

**BibTeX**

```
@misc{sanyal2026lazyweights,
  title = {{LazyWeights: Decode-on-Demand Edge LLMs}},
  author = {Arnab Sanyal and Gourav Datta and Sandeep P. Chinchali},
  year = {2026},
  eprint = {2611.17108},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.17108v1}
}
```

## Other paper commentary

- [CapLite: Prompt-Injection Defense for Small Language Model Agents without Model-Written Security Artifacts](https://refivu.com/en/papers/960c67c8-5daf-4bf3-b6e9-64d4b7a65f38-caplite-prompt-injection-defense-for-small-language-model.md)
- [DiFiT: Distribution-Fidelity-guided Visual Token Pruning for Multimodal Large Language Models](https://refivu.com/en/papers/ded3d71e-2778-4155-b22f-1de96026dbd7-difit-distribution-fidelity-guided-visual-token-pruning-for.md)
- [Mind the Accuracy-Approval Gap: How Users Evaluate Sycophantic AI in Everyday Tasks](https://refivu.com/en/papers/d62f0b2a-4b25-4637-8d3b-cd531c6a07d1-mind-the-accuracy-approval-gap-how-users-evaluate.md)
- [Pretraining Data Statistics Shape the Phases of Learning Entity Comparison in Language Models](https://refivu.com/en/papers/d3386662-50ed-4e67-b429-1af214567cba-pretraining-data-statistics-shape-the-phases-of-learning.md)
- [Shortcuts or Memorisation? Revisiting Data Corruption in Natural Language Understanding with Large Language Models](https://refivu.com/en/papers/47df16a6-990c-4da2-8525-44fedd241d7b-shortcuts-or-memorisation-revisiting-data-corruption-in.md)
- [Detection Is Not Early Warning: Evaluating Token-Level Alarms on Language Model Failures](https://refivu.com/en/papers/a122ecba-1df3-4dbc-8d8e-5a9f7551225f-detection-is-not-early-warning-evaluating-token-level.md)
- [Beyond Word Error Rate: A Failure Taxonomy of Streaming Dictation ASR](https://refivu.com/en/papers/e8fb5a0c-b402-4b49-ba80-da8b68fe6fd6-beyond-word-error-rate-a-failure-taxonomy-of.md)
- [Auditing AI peer reviewers: a benchmark on real scientific papers](https://refivu.com/en/papers/c598dfe3-b1f5-4167-8e48-4616d3618025-auditing-ai-peer-reviewers-a-benchmark-on-real.md)
- [Joint Null-Space Projection for Data-Free Model Merging](https://refivu.com/en/papers/f9691bb7-ed21-4090-a4f1-370598491e09-joint-null-space-projection-for-data-free-model.md)
- [Can MLLMs Reason over Surround-View Driving Videos? A Multi-View Autonomous Driving QA Benchmark](https://refivu.com/en/papers/4b8d9089-87de-4543-b218-764bfa6f9850-can-mllms-reason-over-surround-view-driving-videos.md)
- [Where is My Mug? Training-Free Framework for Personalized Image Segmentation](https://refivu.com/en/papers/0286e0e9-1ea4-424a-aa68-549360c643fc-where-is-my-mug-training-free-framework-for.md)
- [The Neighbour's Label: Opposite Subgroup Effects of Same-Dialogue Exposure in Next-Act Evaluation](https://refivu.com/en/papers/c48d4fb9-6b58-4535-adf3-ac3ff1fd009d-the-neighbour-s-label-opposite-subgroup-effects-of.md)

## Terms in this paper

- [GSM8K](https://refivu.com/en/terms/e48f0e01064d-gsm8k)
- [GPTQ](https://refivu.com/en/terms/9c1044f95540-gptq)
- [llama.cpp](https://refivu.com/en/terms/db9004128697-llama-cpp)
- [Mistral-7B](https://refivu.com/en/terms/b89deef91181-mistral-7b)
- [round-to-nearest](https://refivu.com/en/terms/acec328f7d28-round-to-nearest)
- [RANS](https://refivu.com/en/terms/2cac95ed2a1b-rans)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/e6b6c3c4-1bd3-46cf-8fce-73c9b9bbe83d-lazyweights-decode-on-demand-edge-llms)
