Abstract
We propose a simple and efficient approach for pre-training deep learning models with application to slot filling tasks in spoken language understanding. The proposed approach leverages unlabeled data to train the models and is generic enough to work with any deep learning model. In this study, we consider the CNN2CRF architecture that contains Convolutional Neural Network (CNN) with Conditional Random Fields (CRF) as top layer, since it has shown great potential for learning useful representations for supervised sequence learning tasks. The proposed pre-training approach with this architecture learns the feature representations from both labeled and unlabeled data at the CNN layer, covering features that would not be observed in limited labeled data. At the CRF layer, the unlabeled data uses predicted classes of words as latent sequence labels together with labeled sequences. Latent labeled sequences, in principle, has the regularization effect on the labeled sequences, yielding a better generalized model. This allows the network to learn representations that are useful for not only slot tagging using labeled data but also learning dependencies both within and between latent clusters of unseen words. The proposed pre-training method with the CRF2CNN architecture achieves significant gains with respect to the strongest semi-supervised baseline.
Introduction
In personal digital assistants like Cortana or Siri, "slot filling" is a critical task for understanding user intent. It involves identifying specific entities in a request—for instance, tagging "7 AM" as a time in the utterance "Set an alarm for 7 AM." While deep learning models excel at these sequence labeling tasks, they typically require vast amounts of manually labeled data, which is expensive and time-consuming to produce. Conversely, unlabeled user logs are abundant. This research addresses the challenge of leveraging this unlabeled data to improve model performance and data efficiency.
Methodology: The CNN2CRF Architecture
The researchers developed a multi-task pre-training method centered on the CNN2CRF architecture. This system is designed to learn from both labeled and unlabeled datasets simultaneously through a shared feature extraction layer.
The architecture consists of three primary components:
- Shared CNN Encoder: A 1D Convolutional Neural Network processes word sequences to extract high-level feature representations. By sharing this layer across tasks, the model learns features from the entire corpus, including those not present in the limited labeled set.
- Labeled CRF Decoder: A standard Conditional Random Field (CRF) layer is trained on manually labeled data to predict actual slot tags (e.g.,
place-name,time). - Unlabeled CRF Decoder: This innovative second CRF layer is trained on unlabeled data using Latent Class Labels. Word embeddings (generated via GloVe) are clustered into $K$ groups using K-means. Each word in the unlabeled set is assigned a cluster ID, which serves as a proxy label.
To balance the learning process, the model employs deterministic annealing, where the influence of the unlabeled data starts small and gradually increases, preventing noisy unlabeled data from dominating the early stages of training.
Experimental Setup
The study utilized internal Microsoft corpora from Cortana logs across nine domains, including Alarm, Calendar, Flights, and Travel. Each domain featured approximately 100,000 training utterances and 20,000 test utterances. Crucially, the unlabeled training set was ten times larger than the labeled set. The CNN2CRF model was benchmarked against standard linear CRFs, supervised CNN-CRFs, and RNN-CRFs.
Results and Discussion
The CNN2CRF model demonstrated superior performance across nearly all tested domains. A key finding was the model's remarkable data efficiency.
As shown in the performance analysis, the CNN2CRF architecture achieves an F-score of approximately 90% using only 10-20% of the available labeled training data. This suggests that the latent labels on unlabeled data provide a powerful regularization effect, helping the model learn the underlying "grammar" of word-class transitions.
Furthermore, the model showed significant improvements in handling Out-of-Vocabulary (OOV) words. Because it encounters these words in the unlabeled data and understands their cluster context, it can accurately tag them even if they were absent from the labeled training set. Qualitative analysis confirmed this, with the model correctly identifying complex slots like "dvd" as a device-name in contexts where baseline models failed.
Conclusion
The proposed pre-training method for the CNN2CRF architecture offers a robust solution for training high-performing SLU models with minimal labeled data. While the current approach relies on external clustering (GloVe + K-means), future work could explore end-to-end frameworks where the network learns these latent clusters internally. Additionally, extending this multi-task CRF approach to other architectures like LSTMs or Transformers remains a promising avenue for further research.
Summary updated