Multi-Set Inoculation: Assessing Model Robustness Across Multiple Challenge Sets

Vatsal Gupta, Pranshu Pandya, Tushar Kataria, Vivek Gupta, Dan RotharXiv 2023 · OpenReview

Abstract

Language models, given their black-box nature, often exhibit sensitivity to input perturbations, leading to trust issues due to hallucinations. To bolster trust, it's essential to understand these models' failure modes and devise strategies to enhance their performance. In this study, we propose a framework to study the effect of input perturbations on language models of different scales, from pre-trained models to large language models (LLMs). We use fine-tuning to train a robust model to perturbations, and we investigate whether exposure to one perturbation improves or degrades the model's performance on other perturbations. To address multi-perturbation robustness, we suggest three distinct training strategies. We also extend the framework to LLMs via a chain of thought(COT) prompting with exemplars. We instantiate our framework for the Tabular-NLI task and show that the proposed strategies train the model robust to different perturbations without losing accuracy on a given dataset.

Introduction

While Large Language Models (LLMs) have revolutionized natural language processing, they remain "black boxes" prone to hallucinations and extreme sensitivity to input noise. A human can easily interpret a sentence with a minor typo or a slight rephrasing, but for a language model, these "perturbations" can lead to a total collapse in accuracy. This fragility undermines trust in AI systems deployed in real-world scenarios.

Previous research has largely focused on "single-set inoculation"—fine-tuning a model on one specific type of error, such as typos. However, this often leads to catastrophic forgetting, where the model improves on the targeted error but loses performance on other perturbations or even the original "clean" task. This paper introduces Multi-Set Inoculation, a framework designed to train and prompt models to be concurrently robust against a diverse array of input perturbations without sacrificing performance on clean data.

Figure 4: Illustration of how input perturbations (typos, numeric changes) in the hypothesis lead to incorrect predictions in standard language models.

Methodology

The authors propose distinct strategies for two classes of models: Pre-trained Language Models (PLMs) and Large Language Models (LLMs).

Training Strategies for PLMs

For models like RoBERTa, three fine-tuning strategies were evaluated to incorporate "challenge sets" (data containing specific errors):

  • Sequential (SEQ): Training on one perturbation type after another. This typically suffers from catastrophic forgetting of earlier types.
  • Mixed-Training (MIX): Training on a composite dataset created by mixing equal samples from all perturbation types.
  • Dynamic Mix-Training (DYNMIX): An adaptive version of MIX where the model is exposed to more samples from perturbation types it finds most challenging, based on baseline performance.

Prompting Strategies for LLMs

Since fine-tuning LLMs is computationally expensive, the focus shifted to advanced prompt engineering:

  • SEMP (Single Exemplars Multiple Prompts): Creating specific prompts tailored to each error type.
  • MESP (Multiple Exemplars Single Prompt): A single "super-prompt" containing descriptions and Chain-of-Thought (CoT) examples for all possible perturbation types.
  • Perturbation Awareness: Explicitly informing the model in the system prompt that inputs may contain typos or logic errors.
Figure 6: The Multi-Set Inoculation framework for both fine-tuning PLMs and designing robust prompts for LLMs.

Experimental Setup

The study utilizes the INFOTABS dataset for Tabular Natural Language Inference (NLI), where the task is to determine if a statement is true, false, or neutral based on a provided table. Five specific "Challenge Sets" were generated to represent different perturbations:

  1. Character (char): Typos and misspellings.
  2. Negation (neg): Adding or removing "not."
  3. Numeric (num): Changing digits or number words.
  4. Location (loc): Swapping geographic entities.
  5. Paraphrasing (stan): Rephrasing the hypothesis.

Key Results and Insights

The experiments revealed several critical findings regarding model robustness:

  • Mixed Training is Superior: For PLMs, the MIX strategy (using 500 samples per perturbation type) yielded the highest average improvement across all challenge sets while maintaining high accuracy on clean data. This approach prevents the model from overfitting to the most recently seen error type.
  • The "Priming" Effect in LLMs: Interestingly, explaining even a single type of perturbation to an LLM improved its performance on other types of errors. This suggests that "perturbation awareness" puts the model in a high-alert state for noise.
  • Effective LLM Prompting: The MESP approach with CoT reasoning was most effective for LLMs. For GPT-3.5, adding "Perturbation Awareness" boosted accuracy on character-perturbed sets from 51% to over 67%.
  • Character Robustness as a Gateway: Resilience to character-level typos often improved performance on paraphrasing tasks, suggesting shared underlying representational requirements.
  • Instruction Tuning Matters: Models like Flan-T5, which are specifically instruction-tuned for NLI tasks, were significantly more robust out-of-the-box than general-purpose models like LLaMA-2.

Conclusion

Multi-Set Inoculation provides a robust framework for enhancing language model reliability. While the study demonstrates significant gains, future work should address composite perturbations (multiple error types in one input) and extend these methods to multilingual settings. Furthermore, exploring more advanced sample selection techniques could further optimize the training process for concurrent robustness.

Summary updated

BibTeX
@misc{gupta2023multi,
  author = {Vatsal Gupta and Pranshu Pandya and Tushar Kataria and Vivek Gupta and Dan Roth},
  title = {{Multi-Set Inoculation: Assessing Model Robustness Across Multiple Challenge Sets}},
  year = {2023},
  eprint = {2311.08662},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.08662},
}
Figure