Skip to main content
QUICK REVIEW

[Paper Review] Analyzing Compositionality-Sensitivity of NLI Models

Yixin Nie, Yicheng Wang|arXiv (Cornell University)|Nov 16, 2018
Topic ModelingComputer Science20 references8 citations
TL;DR

This paper proposes a compositionality-sensitivity testing setup to evaluate natural language inference (NLI) models' ability to reason beyond lexical features. By selecting examples where bag-of-words models incorrectly predict labels, the method isolates compositional understanding and reveals that state-of-the-art models—despite high performance on standard benchmarks—fail to consistently use compositional semantics, with performance varying significantly by architecture (e.g., tree-based models outperform RNN-based or bag-of-words models).

ABSTRACT

Success in natural language inference (NLI) should require a model to understand both lexical and compositional semantics. However, through adversarial evaluation, we find that several state-of-the-art models with diverse architectures are over-relying on the former and fail to use the latter. Further, this compositionality unawareness is not reflected via standard evaluation on current datasets. We show that removing RNNs in existing models or shuffling input words during training does not induce large performance loss despite the explicit removal of compositional information. Therefore, we propose a compositionality-sensitivity testing setup that analyzes models on natural examples from existing datasets that cannot be solved via lexical features alone (i.e., on which a bag-of-words model gives a high probability to one wrong label), hence revealing the models' actual compositionality awareness. We show that this setup not only highlights the limited compositional ability of current NLI models, but also differentiates model performance based on design, e.g., separating shallow bag-of-words models from deeper, linguistically-grounded tree-based models. Our evaluation setup is an important analysis tool: complementing currently existing adversarial and linguistically driven diagnostic evaluations, and exposing opportunities for future work on evaluating models' compositional understanding.

Motivation & Objective

  • To expose the limited compositional understanding in state-of-the-art NLI models despite their high performance on standard benchmarks.
  • To demonstrate that standard evaluation and existing adversarial setups fail to detect models' over-reliance on lexical features.
  • To develop a robust, generalizable evaluation method that isolates compositional reasoning using natural examples from existing datasets.
  • To differentiate model performance based on architectural design, particularly in sensitivity to syntactic and compositional structure.
  • To complement existing diagnostic evaluations by focusing on compositional semantics rather than specific linguistic phenomena or adversarial perturbations.

Proposed method

  • Identify examples from SNLI and MNLI where a bag-of-words model assigns high probability to a wrong label, indicating that compositional structure is necessary for correct classification.
  • Use these examples as a compositionality-sensitivity (CS) evaluation set to test models' ability to leverage compositional semantics.
  • Train and evaluate models with modified architectures (e.g., replacing RNNs with fully connected layers) and data augmentation (shuffling input words) to assess compositional awareness.
  • Compare model performance on standard benchmarks (SNLI/MNLI) versus the CS evaluation set to measure sensitivity to compositional structure.
  • Use the LMS (lexically-misleading score) metric to filter examples where lexical features alone mislead a bag-of-words model.
  • Apply adversarial evaluation to show that success on one type of compositional perturbation does not generalize, indicating overfitting to specific patterns.

Experimental results

Research questions

  • RQ1To what extent do state-of-the-art NLI models rely on lexical features rather than compositional semantics?
  • RQ2Can standard evaluation and existing adversarial setups reliably detect models' lack of compositional understanding?
  • RQ3How does model architecture (e.g., RNN, tree-based, fully connected) affect sensitivity to compositional structure?
  • RQ4Can a filtered subset of existing NLI datasets be used to create a robust, general-purpose evaluation for compositional reasoning?
  • RQ5Does success on linguistic diagnostic datasets correlate with true compositional understanding, or can models exploit lexical shortcuts?

Key findings

  • Seven state-of-the-art NLI models achieve high performance on standard SNLI and MNLI benchmarks but fail on the compositionality-sensitivity (CS) test, indicating poor compositional understanding.
  • Models with severed RNNs or word-shuffled training data still achieve high performance on standard benchmarks, proving that standard evaluation does not detect loss of compositional access.
  • Bag-of-words-like models perform significantly worse on the CS test than sequential or tree-based models, showing that architectural design correlates with compositional sensitivity.
  • The CS evaluation setup effectively differentiates models based on their ability to process compositional semantics, with tree-based models outperforming RNN-based and fully connected models.
  • Adversarial evaluations are limited in scope and do not generalize: success on one type of adversarial example does not imply robustness to other compositional perturbations.
  • The LMS score effectively identifies examples where lexical features mislead a bag-of-words model, enabling targeted testing of compositional reasoning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.