Abstract
Recently, we have witnessed breakthroughs in meta-learning for few-shot learning scenarios. Data augmentation is essential for meta-learning, particularly in situations where data is extremely scarce. However, existing text data augmentation methods cannot ensure the diversity and quality of the generated data, which leads to sub-optimal performance. Inspired by the recent success of large language models (LLMs), we propose a Meta-learning framework with Progressive Data Augmentation (PDAMeta) for few-shot text classification. PDAMeta utilizes a two-stage data augmentation strategy: prompt-based augmentation to enrich diversity from a global perspective, and attention-based augmentation to improve quality from a local perspective. Finally, a dual-stream contrastive meta-learning strategy is employed to learn discriminative text representations. Extensive experiments on four public datasets show that PDAMeta significantly outperforms several state-of-the-art models and demonstrates superior robustness.
1. Introduction
Few-shot learning (FSL) aims to train models to recognize new categories using only a handful of examples. In text classification, this is notoriously difficult because small datasets lack the diversity needed for a model to generalize well. Traditional Data Augmentation (DA) methods often face a trade-off between quality and diversity. Local methods (e.g., synonym replacement) fail to change sentence structure enough to be useful, while global methods (e.g., back-translation) can generate diverse text but often lack the precision to maintain label-relevant features. PDAMeta addresses this by refining data progressively, moving from broad semantic changes to surgical, word-level adjustments.
2. Methodology
The core of the framework is the Progressive Data Augmentation (PDA) strategy, integrated into a Dual-stream Contrastive Meta-learning architecture.
2.1 Progressive Data Augmentation (PDA)
PDAMeta employs a two-stage approach to balance diversity and quality:
- Stage 1: Prompt-based (Global): The framework uses LLMs (e.g., GPT-3.5-Turbo) to rephrase training instances. This captures global semantics and introduces syntax/vocabulary variety that simple rule-based methods cannot match.
- Stage 2: Attention-based (Local): To further refine the data, the model uses an attention mechanism to identify "prominent" words. Positive samples are created by masking non-prominent words, while negative samples are created by masking the most prominent words, forcing the model to learn from the remaining context.
2.2 Dual-stream Contrastive Meta-learning
Unlike standard meta-learning that trains on a single stream, PDAMeta utilizes two parallel streams: one for original data and one for augmented data. It employs a contrastive loss function that pulls similar representations together and pushes dissimilar ones apart, ensuring the learned features are highly discriminative.
A key innovation is the use of Gumbel-Softmax to make the selection of prominent words differentiable, allowing the attention mechanism to be aware of masking during learning. Furthermore, Cross-Sample Guidance uses the average representation of the query set to guide word prominence in the support set, bridging the distribution gap between training and testing.
3. Experiments and Results
The framework was evaluated on four benchmarks: HuffPost, Amazon, Reuters, and 20News in standard 5-way 5-shot and 10-shot settings.
3.1 Performance and Robustness
PDAMeta achieved new state-of-the-art (SOTA) results, outperforming models like MetaPrompting and ContrastNet. On average, it reached an accuracy of 84.8% (5-shot) and 86.4% (10-shot). In robustness analysis—where models were tested under intentional distribution shifts—PDAMeta’s performance dropped by only ~1.5%, significantly lower than the 3.6% to 4.6% drops seen in competing models like MLADA.
3.2 Ablation Study
Ablation experiments revealed that removing the prompt-based (LLM) stage caused the most significant performance hit, confirming that global diversity provided by LLMs is a critical foundation for subsequent local refinements.
4. Conclusion
PDAMeta demonstrates that a progressive, two-stage augmentation strategy combined with dual-stream contrastive learning can effectively overcome data scarcity in few-shot text classification. While it currently relies on external LLM APIs, future work will explore the integration of open-source models and the application of this framework to other NLP tasks such as named entity recognition.
Summary updated