Abstract
Community-based Question Answering (CQA) has become popular in knowledge sharing sites since it allows users to get answers to complex, detailed, and personal questions directly from other users. Large archives of historical questions and associated answers have been accumulated. Retrieving relevant historical answers that best match a question is an essential component of a CQA service. Most state of the art approaches are based on bag-of-words models, which have been proven successful in a range of text matching tasks, but are insufficient for capturing the important word sequence information in short text matching. In this paper, a new architecture is proposed to more effectively model the complicated matching relations between questions and answers. It utilises a similarity matrix which contains both lexical and sequential information. Afterwards the information is put into a deep architecture to find potentially suitable answers. The experimental study shows its potential in improving matching accuracy of question and answer.
Introduction
Community-based Question Answering (CQA) platforms like Yahoo! Answers or Baidu Zhidao are invaluable repositories of human knowledge. However, they often face the challenge of "question starvation," where many new questions remain unanswered due to a lack of immediate expert availability. To address this, automated systems aim to retrieve relevant answers from historical archives.
Traditional retrieval methods typically rely on "bag-of-words" models, which treat sentences as unordered collections of keywords. While effective for long-form documents, these models struggle with short text matching because they ignore the structural and sequential information that defines meaning. For instance, a bag-of-words model might fail to distinguish between "Why don't cats eat mice?" and "Mice eat cats," despite their vastly different semantics. This paper proposes a deep learning architecture that incorporates sequential information by representing text matching as a 2D pattern recognition task.
Methodology
The proposed system utilizes a three-stage pipeline: word embedding, similarity matrix construction, and deep feature extraction.
The Similarity Matrix (S-matrix) and Tiling
Words are first converted into high-dimensional vectors using the Skip-gram neural language model, ensuring that semantically related words are positioned closely in vector space. For any given question and candidate answer, the system calculates the cosine similarity between every word in the question and every word in the answer. This results in a 2D grid known as the S-matrix.
To handle variable sentence lengths and provide a consistent input for the neural network, the S-matrix is "tiled" into a fixed-size $n_f \times m_f$ matrix. This tiling process preserves the local spatial relationships of word matches, which are crucial for identifying phrase-level similarities.
Deep Convolutional Neural Network (DCNN)
The tiled S-matrix is processed by a Deep Convolutional Neural Network (DCNN). The architecture employs alternating convolution and max-pooling layers. Convolutional layers act as feature detectors that identify local matching patterns, such as sequences of words appearing in both texts. Max-pooling layers provide spatial invariance, allowing the model to detect a good match regardless of where the relevant information appears in the answer. The final layers consist of a fully connected multi-layer perceptron (MLP) that outputs a probability score indicating the quality of the match.
Experimental Evaluation
The model was evaluated using a large-scale dataset from Baidu Zhidao, consisting of over 438,000 questions. The researchers used Discounted Cumulative Gain (DCG) to measure ranking quality.
The proposed S-matrix + DCNN approach consistently outperformed traditional retrieval models:
- Precision: The model achieved a DCG@1 of 0.752, significantly higher than the Translation-based Language Model (TRLM) at 0.696 and the standard Okapi BM25 model at 0.608.
- Feature Complexity: The study found that utilizing multiple feature maps (between 20 and 50) was critical for capturing the various "perspectives" of similarity required for accurate matching.
Conclusion
By transforming the question-answer matching problem into a 2D similarity matrix, this research leverages the strengths of convolutional neural networks to capture both lexical and sequential information. This approach provides a more robust solution for CQA retrieval tasks, effectively overcoming the limitations of traditional bag-of-words models. Future work will focus on refining similarity measures and applying this architecture to other natural language processing domains.
Summary updated