Simulating Time With Square-Root Space
Paper • 2502.17779 • Published
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
TL;DR: Williams (STOC 2025) √(t log t) space simulation → set KV checkpoint block (b\approx\sqrt{S\log S}). On real models (135M→14B dense, plus Qwen3.6-35B-A3B MoE), ~50–97% less cache storage depending on architecture and S. Not a TM proof for Transformers—an engineering transfer with measurements.
| Model | S=16 384 full → √S | Save |
|---|---|---|
| 7B | 940 MB → 25 MB | 97.3% |
| 14B | 3.22 GB → 87 MB | 97.3% |
| S | full cache | √S resident | Save |
|---|---|---|---|
| 4 096 | 117 MB | 38 MB | 67.9% |
| 8 192 | 201 MB | 38 MB | 81.3% |
| 16 384 | 369 MB | 42 MB | 88.5% |
Hybrid linear-attn state is O(1) (does not shrink); full-attn K/V shrinks with √S → save grows with S.
Block-stream online-softmax vs full: max|Δ| within bf16 noise (~0.016 @ S=2048). Fidelity maintained under compression.
scripts/modal_sqrt_kv_bench.py)@misc{sqrt-space-kv-2026,
title = {Simulating Autoregressive Memory with Square-Root Space},
author = {Kawasaki, Jun},
year = {2026},
note = {Code: github.com/gftdcojp/cloud-murakumo; Results: github.com/com-junkawasaki/sqrt-space-kv},
howpublished = {\url{https://github.com/com-junkawasaki/sqrt-space-kv}}
}