Prior Omission of Dissimilar Source Domain(s) for Cost-Effective Few-Shot Learning

Zezhong Wang, Hongru Wang, Wai-Chung Kwan, Jia Zhu, Gabriel Pui Cheong Fung, Kam-Fai Wong

Introduction

Slot tagging is a fundamental task in Natural Language Understanding (NLU), involving the extraction of semantic entities from text (e.g., identifying "London" as a CITY). While deep learning has significantly advanced this field, the "long tail" of niche domains makes large-scale annotation impractical for every new application. Few-shot learning offers a solution by adapting models to new domains with minimal labeled data.

However, standard practices often assume that all available source domain data is beneficial. This paper identifies "negative knowledge transfer" as a significant hurdle: transferring knowledge from highly dissimilar source domains introduces noise that degrades target performance. To address this, the authors propose a method to filter unhelpful source data and a novel architecture to stabilize label representations.

Methodology

The authors propose a dual strategy: selecting the most relevant source domains and employing a specialized network architecture to disentangle robust features.

Similarity-Based Domain Selection

To mitigate negative transfer, the authors introduce a selection mechanism that filters source domains based on their similarity to the target. Three metrics are combined to create a comprehensive similarity indicator:

  1. Target Vocabulary Covered (TVC): Measures token-level overlap between domains.
  2. TF-IDF Similarity (TIS): Captures corpus-level distribution similarity using TF-IDF word distributions.
  3. Label Overlap (LO): Evaluates the commonality of unique slot types.
Illustration of source domain selection: (a) shows the standard approach using all domains, while (b) shows the proposed omission of dissimilar domains to optimize the initial parameters Φ.

By omitting unhelpful domains, the model begins adaptation from a more favorable parameter initialization, reducing noise and computational cost simultaneously.

Shared-Private Network (SP-Net)

The Shared-Private Network (SP-Net) addresses the instability of few-shot label representations. Built on top of BERT, it disentangles word embeddings into two distinct streams:

  • Shared Layer: Learns context-independent features common to a class (syntax and shared semantics).
  • Private Layer: Isolates idiosyncratic, word-specific noise and context-specific meanings.
The SP-Net architecture: Stage (i) disentangles shared and private features using contrastive and divergence losses, while Stage (ii) uses only shared features to compute robust prototypes for slot tagging.

The network uses contrastive loss to align shared features and divergence loss to push private features apart. The final class prototypes are derived solely from the shared layer, ensuring that the model focuses on stable semantic features rather than the specific quirks of the few available support samples.

Experimental Results

Evaluations on the SNIPS and NER datasets demonstrate that this approach achieves state-of-the-art performance while using less training data. On the SNIPS dataset, the combination of SP-Net and Domain Selection reached an F1 score of 75.34% in the 1-shot setting, a 3.00% improvement over the baseline SP-Net without selection.

A key insight from the study is that "more data is not always better." Ablation studies showed that removing specific source domains, such as "Search Screen," actually improved performance on other target domains by nearly 1%. This confirms that selective transfer is more effective than exhaustive transfer in few-shot scenarios.

Conclusion

This work highlights the risks of negative transfer in few-shot slot tagging and provides a robust framework to address it. By combining multi-metric domain selection with the feature disentanglement of SP-Net, the authors demonstrate that cost-effective learning—using less but more relevant data—can lead to superior NLU performance.

Summary updated

BibTeX
@inproceedings{wang2022prior,
  author = {Zezhong Wang and Hongru Wang and Wai-Chung Kwan and Jia Zhu and Gabriel Pui Cheong Fung and Kam-Fai Wong},
  title = {{Prior Omission of Dissimilar Source Domain(s) for Cost-Effective Few-Shot Learning}},
  booktitle = {ICNLSP},
  year = {2022},
  url = {https://openreview.net/forum?id=zWZRAftZMS},
}
Figure