Robustness of Learning from Task Instructions

Jiasheng Gu, Hongyu Zhao, Hanzi Xu, Liangyu Nie, Hongyuan Mei, Wenpeng Yin

Introduction

The paradigm of Natural Language Processing (NLP) has shifted significantly toward instruction tuning, where Pretrained Language Models (PLMs) are prompted with natural language descriptions to perform tasks. While this approach enables impressive cross-task generalization, it introduces a new vulnerability: sensitivity to the specific phrasing and structure of instructions. This study investigates the robustness of instruction-following models—specifically T5-3B and T5-11B—against variations in human-written instructions, ranging from minor perturbations to complete semantic shifts.

Methodology

The researchers utilized the Super-NaturalInstru (SNI) benchmark, a collection of 1,616 NLP tasks with human-oriented instructions. To evaluate robustness, they applied several perturbation strategies to the task definitions:

  • Word-level perturbations: Deleting stop words, randomly removing 5-10 words, inserting masks, or shuffling word order.
  • Sentence-level perturbations: Repeating or shuffling sentences within the instruction.
  • Instruction-level perturbation: Replacing the correct task definition with a random one from a different task.
  • Human Paraphrasing: Creating the Para-Instructions dataset, where NLP experts wrote diverse, semantically equivalent instructions for 23 tasks.
Examples of word-level, sentence-level, and instruction-level perturbations applied to a task definition.

Models were evaluated in two primary configurations: INSTRU-WO-EXAM (instruction only) and INSTRU-W-EXAM (instruction plus two positive demonstrations).

Key Results and Analysis

The "Safety Net" of Demonstrations

The most significant finding is that the inclusion of just two positive examples acts as a powerful stabilizer. In the zero-shot setting (INSTRU-WO-EXAM), performance is highly volatile. For instance, shuffling words in the instruction caused the Exact Match score for Answerability Classification (AC) to plummet from 49.8% to 20.1%. However, when examples were provided (INSTRU-W-EXAM), the model maintained a score of 59.4% despite the nonsensical instruction.

Performance metrics across various tasks and perturbations, comparing models with (grey) and without (black) positive examples.

Remarkably, models provided with a completely random instruction plus examples often outperformed those given the correct instruction without examples. This suggests that models prioritize the patterns found in demonstrations to override or clarify noisy instructions.

The Conciseness Gap

Models trained on the long, descriptive instructions of SNI (resembling crowdsourcing guidelines) struggled to generalize to the short, punchy prompts found in datasets like DiversePrompt. This "conciseness gap" indicates that models do not inherently understand the underlying task semantics across different levels of abstraction; rather, they become attuned to the specific style of instruction they were trained on.

Semantic vs. Surface Form

In the absence of examples, word-level changes (like shuffling) were far more damaging than sentence-level changes (like reordering instructions). This implies that while models can handle some degree of global structural variation, they are highly dependent on local syntactic coherence to extract task meaning when no other context is available.

Conclusion

Instruction-tuned models are surprisingly fragile when relying solely on task definitions. However, the addition of a few positive examples provides a robust "safety net" that can even mitigate the effects of completely random task descriptions. Future work in instruction tuning should emphasize instructional diversity—mixing long-form guidelines, short prompts, and varied examples—to develop models that are truly robust to the messy variability of human communication.

Summary updated

BibTeX
@inproceedings{gu2023robustness,
  author = {Jiasheng Gu and Hongyu Zhao and Hanzi Xu and Liangyu Nie and Hongyuan Mei and Wenpeng Yin},
  title = {{Robustness of Learning from Task Instructions}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.875},
}
Figure