# LazyWeights: Decode-on-Demand Edge LLMs

LazyWeights：オンデマンド復号によるエッジLLM

Arnab Sanyal, Gourav Datta, Sandeep P. Chinchali · arXiv · 2026年11月12日

- **課題** エッジ機器では、LLMの重みを固定幅ビットで保存するため、メモリ容量と帯域幅が制約になります。
- **手法** llama.cpp形式を保ったまま、GPTQでコードのエントロピーを低く選び、ロスレスのHuffman束で符号化します。そのうえで、DRAMとL2の間にあるデコードユニットで復元します。
- **結果** Phi-3-mini、Mistral-7B、SmolLM-1.7Bの符号化モデルは、同じパープレキシティ予算で最小のllama.cpp形式より5.7–31.4%小さくなりました。Orin Nano Superでは、デコードユニットを含む貪欲デコーディングで時間が10–36%、エネルギーが9–38%削減されました。

## エッジ機器で重みメモリがボトルネックになる理由

トークンを1つ生成するには、モデルの重みをすべて1回ずつ読み出す必要があります。そのため、エッジ機器では重みファイルのサイズが、モデルが載るかどうかとトークンが出てくる速さの両方を決めます。たとえばJetson Nanoは4 GBの容量が上限で、Jetson Orin Nano Superは8 GBのメモリ帯域幅が上限として作用します。

llama.cppのGGUF形式は、ブロックごとのスケールを持つ固定幅整数形式を提供しています。GPTQやAWQなどの量子化器もこの固定幅形式を目標にしています。これらの形式では、行列のすべてのコードに同じビット数を使います。一方で重みの分布は釣り鐘型なので内側のコードがよく使われ、エントロピーは4ビットより低くなります。そのためコードを圧縮できる余地はありますが、既存研究の多くはソフトウェアで復号するため、DRAMの帯域幅に見合う速さでコードを展開できていませんでした。

この論文では、固定幅形式を捨てずに、その上でコードを圧縮しやすい形に選ぶ問題を扱います。

## エントロピーを下げる量子化の調整

LazyWeightsは、llama.cppのブロック、スケール、アルファベットはそのまま残し、コードの選び方だけを変えます。まず各サブブロックの範囲下限を、同じsuper-block内の最大範囲のγ倍に設定します。これにより、複数のサブブロックが1つのstepを共有します。γ=0はllama.cppの揃え方と同じで、γ=1ではsuper-blockが1つのstepを使うため、コードが実際の重みが集中する領域にまとまります。

![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.

[出典](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 · 論文の図を引用 · 元のPDFの2ページ目から図の部分を抽出しています。

次に、stepを倍率c∈{1, 1.25, 1.5}で大きくします。高解像度近似では、エントロピーH(q)はh(w)−log2 Δと書けるので、stepをc倍すると重み1つあたり約log2 cビットを減らせます。ただし4ビットのような高解像度の仮定から遠い場合、実際の削減は小さくなります。Phi-3では×1.25のときに0.19–0.20 b/w、Mistralでは×1.5のときに0.46 b/wと測定されました。

粗い格子は品質を損なうため、GPTQの列単位の誤差フィードバックで補います。論文は、RTNではこの粗い格子に対応しきれないと報告しています。目的は、式 (3)のように∆PPL≤εという条件のもとでb(f,θ)を最小化する設定を見つけることで、設定はモデルごとに探索します。

## 並列に復号できるHuffman束とDRAM–L2デコードユニット

Huffman復号では、あるコードの開始位置を知るには前のコードを復号する必要があるため、逐次的になります。これを避けるため、行列ごとに1つの正規コードを置き、コード長を11ビット以下に制限します。これにより、11ビットのウィンドウから常にコードを決定できます。64×256のタイルは、2行ずつまとめた32本のlaneストリームに分けられます。laneの32ビットワードはインターリーブされ、1回の整列された読み出しで次のワードを取得します。4ビット形式では、2つのコードを1つの8ビットのペアシンボルにまとめます。

ハードウェアでは、GPUカーネルがビット操作の命令を使う代わりに、メモリコントローラとL2の間にある装置が復号を担当します。DRAMには符号化された重みだけがあり、L2は固定幅のコードを受け取るため、GPUカーネルは変更されません。各laneは11ビットのウィンドウを長さごとの上限と比較してコード長を求め、長さのオフセットでシンボルを探します。その後、バッファをその長さの分だけ移動します。32本のlaneが8ワードの読み出しポートを共有し、エンジン1つは1サイクルあたり31.9シンボルを復号します。

![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.

[出典](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 · 論文の図を引用 · 元のPDFの4ページ目から図の部分を抽出しています。

必要なエンジン数はθ\*=8β/(bc)で決まります。ここでβはDRAM帯域幅、bcは符号化されたビット数です。102 GB/sでは、Orinの4エンジン（0.206 mm²）で5つの地点でθ\*を満たします。

## OrinとNanoでのトークンあたりの遅延とエネルギー

Orin Nano Superでは、llama.cppのCUDAカーネルをベースラインとして、貪欲デコーディングとprompt-lookupによる推測デコーディングをそれぞれ測定しました。貪欲デコーディングでは、デコードユニットを含む実行がベースラインより時間を10–36%、エネルギーを9–38%削減しました。このとき時間には測定したtwinの時間を使っているため、帯域幅がボトルネックになるケースでの改善はこれより大きくなりうると論文は説明しています。エネルギーは、DRAMのバイト削減量からデコーダのエネルギーを引く式 (6)で計算しました。

![Figure 5: (a) Factors from thellama.cppbaseline (greedy) toLazyWeights+ unit with our drafter, one change per step, on a log scale (steps below 1×extend left;…](https://refivu.com/papers/e6b6c3c4-1bd3-46cf-8fce-73c9b9bbe83d/figures/figure-2b1d7196b83e6c4ac5bbe874e93274f5.png?thumb=512)

**Fig. 5** . (a) Factors from thellama.cppbaseline (greedy) toLazyWeights+ unit with our drafter, one change per step, on a log scale (steps below 1×extend left; unit time conservative; product at bar end); top: Orin; bottom: Nano, resident points, where our drafter is a loss (0.73–0.76×). (b) Decode rate. Left: software decoders on the coded operating points; Mistral-7B is streamed on the Nano. Right: area vs rate for 1, 2, 4, 8 and 16 engines of 32 lanes (ASAP7 RVT TT, pre-layout) at the clock each closes; rANS engines share the Huffman arbiter; stars: the sized units. Bands: the rate DRAM delivers, θ∗ = 8β/bc over the operating points; AGX Orin (not tested) at its 204.8 GB/s specification.

[出典](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 · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

常駐モデルでは、デコードユニットを含むLazyWeightsは、CPU上のllama.cppと比べて貪欲デコーディングのトークンあたり時間を58–64%、エネルギーを53–57%削減しました。ソフトウェアによる復号だけを使うと、twinより2.2–3.2倍遅くなるため、CPUに対する利点は一部のモデルにしか残りません。

Mistral-7Bは、Nanoの4 GBメモリには常駐できないため、ストリーミングで評価しました。≤1%の予算では、ソフトウェア復号だけでもllama.cppより6.6倍速く、エネルギーは4.5倍少なくなりました。≤3.5%の予算では、貪欲時間ではllama.cppがわずかに速かった一方、推測デコーディングではLazyWeightsが勝りました。これは、llama.cppのIQ3 Mファイルが再利用可能なページキャッシュにとどまったためです。

## メモリ削減とHuffmanとrANSの比較

同じパープレキシティ予算では、LazyWeightsの符号化モデルは最小のllama.cpp形式より5.7–31.4%小さくなりました。最も大きな削減はMistral-7B ≤1%で得られました。

![Figure 4: Rate–quality frontiers. Dots: coded models, includingllama.cpp’s imatrix codes behind our Huffman stage; lines: lowest∆PPL reachable at or below a ra…](https://refivu.com/papers/e6b6c3c4-1bd3-46cf-8fce-73c9b9bbe83d/figures/figure-6a165759c4898ffa2995f580c5e189d7.png?thumb=512)

**Fig. 4** . Rate–quality frontiers. Dots: coded models, includingllama.cpp’s imatrix codes behind our Huffman stage; lines: lowest∆PPL reachable at or below a rate; shading: where coding wins; rings: released operating points; dashed: the 1% and 3.5% budgets and fp16. Axis linear below 1%.

[出典](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 · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。

デコーダの比較では、HuffmanはrANSと同じかそれより小さいビットレートでした。Huffmanは0次エントロピーから1.2–2.1%以内でした。rANSはlaneごとに32ビットの状態とパディングが加わるため、0.0–1.0%多くのビットを使いました。同じスループット2 G weights/sでは、rANSはペアシンボルの基準で4.0倍、単一コードの基準で1.15倍の面積が必要でした。この面積比較は、ASAP7 RVT TTのpre-layout合成結果です。

## FPGA検証とアブレーション

ZCU102 FPGAプロトタイプでは、4エンジンが112.5 MHzでタイミングを満たしました。エンジン1つは1サイクルあたり31.8重みを処理し、4エンジンで14.3 G weights/sでした。

アブレーションでは、γ=0にすると、すべての地点でビット数が9–12%増えました。したがって、共有サブブロックのstepが削減の大部分を担っています。これは、GPTQの誤差フィードバックが粗い格子の地点を保つ役割を果たしていることの根拠です。一方、細かい地点ではRTNのほうが良い結果でした。

これらの結果は主要な設定のもとで得られたもので、他のモデルや別の量子化条件には移して検証していません。

## 残された課題と適用範囲

デコードユニットの遅延とエネルギーは、測定した装置の数値とpre-layout合成から見積もった値で、製造されたSoCを測定した結果ではありません。FPGA検証ではbit-exactとcycle-exactが確認されましたが、1 GHzではなくFPGAのクロックで行われました。

ストリーミングのMistral-7Bでは、twinの時間はユニットの時間の代わりになりません。ユニットは符号化されたバイトだけを読むのに対し、twinは固定幅のバイトを読むためです。そのため論文はユニットのストリーミング時間は報告せず、符号化されたバイトを読む時間をUSBで2.2秒、SDカードで0.8秒として別に示しています。

また、Llama-3とQwen3は評価していません。長い文脈では、圧縮されていないfp16のKVキャッシュが重みの削減効果を薄めますが、この点も測定していません。

## 論文情報

- **著者**: Arnab Sanyal, Gourav Datta, Sandeep P. Chinchali
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月12日
- **登録日**: 2026年11月14日
- **更新日**: 2026年11月12日
- **バージョン**: v1
- **arXiv**: 2611.17108
- **カテゴリ**: cs.LG · cs.AR · cs.CL · cs.IT
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.17108v1) · [PDF ↗](https://arxiv.org/pdf/2611.17108v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

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).

## この論文を引用

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}
}
```

## この論文の用語

- [GSM8K](https://refivu.com/ja/terms/e48f0e01064d-gsm8k)
- [WikiText-2](https://refivu.com/ja/terms/9f23241a7a2c-wikitext-2)
- [Hessian](https://refivu.com/ja/terms/cb53640b58ff-hessian)
- [C4](https://refivu.com/ja/terms/87725552ed79-c4)
- [GPTQ](https://refivu.com/ja/terms/9c1044f95540-gptq)
- [Mistral-7B](https://refivu.com/ja/terms/b89deef91181-mistral-7b)

## ほかの論文解説

- [A Closer Look at Language Model Introspection: Probing Information and Reporting](https://refivu.com/ja/papers/313de13a-0a23-4786-86f2-055cc279d643-a-closer-look-at-language-model-introspection-probing.md)
- [DiFiT: Distribution-Fidelity-guided Visual Token Pruning for Multimodal Large Language Models](https://refivu.com/ja/papers/ded3d71e-2778-4155-b22f-1de96026dbd7-difit-distribution-fidelity-guided-visual-token-pruning-for.md)
- [Look It Up: Multi-bit LLM Watermarking via Codebook Search](https://refivu.com/ja/papers/1c207fc0-dbd1-422d-aa7e-04c5ad2d615b-look-it-up-multi-bit-llm-watermarking-via.md)
- [Mind the Accuracy-Approval Gap: How Users Evaluate Sycophantic AI in Everyday Tasks](https://refivu.com/ja/papers/d62f0b2a-4b25-4637-8d3b-cd531c6a07d1-mind-the-accuracy-approval-gap-how-users-evaluate.md)
- [Calibration and Conformal Prediction for Medical Question Answering in Arabic and English: Evidence from Two Non-Parallel Benchmarks](https://refivu.com/ja/papers/45cccf3d-bbd8-47a2-9b61-eba7a12cf21d-calibration-and-conformal-prediction-for-medical-question.md)
- [Pretraining Data Statistics Shape the Phases of Learning Entity Comparison in Language Models](https://refivu.com/ja/papers/d3386662-50ed-4e67-b429-1af214567cba-pretraining-data-statistics-shape-the-phases-of-learning.md)
- [Beyond Word Error Rate: A Failure Taxonomy of Streaming Dictation ASR](https://refivu.com/ja/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/ja/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/ja/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/ja/papers/4b8d9089-87de-4543-b218-764bfa6f9850-can-mllms-reason-over-surround-view-driving-videos.md)
- [AcrossPlace: Do Vision--Language Models Recognize Places Beyond Their Source Views? A Comprehensive Benchmark](https://refivu.com/ja/papers/533d8796-4008-4190-8b37-7eea028daae3-acrossplace-do-vision-language-models-recognize-places.md)
- [Quantum Recurrent Architectures for Financial Time Series Prediction](https://refivu.com/ja/papers/9dcea7ac-d917-4aae-b9a6-e03c49cde8b6-quantum-recurrent-architectures-for-financial-time-series.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/e6b6c3c4-1bd3-46cf-8fce-73c9b9bbe83d-lazyweights-decode-on-demand-edge-llms)
