analiza aiqbench
This research addresses a critical bottleneck in deploying efficient, long-context language models by optimizing how recurrent state caches are quantized. The authors demonstrate that a specific deterministic dithering method outperforms standard stochastic rounding and round-to-nearest approaches, significantly reducing error accumulation over extended generation sequences without additional computational cost. This finding is essential for researchers and engineers developing Mamba-style architectures who aim to maximize model fidelity under strict memory constraints.
Low-Discrepancy Dither for Quantized Recurrent State Caches
De la arXiv
Text integralMamba-style and hybrid language models compress their past into a fixed-size recurrent state that is rewritten at every generated token. Storing this state in low precision saves memory bandwidth, but every rounding error is fed back into the next update and can accumulate over long generations. Production systems round the state stochastically; we ask which rounding rule such caches should use. We find that a deterministic golden-ratio Weyl dither, which needs no random numbers, consistently brings the quantized model closer to the full-precision one than stochastic rounding, across pure and hybrid models, storage formats, and long decoding horizons, at no extra cost.
Round-to-nearest behaves differently: because it discards small updates, its error keeps growing, so it can look best in short evaluations yet falls far behind over long generations. A discrepancy analysis explains this ordering, and we document implementation pitfalls that silently remove the benefit.
Text integral sub licența deschisă a publicației · 145 cuvinte