[Paper Review] Modular Representation Underlies Systematic Generalization in Neural Natural Language Inference Models
This paper introduces 'interchange interventions'—a method to probe internal model states and identify modular representations in neural NLI models. Using a new adversarial NLI dataset, it demonstrates that BERT learns modular, generalizable theories of lexical entailment despite its dense architecture, enabling systematic generalization in reasoning tasks.
In adversarial testing, we pose hard generalization tasks in order to gain insights into the solutions found by our models. What properties must a system have in order to succeed at these hard behavioral tasks? We argue that an essential factor is modular internal structure. Our central contribution is a new experimental method called 'interchange interventions', in which systematic manipulations of model-internal states are related to causal effects on their outputs, thereby allowing us to identify modular structure. Our work is grounded empirically in a new challenge Natural Language Inference dataset designed to assess systems on their ability to reason about entailment and negation. We find that a BERT model is strikingly successful at the systematic generalization task we pose using this dataset, and our active manipulations of model-internal vectors help us understand why: despite the densely interconnected nature of the BERT architecture, the learned model embeds modular, general theories of lexical entailment relations.
Motivation & Objective
- To understand the internal mechanisms that enable neural models to generalize systematically beyond training distribution.
- To develop a causal probing method that identifies modular structure in model-internal representations.
- To evaluate whether BERT learns generalizable theories of lexical entailment and negation under adversarial generalization tasks.
- To assess the role of modular structure in enabling robust performance on out-of-distribution reasoning tasks.
Proposed method
- Introduce 'interchange interventions'—systematic manipulations of internal model states to observe causal effects on model outputs.
- Design a new adversarial Natural Language Inference (NLI) dataset to test systematic generalization in entailment and negation.
- Use attention and representation vectors from BERT as targets for controlled manipulation during inference.
- Measure output changes after swapping or modifying internal representations to infer modular functional units.
- Correlate structural changes in internal states with changes in prediction behavior to identify modular components.
- Apply causal analysis to link specific internal representations to specific reasoning behaviors (e.g., entailment vs. contradiction).
Experimental results
Research questions
- RQ1What internal structural properties enable neural NLI models to generalize systematically beyond training data?
- RQ2Can modular representations be identified and probed in densely connected architectures like BERT?
- RQ3To what extent does BERT learn generalizable theories of lexical entailment and negation?
- RQ4How do specific internal state manipulations affect model predictions in systematic reasoning tasks?
- RQ5Is modular structure causally linked to improved generalization performance in adversarial NLI benchmarks?
Key findings
- BERT demonstrates strong systematic generalization on the new adversarial NLI benchmark, generalizing effectively to unseen combinations of entailment and negation.
- Despite its densely connected architecture, BERT learns modular, interpretable representations corresponding to lexical entailment relations.
- Interchange interventions successfully identify specific internal representations that control entailment and negation decisions.
- Manipulating internal vectors leads to predictable, causal changes in model outputs, confirming the presence of modular functional units.
- The model’s ability to generalize is underpinned by learned, reusable components that encode general logical rules rather than memorized patterns.
- The findings suggest that modular internal structure is a key enabler of systematic generalization in neural NLI models.
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.