[Paper Review] BERT for Joint Intent Classification and Slot Filling
This paper proposes a joint intent classification and slot filling model using BERT, leveraging its contextual representations to improve generalization on low-resource NLU tasks. The model achieves state-of-the-art performance on Snips and ATIS datasets, with significant gains in intent accuracy (up to +1.6%), slot F1 (up to +1.9%), and sentence-level frame accuracy (up to +22.9% relative).
Intent classification and slot filling are two essential tasks for natural language understanding. They often suffer from small-scale human-labeled training data, resulting in poor generalization capability, especially for rare words. Recently a new language representation model, BERT (Bidirectional Encoder Representations from Transformers), facilitates pre-training deep bidirectional representations on large-scale unlabeled corpora, and has created state-of-the-art models for a wide variety of natural language processing tasks after simple fine-tuning. However, there has not been much effort on exploring BERT for natural language understanding. In this work, we propose a joint intent classification and slot filling model based on BERT. Experimental results demonstrate that our proposed model achieves significant improvement on intent classification accuracy, slot filling F1, and sentence-level semantic frame accuracy on several public benchmark datasets, compared to the attention-based recurrent neural network models and slot-gated models.
Motivation & Objective
- Address the poor generalization capability of NLU models due to limited human-labeled training data.
- Explore the effectiveness of BERT pre-training for joint intent classification and slot filling.
- Improve performance on low-resource and rare-word scenarios through contextual representation learning.
- Demonstrate that joint modeling of intent and slot tasks enhances overall semantic parsing accuracy.
- Evaluate the model on diverse, real-world benchmarks like Snips and ATIS to validate robustness.
Proposed method
- Fine-tune the uncased BERT-Base model on joint intent and slot labeling tasks using end-to-end training.
- Use the [CLS] token representation for intent classification via a softmax layer: yi = softmax(Wi h1 + bi).
- Use the first sub-token hidden states for slot labeling: ys_n = softmax(Ws hn + bs), where hn corresponds to the first sub-token of word xn.
- Formulate the joint objective as p(yi, ys|x) = p(yi|x) × ∏ p(ys_n|x), maximizing conditional likelihood via cross-entropy loss.
- Integrate a CRF layer on top of BERT to model label dependencies in slot filling, improving sequence-level consistency.
- Apply standard BERT pre-training on BooksCorpus and Wikipedia, followed by task-specific fine-tuning with Adam and dropout.
Experimental results
Research questions
- RQ1Can BERT pre-training significantly improve generalization in intent classification and slot filling with limited labeled data?
- RQ2Does joint modeling of intent and slot tasks lead to better performance than independent modeling?
- RQ3How does BERT-based joint modeling compare to prior state-of-the-art RNN and attention-based models on benchmark datasets?
- RQ4To what extent does BERT’s pre-training on mismatched-domain text (e.g., Wikipedia) benefit zero-shot or few-shot generalization on rare phrases?
- RQ5Does adding a CRF layer further improve slot labeling by capturing label dependencies?
Key findings
- On the Snips dataset, the joint BERT model achieves 98.6% intent classification accuracy, a 1.6% absolute improvement over the prior state-of-the-art (97.0%).
- For slot filling, the model reaches 97.0% F1, a 8.2% absolute improvement over the slot-gated model (88.8%).
- Sentence-level semantic frame accuracy on Snips increases to 92.8%, a 22.9% relative improvement over the prior best model (75.5%).
- On ATIS, the model achieves 97.5% intent accuracy (up from 94.1%) and 96.1% slot F1 (up from 95.2%), with 88.2% frame accuracy (up from 82.6%).
- The joint BERT model fine-tuned for just one epoch outperforms all prior models, indicating strong data efficiency.
- Case studies show BERT correctly identifies rare phrases like 'mother joan of the angels' as movie names due to pre-training on Wikipedia, demonstrating superior generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.