TL;DR
This paper introduces "gate with inhibition" (giMLP), a novel mechanism for MLPs and Transformers that selectively inhibits or enhances features during fine-tuning. This approach improves performance on both image classification and natural language understanding (NLU) tasks without requiring extensive retraining, offering a more efficient way to adapt pre-trained models.
What Problem Does This Paper Address?
The paper tackles a key challenge in adapting large pre-trained models for downstream tasks: the need for extensive retraining or complex feature selection to achieve optimal performance. While Transformers have dominated NLP and MLPs are gaining traction in vision, both can struggle with efficiently identifying and utilizing relevant features, especially when dealing with dense feature pools. Existing methods often rely on re-pretraining on massive datasets or intricate architectural modifications. The authors aim to provide a more efficient and effective solution by introducing a mechanism that can dynamically adjust feature importance during fine-tuning, thereby enhancing model adaptation and prediction capacity without the computational burden of additional pre-training.
Methods
The core innovation is the "gate with inhibition" (giMLP) mechanism. This mechanism is integrated into existing MLP architectures (like CycleMLP) and Transformer blocks. It comprises two key components:
- Gating MLP: This component uses matrix multiplications to adjust the input to the MLP or attention layers, allowing for feature selection.
- Inhibition: This novel technique selectively inhibits or enhances the branch adjustments made by the gating MLP. By controlling an "inhibition level" (parameterized as a percentile), the model can either suppress less important features or amplify more crucial ones. This is achieved by assigning negative values to features that have a negative effect, rather than simply removing them.
The authors also propose giTransformers, which embed this giMLP mechanism into the attention layers of Transformers. For image classification, they integrate giMLP into CycleMLP, creating giCycleMLP.
Datasets
The paper evaluates its methods on several standard datasets:
- ImageNet: Used for image classification tasks.
- GLUE benchmark: A collection of diverse NLU tasks.
- SQuAD v1.1 and v2.0: Datasets for question answering.
- SWAG: A dataset for commonsense inference.
- NER: CONLL-2003: A dataset for named entity recognition.
No new benchmarks were introduced.
Key Insights and Ideas
- Inhibition as a Feature Refinement Tool: The core idea that selectively inhibiting (assigning negative values) rather than just ignoring or zeroing out features can lead to better adaptation is a key insight. This allows for a more nuanced control over feature importance.
- Efficiency in Fine-tuning: The giMLP mechanism demonstrates that significant performance gains can be achieved during fine-tuning without the need for extensive re-pretraining on massive datasets, which is a major computational bottleneck.
- Activation Function Choice Matters: The authors found that activation functions with short, smooth negative tails (like GELU) are beneficial for the inhibition mechanism, allowing for effective suppression of unimportant or negatively impacting features.
- Adaptability Across Modalities: The success of giMLP in both image classification (giCycleMLP) and NLU tasks (giBERT, giRoBERTa, giDeBERTaV3) highlights its versatility and potential as a general-purpose adaptation mechanism.
Key Results
- ImageNet: giCycleMLP achieved comparable performance to the original CycleMLP on ImageNet classification, demonstrating its effectiveness without extra pretraining.
- NLU Tasks: giTransformers (giBERT, giRoBERTa, giDeBERTaV3) showed significant improvements on various NLU tasks (GLUE, SQuAD, SWAG, NER) compared to their base models, often outperforming them without additional pretraining. For instance, giDeBERTaV3 outperformed original DeBERTaV3 in nine out of twelve tasks.
- Efficiency: The paper emphasizes that these improvements were achieved with fine-tuning, not re-pretraining, showcasing a more efficient adaptation strategy.
- Inhibition Level Impact: The study found that different inhibition percentiles (e.g., 10%, 30%) yielded varying degrees of improvement, suggesting that an optimal inhibition level can be found for specific tasks.
Limitations and Future Work
- Training Time for Optimal Performance: While giMLP improves fine-tuning, the paper notes that for some tasks, the models might require more training steps to fully realize the benefits of the inhibition mechanism, especially when compared to models that have undergone extensive pretraining.
- Activation Function Sensitivity: The performance can be sensitive to the choice of activation function, with GELU showing superior results in many cases due to its short negative tail.
- Future Work: The authors suggest further exploration of the inhibition mechanism's influence on different activation functions and its application to a wider range of tasks and architectures. They also highlight the potential for this mechanism to enhance sparsity and efficiency in large language models.
Summary updated