r/ResearchML • u/Cy74 • 2h ago
Let every Transformer layer reach states at all depths (Paper + Video explainer)
In a standard Transformer, each layer only reads the KV cache from its own depth. A shallow layer can't use what deeper layers already computed for earlier tokens. Similarly, when deep layer need to reach shallow ones, the information will need to pass through the residual stream, which has a limited bandwidth.
Our recent work, WhiteMatter: All-to-All Cross-Layer Connections via KV Source Mixing, lets every layer read from every depth. Each layer's keys and values are a learned mix of states from all layers. Trained on the same number of tokens, it matches a vanilla model with 50% more layers.
The catch: a token's shallow layers now wait on the deep layers of earlier tokens, so training & prefill can't process all tokens at once. Our solution, cyclic iteration, matches token-by-token quality in 4 parallel passes. The Jacobi method use in prior works needs 53.
Paper: https://arxiv.org/abs/2608.18486
Video: https://www.youtube.com/watch?v=NCjJzBGdgTU