Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
385 lines (366 loc) · 22.8 KB
/
Copy pathindex.html
File metadata and controls
385 lines (366 loc) · 22.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="LeapQuant: Efficient Linear Attention with Accurate Recurrent State Quantization">
<meta property="og:title" content="LeapQuant" />
<meta property="og:description" content="Efficient Linear Attention with Accurate Recurrent State Quantization" />
<meta property="og:image" content="static/images/demo_poster.jpg" />
<meta name="twitter:title" content="LeapQuant">
<meta name="twitter:description" content="Efficient Linear Attention with Accurate Recurrent State Quantization">
<meta name="twitter:card" content="summary_large_image">
<meta name="keywords" content="LeapQuant, Linear Attention, Gated DeltaNet, Kimi Delta Attention, Recurrent State, Quantization, LLM Inference">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>LeapQuant</title>
<link href="https://fonts.googleapis.com/css?family=Google+Sans|Noto+Sans|Castoro" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1/css/academicons.min.css">
<link rel="stylesheet" href="static/css/index.css">
</head>
<body>
<section class="hero">
<div class="hero-body">
<div class="container is-max-desktop">
<div class="columns is-centered">
<div class="column has-text-centered">
<h1 class="title is-2 publication-title">LeapQuant: <br> Efficient Linear Attention with Accurate Recurrent State Quantization</h1>
<div class="is-size-5 publication-authors">
<span class="author-block"><a href="https://conless.dev" target="_blank">Yi Pan</a><sup>1*</sup>,</span>
<span class="author-block"><a href="https://haochengxi.github.io/" target="_blank">Haocheng Xi</a><sup>1*</sup>,</span>
<span class="author-block"><a href="https://kanzhu.netlify.app/" target="_blank">Kan Zhu</a><sup>2</sup>,</span>
<span class="author-block"><a href="https://acm.sjtu.edu.cn/~xyli/" target="_blank">Xingyang Li</a><sup>3</sup>,</span>
<span class="author-block"><a href="https://scholar.google.com/citations?user=QiYCvosAAAAJ" target="_blank">Yibo Wu</a><sup>4</sup>,</span>
<span class="author-block"><a href="https://mayank31398.github.io/" target="_blank">Mayank Mishra</a><sup>1</sup>,</span>
<span class="author-block"><a href="https://taooceros.vercel.app/" target="_blank">Hongtao Zhang</a><sup>2</sup>,</span>
<span class="author-block"><a href="https://xinze-zheng.github.io/" target="_blank">William X. Zheng</a><sup>1</sup>,</span>
<span class="author-block"><a href="https://homes.cs.washington.edu/~baris/" target="_blank">Baris Kasikci</a><sup>2</sup>,</span>
<span class="author-block"><a href="https://hanlab.mit.edu/songhan" target="_blank">Song Han</a><sup>3,5</sup>,</span>
<span class="author-block"><a href="https://people.eecs.berkeley.edu/~keutzer/" target="_blank">Kurt Keutzer</a><sup>1</sup>,</span>
<span class="author-block"><a href="https://rishabh246.github.io/" target="_blank">Rishabh Iyer</a><sup>1</sup>,</span>
<span class="author-block"><a href="https://people.eecs.berkeley.edu/~istoica/" target="_blank">Ion Stoica</a><sup>1</sup></span>
</div>
<div class="is-size-5 publication-authors">
<span class="author-block"><sup>1</sup> University of California, Berkeley</span>
<span class="author-block"><sup>2</sup> University of Washington</span>
<span class="author-block"><sup>3</sup> Massachusetts Institute of Technology</span>
<span class="author-block"><sup>4</sup> Perplexity AI</span>
<span class="author-block"><sup>5</sup> NVIDIA</span>
<span class="eql-cntrb"><small><br><sup>*</sup>Indicates Equal Contribution</small></span>
</div>
<div class="column has-text-centered">
<div class="publication-links">
<span class="link-block">
<a href="https://arxiv.org/pdf/2609.38166" target="_blank" class="external-link button is-normal is-rounded is-dark">
<span class="icon"><i class="fas fa-file-pdf"></i></span>
<span>Paper</span>
</a>
</span>
<span class="link-block">
<a href="https://arxiv.org/abs/2609.38166" target="_blank" class="external-link button is-normal is-rounded is-dark">
<span class="icon"><i class="ai ai-arxiv"></i></span>
<span>arXiv</span>
</a>
</span>
<span class="link-block">
<a href="https://github.com/leapquant/leapquant" target="_blank" class="external-link button is-normal is-rounded is-dark">
<span class="icon"><i class="fab fa-github"></i></span>
<span>Code</span>
</a>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Demo video -->
<section class="hero teaser">
<div class="container is-max-desktop">
<div class="hero-body">
<video poster="static/images/demo_poster.jpg" autoplay muted loop playsinline controls width="100%">
<source src="static/videos/demo.mp4" type="video/mp4">
</video>
</div>
</div>
</section>
<!-- TL;DR -->
<section class="section hero is-light">
<div class="container is-max-desktop">
<div class="columns is-centered has-text-centered">
<div class="column is-four-fifths">
<h2 class="title is-4">TL;DR</h2>
<div class="content has-text-justified">
<p>
<b>LeapQuant</b> is a <b>training-free</b> method that quantizes the recurrent state of linear attention to <b>8 bits</b>
with <b>near-lossless</b> model quality. With accuracy comparable to the FP32 baseline, it achieves average speedups of
<b>2.05–3.70×</b> at the kernel level and <b>1.51×</b> for end-to-end inference on NVIDIA B200,
RTX PRO 6000, and RTX 5090 GPUs.
</p>
</div>
</div>
</div>
</div>
</section>
<!-- Overview -->
<section class="section hero">
<div class="container is-max-desktop">
<div class="columns is-centered has-text-centered">
<div class="column is-four-fifths">
<h2 class="title is-4">Overview</h2>
<div class="content has-text-justified">
<p>
Recent LLMs in the Qwen, Kimi, and GLM model families replace many standard attention layers with linear attention,
such as Gated DeltaNet (GDN) and Kimi Delta Attention (KDA). Linear attention compresses the context into a
fixed-size recurrent state, which reduces the cost of long-context processing.
</p>
<p>
However, the recurrent state still imposes substantial memory bandwidth and capacity costs. For each generated token,
a linear attention layer loads its state from HBM, applies a lightweight update, and writes it back, so decoding is
bottlenecked by memory bandwidth. The state also takes a large share of GPU memory when prefix caching is enabled,
as serving systems keep a separate state for each cached prefix.
</p>
</div>
</div>
</div>
<div class="container has-text-centered figure-pull-up">
<figure class="image is-inline-block">
<img src="static/images/motivation.png" alt="Recurrent-state access is a major cost of LLM serving" style="max-width: 100%;">
</figure>
<p class="caption">(a) Linear attention takes a large share of decoding time. (b) Recurrent states take a large share of GPU
memory under prefix caching.</p>
</div>
</div>
</section>
<!-- Challenge -->
<section class="section hero is-light">
<div class="container is-max-desktop">
<div class="columns is-centered has-text-centered">
<div class="column is-four-fifths">
<h2 class="title is-4">Why Recurrent State Quantization is Challenging</h2>
<div class="content has-text-justified">
<p>
Quantizing the recurrent state is a natural way to reduce both memory traffic and footprint, but it can significantly
degrade model quality. The state is <b>updated recurrently</b> at every decoding step, so the rounding error introduced
by each quantization is carried into all later states and <b>accumulates</b> over long contexts. In
addition, the state contains <b>outlier rows and columns</b> that widen the quantization range and force smaller
values onto coarse quantization levels, amplifying the error of each quantization.
</p>
<p>
Accurate low-bit quantization therefore requires reducing both <i>how often</i> error is introduced and
<i>how much</i> error each quantization introduces. LeapQuant addresses both with three training-free techniques.
</p>
</div>
</div>
</div>
</div>
</section>
<!-- Per-window quantization -->
<section class="section hero">
<div class="container is-max-desktop">
<div class="columns is-centered has-text-centered">
<div class="column is-four-fifths">
<h2 class="title is-4">Per-Window Quantization</h2>
<div class="content has-text-justified">
<p>
To limit error accumulation, LeapQuant <b><i>leaps</i></b> over a window of tokens before quantizing the state again.
At the beginning of each window, LeapQuant stores the recurrent state in low precision. Within the window, it holds
this state fixed, buffers higher-precision token updates, and computes each output from the fixed state and the
buffered updates. Only at the end of the window does it reconstruct and quantize the full updated state for the next
window, so quantization error is introduced far less often.
</p>
</div>
</div>
</div>
<div class="container has-text-centered">
<figure class="image is-inline-block">
<img src="static/images/per_window.png" alt="Per-token versus per-window quantization" style="max-width: 90%;">
</figure>
</div>
</div>
</section>
<!-- Compensator Tokens -->
<section class="section hero is-light">
<div class="container is-max-desktop">
<div class="columns is-centered has-text-centered">
<div class="column is-four-fifths">
<h2 class="title is-4">Compensator Tokens</h2>
<div class="content has-text-justified">
<p>
To reduce the error of each quantization, LeapQuant captures the state's largest outliers in high precision as a few
<b>Compensator Tokens</b>. Each Compensator Token is a high-precision outer product of two vectors, capturing
large-magnitude patterns across both rows and columns and leaving a residual that is easier to quantize. Since these
rank-one terms have the same form as real-token updates, LeapQuant incorporates them directly into the window's
update path, using only a few additional vectors and no separate state update.
</p>
</div>
</div>
</div>
<div class="container has-text-centered">
<figure class="image is-inline-block">
<img src="static/images/compensator_tokens.png" alt="Per-window state reconstruction with Compensator Tokens" style="max-width: 90%;">
</figure>
</div>
</div>
</section>
<!-- Residual smoothing -->
<section class="section hero">
<div class="container is-max-desktop">
<div class="columns is-centered has-text-centered">
<div class="column is-four-fifths">
<h2 class="title is-4">Residual Smoothing</h2>
<div class="content has-text-justified">
<p>
After the Compensator Tokens are removed, the residual can still have uneven magnitudes across key channels, and a few
large channels can dominate the quantization scale. LeapQuant smooths the residual before quantization to balance its
row magnitudes. The smoothing scales stay fixed within each window and are recomputed at every window boundary.
In a Qwen3.5-9B head, Compensator Tokens and smoothing reduce outliers from 176× the median magnitude to 5.3×.
</p>
</div>
</div>
</div>
<div class="container has-text-centered">
<figure class="image is-inline-block">
<img src="static/images/smoothing.png" alt="State magnitude before and after Compensator Tokens and smoothing" style="max-width: 100%;">
</figure>
</div>
</div>
</section>
<!-- Results -->
<section class="section hero is-light">
<div class="container is-max-desktop">
<div class="columns is-centered has-text-centered">
<div class="column is-four-fifths">
<h2 class="title is-4">Key Results</h2>
<div class="content has-text-justified">
<p>
We evaluate LeapQuant on models from the Qwen, Kimi, and GLM families. At 8 bits, LeapQuant achieves accuracy
comparable to the FP32 baseline, while reducing state memory traffic by 3.4× and end-to-end memory footprint by
up to 56%.
</p>
</div>
<h3 class="title is-5">Accuracy</h3>
<div class="content has-text-justified">
<p>
Downstream accuracy (%, higher is better, averaged over three seeds) on AIME 2026, BeyondAIME, GPQA-Diamond, and
LiveCodeBench v6. Naive FP8/INT8 state quantization collapses on Qwen3.5-9B, and even BF16 loses 11.5 points on
average, while LeapQuant matches FP32 at 8 and 6 bits and remains far above all baselines at 4 bits.
</p>
</div>
</div>
</div>
<div class="table-container results-table-wrap">
<table class="table is-narrow is-hoverable results-table">
<thead>
<tr><th rowspan="2" class="method">Method</th><th colspan="4">Qwen3.5-9B</th><th colspan="4">GLM-5.3-Flash</th><th colspan="4">Qwen3.8-Flash-Next</th><th rowspan="2">Avg.</th></tr>
<tr><th>AIME</th><th>Beyond</th><th>GPQA</th><th>LCB</th><th>AIME</th><th>Beyond</th><th>GPQA</th><th>LCB</th><th>AIME</th><th>Beyond</th><th>GPQA</th><th>LCB</th></tr>
</thead>
<tbody>
<tr class="baseline-ref"><td class="method">FP32</td><td>87.9</td><td>63.3</td><td>81.3</td><td>64.1</td><td>92.2</td><td>80.7</td><td>92.1</td><td>85.2</td><td>98.5</td><td>85.1</td><td>91.4</td><td>86.8</td><td>84.0</td></tr>
<tr class="baseline-ref"><td class="method">BF16</td><td>72.1</td><td>33.7</td><td>66.2</td><td>49.6</td><td>76.7</td><td>57.2</td><td>90.6</td><td>74.6</td><td>96.8</td><td>78.8</td><td>90.2</td><td>84.0</td><td>72.5</td></tr>
<tr class="group-row"><td colspan="14">8-bit methods</td></tr>
<tr class="ours"><td class="method">LeapQuant</td><td><b>87.9</b></td><td><b>64.0</b></td><td><b>81.8</b></td><td><b>64.1</b></td><td><b>91.1</b></td><td><b>83.2</b></td><td><b>91.2</b></td><td><b>87.5</b></td><td><b>99.0</b></td><td><b>85.3</b></td><td><b>91.6</b></td><td><b>85.8</b></td><td><b>84.4</b></td></tr>
<tr><td class="method">KVQuant</td><td>70.3</td><td>39.9</td><td>66.8</td><td>55.5</td><td>87.9</td><td>72.8</td><td>90.6</td><td>83.0</td><td>94.7</td><td>74.2</td><td>87.2</td><td>79.9</td><td>75.2</td></tr>
<tr><td class="method">TurboQuant</td><td>67.9</td><td>43.2</td><td>62.0</td><td>42.2</td><td>83.8</td><td>67.3</td><td>89.9</td><td>73.8</td><td>95.4</td><td>78.4</td><td>89.9</td><td>84.7</td><td>73.2</td></tr>
<tr><td class="method">QuaRot</td><td>11.4</td><td>7.4</td><td>38.2</td><td>35.6</td><td>91.0</td><td>76.2</td><td>90.9</td><td>78.6</td><td>88.3</td><td>61.0</td><td>84.7</td><td>72.0</td><td>61.3</td></tr>
<tr><td class="method">INT8</td><td>3.9</td><td>1.8</td><td>17.2</td><td>10.7</td><td>87.4</td><td>66.8</td><td>90.4</td><td>67.4</td><td>67.5</td><td>41.8</td><td>61.3</td><td>56.0</td><td>47.7</td></tr>
<tr><td class="method">FP8</td><td>0.0</td><td>0.1</td><td>2.2</td><td>5.9</td><td>69.6</td><td>44.2</td><td>82.0</td><td>53.2</td><td>82.5</td><td>52.8</td><td>76.8</td><td>71.5</td><td>45.1</td></tr>
<tr class="group-row"><td colspan="14">6-bit methods</td></tr>
<tr class="ours"><td class="method">LeapQuant</td><td><b>87.9</b></td><td><b>63.6</b></td><td><b>81.0</b></td><td><b>65.4</b></td><td><b>92.9</b></td><td><b>82.7</b></td><td><b>91.2</b></td><td><b>86.3</b></td><td><b>98.8</b></td><td><b>85.8</b></td><td><b>89.9</b></td><td><b>86.8</b></td><td><b>84.4</b></td></tr>
<tr><td class="method">TurboQuant</td><td>19.3</td><td>7.2</td><td>33.2</td><td>13.0</td><td>88.1</td><td>66.8</td><td>88.0</td><td>66.2</td><td>94.4</td><td>73.1</td><td>88.2</td><td>83.7</td><td>60.1</td></tr>
<tr><td class="method">MXFP6</td><td>0.0</td><td>0.0</td><td>0.8</td><td>0.5</td><td>71.4</td><td>44.8</td><td>82.7</td><td>53.4</td><td>59.2</td><td>34.6</td><td>63.3</td><td>58.0</td><td>39.1</td></tr>
<tr><td class="method">NVFP6</td><td>0.0</td><td>0.1</td><td>1.5</td><td>7.6</td><td>39.2</td><td>17.1</td><td>67.8</td><td>36.9</td><td>80.4</td><td>52.9</td><td>73.7</td><td>67.4</td><td>37.1</td></tr>
<tr class="group-row"><td colspan="14">4-bit methods</td></tr>
<tr class="ours"><td class="method">LeapQuant</td><td><b>85.0</b></td><td><b>60.1</b></td><td><b>80.0</b></td><td><b>61.3</b></td><td><b>85.0</b></td><td><b>67.6</b></td><td><b>91.6</b></td><td><b>72.8</b></td><td><b>92.5</b></td><td><b>72.6</b></td><td><b>90.6</b></td><td><b>79.9</b></td><td><b>78.3</b></td></tr>
<tr><td class="method">TurboQuant</td><td>3.5</td><td>1.4</td><td>26.8</td><td>11.5</td><td>59.7</td><td>43.2</td><td>77.9</td><td>49.4</td><td>79.3</td><td>49.8</td><td>74.9</td><td>62.8</td><td>45.0</td></tr>
<tr><td class="method">MXFP4</td><td>0.0</td><td>0.0</td><td>3.7</td><td>0.3</td><td>25.3</td><td>18.6</td><td>70.9</td><td>29.3</td><td>1.7</td><td>2.8</td><td>25.4</td><td>22.6</td><td>16.7</td></tr>
</tbody>
</table>
</div>
<p class="caption has-text-centered">Best score in each column within the 8-bit, 6-bit, and 4-bit groups is in bold.
Beyond = BeyondAIME, LCB = LiveCodeBench v6. Full results on more models and tasks are in the paper.</p>
<div class="columns is-centered has-text-centered results-sub">
<div class="column is-four-fifths">
<h3 class="title is-5">Kernel Throughput</h3>
<div class="content has-text-justified">
<p>
On one linear attention layer, LeapQuant achieves average speedups of 2.05–3.70× over the FP32 state
across GDN and KDA layers on B200, RTX PRO 6000, and RTX 5090 GPUs.
</p>
</div>
</div>
</div>
<div class="container has-text-centered">
<figure class="image is-inline-block">
<img src="static/images/kernel_speedup.png" alt="Kernel throughput of one linear attention layer" style="max-width: 100%;">
</figure>
</div>
<div class="columns is-centered has-text-centered results-sub">
<div class="column is-four-fifths">
<h3 class="title is-5">Decode Throughput</h3>
<div class="content has-text-justified">
<p>
On pure decode steps in vLLM at 4K context, LeapQuant improves throughput by 1.22–1.29× at the largest
batch size on B200 and by 1.22–1.57× on RTX PRO 6000. The gain grows with batch size, as linear attention
takes a larger share of each step.
</p>
</div>
</div>
</div>
<div class="container has-text-centered">
<figure class="image is-inline-block">
<img src="static/images/decode_speedup.png" alt="Decode-step throughput in vLLM at 4K context" style="max-width: 100%;">
</figure>
<p class="caption">Decode-step throughput in vLLM at context length 4K. On the RTX PRO 6000, which has limited memory, we use a
smaller maximum batch size and context length, and only 8 layers of GLM-5.3-Flash and Qwen3.8-Flash-Next.</p>
</div>
<div class="columns is-centered has-text-centered results-sub">
<div class="column is-four-fifths">
<h3 class="title is-5">End-to-End Inference</h3>
<div class="content has-text-justified">
<p>
Integrated into vLLM, LeapQuant achieves an average end-to-end speedup of 1.51×.
</p>
</div>
</div>
</div>
<div class="container has-text-centered">
<figure class="image is-inline-block">
<img src="static/images/e2e_speedup.png" alt="End-to-end inference throughput" style="max-width: 100%;">
</figure>
</div>
</div>
</section>
<!-- BibTeX -->
<section class="section" id="BibTeX">
<div class="container is-max-desktop content">
<h2 class="title">BibTeX</h2>
<pre><code>@article{pan2026leapquant,
title = {LeapQuant: Efficient Linear Attention with Accurate Recurrent State Quantization},
author = {Pan, Yi and Xi, Haocheng and Zhu, Kan and Li, Xingyang and Wu, Yibo and Mishra, Mayank and
Zhang, Hongtao and Zheng, William X. and Kasikci, Baris and Han, Song and Keutzer, Kurt and
Iyer, Rishabh and Stoica, Ion},
journal = {arXiv preprint arXiv:2609.38166},
year = {2026}
}</code></pre>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="columns is-centered">
<div class="column is-8">
<div class="content">
<p>
This page was built using the <a href="https://github.com/eliahuhorwitz/Academic-project-page-template" target="_blank">Academic Project Page Template</a>,
which was adopted from the <a href="https://nerfies.github.io" target="_blank">Nerfies</a> project page.
This website is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative
Commons Attribution-ShareAlike 4.0 International License</a>.
</p>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>