Bridging the Gap: Position-Independent Cache Reuse for Hybrid SSM-Attention Architectures
Weikang Wang, Xin Zhou, Haiyang Liu, Lei Wang, Jun Liu, Weifeng Zhang
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › Sparse Long-Context Attention · Type: new method · Keywords: position-independent cache reuse, hybrid SSM-Attention architectures, state space model caching, LLM inference speedup, residual state propagation
Areas: Memory › Model Memory Optimization › Memory-Efficient On-Device Inference; Model Architectures & Sequence Modeling › Language Model Architectures › Linearized Transformers
Summary
HyPIC introduces residual state propagation and online decay correction with a fast parallel recomputation pipeline to enable position-independent cache reuse for hybrid SSM-Attention architectures, achieving a 2× speedup in TTFT while preserving accuracy.
Explained to a 5-year-old
Big computer programs that learn words sometimes remember parts of the words in two different ways. One way remembers each word separately, another way remembers groups of words together. When the two ways don't match, the program has to start over and forgets what it already knew. This new idea helps the program remember groups of words in a way that works no matter where the words appear, so it can finish faster. It does this by passing a little extra information and fixing old memories, letting the program finish quicker without losing accuracy.
Explained to a 5-year-old, longer
Some computer programs that learn language have two kinds of memory. One kind remembers each word one by one, like a list. The other kind remembers groups of words together, like chunks. When these two memories don't line up, the program can lose progress and have to start again. This makes the program slower and uses more computer power. The new idea tries to make the chunk memory work like the word-by-word memory, no matter where the words appear. It does this by sending a small amount of extra information between the two memories. It also updates the old chunk memories so they stay useful in new situations. By doing these updates in parallel, the program avoids waiting for one step at a time. This helps the program finish generating a response much faster. At the same time, the quality of the answer stays just as good as before. Overall, the program can answer questions quicker while still being accurate.
For a technical reader
HyPIC addresses a caching inefficiency in hybrid language models that combine attention and state-space layers. It introduces residual state propagation and online decay correction to adapt pre-computed SSM caches to new contexts with minimal recomputation. A parallel recomputation pipeline leverages the linear superposition property of SSMs, removing sequential bottlenecks. The result is a 2× reduction in time-to-first-token while preserving model accuracy. This makes hybrid models more suitable for low-latency inference on existing hardware.
Problem
Hybrid models that use token-level caching (as in attention) and coarse-grained caching (as in state space models) experience cache conflicts, where a miss in one layer can nullify hits in another, reducing overall cache reuse efficiency.
Method
The approach introduces residual state propagation and online decay correction to adapt offline SSM chunk caches to new contexts, and designs a fast parallel recomputation pipeline that exploits the linear superposition property of state space models to eliminate sequential bottlenecks.
Results
The approach achieves a 2× speedup in time-to-first-token while maintaining highly competitive accuracy.
Contributions
It presents residual state propagation and online decay correction, a parallel recomputation pipeline exploiting linear superposition, and demonstrates the first unified framework for position-independent cache reuse in hybrid architectures.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction