Abstract
Matching text chunks is a fundamental challenge in Natural Language Processing (NLP), complicated by the hierarchical and non-parallel nature of human language. We present MultiGranCNN, a deep learning architecture that addresses this by comparing text across multiple levels of granularity. By mapping unigrams, short phrases, long phrases, and full sentences into a shared $d$-dimensional space, the model enables direct comparison between disparate structures—such as a single word being matched against a multi-word phrase. Evaluated on clause coherence and paraphrase identification, MultiGranCNN achieves state-of-the-art results, demonstrating the efficacy of multigranular representations and specialized match-feature modeling.
Introduction
Many core NLP tasks, ranging from question answering to machine translation evaluation, can be framed as a matching problem: determining the relationship between two chunks of text. The primary difficulty lies in the fact that concepts are often expressed with varying complexity across different contexts. A single word in one sentence (e.g., "reignite") might be expanded into a multi-word phrase in another ("fan the flames of").
Traditional models often matched text at fixed levels—word-to-word or sentence-to-sentence—thereby missing these critical "cross-granular" relationships. Furthermore, different tasks require distinct types of matching logic; for instance, paraphrase identification seeks semantic identity, while discourse coherence requires modeling logical progression. MultiGranCNN was designed as a general-purpose architecture to handle both varying granularity and diverse task requirements.
The MultiGranCNN Architecture
The architecture is composed of several modular stages designed to extract, compare, and analyze hierarchical text features.
Generalized Phrase CNN (gpCNN)
The core component is the gpCNN, which uses stacked convolution and pooling layers to extract representations for "g-phrases" (unigrams, short phrases, long phrases, and the entire sentence). A critical innovation here is that all these representations are projected into the same $d$-dimensional vector space. This ensures that a unigram representation is mathematically comparable to a long phrase representation.
Siamese Configuration and Match Feature Models
To process two input chunks (Chunk A and Chunk B), the system employs a Siamese configuration using two identical gpCNNs. This ensures both chunks are analyzed using the same learned semantic parameters. Once the hierarchical representations are extracted, they are compared using one of three "Match Feature" models:
- DIRECTSIM: Utilizes a radial basis function to measure direct vector similarity, making it ideal for tasks like paraphrase identification.
- INDIRECTSIM: Learns a task-specific transformation matrix to determine if one phrase logically implies or leads into another, which is particularly effective for modeling discourse coherence.
- CONCAT: A general-purpose model that concatenates vectors for analysis by a multi-layer perceptron.
Dynamic 2D Pooling and mfCNN
Because text chunks vary in length, the resulting match matrix (representing interactions between all g-phrases of Chunk A and Chunk B) is variable-sized. To handle this, the authors introduce a novel "phrase-focused" dynamic 2D pooling layer that downsamples the interaction matrix into a fixed size while preserving the most salient features. Finally, a second CNN layer, the mfCNN (Match Feature CNN), scans this fixed-size matrix to identify high-level patterns of interaction between the two text chunks.
Key Insights
Multigranular Comparability
The central insight of this work is treating words simply as phrases of length one. By forcing every level of the linguistic hierarchy into a shared vector space, the model can effectively search the hypothesis space for matches that do not align perfectly in structure or length.
Task-Specific Similarity
The research demonstrates that "similarity" is not a monolithic concept. For paraphrasing, direct vector similarity (identity) is the superior metric. However, for clause coherence, the model performs significantly better when it learns an indirect relationship, effectively mapping the semantic space of one clause to the expected space of its successor.
Unsupervised Pre-training
To mitigate overfitting on smaller datasets, the gpCNN is pre-trained using an unsupervised objective similar to Word2Vec's CBOW on large unlabeled corpora. This provides a robust initialization that allows the complex model to generalize well even when labeled training data is limited.
Experimental Results
MultiGranCNN was evaluated on two primary benchmarks:
- Clause Coherence: Using a massive 21-million-example dataset derived from the English Gigaword corpus, the model achieved 56.27% accuracy, significantly outperforming previous state-of-the-art architectures like ARC-II (50.18%).
- Paraphrase Identification (PI): On the PAN corpus, MultiGranCNN set a new state-of-the-art with 94.9% accuracy and a 94.7 F1 score when combined with standard MT metrics.
Conclusion
MultiGranCNN provides a flexible and powerful framework for text matching by explicitly modeling the hierarchical nature of language. Its ability to perform cross-granular comparisons allows it to capture semantic relationships that flatter models miss. Future work may extend this architecture to more complex domains such as Question Answering and Machine Translation evaluation, where multigranular alignment is a frequent requirement.
Summary updated