Abstract
Deep learning models in Natural Language Processing (NLP) frequently utilize high-dimensional word embeddings, which often leads to significant overfitting due to the high ratio of parameters to labeled data. This study systematically compares various regularization techniques, including weight decay, dropout, and specific embedding penalties. Our findings highlight the unexpected effectiveness of $L_2$ norm penalties on embeddings for both generalization and optimization speed. Furthermore, we demonstrate that regularization can be applied incrementally during training without loss of performance, and that combining weight decay with embedding penalties yields superior results compared to individual strategies.
Introduction
Word embeddings are a cornerstone of modern NLP, providing continuous vector representations of words. However, the massive parameter space of embedding layers, combined with the sparse nature of updates (where only words present in a given sentence are modified), makes these models highly susceptible to overfitting. While traditional regularization methods like weight decay are well-established in computer vision, their behavior in sparse NLP contexts requires closer examination. This paper evaluates four primary strategies: standard $L_2$ weight decay, $L_2$ penalties on embeddings, re-embedding (penalizing distance from pre-trained vectors), and dropout.
Experimental Setup
The study employed two distinct architectures and benchmarks:
- Convolutional Neural Network (CNN): Applied to the SemEval-2010 Task 8 relation extraction dataset (~7,000 samples).
- Recursive Neural Network (RNN): Applied to the Stanford Sentiment Treebank (SST) dataset (>150,000 samples).
Key Insights
The Efficacy of Embedding Penalties
A primary discovery is that penalizing the $L_2$ norm of embeddings ($\lambda_{embed}$) significantly improves both generalization and training efficiency. By pushing pre-trained vectors toward smaller values, the regularization appears to assist the optimizer in navigating the error surface toward better local optima more rapidly.
Incremental Regularization
The researchers found that regularization does not need to be active from the start of training. Models can be trained without penalties until overfitting begins; adding regularization at that point ("incremental tuning") results in performance nearly identical to models regularized from epoch zero. This suggests that regularization primarily influences the local "catchment basin" of the error surface rather than the global trajectory.
Synergy Between Strategies
While individual strategies like weight decay or embedding penalties provide substantial gains, their combination is even more effective. This suggests that these methods target different aspects of the model's capacity, acting as complementary rather than redundant constraints.
Results and Discussion
In the relation extraction task using a CNN, the baseline accuracy without regularization was 54.02%. Applying $L_2$ regularization to weights alone improved this to 61.00%, while applying it to embeddings alone reached 60.91%. The most significant performance boost came from combining both, which achieved a peak accuracy of 64.00%.
The impact of regularization was notably more pronounced on the smaller SemEval dataset (approx. 7% gain) compared to the larger SST dataset (approx. 2% gain), reinforcing the principle that larger datasets provide inherent regularization. Interestingly, $L_2$ methods generally outperformed dropout in these specific configurations, though the authors note that dropout's utility may be more sensitive to hidden layer dimensionality.
Conclusion
This comparative study underscores the importance of tailored regularization for embedding-based NLP models. Specifically, $L_2$ penalties on embeddings are a powerful tool for improving both accuracy and optimization. The feasibility of incremental tuning offers a practical way to reduce the computational cost of hyperparameter searches. Future research should investigate how these findings translate to modern transformer-based architectures and larger-scale optimization landscapes.
Summary updated