Abstract
Retrieval-based chatbots often struggle to bridge the "semantic gap" between a short message and a content-rich response. This paper introduces the Topic-Aware Convolutional Neural Tensor Network (TACNTN), which leverages LDA-based topic clues and neural tensors to better match messages with responses that introduce relevant new information. Empirical studies on public and human-annotated datasets demonstrate that TACNTN significantly outperforms state-of-the-art methods for message-response matching.
Introduction
Building a chatbot that feels "human" is a significant challenge in natural language processing. Most current systems are either generation-based or retrieval-based. While retrieval-based systems are effective at providing fluent, natural language, they often fail at the nuances of response selection due to the "semantic gap."
A standard machine learning model might penalize a content-rich response because it contains words not present in the original message. For instance, if a user asks about a movie, a high-quality human response might mention specific plot elements or actors. Standard models often view these as irrelevant noise. The authors of this paper aim to address this by teaching models to recognize when these "extra" words are topically relevant.
Methodology: The TACNTN Architecture
The proposed Topic-Aware Convolutional Neural Tensor Network (TACNTN) is a hybrid architecture designed to incorporate external topic knowledge into the matching process.
The model consists of four primary components:
- Siamese CNNs: Two Convolutional Neural Networks with shared weights transform the raw text of the message and the candidate response into dense vectors.
- Topic Clues: A pre-trained Twitter LDA (Latent Dirichlet Allocation) model identifies "topic words" associated with the message and response, providing a form of prior knowledge.
- Attention-based Topic Embeddings: An attention mechanism weights these topic words based on the current message and response vectors. This filtering process ensures that only the most relevant context is utilized, reducing noise from irrelevant topic words.
- Neural Tensor Networks (NTN): Instead of simple similarity scores, the model uses neural tensors to calculate matching scores across three pairs: (Message, Response), (Message, Response-Topic), and (Response, Message-Topic). This allows the model to capture complex, non-linear relationships between the text and the underlying topics.
Experimental Evaluation
The researchers evaluated TACNTN on two distinct datasets:
- Ubuntu Corpus: A large-scale English dataset of 1 million message-response pairs from technical support chat rooms.
- Tieba Dataset: A Chinese dataset from Baidu Tieba, including 1.2 million training pairs and a human-annotated test set of 328 messages with 3,418 responses to ensure evaluation quality.
Key Results
The TACNTN model consistently outperformed baselines such as LSTMs and standard CNNs (CNTN) across both datasets.
On the Ubuntu dataset, TACNTN achieved a Recall@1 of 0.759, surpassing the standard CNTN (0.743). On the Tieba dataset, it reached a Mean Average Precision (MAP) of 0.749, significantly higher than the 0.708 achieved by Arc2.
A critical finding was that the performance gain was most pronounced for long responses (10+ words). This confirms that the model successfully utilizes topic clues to identify high-quality, informative replies that simpler models might ignore due to the semantic gap.
Conclusion
TACNTN demonstrates that treating topics as external knowledge can effectively bridge the semantic gap in short text conversations. By using attention to filter topic noise and neural tensors to model complex interactions, the system selects more informative and relevant responses. Future work may involve extending this approach to multi-turn conversations and exploring alternative knowledge bases beyond LDA.
Summary updated