This paper reveals LLMs are surprisingly sensitive to minor prompt variations
π https://arxiv.org/abs/2401.03729
Original Problem π€:
LLMs are widely used for data labeling, but practitioners make various prompt design choices - from output formats to jailbreaks. No systematic study exists on how these prompt variations affect model predictions and reliability.
-----
Solution in this Paper π§:
β Tested 24 prompt variations across 3 categories:
- Output formats (JSON, CSV, XML etc.)
- Minor perturbations (spaces, greetings etc.)
- Jailbreaks (AIM, Dev Mode v2 etc.)
β Evaluated on 11 classification tasks using ChatGPT and Llama2 models
β Analyzed prediction changes, accuracy impacts, and similarity between variations
β Used multidimensional scaling to visualize relationships between prompt variations
-----
Key Insights from this Paper π‘:
β Even tiny changes like adding a space can cause 500+ prediction changes out of 11,000 samples
β Larger models (ChatGPT, Llama-70B) are more robust to variations than smaller ones
β No single prompt variation consistently performs best across tasks
β Jailbreaks cause massive disruptions - over 2500 prediction changes in ChatGPT
β Output format specifications can significantly impact accuracy
-----
Results π:
β 10% predictions change just by specifying output format
β ChatGPT's JSON checkbox caused more changes than plain JSON specification
β Jailbreaks led to 90% invalid responses in ChatGPT
β Majority voting across variations improved accuracy by 1-2%










