TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters
Not on the map. Why?
Abstract (arXiv)
Transformers have become the predominant architecture in foundation models due to their excellent performance across various domains. However, the substantial cost of scaling these models remains a significant concern. This problem arises primarily from their dependence on a fixed number of parameters within linear projections. When architectural modifications (e.g., channel dimensions) are introduced, the entire model typically requires retraining from scratch. As model sizes continue growing, this strategy results in increasingly high computational costs and becomes unsustainable. To overcome this problem, we introduce TokenFormer, a natively scalable architecture that leverages the attention mechanism not only for computations among input tokens but also for interactions between tokens and model parameters, thereby enhancing architectural flexibility. By treating model parameters as tokens, we replace all the linear projections in Transformers with our token-parameter attention layer, where input tokens act as queries and model parameters as keys and values. This reformulation allows for progressive and efficient scaling without necessitating retraining from scratch. Our model scales from 124M to 1.4B parameters by incrementally adding new key-value parameter pairs, achieving performance comparable to Transformers trained from scratch while greatly reducing training costs. Code and models are available at https://github.com/Haiyang-W/TokenFormer.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 35 of its 49 references that are in the map. First posted on arXiv 30 Oct 2024.
Builds on
35 of 49 references.
References · 35
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2023Visual Instruction Tuningcited by 7,869
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2016Layer Normalizationcited by 5,669
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
23 more
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2020Efficient Transformers: A Surveycited by 790
- 2022OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Frameworkcited by 745
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
- 2019Graph Transformer Networkscited by 523
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
- 2015Net2Net: Accelerating Learning via Knowledge Transfercited by 250
- 2023DSVT: Dynamic Sparse Voxel Transformer with Rotated Setscited by 122
- 2019Augmenting Self-attention with Persistent Memorycited by 93
- 2023Learning to Grow Pretrained Models for Efficient Transformer Trainingcited by 83
- 2023UniTR: A Unified and Efficient Multi-Modal Transformer for Bird's-Eye-View Representationcited by 74
- 2021bert2BERT: Towards Reusable Pretrained Language Modelscited by 70
- 2024Scaling Smart: Accelerating Large Language Model Pre-training with Small Model Initializationcited by 29
- 2024GiT: Towards Generalist Vision Transformer through Universal Language Interfacecited by 24
- 2024MoE Jetpack: From Dense Checkpoints to Adaptive Mixture of Experts for Vision Taskscited by 9
Built on by
Citing papers per year: 2025: 6; 2026: 3.
9 papers.
- 2025UFO: A Unified Approach to Fine-grained Visual Perception via Open-ended Language Interfacecited by 27
- 2026Depth-Recurrent Attention Mixtures: Giving Latent Reasoning the Attention it Deservescited by 12
- 2025Improving Progressive Generation with Decomposable Flow Matchingcited by 6
- 2025Grow Up and Merge: Scaling Strategies for Efficient Language Adaptationcited by 3
- 2025T2S: Tokenized Skill Scaling for Lifelong Imitation Learningcited by 2
- 2025Flash Multi-Head Feed-Forward Networkcited by 1
- 2026Key-Value Means: Transformers with Expandable Block-Recurrent Compressed Memorycited by 1
- 2025Millions of States: Designing a Scalable MoE Architecture with RWKV-7 Meta-learnercited by 0
- 2026Nexusformer: Nonlinear Attention Expansion for Stable and Inheritable Transformer Scalingcited by 0
- 2026Key-Value Means: Transformers with Expandable Block-Recurrent Compressed Memory11 May 2026
- 2026Nexusformer: Nonlinear Attention Expansion for Stable and Inheritable Transformer Scaling21 Apr 2026
- 2026Depth-Recurrent Attention Mixtures: Giving Latent Reasoning the Attention it Deserves29 Jan 2026
- 2025Grow Up and Merge: Scaling Strategies for Efficient Language Adaptation11 Dec 2025
- 2025Flash Multi-Head Feed-Forward Network7 Dec 2025
- 2025T2S: Tokenized Skill Scaling for Lifelong Imitation Learning2 Aug 2025
- 2025Improving Progressive Generation with Decomposable Flow Matching24 Jun 2025
- 2025Millions of States: Designing a Scalable MoE Architecture with RWKV-7 Meta-learner11 Apr 2025
- 2025UFO: A Unified Approach to Fine-grained Visual Perception via Open-ended Language Interface3 Mar 2025