[Paper Review] On the Effective Use of Pretraining for Natural Language Inference
This paper investigates the effective use of pretrained word embeddings—GloVe, word2vec, and retrofitted versions—for natural language inference (NLI) using attention-based sequence-to-sequence models. It finds that pretrained embeddings significantly outperform random initialization, and orthogonal weight initialization yields up to 2.9% accuracy gain; however, retrofitting with WordNet information harms performance on complex NLI tasks due to compositional semantic complexity.
Neural networks have excelled at many NLP tasks, but there remain open questions about the performance of pretrained distributed word representations and their interaction with weight initialization and other hyperparameters. We address these questions empirically using attention-based sequence-to-sequence models for natural language inference (NLI). Specifically, we compare three types of embeddings: random, pretrained (GloVe, word2vec), and retrofitted (pretrained plus WordNet information). We show that pretrained embeddings outperform both random and retrofitted ones in a large NLI corpus. Further experiments on more controlled data sets shed light on the contexts for which retrofitted embeddings can be useful. We also explore two principled approaches to initializing the rest of the model parameters, Gaussian and orthogonal, showing that the latter yields gains of up to 2.9% in the NLI task.
Motivation & Objective
- To evaluate the impact of pretrained word embeddings (GloVe, word2vec) and retrofitted embeddings on natural language inference (NLI) performance.
- To investigate how weight initialization schemes (Gaussian vs. orthogonal) affect model convergence and accuracy in NLI.
- To determine whether retrofitting embeddings with WordNet-based entailment information improves or degrades performance on NLI tasks.
- To analyze the effect of compositional semantic complexity—especially negation—on the performance of different embedding types.
- To identify optimal hyperparameter configurations for sequence-to-sequence models in NLI using large-scale SNLI data.
Proposed method
- Employs an attention-based sequence-to-sequence model architecture for classifying entailment, contradiction, or independence between sentence pairs in the SNLI corpus.
- Compares three embedding types: randomly initialized, pretrained (GloVe and word2vec), and retrofitted (pretrained plus WordNet semantic relations).
- Uses a large hyperparameter search across learning rate, initialization range, embedding dimensionality, and retraining schedules to identify optimal configurations.
- Applies orthogonal weight initialization, which maintains gradient stability and improves optimization in deep networks.
- Conducts controlled experiments on a synthetic negation dataset with increasing compositional complexity (e.g., 'not not not p') to isolate the impact of semantic structure on embedding performance.
- Employs gradient clipping, dropout (0.2), batch size of 32, and a learning rate decay schedule starting at epoch 5 with a factor of 0.8.
Experimental results
Research questions
- RQ1Does pretrained word embedding (GloVe or word2vec) improve NLI performance compared to random initialization?
- RQ2Does orthogonal weight initialization yield better performance than Gaussian initialization in NLI models with pretrained embeddings?
- RQ3Does retrofitting pretrained embeddings with WordNet entailment relations improve NLI accuracy, especially on complex sentences?
- RQ4How does increasing compositional semantic complexity—particularly multi-level negation—affect the performance of retrofitted embeddings?
- RQ5Under what conditions does retrofitting provide a benefit, and when does it degrade performance?
Key findings
- Pretrained embeddings (GloVe and word2vec) significantly outperform random initialization on the SNLI dataset, with GloVe achieving the highest accuracy.
- Orthogonal weight initialization yields up to a 2.9% absolute improvement in NLI accuracy compared to Gaussian initialization.
- Retrofitted embeddings degrade performance on the full SNLI dataset, despite incorporating WordNet-based entailment knowledge.
- On a controlled, increasingly complex negation dataset, retrofitted embeddings show a sharp performance drop as negation depth increases (e.g., 'not not not p'), indicating sensitivity to compositional complexity.
- The performance drop with retrofitting is attributed to small, non-uniform perturbations in high-dimensional space that disrupt optimization paths, especially in complex semantic contexts.
- Even though retrofitting harms performance on complex NLI, it still outperforms random initialization, confirming that pretraining remains beneficial overall.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.