Authors: Han Li, Jihwan Lee, Sidharth Mudgal, Ruhi Sarikaya, Young-Bum Kim. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.
In the ecosystem of Intelligent Personal Digital Assistants (IPDAs) like Alexa or Siri, "Domain Classification" serves as the primary engine for routing user requests to the correct service—whether it's a weather report, music playback, or a ride-sharing request. As third-party developers introduce thousands of new "skills" (domains) daily, these systems face a critical scaling challenge: how to integrate new knowledge rapidly without retraining the entire system or suffering from "catastrophic forgetting" of existing capabilities.
This paper introduces CONDA (Continuous Neural Domain Adaptation), a framework designed to integrate new domains into live production systems efficiently while maintaining high accuracy across both new and legacy domains.
The Challenge of Incremental Learning
Traditionally, adding new domains presents a trade-off between two suboptimal approaches:
- Full Retraining: Training the entire model on all historical and new data. While accurate, this is computationally prohibitive and too slow for daily updates.
- Naive Incremental Learning: Training only on new data. This typically leads to catastrophic forgetting, where the model's weights shift so drastically to accommodate new information that it loses the ability to classify previously learned domains.
Furthermore, modern assistants must account for personalization, where the set of enabled skills varies by user, adding a layer of contextual complexity that standard continual learning methods often overlook.
The CONDA Framework
CONDA builds upon the SHORTLISTER architecture and introduces three key innovations to stabilize continuous adaptation:
1. Cosine Normalization
In standard neural networks, the final classification layer utilizes a dot product. A significant insight of this research is the "magnitude trap": new domains can "cheat" the classification by simply growing the magnitude of their weight vectors during training. CONDA replaces the dot product with cosine similarity, constraining vectors to a unit sphere. This forces the model to learn the semantic direction of an utterance rather than relying on vector "volume" to win the classification.
2. Domain Embedding Regularization
When a new domain (e.g., "Lyft") is introduced, CONDA employs a hinge loss to ensure its embedding remains proximal to related existing domains (e.g., "Uber"). This uses the aggregate representation of known domains to guide the new domain into a logical position within the vector space.
3. Negative Exemplar Sampling
To mitigate forgetting, the model maintains a small "memory" of the past. By sampling a limited number of representative utterances (exemplars) from old domains and mixing them into the training set for the new domain, the model receives constant reinforcement of legacy knowledge.
Experimental Results
The authors evaluated CONDA on a massive real-world dataset comprising 1,000 domains and 2.53 million utterances. The model was initially trained on 900 domains, with 100 additional domains introduced sequentially to simulate a live environment.
Key Performance Metrics
- High Accuracy: CONDA achieved 95.6% accuracy on the 100 newly added domains.
- Minimal Forgetting: After the full sequence of updates, accuracy across all 1,000 domains remained at 88.2%.
- Proximity to Upper Bound: CONDA's performance stayed within 3.6% of the "Upper Bound" (a model fully retrained on all data), while requiring only a fraction of the computational resources.
As shown in the results, naive linear incremental models suffer a catastrophic drop in performance almost immediately, whereas the combination of cosine normalization, domain embedding regularization (der), and negative sampling (ns) provides a stable, high-performing solution.
Conclusion and Future Work
CONDA demonstrates that large-scale industrial IPDAs can effectively learn new skills one-by-one without the need for constant, expensive retraining. While the framework is remarkably stable, the authors note that performance eventually begins to degrade after hundreds of incremental updates, suggesting that a full retrain is still necessary as a periodic "reset." Future research will focus on dynamic vocabulary expansion and more sophisticated sampling strategies to further reduce the memory footprint of exemplars.
Summary updated