WhiteMatter: All-to-All Cross-Layer Connections via KV Mixing
Wenbo Zhang, Xiang Ren
Key points
From the paper's conclusion- We propose WhiteMatter, which connects every attention layer to the representations from all layers of each past token, with connection weights that can vary across consumer layers and adapt to the source token.
Abstract
In a Transformer, each layer attends to past tokens only through KV produced at its own depth, despite the presence of deeper representations during autoregressive decoding. Feedback architectures allow shallow consumer layers to attend to KV produced by deeper past-token representations, but give all consumer layers the same fixed connection patterns to source layers. We propose WhiteMatter, which connects every attention layer to the representations from all layers of each past token, with connection weights that can vary across consumer layers and adapt to the source token. For each token, a router implements these connections by mixing its $L$ layer states into $k$ KV channels that are cached for subsequent tokens; each consumer layer attends to one of the channels. The number of channels $k$ controls the KV-cache size. Setting $k<L$ reduces the cache's memory footprint. In our pretraining experiments, WhiteMatter outperforms a vanilla Transformer with 50% more layers and retains most of this gain with a 50% KV-cache compression.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Bridging KV-Cache Quantization and Linear Attention: From Theory to Pretrained Weight MigrationarXiv · 2026
- KVPath: Connecting Key-Value Representations Across Transformer LayersarXiv · 2026
- CoWindow Attention: Full Causal Coverage Is a Collective PropertyarXiv · 2026
- BellowsKV: One Latent for Many Layers, Expanded on DemandarXiv · 2026
- Kronecker Product Attention: Memory-Efficient KV Compression via Structured FactorizationarXiv · 2026
- Translating KV Caches Between Hybrid-Attention Language Models: MLA Latents, Linear-Attention States and Sparse-Attention IndexersarXiv · 2026