atlas

Research map / Architectures and efficiency / Attention and transformers

Residual Matrix Transformers: Scaling the Size of the Residual Stream

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Replaces the transformer residual stream with per-token outer-product memory matrices (Residual Matrix Transformer), which scales the residual stream nearly free in parameters and FLOPs and improves pretraining efficiency on OpenWebText.

Problem

Scaling the residual stream in standard transformers increases parameter and FLOP counts linearly, so residual stream bandwidth cannot be scaled independently of model size and compute.

Approach

Replace each token's residual stream vector with an outer-product memory matrix (residual matrix) written to and read from via learned key vectors and tensor contractions, so the residual stream size (D_k x D_v) can grow with negligible parameter or FLOP cost while the attention and FF weight matrices are replaced by key vectors.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace the vector residual stream with an outer-product residual matrixTransformer · OpenWebText after 6B tokenstrain loss: 3.03 -> 2.91Helped
Replace the vector residual stream with an outer-product residual matrixTransformer · OpenWebText train loss 3.03FLOPS: 1.18 \times 10^{19} -> 4.97 \times 10^{18} (-58%)Helped
Replace the vector residual stream with an outer-product residual matrixTransformer · OpenWebText train loss 3.03training tokens: 6.04 \times 10^{9} -> 3.55 \times 10^{9} (-41%)Helped
Replace the vector residual stream with an outer-product residual matrixTransformer · OpenWebText train loss 3.03time: 1.86 \times 10^{5} -> 1.94 \times 10^{5} (+4%)Hurt
Expand the RMT residual stream while holding model size and compute budget fixed (ablation)RMT · OpenWebText; residual stream sizes 384–4096dev lossHelped
Expand residual size from 768 to 4096 (ablation)RMT · OpenWebTextFLOPS to same final loss: 23% fewer FLOPSHelped
Expand residual size from 768 to 4096 (ablation)RMT · OpenWebTexttraining tokens to same final loss: 25% fewer tokensHelped
Use an RMT with residual size 768 instead of an expanded residual stream (ablation)Transformer comparison · OpenWebTextfinal train loss: 3.43 -> 3.42No clear effect
Replace the Transformer with RMTTransformer · Lambada OpenAIperplexity: 61.34 -> 25.21Helped
Replace the Transformer with RMTTransformer · OpenWebText downstreamperplexity: 20.64 -> 18.36Helped
Replace the Transformer with RMTTransformer · Arc Caccuracy: 19.7 -> 20.6Helped
Replace the Transformer with RMTTransformer · Arc Eaccuracy: 44.3 -> 46.1Helped

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebText

Benchmarks: LAMBADA OpenWebText perplexity pile 10K WikiText ARC Challenge ARC Easy HellaSwag PIQA Winogrande

Metrics: train loss dev loss perplexity accuracy FLOPs to target loss tokens to target loss

Baselines: GPT2 transformer (standard) Hierarchical Aggregation Depthwise LSTM Highway Transformer

Builds on: Transformer Kohonen linear associative memory Mu-Parameterization (muTransfer) Highway Networks DenseNet

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy