Skip to main content
QUICK REVIEW

[Paper Review] Adaptive Meta-learner via Gradient Similarity for Few-shot Text Classification

Tianyi Lei, Honghui Hu|arXiv (Cornell University)|Sep 10, 2022
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

This paper proposes Adaptive Meta-learner via Gradient Similarity (AMGS), a novel optimization-based meta-learning framework for few-shot text classification that improves generalization by leveraging a self-supervised Mask Token Prediction (MTP) task and an adaptive meta-learner that filters negative gradients using gradient similarity. The method achieves state-of-the-art performance across benchmarks by reducing overfitting from limited support data.

ABSTRACT

Few-shot text classification aims to classify the text under the few-shot scenario. Most of the previous methods adopt optimization-based meta learning to obtain task distribution. However, due to the neglect of matching between the few amount of samples and complicated models, as well as the distinction between useful and useless task features, these methods suffer from the overfitting issue. To address this issue, we propose a novel Adaptive Meta-learner via Gradient Similarity (AMGS) method to improve the model generalization ability to a new task. Specifically, the proposed AMGS alleviates the overfitting based on two aspects: (i) acquiring the potential semantic representation of samples and improving model generalization through the self-supervised auxiliary task in the inner loop, (ii) leveraging the adaptive meta-learner via gradient similarity to add constraints on the gradient obtained by base-learner in the outer loop. Moreover, we make a systematic analysis of the influence of regularization on the entire framework. Experimental results on several benchmarks demonstrate that the proposed AMGS consistently improves few-shot text classification performance compared with the state-of-the-art optimization-based meta-learning approaches.

Motivation & Objective

  • To address overfitting in few-shot text classification caused by mismatch between few-shot data and complex models.
  • To improve model generalization in meta-learning by distinguishing useful from harmful gradient signals.
  • To enhance task distribution diversity during meta-training without increasing computational cost.
  • To develop a gradient-based meta-learner that adaptively selects only beneficial gradients for parameter updates.

Proposed method

  • Introduces a self-supervised Mask Token Prediction (MTP) task in the inner loop to enrich task distribution using unlabeled text.
  • Uses gradient similarity between query-set loss gradients and base-learner's accumulated gradients to assess relevance.
  • Applies an adaptive meta-learner that only updates meta-parameters when query-set gradients align positively with the base-learner's update direction.
  • Employs cosine similarity to measure gradient direction alignment, enabling selective gradient filtering in the outer loop.
  • Combines MTP with gradient-based meta-learning to jointly improve representation learning and optimization stability.
  • Uses first-order approximation to maintain computational efficiency while enabling effective gradient filtering.

Experimental results

Research questions

  • RQ1Can self-supervised pre-training improve generalization in few-shot text classification under low-data regimes?
  • RQ2Does filtering negative gradients via gradient similarity improve meta-learner performance and reduce overfitting?
  • RQ3How does the integration of MTP and adaptive gradient selection affect model robustness across few-shot benchmarks?
  • RQ4What is the contribution of MTP in both meta-training and meta-testing phases to overall performance?

Key findings

  • AMGS achieves 63.62% accuracy on the 1-shot 15-way Banking77 benchmark, outperforming the next best method by 5.11 percentage points.
  • On Clinc150, AMGS reaches 84.93% accuracy in the 1-shot 15-way setting, a 1.21% improvement over the baseline with both query and support set gradients.
  • Removing MTP in meta-training reduces performance by approximately 0.8%, confirming its role in expanding task distribution.
  • Adding MTP during meta-testing further improves accuracy by 0.5%, indicating enhanced robustness on support sets.
  • T-SNE visualization confirms that AMGS generates better-separated, higher-quality sentence representations than REPTILE, especially for ambiguous or similar classes.
  • Ablation studies show that the adaptive meta-learner with gradient similarity filtering consistently outperforms strategies that use all gradients indiscriminately.

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.