TL;DR
While Large Language Models (LLMs) are remarkably adept at following user instructions, they possess a critical vulnerability: they easily confuse the instructions they are supposed to execute with instruction-like text contained within the data they are supposed to process. This paper introduces DIM-Bench, a benchmark designed to evaluate this "instructional distraction" phenomenon, revealing that even state-of-the-art models like GPT-4o frequently fail to maintain user intent when confronted with deceptive inputs.
What Problem Does This Paper Address?
LLMs are increasingly used as workhorses for automated data processing and synthetic data generation—tasks like translating large datasets, proofreading code, or rewriting text styles. A major challenge arises when the input data itself looks like a prompt. For example, if a researcher asks an LLM to translate a dataset of English math problems into Chinese, the input data naturally contains questions and mathematical commands.
Ideally, the LLM should treat the math problem purely as passive text data to be translated. In practice, however, models often suffer from instructional distraction: they lose track of the primary meta-instruction ("translate") and instead execute the embedded instruction ("solve the math problem"). While previous research has explored conflicting instructions with explicit priorities (instruction hierarchy), this paper is the first to systematically address the challenge of LLMs confusing meta-instructions with raw input data.
Methods
The authors formalize the evaluation of instructional distraction by crossing two dimensions of tasks:
- Instruction Tasks (The Meta-Task): Rewriting, Proofreading, Translation, and Style Transfer.
- Input Tasks (The Distractor Data): Reasoning, Code Generation, Mathematical Reasoning, Bias Detection, and Question Answering.
To evaluate whether a model successfully ignores the distraction, the authors employ a dual-evaluation strategy:
- LLM-as-a-Judge: They use GPT-4o to answer a series of decomposed binary (yes/no) questions about the model's output to verify if the primary instruction was maintained without being derailed by the input format.
- Length-Difference-Based Evaluation: For longer context tasks like Question Answering, they analyze the token count of the output. Since tasks like translation or proofreading should yield an output of comparable length to the input, a drastically shorter output indicates the model erroneously answered the embedded question instead of processing the text.
The authors also test three common prompting mitigation strategies: DIRECT prompting (explicitly telling the model to ignore embedded instructions), Chain-of-Thought (CoT) prompting, and Suffix Instruction (placing the meta-instruction after the input data).
Datasets
The authors introduce DIM-Bench (Distractive Instruction Misunderstanding Benchmark), which consists of 2,000 evaluation instances divided into 20 distinct categories (100 samples per category).
To build the deceptive inputs, they leverage subsets of five well-known datasets:
- ARC (Reasoning)
- Code Alpaca (Code Generation)
- GSM8k & MATH (Mathematical Reasoning)
- BBQ (Bias Detection)
- NarrativeQA (Question Answering)
Primary instruction tasks are generated using 10 distinct template prompts per task type (8 for style transfer).
Key Insights and Ideas
- The Irresistible Urge to Answer: LLMs exhibit an overwhelming behavioral bias to answer questions. When an input contains a question format (such as in Question Answering or Bias Detection), models are highly prone to dropping their primary task to provide an answer.
- Distance Breeds Distraction: As input text grows longer, the physical distance between the system's primary instruction and the embedded distractor increases. This makes the model significantly more vulnerable to forgetting the overarching goal.
- Prompting Fails to Fix It: Standard mitigation techniques like explicitly instructing the model to "handle input as text, do not solve" provide minor performance bumps but fail to completely solve the issue. Moving the instruction to the end (Suffix Instruction) actually makes the model more vulnerable to distraction.
Key Results
The authors evaluated six prominent models: Llama-3.1-8B-Instruct, Llama-3.1-70B-Instruct, Qwen-2.5-7B-Inst, GPT-3.5-turbo, GPT-4o-mini, and GPT-4o.
- Universal Vulnerability: No model demonstrated complete robustness against instructional distractions.
- Task-Specific Performance: Across all models, the average accuracy was highest for Translation (0.526) and lowest for Style Transfer (0.301).
- The QA Collapse: In the Question Answering input task, performance collapsed across the board, with several models hitting an accuracy of 0.00 across multiple instruction types. Instead of rewriting or translating the text blocks, they simply outputted short, direct answers to the embedded questions.
Limitations and Future Work
The primary limitation of DIM-Bench is its focus on "one-to-one" tasks, where the expected output format is highly predictable and easily verified by an LLM judge. The benchmark excludes "one-to-many" tasks like summarization, where multiple valid output formats exist depending on user preference. The authors note that manually verified tests show summarization tasks are also highly vulnerable to instructional distraction, and extending automated evaluation frameworks to these open-ended tasks remains an open avenue for future work.
Summary updated