Word Embedding Based Correlation Model for Question/Answer Matching

Yikang Shen, Wenge Rong, Nan Jiang, Baolin Peng, Jie Tang, Zhang Xiong

Introduction

In Community Question Answering (CQA) platforms like Yahoo! Answers or Quora, the primary challenge in matching new questions to archived answers is the lexical gap. Users often express the same concept using different vocabularies—for instance, a question about a "place to stay" might be perfectly answered by a post mentioning a "hotel." Traditional retrieval models often fail here because they rely on exact word matches or simple synonyms.

This paper proposes the Word Embedding based Correlation (WEC) model. WEC bridges this gap by combining statistical translation principles with the continuous vector representations of word embeddings, allowing the system to learn functional correlations (e.g., "where" correlates with "situated") rather than just semantic similarities.

Methodology

Word-level Correlation and the Translation Matrix

The core innovation of WEC is the introduction of a translation matrix ($M$). Unlike standard word embedding models that calculate cosine similarity between two vectors in the same space, WEC recognizes that questions and answers exist in heterogeneous spaces. The matrix $M$ transforms an answer word vector into the "question semantic space." The correlation score between a question word $q_i$ and an answer word $a_j$ is defined as:

$$C(q_i, a_j) = \cos(v_{q_i}, M v_{a_j})$$

This approach allows the model to learn that certain words are likely to appear together in a Q&A pair even if they are not synonyms.

Example of word-level correlations between a question and its answer, bridging the lexical gap.

Sentence-level Matching with CNNs

While word-level correlations are powerful, they ignore the structural and syntactic information of the sentence. To address this, the authors propose a hybrid WEC+CNN model. The correlation matrix generated by WEC is treated as an "image" and fed into a Convolutional Neural Network. This architecture allows the model to identify phrase-level patterns and structural dependencies that simple averaging would miss.

Architecture of the CNN used to capture structural information from the WEC correlation matrix.

Experimental Evaluation

The model was tested on two large-scale datasets: Yahoo! Answers (English) and Baidu Zhidao (Chinese). Performance was measured using Discounted Cumulative Gain (DCG).

Key Results

  • Superior Performance: WEC consistently outperformed traditional translation models (TM) and standard retrieval models like Okapi BM25.
  • The CNN Advantage: The hybrid WEC+CNN model achieved the highest scores. For example, on the Yahoo! Travel dataset, WEC+CNN reached a DCG@1 of 0.761, compared to 0.698 for traditional translation models.
  • Cross-Linguistic Robustness: The model proved effective for both English and Chinese, suggesting that the underlying principle of learning a translation matrix between Q&A spaces is language-agnostic.

Discussion and Insights

The success of WEC stems from its focus on correlation over similarity. Standard embeddings might link "where" to "how," but WEC links "where" to "situated" or "located," which is far more useful for retrieval. Furthermore, by using continuous embeddings, the model can estimate correlations for rare words by leveraging the local smoothness of the vector space.

However, the model does have limitations. It can sometimes produce noisy links between common functional words (like "a" and "the") and lacks a deep contextual understanding. Future work may involve applying this translation matrix approach to duplicate question detection or multi-language retrieval tasks.

Summary updated

BibTeX
@inproceedings{shen2017word,
  author = {Yikang Shen and Wenge Rong and Nan Jiang and Baolin Peng and Jie Tang and Zhang Xiong},
  title = {{Word Embedding Based Correlation Model for Question/Answer Matching}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.11002},
}
Figure