Abstract
Many conversational agents in the market today follow a standard bot development framework which requires training intent classifiers to recognize user input. The need to create a proper set of training examples is often the bottleneck in the development process. In many occasions agent developers have access to historical chat logs that can provide a good quantity as well as coverage of training examples. However, the cost of labeling them with tens to hundreds of intents often prohibits taking full advantage of these chat logs. In this paper, we present a framework called search, label, and propagate (SLP) for bootstrapping intents from existing chat logs using weak supervision. The framework reduces hours to days of labeling effort down to minutes of work by using a search engine to find examples, then relies on a data programming approach to automatically expand the labels. We report on a user study that shows positive user feedback for this new approach to build conversational agents, and demonstrates the effectiveness of using data programming for autolabeling. While the system is developed for training conversational agents, the framework has broader application in significantly reducing labeling effort for training text classifiers.
Introduction
The primary bottleneck in building modern conversational agents is the creation of high-quality training data for intent classification. While historical chat logs are often abundant, transforming them into labeled datasets is hindered by three major challenges: class skew, where most intents are rare; scale, involving hundreds of potential categories; and the "cold start" problem, where initial poor performance prevents the collection of better data.
The Search, Label, and Propagate (SLP) Framework
To address these hurdles, we propose the SLP framework, which leverages weak supervision to streamline the labeling process.
The framework consists of three stages:
- Search: Developers use a search engine (Elasticsearch with BM25) to find candidate utterances for specific intents using keywords. This treats search queries as domain heuristics.
- Label: The system presents a small subset of results for the user to mark as "in" or "out" of the intent.
- Propagate: Using data programming (Snorkel), the system treats queries and manual labels as labeling functions to automatically propagate labels across the search results.
Experimental Evaluation
The system was evaluated using 40.8k utterances from proprietary IT customer service logs. A ground truth evaluation set of 3,700 utterances was manually labeled across six common intents, such as billing, schedule, and promotion.
Results and Discussion
The SLP framework significantly outperformed manual labeling baselines in both volume and accuracy.
As shown in the table above, models trained with SLP weak labels achieved an accuracy of 0.963, a substantial increase over the 0.507 achieved by the label-only baseline. Furthermore, the framework expanded an average of 79 manual labels into over 401 weak labels per intent. While there was a trade-off in recall, the significant gain in precision is particularly valuable for production environments where avoiding false positives is critical. Beyond performance metrics, the system received a System Usability Scale (SUS) score of 4.1/5, indicating high intuitive appeal for non-expert users.
Conclusion
The SLP framework demonstrates that search-based weak supervision can reduce labeling effort from days to minutes. Future work will focus on closing the "recall gap" by improving query diversity and providing real-time feedback to users during the labeling process to help them optimize their search heuristics.
Summary updated