TL;DR
ParGLU is a new feed-forward network (FFN) design for Mixture-of-Experts (MoE) Transformers that splits its parameter budget between a gated (SwiGLU) branch and a non-gated (squared ReLU) branch. By trading some gating complexity for a wider intermediate representation, ParGLU achieves better language modeling performance—particularly for rare tokens—without increasing the total parameter count or computational cost.
What Problem Does This Paper Address?
In modern Transformers, the Feed-Forward Network (FFN) is where the bulk of the model's "knowledge" is stored. Most state-of-the-art models use gated FFNs like SwiGLU, which use three linear projections to create multiplicative interactions. However, there is a hidden cost: because gating requires three matrices instead of the traditional two, the "intermediate width" (the number of neurons in the hidden layer) must be reduced to keep the total parameter count the same.
This trade-off is especially painful in Mixture-of-Experts (MoE) models. MoEs achieve efficiency by splitting the FFN into many small "experts," only a few of which are active for any given token. When experts are already small, the "gating tax" shrinks their internal width even further. The author asks a simple but provocative question: Is allocating all of an expert's capacity to gating actually the most efficient use of its limited parameter budget?
Methods
The authors introduce ParGLU (Partial Gated Linear Unit), which processes input through two parallel branches and sums their outputs:
- The SwiGLU Branch: A standard gated branch using SiLU activation.
- The ReLU² Branch: A non-gated branch using a squared ReLU activation.
The "Budget-Neutral" Design: To ensure a fair comparison, ParGLU is designed to match the exact parameter count and Multiply-Accumulate (MAC) operations of a standard SwiGLU FFN. Because the ReLU² branch only requires two projections (input and output) while the SwiGLU branch requires three, the ReLU² branch can be significantly wider for the same "cost."
By default, the paper allocates the parameter budget 50/50 between the two branches. This results in a hybrid structure where the model benefits from the sophisticated multiplicative gating of SwiGLU and the high-capacity representation width of ReLU².
Datasets
The models were trained and evaluated using:
- SmolLM corpus: A high-quality collection of web data, code, and educational content designed for training small, high-performing language models.
- Training Volume: Approximately 1.071 billion tokens per run.
- Evaluation: A validation set of ~5.37 million tokens, further categorized into four "frequency groups" (Q1-Q4) to see how the model performs on rare vs. common words.
Key Insights and Ideas
- The Width-Gating Trade-off: The central "aha moment" is that gating isn't a strictly superior upgrade; it's a trade-off. In constrained environments like MoE experts, "dumb" width (more neurons) can sometimes be more valuable than "smart" gating.
- Second-Order Alignment: Why use squared ReLU (ReLU²)? The author notes that SwiGLU's gating mechanism is mathematically a "second-order" interaction. ReLU² is also a second-order function. When the authors tried swapping ReLU² for GELU (a first-order function), performance dropped. This suggests that the two branches work best when they share the same "mathematical order."
- Rare Token Advantage: ParGLU showed significantly higher gains on low-frequency tokens. This implies that the extra width provided by the non-gated branch helps the model better represent or "memorize" rare patterns that a narrower, fully-gated expert might struggle to capture.
- Serendipitous Research: Interestingly, the author notes in the "Research Origin" section that ParGLU wasn't the result of a long-planned theory, but a "random thought" tested while a GPU was sitting idle.
Key Results
The researchers tested ParGLU against standard SwiGLU across three MoE scales: 30M, 75M, and 152M parameters.
- Consistent Wins at Scale: At 75M and 152M, ParGLU outperformed SwiGLU across all random seeds, reducing mean validation Negative Log-Likelihood (NLL) by 0.0200 and 0.0249, respectively.
- Mixed Results at 30M: At the smallest scale, the results were inconsistent, suggesting that the benefits of partial gating might require a certain "critical mass" of model width to manifest.
- Optimal Allocation: While the 50/50 split was the default, an ablation study found that a 75/25 split (favoring the gated branch) performed even better, though all hybrid mixtures beat the pure SwiGLU baseline.
- Scaling Trends: Controlled ablations showed that as the "backbone" of the model or the width of the experts increased, the relative advantage of ParGLU over SwiGLU grew stronger.
Limitations and Future Work
- Model Scale: The study currently tops out at 152M parameters. While the trends look promising, the authors are currently extending experiments to 300M, 500M, and 1B parameter models to see if the advantage holds.
- Theoretical Gap: The author candidly admits they don't fully understand why such a simple architectural change works so consistently in MoEs. The "second-order alignment" is a compelling hypothesis, but more formal analysis is needed.
- Single Corpus: All results are currently based on the SmolLM corpus; testing on a wider variety of datasets would strengthen the findings.
Summary updated