TLDRocket
Sign in

Prompt Engineering

5 summarised stories about Prompt Engineering, each linking back to the original source. Browse all topics →

Tuesday, 30 April 2024

Improving Prompt Consistency with Structured Generations

Hugging Face Blog 2 years ago

Researchers at Hugging Face and Dottxt found that language model evaluation scores vary dramatically with minor prompt format changes—even though the information provided remains identical. Testing on MMLU showed individual models' performance swinging by 10 percentage points across different prompt formats, with Qwen1.5-7B dropping from 51.2% to 22.9% accuracy on the same task. Using structured generation to constrain model outputs reduced this variance and improved consistency in model rankings across different prompt variations.