Double Prompting: How Prompt Repetition Improves LLM Accuracy Without Extra Cost

Research from Google shows that simply repeating your prompt fixes the ‘Lost in the Middle’ attention problem in LLMs, winning 47 out of 70 benchmark tests with zero losses, and boosting accuracy by up to 76 percentage points on targeted tasks.
artificial-intelligence
software-engineering
Author

Kabui, Charles

Published

2026-02-13

Keywords

prompt-repetition, double-prompting, lost-in-the-middle, LLM-attention, prompt-engineering, context-window, AI-code-generation