PackLoop: Row-Packed Self-Speculative Decoding for Looped Language Models under Concurrency
Organizations: University of Illinois Urbana-Champaign · University of Tübingen
Abstract
Looped language models reuse one block of weights T times per token, trading parameters for test-time depth, but autoregressive decoding then pays T sequential passes per token. Self-speculative decoders recover 2-10x for a single request, yet their gains fade as requests share a GPU, and current practice is to speculate less as load grows. We show that what fails under load is the layout of speculative work, not speculation. In concurrent decoding the unit of cost is the row, one request advancing on one loop, which reads that loop's key-value (KV) cache once; additional positions inside a row are nearly free. Pipelined schedules such as the wavefront place every speculative position on a different loop, hence in a row of its own, so each token is still read T times. We present PackLoop, built on one principle: speculate only inside rows that are read anyway. Deep loops accumulate positions and advance them as a block in one row, context-copy proposals join the row that the first loop already reads, and a closed-form admission rule, the economic order quantity of inventory theory, sets how long to accumulate from a cost model calibrated once per engine. PackLoop is exact: in FP32 its output is token-for-token identical to autoregressive decoding, also under sampling and early exit. Across 164 load points spanning three GPUs, four Ouro models, six benchmarks, and contexts up to 32K tokens, one PackLoop configuration is faster than the best existing schedule, chosen per point, at 161 points (median 1.25x, up to 1.76x) and never significantly slower. Its lead grows with concurrency and context length, the regime in which existing self-speculation gains least.
Figures & tables
| AR at | |||||
|---|---|---|---|---|---|
| Schedule | passes | reads | 16 | 32 | 64 |
| Autoregressive | 4.00 | 4.0 | 1.00 | 1.00 | 1.00 |
| Wavefront + screening | 1.31 | 5.2 | 1.44 | 1.16 | 0.98 |
| PackLoop , one row per position | 0.94 | 6.6 | 0.83 | 0.60 | 0.49 |
| PackLoop (ours) | 1.15 | 2.0 | 1.82 | 1.65 | 1.50 |
| System | Setting | PackLoop (ours) is faster by |
| Released decoders, one request | ||
| CopyLoop | RTX 3090 | 1.15 / 1.20 |
| LoopSpec, best mode | RTX 3090 | 1.47 / 2.29 |
| WaveFront, acceptance 1 | contexts 256–4096 | 2.1–4.2 |
| Serving engine vllm-rlt, concurrent requests | ||
| Fastest mode per point | RTX 3090 / H100 | 1.74–2.31 / 2.18–3.42 |
| Variant | PackLoop | Worst point ( , ) |
|---|---|---|
| PackLoop (ours) | 1.00 | – |
| Same speculative work, different layout | ||
| One row per position | 0.18–0.66 | 4096, 2 |
| One row per proposal position (CopyLoop layout) | 0.38–0.79 | 4096, 2 |
| Proposals verified round by round on AR | 0.45–0.65 | 256, 1 |
| Components of PackLoop | ||
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| layout | best | ratio | ||||
|---|---|---|---|---|---|---|
| 256 | 1 | pipeline | 0.026 | – | 1 | 0.99 |
| 256 | 2 | pipeline | 0.058 | – | 1 | 1.02 |
| 256 | 4 | pipeline | 0.087 | – | 3 | 1.10 |
| 256 | 8 | pipeline | 0.117 | – | 3 | 1.03 |
| 1024 | 1 | pipeline | 0.056 | – | 1 | 1.00 |
| 1024 | 2 | pipeline | 0.108 | – | 1 | 0.98 |
| Setting | GPU | Pts | AR | vs best | sig. |
| Ouro-1.4B | 4090 | 11 | 2.24–4.04 | 1.25–1.68 | 11 |
| Ouro-2.6B | 3090 | 8 | 2.48–4.12 | 1.16–1.43 | 8 |
| Ouro-2.6B | H100 | 17 | 1.62–3.69 | 1.11–1.62 | 13 |
| Thinking, greedy | 3090 | 4 | 2.51–3.55 | 1.22–1.41 | 4 |
| Thinking, greedy | H100 | 8 | 1.68–3.86 | 1.10–1.48 | 8 |
| Thinking, temp. 0.7 | 3090 | 4 | 2.29–3.43 | 1.19–1.35 | 4 |
| RTX 3090 | H100 NVL | ||||||||||||||||
| AR | Wave | Wave+scr | Blk Q2 | Blk Q4 | Ours | vs best | vs vllm-rlt | AR | Wave | Wave+scr | Blk Q2 | Blk Q4 | Ours | vs best | vs vllm-rlt | ||
| 256 | 1 | 59.9 | 142.2 | 158.3 | 129.6 | 121.9 | 218.8 | 1.38 | 2.21 | 110.4 | 254.5 | 283.5 | 203.5 | 195.5 | 323.4 | 1.14 | 2.54 |
| 256 | 2 | 112.0 | 276.9 | 307.4 | 243.6 | 234.0 | 418.2 | 1.36 | 2.31 | 215.7 | 531.3 | 586.7 | 402.7 | 393.9 | 747.6 | 1.27 | – |
| 256 | 4 | 213.4 | 477.1 | 530.6 | 414.5 | 392.5 | 660.5 | 1.24 | 2.15 | 421.9 | 994.3 | 1104.5 | 763.6 | 705.3 | 1376.6 | 1.25 | 3.42 |
| 256 | 8 | 397.4 | 746.1 | 821.3 | 652.5 | 608.4 | 951.6 | 1.16 | 2.02 | 813.7 | 1694.7 | 1888.4 | 1328.5 | 1226.2 | 2168.3 | 1.15 | – |
| 256 | 16 | 1477.7 | 2739.7 | 3018.8 | 2181.4 | 1987.6 | 3403.2 | 1.13 | 3.21 | ||||||||
| Model | GPU | Pts | vs LoopSkim-style | sig. | vs LoopFill layout | sig. |
|---|---|---|---|---|---|---|
| Ouro-1.4B | RTX 3090 | 11 | 1.01–1.37 (1.07) | 10 | 1.46–3.27 (1.82) | 11 |
| Ouro-1.4B | H100 | 18 | 0.99–1.37 (1.06) | 11 | 1.21–3.25 (1.74) | 17 |
| Ouro-2.6B | RTX 3090 | 8 | 1.02–1.19 (1.07) | 7 | 1.44–2.34 (1.76) | 8 |
| Ouro-2.6B | H100 | 17 | 1.00–1.39 (1.08) | 15 | 1.37–3.29 (1.82) | 17 |
| Model | GPU | Pts | head gain | lead of PackLoop (ours) | sig. / | lead, read-heavy |
|---|---|---|---|---|---|---|
| Ouro-1.4B | RTX 3090 | 11 | 1.10 | 0.88–1.18 (1.00) | 2 / 1 | 1.05–1.18 |
| Ouro-1.4B | RTX 4090 | 11 | 1.14 | 0.92–1.18 (1.01) | 3 / 0 | 1.07–1.18 |
| Ouro-2.6B | RTX 3090 | 8 | 1.20 | 0.86–1.02 (0.97) | 0 / 1 | – |
| Configurations | GPU | Context; requests | Tokens/req. |
|---|---|---|---|
| PackLoop ; one row per position; CopyLoop layout; proposals verified round by round on AR; block with one row per position | RTX 3090 | 256; 1, 8 | 64 |
| PackLoop with and , including a mid-run switch from pipeline to blocks | RTX 3090 | 256; 1, 4, 8 and 1024; 4 | 128 |
| Fused shared block and merged attention, 3 schedules | RTX 3090 | 256, 1024; 1, 4 | 64 |
| Early exit (CDB rule): AR, blocks ; tokens and exit loops | RTX 3090 | 256; 8 | 128 |
| Sampling at temperature 0.7 and 1.0 against AR with the same noise: PackLoop , screened wavefront, blocks | RTX 3090 | 256; 1, 8 | 64 |
| Draft-head proposals ( Appendix E ): PackLoop and LoopSkim-style, copy first or head only, Ouro-1.4B and 2.6B | RTX 3090 | 256; 1, 8 | 64 |
| GPU | AR | Wave+scr | PackLoop (ours) | best | ||
| RTX 3090 | 256 | 1 | 31.7 | 92.9 | 122.2 | 1.32 |
| 256 | 2 | 59.2 | 174.2 | 243.5 | 1.40 | |
| 256 | 4 | 112.5 | 295.9 | 384.6 | 1.30 | |
| 256 | 8 | 209.2 | 448.8 | 519.5 | 1.16 | |
| 1024 | 1 | 29.5 | 79.2 | 111.8 | 1.41 | |
| 1024 | 2 | 53.6 | 135.7 | 185.9 | 1.37 |
| AR | Wave | Wave+scr | Blk | Blk | PackLoop (ours) | best | ||
|---|---|---|---|---|---|---|---|---|
| 256 | 1 | 67.3 | 154.0 | 169.5 | 138.4 | 138.0 | 236.5 | 1.40 |
| 256 | 2 | 117.0 | 293.1 | 325.5 | 266.1 | 254.0 | 473.0 | 1.45 |
| 256 | 4 | 223.3 | 517.0 | 569.0 | 468.8 | 446.0 | 774.6 | 1.36 |
| 256 | 8 | 415.2 | 840.3 | 930.0 | 759.7 | 724.2 | 1205.6 | 1.30 |
| 1024 | 1 | 63.7 | 131.9 | 139.8 | 116.9 | 115.7 | 174.7 | 1.25 |
| 1024 | 2 | 107.9 | 223.9 | 247.3 | 212.4 | 208.0 | 333.8 | 1.35 |
LLM Inference Acceleration
LLM inference acceleration develops algorithms and systems that reduce language-model latency, memory use, and serving cost while preserving output quality.
See all 1,277 papers