Mixture of Activations: Token-Adaptive Mixing for Expressive Feedforward Layers
Mingze Wang, Jinbo Wang, Yikuan Xia, Shen Kai, Mingwu Zheng
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Efficient LLM Inference & Training › Efficient Sequence Modeling · Type: new method · Keywords: feedforward networks, activation functions, token-adaptive mixing, expressivity, large language models
Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Mixture Architectures
Summary
Mixture of Activations (MoA) introduces token-adaptive mixing of activation functions in feedforward layers to increase expressivity while keeping parameter overhead low.
Explained to a 5-year-old
In computer programs that think like language models, there are parts that decide what to do next. Usually they use one rule for everything. This paper makes them use different rules for different words, like mixing paints to get new colors. It does this by learning little switches that pick the right rule for each word. This helps the program understand more things without using many extra parts and makes it smarter and faster.
Explained to a 5-year-old, longer
Computers that read and write text have special parts called feed-forward layers that help them think. These layers usually follow the same rule, like a single recipe, for every piece of text. The new idea is to let these layers pick different rules for different words, just like how a painter mixes colors. It does this by learning tiny decision-makers that choose which rule to use for each word. The chosen rules come from a small collection of possible functions, like different shapes you can draw. Because the same big connections stay the same, only a few extra tiny parts are needed. The researchers also created a simpler version where the rules are fixed blends of the possible functions. They proved mathematically that this new way can do things the old way cannot, and even more than the simpler version. In experiments, the new method lowered the error of the models and made them scale better as they got bigger. It achieved these gains while using almost the same amount of memory and computing power. This makes it possible to make language models smarter without buying a lot of new computer hardware. Overall, the approach gives models more flexibility to understand language, just like giving a student many tools to solve problems.
For a technical reader
The paper introduces Mixture of Activations (MoA), a token-adaptive FFN that mixes multiple activation functions per token using lightweight gates while sharing linear projections. It also proposes Learnable Activations (LA) that form fixed linear combinations of activations for both ReLU-type and SwiGLU-type layers. Theoretical analysis shows a strict expressivity hierarchy: fixed-activation FFNs ⊂ LA ⊂ MoA. Empirically, MoA reduces final training loss and improves scaling across dense and MoE models from 0.12B to 2B parameters with negligible overhead. The approach can be dropped into existing Transformer pipelines with minimal changes.
Problem
Most feedforward network layers in Transformers use a single fixed activation function applied uniformly to all tokens, limiting expressivity. There is a need for more flexible activation transformations that can adapt per token without increasing parameters.
Method
The approach mixes a dictionary of activation functions using lightweight input-dependent gates while sharing linear projections, and also introduces learnable activations that form linear combinations of activations. It operates within existing FFN structures, adding only a small gating overhead. The design is applied to both dense and mixture-of-experts models.
Results
The approach achieves lower terminal loss and better scaling than baselines while using minimal extra parameters and compute.
Contributions
It proposes token-adaptive activation mixing and learnable activations that can be integrated into existing FFNs. It also provides theoretical expressive separations and empirical validation across dense and MoE models, showing consistent improvements in loss and scaling.
Practical relevance
It offers a simple, parameter-efficient way to boost the expressivity of large language models, potentially leading to better performance without significant computational cost.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction