mlsanityData to 14 Oct 2026

TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters

arXiv 2410.23168 ↗First posted 30 Oct 2024cs.LGcited by 9

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  6. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  7. 2023Visual Instruction Tuningcited by 7,869
  8. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
  9. 2020Scaling Laws for Neural Language Modelscited by 6,586
  10. 2016Layer Normalizationcited by 5,669
  11. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  12. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
23 more
  1. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  2. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  3. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  4. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  5. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  6. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
  7. 2019Root Mean Square Layer Normalizationcited by 1,480
  8. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  9. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
  10. 2020Efficient Transformers: A Surveycited by 790
  11. 2022OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Frameworkcited by 745
  12. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
  13. 2019Graph Transformer Networkscited by 523
  14. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
  15. 2015Net2Net: Accelerating Learning via Knowledge Transfercited by 250
  16. 2023DSVT: Dynamic Sparse Voxel Transformer with Rotated Setscited by 122
  17. 2019Augmenting Self-attention with Persistent Memorycited by 93
  18. 2023Learning to Grow Pretrained Models for Efficient Transformer Trainingcited by 83
  19. 2023UniTR: A Unified and Efficient Multi-Modal Transformer for Bird's-Eye-View Representationcited by 74
  20. 2021bert2BERT: Towards Reusable Pretrained Language Modelscited by 70
  21. 2024Scaling Smart: Accelerating Large Language Model Pre-training with Small Model Initializationcited by 29
  22. 2024GiT: Towards Generalist Vision Transformer through Universal Language Interfacecited by 24
  23. 2024MoE Jetpack: From Dense Checkpoints to Adaptive Mixture of Experts for Vision Taskscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 6; 2026: 3.

9 papers.