Manuscript Offprint

arXiv:2610.34436

Prefix Keys and Values Matter Late: RIPE Caching for Self-Speculative Decoding in Looped Language Models

Dezhen Lu, Runguo Li, Zixiang Ni

ABSTRACT

A looped language model runs one block of layers R times per token, so its key–value (KV) cache holds R planes per recurrent layer, and self-speculative decoding (draft with a few loops, verify with all R) reads them all. We find that prefix keys and values matter late: at equal perturbation size, loops 25–32 are e15.0e^{15.0} (Huginn-0125) and e12.8e^{12.8} (Raven-Llama) times more sensitive than loops 2–9, and the planes approach the last one geometrically, at 0.88 and 0.81 per loop. Whether the deepest plane alone suffices then depends on how ripe the late planes are: on Raven, storing only it is indistinguishable from a bf16-to-fp32 change; on Huginn, 1% of positions carry 74% of its error. We turn this into RIPE, which stores the deepest plane everywhere except a window of recent positions kept at full depth. On Huginn, a 64-position window removes 89% of the tail positions at 11.9% of the full cache’s memory (1024-token context), and any window at least as long as the draft block makes batched verification block-independent by construction. Nine pre-registered GPU batches back these results. Simple models of acceptance, decoding cost and memory, two of them checked on held-out measurements, account for the measured self-speculative speed-ups ( 2.09×2.09\times with the full cache, 2.58×2.58\times with the deepest plane) and decompose the 2.24×2.24\times fixed-memory throughput gain of one shared plane.

1 INTRODUCTION

Looped, or recurrent-depth, language models reuse one block of transformer layers many times per token (Geiping et al., 2025; Zhu et al., 2025; McLeish et al., 2025). Because a shallow run of the same weights can serve as a draft, they support self-speculative decoding without a separate draft model: draft with d≪Rd \ll R loops, verify with all R (Geiping et al., 2025; Cho et al., 2026; Ha & Kim, 2026; Li et al., 2026; Liu et al., 2026). The weights are small; the KV cache is not. Every loop of every recurrent layer writes its own keys and values, so Huginn-0125 stores 2,788 KB per token, against 169 KB if only one plane were kept. At an 808-token sequence, a 95 GB budget then holds 36 sequences with the full cache and 302 with one plane (Section 3.5).

Which planes have to be stored? Huginn’s own code offers caches that keep fewer planes (Geiping et al., 2025), Ouro reports that the last loop’s KV suffices for its model (Zhu et al., 2025), and WaveFront shows that cross-loop sharing raises self-speculative speed (Ha & Kim, 2026). We measured the question directly in nine pre-registered GPU batches: decision rules and predictions were frozen before each run, and many predictions failed (Appendix B lists all of them). This paper organizes those measurements with small analytical models (Table 1 lists what each was fitted on and which checks use held-out data) and turns them into a cache design.

RIPE in one line: ripe plane for the past, full depth for the present (Figure 1).

References (19)