Skip to main content
QUICK REVIEW

[Paper Review] Diverse Few-Shot Text Classification with Multiple Metrics

Mo Yu, Xiaoxiao Guo|ArXiv.org|May 19, 2018
Domain Adaptation and Few-Shot LearningComputer Science26 references25 citations
TL;DR

This paper proposes a diverse few-shot text classification framework that uses multiple metrics learned via task clustering to improve performance on heterogeneous, real-world NLP tasks. By clustering meta-training tasks based on cross-task transfer performance and applying matrix completion to handle sparse task similarities, the method adaptively combines cluster-specific metrics, achieving state-of-the-art accuracy on sentiment and intent classification benchmarks.

ABSTRACT

We study few-shot learning in natural language domains. Compared to many existing works that apply either metric-based or optimization-based meta-learning to image domain with low inter-task variance, we consider a more realistic setting, where tasks are diverse. However, it imposes tremendous difficulties to existing state-of-the-art metric-based algorithms since a single metric is insufficient to capture complex task variations in natural language domain. To alleviate the problem, we propose an adaptive metric learning approach that automatically determines the best weighted combination from a set of metrics obtained from meta-training tasks for a newly seen few-shot task. Extensive quantitative evaluations on real-world sentiment analysis and dialog intent classification datasets demonstrate that the proposed method performs favorably against state-of-the-art few shot learning algorithms in terms of predictive accuracy. We make our code and data available for further study.

Motivation & Objective

  • Address the limitation of single-metric approaches in few-shot text classification, where tasks are diverse and not uniformly related.
  • Develop a task clustering method compatible with deep networks and variable label sets, enabling cluster-specific metric learning.
  • Improve few-shot generalization by combining multiple metrics tailored to each target task’s similarity to meta-training clusters.
  • Enable effective few-shot learning in realistic enterprise settings where tasks vary in domain, label count, and data distribution.

Proposed method

  • Use cross-task transfer performance to construct a task similarity matrix S, where S[i,j] estimates accuracy of adapting task i to task j.
  • Apply matrix completion to handle missing and unreliable entries in the similarity matrix S, ensuring robustness to incomplete data.
  • Perform spectral clustering on the completed matrix S to group meta-training tasks into K clusters, each with a shared metric.
  • Train a deep embedding network per cluster to learn a task-specific metric Λ_k that maps input pairs to similarity scores.
  • During inference, combine metrics from all clusters using learned weights α_k, forming a weighted linear combination for each target task.
  • Optimize the combination weights via meta-learning, ensuring the final metric adapts effectively to the target task’s characteristics.

Experimental results

Research questions

  • RQ1Can multiple task-specific metrics improve few-shot text classification performance compared to a single shared metric?
  • RQ2How can task clustering be effectively performed when tasks have varying numbers of classes and are not uniformly related?
  • RQ3Does matrix completion on cross-task transfer performance enable robust and generalizable task clustering for diverse few-shot tasks?
  • RQ4Can the proposed method outperform existing single-metric or optimization-based few-shot learning approaches on real-world text classification benchmarks?

Key findings

  • The proposed RobustTC-FSL method achieves 83.12% accuracy on the Amazon review dataset with 5 clusters, outperforming the baseline ASAP-MT-LR method (82.65%).
  • On the SNIPS dialog intent classification dataset, the method achieves 79.29% accuracy, significantly outperforming state-of-the-art baselines in diverse few-shot settings.
  • Visualization of clusters shows that tasks with similar thresholds (e.g., N=2,4,5 for positive reviews) and domains are grouped together, confirming effective clustering.
  • The top-performing target tasks show high weights on the most relevant clusters, validating the adaptive metric combination mechanism.
  • The method demonstrates robustness even in binary classification settings, where prior task clustering methods are typically applied, indicating broader applicability.
  • The ablation study confirms that matrix completion and task clustering are critical components, with performance dropping significantly when removed.

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.