Linear attention models need new methods to quantize recurrent state
When Dynamic Scaling Fails: A Scale-State Feedback Governs Recurrent-State Quantization in Linear-Attention and SSM LLMs
Summary
Some large language models hold long conversations by remembering information in a fixed-size memory, which can be made smaller by compressing that memory. The authors find that simply using low-bit number storage causes errors to build up as the conversation continues. They discover this is because the scaling used for compression feeds back on the memory and causes instability. Attempting to fix this by using a reference for scaling helps with numeric issues but does not fully restore the model's performance. The paper shows that carefully managing the scale is more important than targeting rare outlying values for better compression.
What this means in practice
- •For machine learning engineers: Optimize memory compression for linear-attention LLM decoding to balance efficiency and output quality over long sequences.
- •For hardware designers: Design quantization hardware that incorporates scale-state feedback control to avoid numeric instability in LLM inference accelerators.