Introduction
Prompting has emerged as a powerful technique for adapting pre-trained language models to downstream tasks, particularly in few-shot scenarios where data is scarce. By framing tasks as natural language "fill-in-the-blank" problems, researchers have unlocked significant performance gains. However, this success often hinges on the laborious and unintuitive process of manual prompt engineering. This paper introduces AutoSeq, a fully automatic method that eliminates the need for human-designed templates by leveraging multi-token label sequences in sequence-to-sequence (seq2seq) models.
The Bottleneck of Manual Prompting
Traditional prompting methods typically require two human-defined components: a template (the phrasing of the prompt) and label words (the specific tokens the model predicts). For instance, a sentiment analysis task might append the template "It was [MASK]" to a review, requiring the model to choose between "great" or "terrible."
As shown in Figure 1, finding the optimal combination of template and label is often a trial-and-error process that requires significant validation data—a resource typically unavailable in few-shot learning. AutoSeq addresses this by replacing single-word labels with expressive, multi-token "label sequences" (e.g., "Highly recommended.") that provide enough context to function without a template.
AutoSeq: A Template-Free Approach
AutoSeq shifts the architectural focus from Masked Language Models (MLMs) to seq2seq models like T5. This transition enables a three-stage automated pipeline:
- Label Sequences: By using phrases instead of single words, the model can capture richer semantic nuances.
- Automatic Candidate Generation: The system uses T5 and beam search to generate a large pool of potential label sequences directly from a few training examples.
- Contrastive Re-ranking: To prevent the model from selecting generic, high-probability phrases (like "Thank you"), AutoSeq employs contrastive re-ranking. This process scores candidates based on how much more likely they are for a specific target class compared to others, ensuring the selected sequences are highly discriminative.
Experimental Evaluation
The authors evaluated AutoSeq across a comprehensive suite of Natural Language Understanding (NLU) benchmarks, including GLUE, SuperGLUE, and various sentence classification tasks. All experiments were conducted in a 16-shot setting to simulate extreme data scarcity.
Key Findings
- Superiority over Fine-Tuning: AutoSeq achieved a 9.4% average improvement over standard fine-tuning in few-shot settings.
- Outperforming Human Design: The automated method surpassed human-engineered prompts by an average of 3.2%, with notable strengths in complex Natural Language Inference (NLI) tasks.
- Expressiveness Matters: AutoSeq consistently outperformed "AutoWord," a baseline restricted to single-token labels, proving that multi-token sequences are fundamentally more effective for template-free prompting.
- Seq2Seq Advantage: The results highlight that generative architectures like T5 are better suited for complex prompt-based tasks than traditional fill-in-the-blank models.
Conclusion
AutoSeq represents a significant step toward universal, fully automatic fine-tuning. By replacing manual templates with automatically generated, contrastive label sequences, it removes the human-in-the-loop bottleneck of prompt engineering. While some generated sequences for highly complex tasks remain less interpretable, the method's robust statistical performance across diverse benchmarks establishes a new standard for few-shot adaptation of seq2seq models.
Summary updated