Abstract
As Large Language Models (LLMs) scale, the computational cost of training and inference becomes a primary bottleneck. While attention mechanisms have seen significant optimization, Feedforward Networks (FFNs) account for the majority of a model's parameters and FLOPs. This work demonstrates that replacing standard dense FFN layers with structured matrices—specifically low-rank and block-diagonal configurations—significantly improves FLOP efficiency. By introducing a novel "self-guided training" regime to stabilize optimization and a "pre-merge" technique for inference, we show that "wide and structured" models can outperform dense baselines, achieving lower perplexity with fewer parameters and higher throughput.
The Challenge of Scaling FFNs
Scaling LLMs to billions of parameters makes training and deployment increasingly prohibitive. FFNs typically represent over 60% of both the parameter count and the total FLOPs in modern Transformer architectures. Previous attempts to utilize structured matrices to reduce this overhead have struggled with two main issues:
- Optimization Instability: Structured layers are notoriously difficult to train from scratch, frequently suffering from "loss spikes" and slow convergence due to complex mathematical symmetries and saddle points.
- Inference Bottlenecks: In "online decoding" (generating one token at a time), the overhead of launching multiple smaller kernels for structured operations can actually make the model slower than a single large dense operation.
Methods: Structured Architectures and Self-Guided Training
The researchers explore three specific structured linear parameterizations to replace dense layers: LowRank, BlockShuffle, and BlockDense. These methods aim to reduce the parameter count while maintaining the model's capacity to learn complex features.
To address the training difficulties, two key techniques are introduced:
- Self-Guided Training: During the first half of training, a "crutch" mechanism is used where a dense matrix branch operates in parallel with the structured branch. A decay factor ($\alpha$) gradually shifts the learning burden from the easy-to-optimize dense branch to the structured one. This "guides" the structured layers toward useful feature representations without the initial instability.
- Pre-merge Technique: Since the structured operations are linear, they can be mathematically collapsed (multiplied) into a single dense matrix for inference. This allows the model to benefit from structured efficiency during training while maintaining the high-throughput "single-kernel" performance of dense models during generation.
Key Insights and Scaling Laws
A central finding of this research is that structured FFNs exhibit steeper scaling curves than traditional dense models. This implies that for a given increase in compute (FLOPs), structured models yield greater performance improvements.
The "wide and structured" paradigm suggests that instead of simply shrinking models, we should increase their width (hidden units) while using structured layers to keep the parameter count manageable. For instance, a 464M "wide and structured" model achieved better perplexity than a 729M dense model within the same FLOP budget. Furthermore, structured models appear more robust in "overtraining" scenarios, where models are trained far beyond the Chinchilla-optimal point.
Performance Results
- Training Efficiency: Structured FFNs (using 32% of original FFN parameters) increased training speed by 1.35x for a 1.3B parameter model.
- Inference Throughput: The pre-merge technique enabled an 8% to 17% boost in tokens-per-second compared to efficient GQA baselines.
- Optimization Success: Self-guided training effectively eliminated the "structured penalty," reducing the perplexity gap for LowRank models by approximately 0.4.
Conclusion and Future Work
Structured feedforward layers, when combined with stabilization techniques like self-guided training, offer a promising path toward more efficient LLMs. While implementation complexity and hyperparameter sensitivity remain challenges, the steeper scaling laws suggest these architectures are highly competitive. Future work will explore these benefits at the 70B+ parameter scale and investigate their applicability in vision-based Transformer models.
Summary updated