Match²: A Matching over Matching Model for Similar Question Identification

Zizhen Wang, Yixing Fan, Jiafeng Guo, Liu Yang, Ruqing Zhang, Yanyan Lan, Xueqi Cheng, Hui Jiang, Xiaozhao Wang

TL;DR

This paper introduces Match², a novel model for identifying similar questions in Community Question Answering (CQA) systems. Instead of just comparing questions, Match² leverages archived answers as a "bridge" to compare how each question "matches" with parts of the answer, leading to significantly improved accuracy over existing methods.

What Problem Does This Paper Address?

Community Question Answering (CQA) platforms like StackExchange and Quora are invaluable for knowledge sharing. A key challenge is efficiently helping users find existing answers by identifying their new questions with similar, already-asked questions. However, natural language's inherent variability makes this difficult: the same question can be phrased in many ways, and different questions can use similar wording. Traditional approaches often use answers to enrich question representations, but this can introduce noise from lengthy and diverse answers. The paper tackles the problem of accurately measuring question similarity by proposing a new way to utilize archived answers.

Methods

The core innovation is the Match² (Matching over Matching) model. It operates on three main modules:

  1. Representation-based Similarity Module: This module uses a pre-trained BERT model to generate a similarity vector between the two questions, similar to existing methods.
  2. Matching Pattern-based Similarity Module: This is the novel component. It uses a Siamese network structure to learn "matching patterns" between each question and its corresponding archived answer. The key idea is that similar questions will have similar patterns of interaction with the same answer. This module then compares these matching patterns to produce a second similarity vector.
  3. Aggregation Module: This module combines the similarity vectors from the first two modules using a GRU-inspired gate mechanism. This allows the model to dynamically weigh the contributions of the question-only similarity and the answer-bridged matching pattern similarity, treating the former as primary and the latter as complementary.

The model is trained using a multi-task learning strategy, combining the primary similar question identification task with an auxiliary question-answer matching task.

Datasets

The authors evaluate their model on two datasets:

  • CQADupStack: A widely used CQA benchmark derived from twelve StackExchange subforums.
  • QuoraQP-a: An answer-expanded version of the QuoraQP dataset. The original QuoraQP lacks archived answers, so the authors crawled answers to create this new benchmark.

Key Insights and Ideas

  • Answers as Bridges, Not Just Extensions: The paper argues that answers shouldn't just be concatenated to questions as extra text. Instead, they act as a crucial "bridge" to understand how questions relate to each other. Similar questions might "point to" similar parts of an answer, even if their wording is different.
  • Matching Patterns Matter: The core insight is that comparing how questions interact with an answer (their "matching patterns") is more robust than simply using the answer as an expanded representation. This helps filter out noise and focus on semantic relevance.
  • Complementary Strengths: The representation-based and matching-pattern-based modules are complementary. The former captures direct question similarity, while the latter leverages the answer to find deeper semantic connections. The aggregation module effectively combines these strengths.

Key Results

Match² significantly outperforms state-of-the-art methods on both CQADupStack and QuoraQP-a. For instance, on CQADupStack, Match² achieved an F1 score of 56.49, compared to the best baseline (Bert) at 50.41. On QuoraQP-a, Match² achieved an F1 score of 86.25, outperforming the best baseline (Bert) at 84.16. Ablation studies showed that both the representation-based and matching-pattern-based modules are effective, and their combination via the aggregation module is crucial. The dot product similarity function was found to be the most effective for comparing matching patterns.

Limitations and Future Work

The authors acknowledge that the model's performance can be affected by the quality and relevance of the archived answers. They suggest future work could involve leveraging a variable number of answers and incorporating answer quality into the model. Additionally, exploring how to extend the model to handle different numbers of answers and to account for answer quality are promising directions.

Summary updated

Abstract

Community Question Answering (CQA) has become a primary means for people to acquire knowledge, where people are free to ask questions or submit answers. To enhance the efficiency of the service, similar question identification becomes a core task in CQA which aims to find a similar question from the archived repository whenever a new question is asked. However, it has long been a challenge to properly measure the similarity between two questions due to the inherent variation of natural language, i.e., there could be different ways to ask a same question or different questions sharing similar expressions. To alleviate this problem, it is natural to involve the existing answers for the enrichment of the archived questions. Traditional methods typically take aone-side usage, which leverages the answer as some expanded representation of the corresponding question. Unfortunately, this may introduce unexpected noises into the similarity computation since answers are often long and diverse, leading to inferior performance. In this work, we propose atwo-side usage, which leverages the answer as a bridge of the two questions. The key idea is based on our observation that similar questions could be addressed by similar parts of the answer while different questions may not. In other words, we can compare the matching patterns of the two questions over the same answer to measure their similarity. In this way, we propose a novel matching over matching model, namely Match2, which compares the matching patterns between two question-answer pairs for similar question identification. Empirical experiments on two benchmark datasets demonstrate that our model can significantly outperform previous state-of-the-art methods on the similar question identification task.
BibTeX
@inproceedings{wang2020match,
  author = {Zizhen Wang and Yixing Fan and Jiafeng Guo and Liu Yang and Ruqing Zhang and Yanyan Lan and Xueqi Cheng and Hui Jiang and Xiaozhao Wang},
  title = {{Match²: A Matching over Matching Model for Similar Question Identification}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2020},
  doi = {10.1145/3397271.3401143},
}
Figure