Abstract
Pre-trained Language Models (PLMs) demonstrate impressive zero-shot capabilities but suffer from extreme sensitivity to prompt wording. We present Swarm Distillation, an unsupervised method that leverages unlabeled data to enforce consistency across diverse prompts. By minimizing the discrepancy between predictions from synonymous prompts using parameter-efficient tuning, our approach significantly improves zero-shot performance, outperforming the T0-3B baseline by up to 10.6 percentage points on challenging NLP tasks.
Introduction: The Fragility of Zero-Shot Learning
Large language models can solve novel tasks by following natural language instructions, a phenomenon known as zero-shot generalization. However, this ability is often "fickle." A model might correctly summarize a text when asked to "Summarize," but fail when asked to "Provide a brief overview." This prompt sensitivity indicates that while the model possesses the necessary latent knowledge, its mapping to specific instructions is fragile.
Traditional solutions involve supervised fine-tuning with labeled data, which is costly. This research explores an alternative: Can we utilize unlabeled data to stabilize these models and make them more robust zero-shot learners?
Methodology: Swarm Distillation
The core innovation is Swarm Distillation, an unsupervised regularization technique designed to harmonize a model's outputs across different phrasings of the same task.
1. Consistency Loss
For any unlabeled input, the model is presented with a "swarm" of synonymous prompts (e.g., "Is this sentiment positive?" vs. "Is this review happy?"). The model's prediction for one prompt serves as a pseudo-target for another. By minimizing the divergence between these predictions, the model learns a more stable, prompt-invariant representation of the underlying task.
2. Parameter-Efficient Adaptation
To avoid "catastrophic forgetting"—where the model loses its general pre-trained knowledge during consistency training—the authors employ Low-Rank Adaptation (LoRA). By freezing the original weights and only updating a small set of auxiliary parameters, the model retains its foundational capabilities while adapting to the task's logic.
3. Unsupervised Selection via Fleiss’ Kappa
A critical challenge in unsupervised tuning is preventing "model collapse," where a model achieves perfect consistency by predicting the same label for every input. To address this, the researchers use Fleiss’ Kappa, a statistical measure of inter-rater agreement that adjusts for chance. Training is halted when the above-chance agreement begins to decline, ensuring the model remains discriminative.
Experimental Setup
The method was evaluated using the T0 model (3B and 11B variants) across 11 diverse datasets, including Natural Language Inference (RTE, CB, ANLI), Sentence Completion (COPA, HellaSwag), and Coreference Resolution (WSC, Winogrande). Prompts were sourced from the Public Pool of Prompts (P3) to ensure a realistic variety of human-authored instructions.
Key Results and Insights
Swarm Distillation yielded substantial performance gains across the majority of benchmarks.
- Significant Accuracy Boosts: On the RTE dataset, accuracy improved from 64.6% to 75.2%. Overall, the method outperformed the T0-3B baseline on 9 out of 11 datasets.
- Efficiency with Minimal Data: Contrary to the belief that fine-tuning requires massive datasets, performance often saturated with as few as 10 to 100 unlabeled examples. This suggests the method is highly suitable for "test-time tuning" on specific user distributions.
- Generalization to Distribution Shifts: The model learned the core logic of tasks rather than dataset-specific artifacts. For instance, training on MNLI unlabeled data improved zero-shot performance on the distinct RTE dataset.
Conclusion and Future Directions
Swarm Distillation demonstrates that internal consistency is a powerful proxy for accuracy in zero-shot settings. By forcing a model to "agree with itself" across different linguistic framings, we can filter out prompt-specific noise and unlock latent capabilities. While the current selection criterion (Fleiss' Kappa) occasionally falters on specific tasks like WSC, the overall framework provides a scalable, unsupervised path toward more reliable and robust universal AI systems.
Summary updated