PackLoop:面向并发场景下循环语言模型的行打包自推测解码
PackLoop: Row-Packed Self-Speculative Decoding for Looped Language Models under Concurrency
PackLoop 提出一种行打包自推测解码方案,核心原则是只在本来就要读取的行内做推测,从而避免流水线调度中每个 token 仍被读取 T 次的问题。该方法在 FP32 下输出与自回归解码逐 token 完全一致,采样和提前退出场景同样成立。
arXiv:2611.30205v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org