[Paper Review] Improving Natural Language Inference with a Pretrained Parser
This paper proposes a simple yet effective method to improve natural language inference (NLI) by integrating contextual syntactic representations from a pretrained dependency parser into existing NLI models. By fusing these syntactic word representations (SWRs) either via late fusion or attention mechanisms, the approach consistently boosts accuracy across four strong NLI models (decomposable attention, ESIM, BERT, MT-DNN) on SNLI, MNLI, and SciTail, with gains up to 3.1% on HANS, indicating reduced reliance on spurious heuristics.
We introduce a novel approach to incorporate syntax into natural language inference (NLI) models. Our method uses contextual token-level vector representations from a pretrained dependency parser. Like other contextual embedders, our method is broadly applicable to any neural model. We experiment with four strong NLI models (decomposable attention model, ESIM, BERT, and MT-DNN), and show consistent benefit to accuracy across three NLI benchmarks.
Motivation & Objective
- To improve the performance of neural NLI models by incorporating syntactic structure from a pretrained parser.
- To explore whether syntactic representations learned from large-scale parsing pretraining can enhance semantic reasoning in NLI.
- To develop a general, parameter-efficient method applicable to diverse NLI architectures without architectural modification.
- To evaluate whether syntactic integration reduces over-reliance on spurious lexical and syntactic heuristics, as measured by the HANS benchmark.
Proposed method
- Extract contextual token-level vector representations (syntactic word representations, SWRs) from the hidden states of a pretrained dependency parser's encoder for both premise and hypothesis.
- Apply late fusion (+LF) by concatenating the final parser representations of the premise and hypothesis to the final representation vector before classification.
- Implement syntactic attention (+SA) by augmenting standard attention computation with SWRs, modifying the attention score to include both semantic and syntactic representations.
- Integrate SWRs into four NLI models: decomposable attention, ESIM, BERT, and MT-DNN, using either +LF or +SA depending on model compatibility.
- Train models end-to-end with standard NLI objectives while preserving the pretrained parser’s parameters.
- Evaluate performance on SNLI, MNLI, and SciTail, and probe model behavior using the HANS dataset to assess heuristic reliance.
Experimental results
Research questions
- RQ1Can syntactic representations from a pretrained parser improve the accuracy of diverse neural NLI models?
- RQ2Does the integration of syntactic information reduce models’ reliance on spurious lexical and syntactic heuristics?
- RQ3Is the proposed method of late fusion or syntactic attention more effective across different NLI architectures?
- RQ4Does the improvement from syntactic representations generalize across multiple NLI benchmarks with varying data distributions?
Key findings
- The proposed method consistently improves NLI accuracy across four strong models (decomposable attention, ESIM, BERT, MT-DNN) on SNLI, MNLI, and SciTail.
- Late fusion (+LF) yields consistent improvements, with a 3.1% absolute gain on the SciTail dataset for the DA +SA model.
- Syntactic attention (+SA) reduces model reliance on fallible heuristics: for example, BERT +LF improves HANS overall accuracy from 50.2% to 53.2%, with more balanced performance across entailment and non-entailment labels.
- On the HANS benchmark, models enhanced with SWRs show a significant reduction in performance disparity between entailment and non-entailment cases, indicating less exploitation of syntactic shortcuts.
- The ablation study confirms that +LF is robust to noise, while +SA struggles when noise is introduced, suggesting +LF is more reliable in practice.
- The method is broadly applicable and adds minimal parameters, making it a practical and effective enhancement for existing NLI systems.
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.