A Deep Architecture for Semantic Matching with Multiple Positional Sentence Representations

Shengxian Wan, Yanyan Lan, Jiafeng Guo, Jun Xu, Liang Pang, Xueqi Cheng

Introduction

Semantic matching is a fundamental task in natural language processing, essential for applications such as question answering, information retrieval, and paraphrase detection. Traditional deep learning approaches often face a trade-off: they either compress an entire sentence into a single vector, losing local nuances (the "bottleneck" problem), or they match raw words/phrases without considering the broader sentence context.

The MV-LSTM (Multi-View Long Short-Term Memory) architecture addresses this gap by comparing "positional representations." Instead of a single summary vector, it uses context-aware representations for every word position, allowing the model to capture how specific parts of one sentence interact with specific parts of another within their respective contexts.

The MV-LSTM Architecture

The MV-LSTM model operates through a three-stage pipeline designed to capture and aggregate local interactions between contextualized representations.

The MV-LSTM architecture: from Bi-LSTM positional representations to interaction tensors and pooling.
  1. Positional Sentence Representation: The model employs a Bidirectional LSTM (Bi-LSTM) to process each sentence. For every word position, the forward and backward hidden states are concatenated. This creates a "positional representation" that encodes the meaning of the entire sentence from the perspective of that specific word.
  2. Interactions Between Sentences: An interaction tensor is constructed by comparing every positional representation in Sentence X with every positional representation in Sentence Y. The authors explored three interaction functions: Cosine Similarity, Bilinear, and a more complex Tensor Layer capable of modeling multiple interaction types simultaneously.
  3. Interaction Aggregation: To distill the most relevant signals from the interaction matrix, the model uses k-Max pooling. This mechanism automatically selects the $k$ strongest interaction features, which are then processed by a Multi-Layer Perceptron (MLP) to generate the final matching score.

Experimental Evaluation

The model was evaluated on two distinct semantic matching tasks:

  • Question Answering (QA): Using a dataset from Yahoo! Answers (~60,000 pairs), the model ranked correct answers against distractors.
  • Sentence Completion (SC): Using the Reuters dataset, the model matched the first clause of a sentence with its original second clause.

Key Results

MV-LSTM consistently outperformed strong baselines, including standard LSTMs and CNN-based architectures like ARC-I and ARC-II.

Performance comparison on the Yahoo! Answers QA task.

As shown in the results for the QA task, the Tensor version of MV-LSTM achieved a P@1 of 0.766, significantly surpassing the standard LSTM-RNN (0.690) and the previous state-of-the-art MultiGranCNN (0.725). Similarly, on the Reuters dataset, MV-LSTM demonstrated an 11.4% relative improvement in P@1 over the strongest baseline. These results highlight that the complexity of the interaction function (Tensor vs. Cosine) and the use of contextualized localism are critical for high-performance matching.

Discussion and Future Work

The success of MV-LSTM suggests that the "last state" representation of LSTMs is insufficient for complex matching; the most informative matching points are often distributed throughout the sentence. By using Bi-LSTMs, the model can distinguish between identical words used in different contexts (e.g., "free" in "free software" vs. "free game").

However, the model's quadratic complexity ($N \times M$ interactions) may pose challenges for very long documents. Future research could explore dynamic pooling strategies instead of a fixed $k$, or methods to scale this positional view to document-level retrieval.

Summary updated

BibTeX
@inproceedings{wan2016deep,
  author = {Shengxian Wan and Yanyan Lan and Jiafeng Guo and Jun Xu and Liang Pang and Xueqi Cheng},
  title = {{A Deep Architecture for Semantic Matching with Multiple Positional Sentence Representations}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  doi = {10.1609/aaai.v30i1.10342},
}
Figure