atlas

Research map / Architectures and efficiency / Attention and transformers

Equivariant Neural Functional Networks for Transformers

ICLR 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.

Characterizes the maximal symmetry group of multi-head attention, builds an equivariant polynomial neural functional network (Transformer-NFN) for transformer weights, and releases the Small Transformer Zoo of ~125k transformer checkpoints on MNIST and AGNews.

Problem

Neural functional networks (NFNs) that take transformer weights as input have not been designed; transformer weight spaces have symmetries (multi-head reparameterizations, permutations) that existing MLP/CNN NFNs do not handle.

Approach

Determine the maximal symmetric group of multi-head attention (S_h × GL_{D_k}^h × GL_{D_v}^h), define a transformer-block weight space with a group action including neuron permutations, and derive a G_U-invariant/equivariant polynomial NFN layer via parameter sharing that is applied to transformer checkpoints to predict generalization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Transformer-NFN instead of the strongest baselineGeneralization prediction · MNIST-Transformers, all five accuracy-threshold settingsKendall's τ: performance gap ranging from $0.004$ to $0.026$Helped
Use Transformer-NFN instead of the strongest baselineGeneralization prediction · AGNews-Transformers, all five accuracy-threshold settingsKendall's τ: Kendall's $\tau$ gaps ranging from $0.018$ to $0.033$Helped
Use encoder weights only (ablation)Transformer-NFN · MNIST-TransformersKendall's τ: 0.905 ± 0.002 vs. 0.902 ± 0.001Hurt
Use encoder weights only (ablation)Transformer-NFN · AGNews-TransformersKendall's τ: 0.909 ± 0.001 vs. 0.910 ± 0.001Hurt
Use embedding weights only (ablation)Transformer-NFN · MNIST-TransformersKendall's τ: 0.424 ± 0.002Hurt
Use classifier weights only (ablation)Transformer-NFN · MNIST-TransformersKendall's τ: 0.847 ± 0.001Hurt
Use classifier weights only (ablation)Transformer-NFN · AGNews-TransformersKendall's τ: 0.795 ± 0.008Hurt
Use embedding and classifier weights only, omitting the encoder (ablation)Transformer-NFN · MNIST-TransformersKendall's τ: 0.857 ± 0.003Hurt
Omit embedding weights (ablation)Transformer-NFN · MNIST-TransformersKendall's τ: 0.904 ± 0.001 vs. 0.905 ± 0.002No clear effect
Omit embedding weights (ablation)Transformer-NFN · AGNews-TransformersKendall's τ: 0.910 ± 0.001 vs. 0.910 ± 0.001No clear effect
Omit classifier weights (ablation)Transformer-NFN · MNIST-TransformersKendall's τ: 0.903 ± 0.001 vs. 0.905 ± 0.002No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: MNIST AGNews

Benchmarks: MNIST-Transformers AGNews-Transformers

Metrics: Kendall's tau

Baselines: MLP STATNN XGBoost LightGBM Random Forest

Builds on: Neural functional networks (permutation-equivariant NFNs) STATNN Kendall tau

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