Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Techniques Ranking by Impact

Evidence-backed ranking of prompt engineering techniques from peer-reviewed research (2022-2024).

Impact Table

RankTechniqueEffect SizeApplication
1Structured CoT with templates+20-40% reasoningComplex decomposition tasks
2Role/persona (specific)+10-30% domain tasksEvery system prompt
3Affirmative over negative framing+15-25% constraint adherenceAll constraints
4Structured formatting (XML/MD)+10-20% complex tasksLong/complex prompts
5Decomposition (Least-to-Most, Plan-and-Solve)+15-30% multi-stepSequential task chains
6Explicit instruction hierarchy+30-50% injection robustnessMulti-agent systems
7Output format specification+20-40% complianceAny structured output task
8Self-consistency / self-verification+10-25% accuracyCritical decision points
9Context isolation per agent+10-20% multi-step accuracyAgent delegation
10Primacy/recency placement+10-30% constraint adherenceCritical constraints

Visual Ranking

%%{init: {'theme': 'default'}}%%
xychart-beta
    title "Prompt Techniques by Maximum Effect Size"
    x-axis ["CoT", "Role", "Affirm", "Format", "Decomp", "Hierarchy", "Output", "Self-Check", "Isolation", "Placement"]
    y-axis "Max Effect Size (%)" 0 --> 55
    bar [40, 30, 25, 20, 30, 50, 40, 25, 20, 30]

Evidence Sources

FindingSourceYear
Affirmative > negativeBsharat et al., Principled Instructions2024
Role assignmentSchulhoff et al., Prompt Report2024
Structured CoTWei et al., Chain-of-Thought2022
Formatting (XML/MD)Anthropic docs, Prompt Report2024
Primacy/recencyLiu et al., Lost in Middle2023
Instruction hierarchyWallace et al., OpenAI2024
Output format specMultiple sources2023+
DecompositionZhou et al., Wang et al.2023
Context isolationSuzgun & Kalai, Meta-Prompting2024
Prompt compressionJiang et al., LLMLingua2023

Further Reading

  • Meta-Prompting (Suzgun & Kalai, 2024): arXiv:2401.12954
  • The Prompt Report (Schulhoff et al., 2024): arXiv:2406.06608
  • Principled Instructions (Bsharat et al., 2024): arXiv:2312.16171
  • Instruction Hierarchy (Wallace et al., 2024): arXiv:2404.13208
  • Constitutional AI (Bai et al., 2022): arXiv:2212.08073
  • Chain-of-Thought (Wei et al., 2022): arXiv:2201.11903
  • Lost in the Middle (Liu et al., 2023): arXiv:2307.03172
  • LLMLingua (Jiang et al., 2023): arXiv:2310.05736