RidgeFill: Training-Free Late-Layer Cache Fill for Faster Prefill
Dylan JohnstonRobert P. Smith
Dylan Johnston
Robert P. Smith
+2
RidgeFill speeds up prefill by skipping computation in most of a model's upper layers: lower layers run exactly up to a split, a per-layer ridge-regression map fitted once in closed form from one calibration pass predicts each later layer's input, and each late layer writes its cache from that prediction, with layer projections unchanged and selected rows, the last few thousand tokens, and all decoding steps computed exactly. Retrofit onto models never trained for this, it reports 1.25–1.31x faster time to first token at 16K–120K tokens on Qwen3.8-27B in a llama.cpp fork on an A100 and 1.50–1.60x on Qwen3.8-Flash-Next in vLLM, with mostly small RULER and LongBench v2 changes whose intervals include zero but do not rule out losses of a few points.

arXiv ·
· November 6, 2026