Enhancing LLM Robustness to Perturbed Instructions: An Empirical Study

Aryan Agrawal, Lisa Alazraki, Shahin Honarvar, Marek Rei
4/3/2025
cs.CL

No official code found. Best implementation: ary4n99/llm-robustness (5 stars, last commit 2025-04-21).

Abstract

Large Language Models (LLMs) are highly vulnerable to input perturbations, as even a small prompt change may result in a substantially different output. Existing methods to enhance LLM robustness are primarily focused on perturbed data samples, whereas improving resiliency to perturbations of task-level instructions has remained relatively underexplored. In this work, we focus on character- and word-level edits of task-specific instructions, which substantially degrade downstream performance. We experiment with a variety of techniques to enhance the robustness of LLMs, including self-denoising and representation alignment, testing different models (Llama 3 and Flan-T5), datasets (CoLA, QNLI, SST-2) and instructions (both task-oriented and role-oriented). We find that, on average, self-denoising -- whether performed by a frozen LLM or a fine-tuned model -- achieves substantially higher performance gains than alternative strategies, including more complex baselines such as ensembling and supervised methods.

View on arXivView PDF

Code Implementations(1)

Improving the robustness of LLMs to prompt perturbations.

51PythonAug 24, 20241 years ago

Similar Papers

Cite this paper

@article{agrawal2025enhancing,
  title  = {Enhancing LLM Robustness to Perturbed Instructions: An Empirical Study},
  author = {Aryan Agrawal and Lisa Alazraki and Shahin Honarvar and Marek Rei},
  year   = {2025},
  eprint = {2504.02733},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.02733v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.02733.svg)](https://codeofpaper.com/paper/2504.02733)

Discussion