atlas

Research map / Architectures and efficiency / Attention and transformers

TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 1 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.

Proposes TokenFormer, a Transformer where all linear projections are replaced by token-parameter attention over learnable key-value parameter tokens, enabling incremental parameter scaling (124M to 1.4B) with reuse of smaller pretrained models.

Problem

Transformer scaling requires architectural changes (e.g., channel dimensions) that force retraining from scratch, making growing foundation models increasingly costly.

Approach

Treat model parameters as tokens: each linear projection becomes a cross-attention (Pattention) layer where input tokens are queries and learnable key-value parameter tokens are keys and values. New key-value pairs can be appended to scale the model without changing hidden dimension, with zero-initialized keys preserving the existing output; a GeLU-after-L2-norm replaces softmax.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
progressively reuse smaller Tokenformer parameters when scaling to 1.4B, with 30B training tokensTokenformer · OpenWebText validation, 1.4B parametersperplexity: 13.34 -> 11.77Helped
use Tokenformer parameter reusing rather than scratch training1.4B model · OpenWebText validation, 1.4B parametersperplexity: 11.63 vs. 11.60No clear effect
replace the exponential nonlinearity with GeLU in Pattention (ablation)Tokenformer Pattention · ImageNet classificationTop-1 accuracy: +2.1 pointsHelped
replace L1 normalization with L2 normalization in Pattention (ablation)Tokenformer Pattention with GeLU · ImageNet classificationTop-1 accuracy: +0.8 pointsHelped
remove learnable layer-normalization weight (ablation)Tokenformer · ImageNet classificationTop-1 accuracy: 82.6 -> 82.5No clear effect
remove learnable layer-normalization weight and bias (ablation)Tokenformer · ImageNet classificationTop-1 accuracy: 82.6 -> 82.5No clear effect
progressively reuse smaller Tokenformer parameters at 354MTokenformer · OpenWebText validation, 354M parameters, 30B tokensperplexity: 15.97 -> 14.02Helped
progressively reuse smaller Tokenformer parameters at 757MTokenformer · OpenWebText validation, 757M parameters, 30B tokensperplexity: 13.78 -> 12.59Helped

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebText Pile EnWik8 ImageNet-1K

Benchmarks: Pile LAMBADA HellaSwag PIQA ARC-Easy ARC-Challenge WinoGrande ImageNet-1K

Metrics: perplexity zero-shot accuracy top-1 accuracy training FLOPs

Baselines: Pythia Mamba OPT GPT-Neo ViT DeiT Net2Net HyperCloning RWKV

Builds on: Transformer LoRA Net2Net Pythia

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