Resilience of Large Language Models for Noisy Instructions

Bin Wang, Chengwei Wei, Zhengyuan Liu, Geyu Lin, Nancy F. Chen · DOI

Introduction

In the controlled environments of academic benchmarks, Large Language Models (LLMs) are typically evaluated using pristine, well-formatted instructions. However, the transition from laboratory settings to real-world applications—such as voice-activated assistants or document processing pipelines—introduces significant "noise." Users often provide inputs characterized by mumbled speech, typographical errors, or irrelevant conversational filler. A recent study titled "Resilience of Large Language Models for Noisy Instructions" investigates this discrepancy, revealing that even state-of-the-art models exhibit surprising fragility when faced with the inherent messiness of human interaction.

Quantifying Real-World Noise

To understand the scope of the problem, researchers analyzed the ShareGPT dataset, which contains thousands of real-world user-chatbot interactions. Their findings indicate that noise is not an outlier but a standard feature of user input: over 40% of prompts contained some form of linguistic or structural disruption.

Prevalence of noise types in real-world user inputs.

The study categorized these disruptions into five primary types: Automatic Speech Recognition (ASR) errors, Optical Character Recognition (OCR) glitches, grammatical mistakes, typographical errors, and distractive content. The prevalence of these errors underscores a critical "resilience gap" that must be addressed if LLMs are to be reliably integrated into complex, multi-modal systems.

Methodology and Experimental Design

The researchers systematically evaluated the impact of these noise types on the Massive Multitask Language Understanding (MMLU) benchmark. They tested three prominent models: ChatGPT-3.5, Mistral-7B-Instruct-v0.2, and Llama-2-7B-Chat.

To simulate realistic noise, the team employed specialized augmentation techniques:

  • ASR Errors: Modeled after Whisper-Tiny error patterns.
  • OCR Errors: Generated using visual similarity character replacement (e.g., 'm' to 'rn').
  • Grammar and Typos: Created by reversing error correction models and simulating keyboard proximity swaps.
  • Distractive Content: Injecting irrelevant text into the prompt to test the model's ability to focus on the core instruction.

The Impact of Noise on Performance

The experimental results demonstrated a consistent decline in accuracy across all models as noise levels increased. On the MMLU dataset, accuracy dropped between 2.5% and 8.2% depending on the specific noise type.

Examples of simulated noise and their impact on model accuracy.

A key finding was that character-level noise (OCR and typos) is significantly more detrimental than word-level noise (grammatical errors). This phenomenon is attributed to the Byte Pair Encoding (BPE) tokenization process used by most LLMs. When a character is changed, the tokenizer often breaks a familiar word into multiple obscure sub-tokens, effectively destroying the model's semantic understanding of the input. Conversely, models showed high resilience to grammatical errors, likely because their training data (the internet) is already saturated with non-standard grammar.

The Denoising Gap and "Self-Purification"

The study also explored a "re-pass" strategy, where an LLM acts as a pre-processor to "harmonize" or clean noisy text before it is sent to the task-solving model. While ChatGPT-3.5 proved effective in this role—improving performance on noisy data by up to 6.4%—open-source models like Llama-2-7B often exacerbated the issue. These smaller models frequently hallucinated or lost critical information during the cleaning phase, highlighting a significant gap in the "self-purification" capabilities of current open-source architectures.

Conclusion

The "Resilience of Large Language Models for Noisy Instructions" paper highlights a vital frontier for LLM development. While models are becoming increasingly capable at complex reasoning, their underlying sensitivity to character-level disruptions remains a bottleneck for real-world deployment. Future research must focus on developing more robust tokenization methods and training strategies that prioritize resilience to the diverse forms of noise encountered in human-centric environments.

Summary updated

BibTeX
@inproceedings{wang2024resilience,
  author = {Bin Wang and Chengwei Wei and Zhengyuan Liu and Geyu Lin and Nancy F. Chen},
  title = {{Resilience of Large Language Models for Noisy Instructions}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.697},
}
Figure