Abstract
Spoken Language Understanding (SLU) is critical for task-oriented dialogue systems but traditionally relies on extensive labeled data. This paper investigates the "source-free" few-shot setting, where models must adapt to new domains using only a handful of examples without auxiliary source-domain datasets. We introduce BERT-NSP-Prompt for intent detection and a label reconstruction strategy for slot filling. By aligning downstream tasks with BERT's pre-training objectives, our approach achieves significant gains on two new benchmarks, FewShotATIS and FewShotSNIPS, which utilize a dynamic sampling strategy to better reflect real-world data distributions.
Introduction
Spoken Language Understanding (SLU) comprises two primary sub-tasks: Intent Detection (ID) and Slot Filling (SF). While deep learning has advanced SLU, the requirement for thousands of labeled examples remains a bottleneck. Existing few-shot research often assumes access to large "source domains" for pre-training. However, in practical scenarios, developers frequently face "source-free" environments where only a few target-domain examples are available. This work addresses this gap by leveraging standard pre-trained language models (PLMs) like BERT more effectively.
Methods
The proposed framework introduces three main innovations to maximize performance in low-data regimes:
1. BERT-NSP-Prompt for Intent Detection
Instead of training a new classification head, which typically requires substantial data, we repurpose BERT’s original Next Sentence Prediction (NSP) task. Intent detection is framed as a binary classification of whether an intent description (e.g., "he is booking a restaurant") naturally follows the user query. This alignment allows the model to leverage its pre-trained knowledge of sentence relationships, enabling strong performance even in zero-shot settings.
2. Label Reconstruction for Slot Filling
Standard slot filling uses BIO (Beginning, Inside, Outside) tagging, which doubles the label space (e.g., B-city vs I-city). In few-shot settings, this "label explosion" hinders model convergence. We simplify the task by predicting only the entity type (e.g., city) and then reconstructing the BIO tags using a rule-based post-processing step. This reduction in label complexity significantly lowers the barrier for the model to learn from limited examples.
3. Focal Loss
To address the challenge of distinguishing between semantically similar slots (e.g., "from_city" vs "to_city"), we employ Focal Loss. This objective function prioritizes "hard" examples during training, preventing the model from becoming overconfident on easily distinguishable classes and improving overall robustness.
Datasets and Dynamic Sampling
The authors introduce FewShotATIS and FewShotSNIPS. Unlike traditional benchmarks that use uniform sampling, these datasets employ a Dynamic Sampling Strategy. This approach allocates more training instances to "difficult" categories (identified by lower F1 scores during initial evaluation), mimicking how humans might prioritize data collection for challenging edge cases in a real-world development cycle.
Key Results and Insights
- Zero-Shot Power: The BERT-NSP-Prompt model demonstrates remarkable zero-shot capabilities, achieving 75.42% accuracy on ATIS and 79.57% on SNIPS without any fine-tuning, whereas standard fine-tuning approaches fail entirely in this setting.
- Few-Shot Superiority: In 10-shot scenarios, the proposed model outperforms standard BERT-based intent detection by over 5% on ATIS.
- Slot Filling Gains: The label reconstruction approach combined with Focal Loss yields F1 score improvements of 4-7% across various shot counts compared to standard BIO-based fine-tuning.
Conclusion
This work demonstrates that aligning downstream tasks with pre-training objectives is a powerful paradigm for few-shot SLU. By reducing label complexity and leveraging sentence-level relationships, models can perform effectively even in source-free environments. Future work will explore deeper integration between intent and slot tasks to further enhance knowledge sharing in low-resource settings.
Summary updated