Skip to main content
QUICK REVIEW

[Paper Review] Match-SRNN: Modeling the Recursive Matching Structure with Spatial RNN

Shengxian Wan, Yanyan Lan|arXiv (Cornell University)|Apr 15, 2016
Topic ModelingComputer Science15 references130 citations
TL;DR

Match-SRNN models global interactions between two texts via a recursive matching structure using a neural tensor to capture word-level interactions and a 2D spatial GRU to integrate them, achieving state-of-the-art results on QA and paper citation tasks.

ABSTRACT

Semantic matching, which aims to determine the matching degree between two texts, is a fundamental problem for many NLP applications. Recently, deep learning approach has been applied to this problem and significant improvements have been achieved. In this paper, we propose to view the generation of the global interaction between two texts as a recursive process: i.e. the interaction of two texts at each position is a composition of the interactions between their prefixes as well as the word level interaction at the current position. Based on this idea, we propose a novel deep architecture, namely Match-SRNN, to model the recursive matching structure. Firstly, a tensor is constructed to capture the word level interactions. Then a spatial RNN is applied to integrate the local interactions recursively, with importance determined by four types of gates. Finally, the matching score is calculated based on the global interaction. We show that, after degenerated to the exact matching scenario, Match-SRNN can approximate the dynamic programming process of longest common subsequence. Thus, there exists a clear interpretation for Match-SRNN. Our experiments on two semantic matching tasks showed the effectiveness of Match-SRNN, and its ability of visualizing the learned matching structure.

Motivation & Objective

  • Motivate semantic matching as a recursive process between two texts to better capture interactions.
  • Propose a novel architecture (Match-SRNN) to model the recursive matching structure.
  • Show that the model can approximate dynamic programming like LCS and provide interpretability via visualization.
  • Demonstrate effectiveness on question answering and paper citation tasks compared to baselines.

Proposed method

  • Construct a word-level similarity tensor between two texts using a neural tensor network.
  • Apply a spatial (2D) GRU to the similarity tensor to compute a global interaction representation h_{mn}.
  • Use four gates to manage information flow from h_{i-1,j}, h_{i,j-1}, h_{i-1,j-1}, and s_{ij}.
  • Produce the final matching score with a linear function M(S1,S2) = W^{(s)} h_{mn} + b^{(s)}.
  • Train end-to-end with task-appropriate losses (square loss for regression, hinge loss for ranking, cross-entropy for classification).
  • Highlight theoretical connection to dynamic programming and LCS by degenerate matching to exact matching and show interpretability via gate-driven backtracking.

Experimental results

Research questions

  • RQ1Can a recursive formulation of text matching capture long-range interactions better than hierarchical approaches?
  • RQ2Does a spatial RNN over a word-level interaction tensor effectively model global text interactions and yield improved QA and citation matching performance?
  • RQ3How does Match-SRNN relate to dynamic programming formulations like the Longest Common Subsequence (LCS) when degenerated?
  • RQ4Is Match-SRNN interpretable, enabling visualization of the learned matching structure?
  • RQ5Do two variants (unidirectional and bidirectional) of Match-SRNN differ in performance on semantic matching tasks?

Key findings

  • Match-SRNN significantly outperforms baselines on QA and paper citation tasks.
  • Bidirectional Match-SRNN further improves results over the unidirectional version.
  • On QA, Match-SRNN improves P@1 by about 3.1% over MV-LSTM and at least 3.4% over ARC-II and MatchPyramid.
  • On QA, Bi-Match-SRNN achieves the highest scores (P@1 and MRR) among all models evaluated.
  • On PC, Match-SRNN achieves the best results, though improvements are smaller due to task ease.
  • The model can visualize the learned matching structure and reveal a matching path similar to LCS under certain settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.