[Paper Review] Few-Shot Sequence Labeling with Label Dependency Transfer and Pair-wise Embedding
This paper proposes a CRF-based framework for few-shot sequence labeling that integrates token similarity via pair-wise embedding and label dependency transfer across domains with disjoint label sets. It achieves state-of-the-art performance, improving F1 by 11.76 (+21.2%) and 12.18 (+97.7%) in one-shot slot tagging and NER, respectively, through joint modeling of context-aware representations and transferable label transition patterns.
While few-shot classification has been widely explored with similarity based methods, few-shot sequence labeling poses a unique challenge as it also calls for modeling the label dependencies. To consider both the item similarity and label dependency, we propose to leverage the conditional random fields (CRFs) in few-shot sequence labeling. It calculates emission score with similarity based methods and obtains transition score with a specially designed transfer mechanism. When applying CRF in the few-shot scenarios, the discrepancy of label sets among different domains makes it hard to use the label dependency learned in prior domains. To tackle this, we introduce the dependency transfer mechanism that transfers abstract label transition patterns. In addition, the similarity methods rely on the high quality sample representation, which is challenging for sequence labeling, because sense of a word is different when measuring its similarity to words in different sentences. To remedy this, we take advantage of recent contextual embedding technique, and further propose a pair-wise embedder. It provides additional certainty for word sense by embedding query and support sentence pairwisely. Experimental results on slot tagging and named entity recognition show that our model significantly outperforms the strongest few-shot learning baseline by 11.76 (21.2%) and 12.18 (97.7%) F1 scores respectively in the one-shot setting.
Motivation & Objective
- To address the challenge of few-shot sequence labeling where labeled data is scarce and label sets vary across domains.
- To improve sequence labeling by jointly modeling token similarity and label dependencies in low-resource settings.
- To reduce ambiguity in word sense representation by leveraging query-support pair-wise context in few-shot learning.
- To transfer label dependency patterns across domains with different label sets using abstracted label representations.
- To demonstrate that dependency transfer outperforms handcrafted transition rules and enhances labeling accuracy in few-shot scenarios.
Proposed method
- Uses a conditional random field (CRF) to model sequence labeling, with emission scores derived from similarity-based methods and transition scores learned via a dependency transfer mechanism.
- Introduces a pair-wise embedder that jointly encodes query and support sentence tokens using self-attention, improving word sense representation in context.
- Applies a dependency transfer mechanism that abstracts domain-specific labels into abstract labels and learns transition patterns between them for cross-domain transfer.
- Employs contextual embeddings (e.g., BERT-style) to capture rich semantic representations, which are then used to compute similarity scores for emission modeling.
- Trains on multiple source domains and adapts to a target domain using only a few labeled examples (1–5 per class), leveraging prior knowledge of label dependencies and token similarities.
- Uses a prototype-based similarity mechanism to compute emission scores, where each token’s representation is compared to support set prototypes.
Experimental results
Research questions
- RQ1Can label dependency transfer effectively improve few-shot sequence labeling performance when label sets differ across domains?
- RQ2Does pair-wise embedding of query and support sequences reduce ambiguity in word sense and improve similarity-based classification?
- RQ3How does dependency transfer compare to handcrafted transition rules in terms of accuracy and generalization across domains?
- RQ4To what extent do joint modeling of token similarity and label dependencies enhance performance in low-resource sequence labeling?
- RQ5What is the contribution of dependency transfer versus pair-wise embedding in the overall performance gain?
Key findings
- The proposed model achieves a 11.76 F1 score improvement (21.2% relative gain) over the strongest baseline in one-shot slot tagging.
- In one-shot named entity recognition, the model improves F1 by 12.18 points (97.7% relative gain), demonstrating strong generalization.
- Dependency transfer significantly outperforms handcrafted transition rules, especially in detecting label span boundaries and reducing illegal transitions.
- Ablation studies confirm that both pair-wise embedding and dependency transfer contribute independently and substantially to performance gains.
- The dependency transfer mechanism captures non-trivial, transferable label transition patterns that are not easily modeled by simple rules.
- Accuracy analysis shows that dependency transfer improves prediction on all bi-gram types, including challenging border and inner transitions, with the highest gains on B-O and I-O pairs.
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.