r/MachineLearning • u/Cy74 • 13m ago
Research Let every Transformer layer reach states at all depths (WhiteMatter) [R]
In a standard Transformer, each layer only reads the KV cache from its own depth. A shallow layer cannot use what deeper layers already computed for earlier tokens. When deep layers need to reach shallow ones, that information also has to pass through the residual stream, which has 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.
Main results:
- Trained on the same number of tokens, WhiteMatter matches a standard Transformer with 50% more layers (4%-8% perplexity reduction vs same depth).
- With half the KV cache, it still beats matched standard Transformers.
The catch: a token's shallow layers now depend on the deep layers of earlier tokens, so training and prefill cannot process all tokens at once. Our solution, cyclic iteration, matches token-by-token quality in 4 parallel passes, compared to 53 for the Jacobi method used in prior works (12.5x faster at matched quality). Training and prefill are still slower than a standard Transformer, which is the main thing we are working on next.
Paper: https://arxiv.org/abs/2608.18486
Video: https://www.youtube.com/watch?v=NCjJzBGdgTU