Introduction
Prompt-based learning has emerged as a powerful paradigm for few-shot Natural Language Processing (NLP), transforming classification tasks into cloze-style "fill-in-the-blank" problems. While effective, this approach typically requires "Answer Engineering"—the manual and often biased process of mapping model-generated tokens to specific class labels. In their ACL 2022 paper, Wang et al. introduce Answer Space Clustered Prompting (ASCM), a method that automates this mapping through semantic clustering.
The Challenge of Answer Engineering
Current prompting methods generally fall into two categories: manual design and automatic search. Manual design is labor-intensive and restrictive, often ignoring relevant synonyms the model might predict (e.g., mapping "Sports" only to the word sports while ignoring football). Automatic search, while less biased, is computationally expensive and frequently produces non-intuitive results. ASCM addresses these issues by exploiting the latent semantic relationships between tokens, allowing for an unconstrained answer space that requires no human intervention.
The ASCM Architecture
The core of the proposed method is the Semantic Cluster Module (SCM), which works in tandem with a Pre-trained Language Model (PLM).
Semantic Cluster Module (SCM)
Instead of forcing a 1-to-1 mapping between tokens and labels, ASCM processes the [MASK] token embedding through an SCM—a simple architecture consisting of a linear layer, Batch Normalization, and a Tanh activation. This module projects the embedding into a "semantic-clustered space" where a Semantic Classifier (SC) calculates similarity scores against learned category cluster centers.
Synonym Initialization (SI)
To mitigate the "cold start" problem inherent in few-shot learning, the authors employ Synonym Initialization. Using Word2Vec, they identify synonyms for category labels (e.g., "Business" maps to finance or commerce) and pre-train the SCM on these embeddings. This provides the model with a foundational semantic map before it encounters any task-specific training data.
Stair Learning (SL)
To further enhance performance using unlabeled data, the authors introduce Stair Learning, a structured semi-supervised training strategy. Unlike standard ensemble distillation methods like iPET, Stair Learning ranks models by performance and distills knowledge from the strongest to the weakest in a sequential "staircase" fashion. This approach ensures more stable improvements and better utilization of unlabeled datasets.
Experimental Results
The authors evaluated ASCM+SL on four major benchmarks: Yelp Reviews, AG’s News, Yahoo Questions, and MNLI, across varying few-shot settings ($|T| = 10, 50, 100, 1000$).
Key Insights
- Significant Gains in NLI: On the challenging MNLI task with only 10 labeled examples, ASCM+SL achieved an accuracy of 65.0%, a dramatic 23.5 percentage point increase over the PET baseline.
- Efficiency on Topic Classification: On AG’s News with 50 samples, the method reached 90.5% accuracy, nearly matching the performance of models trained on significantly larger datasets.
- Semantic Separation: t-SNE visualizations reveal that while raw PLM embeddings for different categories often overlap, the SCM transformation successfully pulls them into distinct, tight clusters, facilitating more accurate classification.
Conclusion and Future Work
ASCM effectively eliminates the need for manual answer engineering, allowing PLMs to leverage their entire vocabulary for classification. By combining semantic clustering with the Stair Learning strategy, the authors achieve state-of-the-art results in few-shot settings. Future research will focus on extending this framework to multi-token outputs and broader generative tasks.
Summary updated