Skip to main content
QUICK REVIEW

[Paper Review] MCML: A Novel Memory-based Contrastive Meta-Learning Method for Few Shot Slot Tagging

Hongru Wang, Zezhong Wang|arXiv (Cornell University)|Aug 26, 2021
Domain Adaptation and Few-Shot LearningComputer Science35 references7 citations
TL;DR

This paper proposes MCML, a memory-based contrastive meta-learning method for few-shot slot tagging that mitigates sample forgetting by using a learn-from-the-memory module with contrastive learning over historical label representations and an adaption-from-the-memory module to align test-time representations with memory-anchored labels. MCML achieves state-of-the-art performance on SNIPS and NER datasets, with consistent improvements as shot count increases.

ABSTRACT

Meta-learning is widely used for few-shot slot tagging in task of few-shot learning. The performance of existing methods is, however, seriously affected by extit{sample forgetting issue}, where the model forgets the historically learned meta-training tasks while solely relying on support sets when adapting to new tasks. To overcome this predicament, we propose the extbf{M}emory-based extbf{C}ontrastive extbf{M}eta- extbf{L}earning (aka, MCML) method, including extit{learn-from-the-memory} and extit{adaption-from-the-memory} modules, which bridge the distribution gap between training episodes and between training and testing respectively. Specifically, the former uses an explicit memory bank to keep track of the label representations of previously trained episodes, with a contrastive constraint between the label representations in the current episode with the historical ones stored in the memory. In addition, the \emph{adaption-from-memory} mechanism is introduced to learn more accurate and robust representations based on the shift between the same labels embedded in the testing episodes and memory. Experimental results show that the MCML outperforms several state-of-the-art methods on both SNIPS and NER datasets and demonstrates strong scalability with consistent improvement when the number of shots gets greater.

Motivation & Objective

  • To address the sample forgetting problem in metric-based meta-learning for few-shot slot tagging, where models fail to retain consistent label representations across episodes.
  • To bridge the distribution gap between meta-training and meta-testing by leveraging historical label representations stored in an explicit memory bank.
  • To improve model robustness and scalability by combining learn-from-the-memory and adaption-from-the-memory mechanisms.
  • To enhance representation consistency for the same label across different episodes and distinctiveness between different labels.
  • To achieve superior performance on few-shot slot tagging benchmarks with increasing shot numbers.

Proposed method

  • The learn-from-the-memory module maintains an explicit memory bank storing label representations from previously trained episodes.
  • A contrastive loss is applied between the current episode's label representations and those stored in the memory bank to pull together semantically similar (positive) samples and push apart dissimilar (negative) ones.
  • The adaption-from-the-memory module aligns query representations in the test episode with the memory-anchored label representations using a learnable scaling factor.
  • The scaling factor controls the trade-off between test-time input features and memory-based label anchors, enabling robust adaptation under distribution shift.
  • The method is model-agnostic and can be integrated into existing metric-based meta-learning frameworks for sequence labeling tasks.
  • The framework is trained end-to-end with contrastive learning during meta-training and adaptive feature refinement during meta-testing.

Experimental results

Research questions

  • RQ1How can we reduce sample forgetting in metric-based meta-learning for few-shot slot tagging?
  • RQ2To what extent can a memory bank of historical label representations improve representation consistency across episodes?
  • RQ3How does the adaption-from-the-memory mechanism mitigate distribution shift between meta-training and meta-testing?
  • RQ4Can the combination of learn-from-the-memory and adaption-from-the-memory lead to scalable performance gains as the number of shots increases?
  • RQ5How sensitive is the performance to the choice of the scaling factor in the adaption module?

Key findings

  • MCML outperforms the strongest baseline (L-ProtoNet+CDT+VPB) on both SNIPS and NER datasets, with consistent F1 score improvements across all shot settings.
  • The learn-from-the-memory module becomes increasingly important with higher shot counts, indicating better transferability of representations as more labeled data is available.
  • The adaption-from-the-memory module shows domain-sensitive performance, with greater gains in domains like 'Pl', 'Se', and 'Cr' that have more label overlap.
  • t-SNE visualization confirms that MCML reduces representation shift between meta-training and meta-testing stages and brings similar label representations (e.g., B-object_type and I-object_type) closer in embedding space.
  • Ablation studies show that combining both modules yields the best performance, with the contrastive constraint significantly reducing sample forgetting.
  • The method demonstrates strong scalability, with performance improvements persisting and even increasing as the number of shots grows from 1 to 20.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.