[Paper Review] Stress-Testing Neural Models of Natural Language Inference with Multiply-Quantified Sentences
This paper introduces a method to generate natural language inference (NLI) datasets with precisely controlled semantic complexity using multiply-quantified sentences, enabling stress-testing of neural models. It shows that standard architectures like LSTM and TreeNN fail due to information bottlenecks in separate premise-hypothesis encoding, while a model with forced lexical alignment (CompTreeNN) achieves perfect performance by propagating word-level semantic relations.
Standard evaluations of deep learning models for semantics using naturalistic corpora are limited in what they can tell us about the fidelity of the learned representations, because the corpora rarely come with good measures of semantic complexity. To overcome this limitation, we present a method for generating data sets of multiply-quantified natural language inference (NLI) examples in which semantic complexity can be precisely characterized, and we use this method to show that a variety of common architectures for NLI inevitably fail to encode crucial information; only a model with forced lexical alignments avoids this damaging information loss.
Motivation & Objective
- To address the lack of precise semantic complexity measures in naturalistic NLI corpora, which limits the evaluation of neural models' semantic fidelity.
- To develop a method for generating synthetic NLI datasets where semantic complexity is fully controllable and analyzable.
- To identify architectural weaknesses in common NLI models when handling complex logical interactions in natural language.
- To evaluate whether forced lexical alignment can overcome information bottlenecks in sentence representation learning.
Proposed method
- The method uses an interpreted formal grammar to generate sentences with multiple quantifiers, modifiers, negations, and open-class words, ensuring semantic independence between non-identical items.
- Each sentence is deterministically translated into first-order logic, enabling precise semantic analysis and validation via an off-the-shelf theorem prover.
- Premise-hypothesis pairs are generated such that identical aligned words are equivalent, and non-identical ones are semantically independent, trivializing lexical relation determination.
- The approach enforces fixed semantic scope via surface order and uses a constrained vocabulary to isolate logical complexity from lexical ambiguity.
- Models are evaluated on their ability to correctly classify entailment, contradiction, or independence in these controlled examples.
- A specialized model, CompTreeNN, is introduced that processes premise and hypothesis in strict word-by-word alignment, propagating local semantic relations through a tree-structured network.
Experimental results
Research questions
- RQ1Can neural models for NLI reliably learn complex logical interactions in multiply-quantified sentences when semantic complexity is precisely controlled?
- RQ2Do standard architectures like LSTM and TreeNN suffer from information bottlenecks when encoding premise and hypothesis separately?
- RQ3To what extent does attention mechanism mitigate the loss of lexical identity in complex NLI examples?
- RQ4Can a model with forced lexical alignment outperform standard architectures in capturing fine-grained semantic relations in natural language?
- RQ5Is the failure of standard models due to architectural limitations or suboptimal hyperparameter settings?
Key findings
- The CompTreeNN model achieves 100% accuracy on the generated NLI dataset, demonstrating perfect learning of semantic relations.
- Standard LSTM and TreeNN models achieve only ~96% accuracy, systematically failing to preserve lexical identity across complex logical structures.
- The Attention LSTM model shows high variance in performance, with test accuracy ranging from ~94% to ~97%, but never exceeds 60% on examples with informative open-class lexical items.
- The failure is not due to low-dimensional representations, as increasing embedding size to 200 dimensions does not improve performance, indicating an architectural limitation.
- Hyperparameter searches do not resolve the performance gap, as the model remains stuck in suboptimal solutions, confirming that the issue is structural, not optimization-related.
- Only models that explicitly align premise and hypothesis at the lexical level—like CompTreeNN—avoid systematic information loss, proving that architectural design is critical for robust semantic representation.
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.