Abstract
Building chatbot knowledge bases has traditionally been a grueling manual process of hand-coding templates. This paper introduces a cascaded machine learning framework that automatically mines high-quality "input-response" pairs from online discussion forums, transforming messy human conversations into structured chatbot brains with high precision and remarkable speed.
Introduction
In the early era of conversational AI, chatbots like ALICE relied on hand-crafted templates to match user inputs with responses. This approach is notoriously slow, expensive, and difficult to port to new domains. Online forums, such as movie or sports boards, represent a massive, untapped repository of human knowledge. However, these forums are "noisy": replies are often elliptical, full of typos, or part of fragmented sub-conversations. The challenge addressed in this research is filtering through millions of posts to find replies that are not only relevant to a thread's title but also "stand-alone" enough to serve as high-quality chatbot responses.
Methodology: The Cascaded Hybrid Model
The authors propose a Cascaded Hybrid Model that processes forum data in three distinct stages to ensure both relevance and quality:
- RR Identification (Relevance): Using a binary Support Vector Machine (SVM), the system identifies "Relevant Replies" (RR)—those logically connected to the thread title. It utilizes structural features (e.g., quoting patterns) and content features (e.g., word overlap).
- Heuristic Filtering: To ensure the chatbot is polite and concise, the system filters out replies containing obscenities, personal information, or those exceeding 50 words.
- RR Ranking (Quality): A Ranking SVM orders the remaining candidates based on quality, relying heavily on social signals such as author reputation and community longevity.
Experimental Setup and Datasets
The researchers utilized the Rotten Tomatoes forum archive, which included over 1.7 million replies across 65,420 threads. For evaluation, human experts manually tagged 3,065 replies to establish ground truth for relevance. A subset of replies was further labeled by quality: "Fascinating" (ideal for a chatbot), "Acceptable," or "Unsuitable."
Key Insights and Results
The Dominance of Structural Features
A significant finding of the study was that structural features, such as quoting patterns, were far more effective at identifying relevant replies than analyzing actual text content. If a user quotes the original post, they are statistically more likely to be staying on topic. This is reflected in the performance metrics where structural features alone significantly outperformed content-based baselines.
Performance and Efficiency
- High Accuracy: The RR Identification stage achieved an F-score of 91.38%, while the ranking system achieved a Mean Average Precision (MAP) of 86.50%.
- Practical Efficiency: In real-world testing, the system extracted 11,147 high-quality pairs from 2,000 threads in just two minutes.
- Human Approval: Nearly 90% of the top-ranked extracted responses were rated as either fascinating or acceptable by human judges.
Conclusion and Future Work
This framework demonstrates that social metadata and forum structure can serve as powerful proxies for conversational quality. While the current model focuses on context-independent "one-shot" responses, future work could involve handling multi-turn dialogues and clustering similar replies to create more generalized, flexible chat templates. Additionally, sub-post sentence extraction could help salvage high-quality snippets from otherwise unsuitable long-form posts.
Summary updated