More Expressive Feedforward Layers: Part I. Token-Adaptive Mixing of Activations
Summary
MoA mixes a small activation dictionary (GELU/SiLU/ReLU²/etc.) with lightweight per-token gates on shared FFN projections; LA is the input-independent linear-combination ablation. Finite-width theory: fixed-activation FFN ⊊ LA ⊊ MoA. Pretrains dense Llama 0.12B–0.5B (AdamW, cosine, 20/100 TPP) and LlamaMoE 0.25B–2B (Muon, WSD, ~100 tokens/active param). Type-II one-MoA/qd-MoA beat well-tuned SwiGLU/Muon baselines by >0.01 terminal loss with ~1.03–1.13× wall-clock and negligible params; LlamaMoE-2B zero-shot avg 42.20→42.86/42.96. Also helps MAE ViT-B. No official code on abs.
- Venue
- arXiv / ByteDance Seed / Peking University
- Purpose
- Raise FFN expressivity by mixing a dictionary of activations with input-dependent gates while sharing linear projections
- Scale
- Dense 0.12B/0.25B/0.5B, seq 1024, bs 512, 20 or 100 TPP; MoE 0.25B–2B (A0.11B–A0.62B), 32 experts top-4 + 1 shared; MAE ViT-B/16 800 epochs bs 4096
- Time period
- 2026-05-26 (arXiv 2605.26647 v1); 31 pages.
- Added
- Oct 1, 2026
- Research status
- done
From the source
- Published
- May 26, 2026
- Last revised
- Aug 28, 2026
- arXiv categories
- cs.LG, cs.AI, stat.ML
- Author comment
- 31 pages
- Citations
- 3
- References
- 47
Abstract (from arXiv)
Feedforward network (FFN) layers account for a large fraction of parameters and nonlinear expressivity in Transformer-based large language models (LLMs). Despite the evolution from ReLU and GELU to gated variants such as SwiGLU, most FFN designs still use a single fixed activation function, applying the same nonlinear transformation to all tokens. In this work, we propose Mixture of Activations (MoA), a token-adaptive FFN design that mixes a dictionary of activation functions using lightweight input-dependent gates while sharing the same linear projections. As an input-independent counterpart, we also introduce learnable activations (LA), which form linear combinations of activation functions for both ReLU-type and SwiGLU-type FFNs. Theoretically, we establish strict finite-width expressive separations among fixed-activation FFNs, LA, and MoA: LA strictly contains fixed-activation FFNs, while MoA strictly contains LA, with the additional expressivity arising from input-dependent nonlinear hybridization. Empirically, we evaluate MoA through extensive pre-training experiments on dense and MoE language models ranging from 0.12B to 2B parameters under different token budgets, optimizers, and learning rate schedules. MoA consistently achieves lower terminal loss and exhibits more favorable scaling behavior than well-tuned baselines, with minimal parameter and computational overhead. These results suggest that token-adaptive activation mixing is a simple and effective mechanism for improving FFN expressivity in LLMs.
Tags
Topics
FFN activations, token-adaptive mixing, LLM pretraining
Research notes
- Primary: arxiv abs (cs.LG/AI/stat.ML). ByteDance Seed / Peking University; correspondence wangmingze.999@bytedance.com, zhongshu@bytedance.com. No official code on abs. HF has no paper page (API 404). Discord posted abs. Pretrains on an unnamed high-quality corpus; no standalone public dataset release, so no datasets_local row. ArXiv license widget not visible in converted abs HTML, so paper license left blank.
Similar entries
- Paper Why Adaptive Optimizers Underestimate Rare Tokens
- Paper PowLU: An Activation Function for Stable Pre-Training of LLMs
- Paper Liger Kernel: Efficient Triton Kernels for LLM Training
- Paper Demystifying Manifold Constraints in LLM Pre-training
- Paper TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token Pruning
- Paper daVinci-LLM: Towards the Science of Pretraining