Introduction
The prevailing trend in Natural Language Processing (NLP) has favored increasingly large pretrained Transformer models. While models like BERT and XLNet have achieved state-of-the-art performance, their massive parameter counts pose significant challenges for deployment in resource-constrained or real-time environments. This research investigates the "geography of redundancy" within these architectures, quantifying how much of their capacity is truly necessary for linguistic tasks.
Quantifying Redundancy
The study distinguishes between General Redundancy—information redundant across all tasks—and Task-specific Redundancy—neurons unnecessary for a particular application. To map this, the authors employed a multi-level analytical framework.
Layer-level Analysis
Using Center Kernel Alignment (CKA), the researchers measured the similarity of internal representations across different layers. The results indicate that Transformers learn incrementally; adjacent layers often exhibit high similarity, suggesting that the model refines information in small steps rather than discrete leaps.
As shown in the heatmaps, the final layers (11 and 12) often diverge significantly from their predecessors. This "final layer exception" likely stems from these layers being specialized for the pretraining objective (e.g., masked language modeling), whereas middle layers capture more transferable linguistic features.
Neuron-level Analysis
To identify redundant individual components, the authors utilized Correlation Clustering (CC). This method groups neurons that exhibit similar firing patterns across datasets. By selecting a single representative neuron from each cluster, the model's feature space can be drastically compressed.
The analysis reveals that a vast majority of neurons are redundant. For BERT, accuracy remains remarkably stable even as the number of features is reduced by over 80% through clustering.
Key Findings and Architectural Insights
The research yielded several critical insights into Transformer behavior:
- Massive Bloat: Approximately 85% of neurons are generally redundant across the network. For specific downstream tasks, this figure can exceed 92%.
- The Pyramid Hypothesis: Lower layers, which handle broad linguistic features, require more neurons than higher layers focused on complex reasoning. This suggests that a "pyramid-shaped" architecture—wider at the base and narrower at the top—might be more efficient than current uniform designs.
- Efficiency Gains: By applying an efficient feature-based transfer learning procedure, the authors maintained 97% of original performance while utilizing only 10% of the neurons, resulting in a 6.2x inference speedup for sequence labeling tasks.
Conclusion
This study demonstrates that modern Transformer models are significantly over-parameterized. By identifying and removing redundant layers and neurons, it is possible to achieve substantial computational savings with minimal impact on accuracy. Future work should explore how these redundancy patterns evolve during fine-tuning and extend these findings to even larger models, guiding the design of more efficient, non-uniform architectures.
Summary updated