Abstract
Natural Language Inference (NLI) requires capturing complex semantic interactions between sentence pairs. While attention mechanisms are the standard approach, they often struggle with phrase-level dependencies. This paper introduces the Convolutional Interaction Network (CIN), which uses a Filter Generation Network to dynamically create convolutional filters from one sentence to process the other. CIN generalizes standard attention and achieves state-of-the-art results on major benchmarks including SNLI, MultiNLI, and Quora Question Pairs.
Introduction
The task of Natural Language Inference (NLI) involves determining if a premise sentence entails, contradicts, or is neutral toward a hypothesis sentence. Modern NLI models rely heavily on attention mechanisms to bridge the "lexical chasm" between sentences. However, standard attention typically computes a weighted sum of word vectors, which can fail to capture sophisticated, context-dependent interactions at the phrase level.
To address this, the Convolutional Interaction Network (CIN) is proposed. CIN moves beyond static attention weights by employing dynamic parameter generation. By treating one sentence as a source for generating convolutional filters for the other, the model can extract features at multiple levels of granularity—words, phrases, and full sentences—allowing for a more nuanced understanding of logical relationships.
Architecture and Methodology
The CIN architecture consists of three primary stages: encoding, interaction, and prediction.
1. Encoding Layer
Sentences are first converted into dense representations using word embeddings (Word2Vec/GloVe), character-level CNNs, and POS tagging. These are then processed by a Bi-directional LSTM to capture local and global context, resulting in phrase-level hidden states.
2. Convolutional Interaction Layers
The core innovation is the Filter Generation Network (FGN). Instead of using fixed weights, the FGN takes the encoded representation of Sentence A, applies k-max pooling to identify salient features, and generates a set of dynamic convolutional filters. Sentence B is then convolved using these filters, and vice versa. This cross-interaction ensures that the feature extraction process for one sentence is directly conditioned on the content of the other.
3. Prediction Layer
The resulting context-aware representations are fused and pooled (using both average and max pooling). A final feed-forward neural network (FNN) processes these features to output the probability distribution over the NLI labels.
Experiments and Results
The model was evaluated on three large-scale benchmarks: the Stanford Natural Language Inference (SNLI) dataset, Multi-Genre NLI (MultiNLI), and Quora Question Pairs.
As shown in the results table, CIN achieves highly competitive performance. On the SNLI dataset, a single CIN model reached 88.0% accuracy, outperforming strong baselines like ESIM and DIIN. An ensemble version further improved this to 89.1%. On MultiNLI, CIN demonstrated robust generalization, achieving 77.0% on matched and 77.6% on mismatched sets. For the Quora paraphrase task, it reached 88.62% accuracy.
Ablation studies confirmed the importance of the interaction layer; removing it led to a significant performance drop (from 88.0% to 85.1% on SNLI), highlighting that dynamic convolutional interaction is the key driver of the model's success.
Discussion
A significant theoretical contribution of this work is the demonstration that standard multiplicative attention is a special case of CIN. When the convolutional filter size is set to 1 and a specific generation function is used, CIN's equations reduce to those of standard attention. This positions CIN as a more flexible and generalized framework for sentence interaction.
By utilizing "HyperNetwork"-style parameter generation, CIN adapts its feature extraction strategy for every unique sentence pair. This allows it to capture phrase-level logic that simple weighted sums might miss. While powerful, the dynamic generation of filters may introduce higher computational costs compared to static attention, a trade-off that warrants further investigation for real-time applications.
Conclusion
The Convolutional Interaction Network offers a robust alternative to standard attention for NLI tasks. By leveraging dynamic filter generation, it captures complex semantic interactions across varying levels of granularity. Future research may extend this framework to other domains, such as Machine Reading Comprehension, where deep interaction between queries and context is essential.
Summary updated