If you have spent any time working with large language models, you know the feeling. You write a prompt. The output is bad. You tweak a word. The output is great. You change another word. The output is garbage again. Prompt engineering feels like alchemy, and until now, nobody had cataloged the spells.

A team of 31 researchers from the University of Maryland, OpenAI, Microsoft, Stanford, Vanderbilt, and Princeton just published the most thorough map of prompt engineering anyone has attempted. They call it "The Prompt Report," and it is exactly what the field needed: a systematic survey that turns scattered folklore into organized knowledge.

What the Report Covers

The researchers followed the PRISMA method, the same systematic review process used in medical research. They scraped 4,797 records from arXiv, Semantic Scholar, and ACL Anthology using 44 keyword searches related to prompting. After deduplication, human review, and automated filtering, they extracted 1,565 relevant papers.

From those papers, the team built three things:

  • A vocabulary of 33 prompt engineering terms, standardized for the first time
  • A taxonomy of 58 text-based LLM prompting techniques
  • A collection of 40 techniques for other modalities, including image, audio, video, segmentation, and 3D

The report also covers multilingual prompting, agent-based extensions, evaluation methods, security risks, and alignment concerns. It is the first survey that tries to capture the full scope of how humans talk to machines.

The Taxonomy: How Techniques Are Organized

The 58 text-based techniques fall into six major categories. Here is what each one does.

In-Context Learning is the foundation. Zero-shot prompting gives the model instructions with no examples. Few-shot prompting includes examples directly in the prompt. Few-shot is generally the most effective method tested, especially when combined with techniques from other categories. But there is a catch. LLMs are wildly sensitive to which examples you pick and the order you put them in. Performance can swing from below 50 percent to above 90 percent just by shuffling examples.

Thought Generation includes chain-of-thought prompting, which asks the model to reason step by step. This is the second most widely used technique after few-shot. It also includes variants like zero-shot chain-of-thought, where you simply add "Let's think step by step" to the prompt. Program-of-Thoughts prompting, which uses code as an intermediate reasoning step, is promising but not yet widely adopted.

Decomposition breaks complex tasks into smaller pieces. Least-to-Most prompting solves simple sub-problems first, then builds up. Step-Back prompting asks the model to reason about principles before tackling specifics. Decomposition techniques shine on multi-step reasoning tasks.

Ensembling combines multiple prompting runs for a single answer. Self-Consistency, the most prominent technique here, runs chain-of-thought multiple times and takes the majority vote. It is slow but reliable, especially for problems where a single wrong reasoning path leads to a bad answer.

Self-Criticism asks the model to evaluate its own output. Chain-of-Verification generates a response, then produces verification questions, then answers those questions to check the original output. Self-Refine iteratively improves outputs through feedback loops. These techniques help with factual accuracy but can also amplify existing errors if the model confidently confirms its own mistakes.

Prompt Engineering and Answer Engineering round out the framework. Prompt engineering is the iterative process of running inference, evaluating performance, and modifying the prompt template. Answer engineering is the less-discussed counterpart: designing what the output should look like. This includes answer shape, answer space, and answer extractors that pull structured data from free-form model outputs.

The Weird Findings

The report documents some genuinely strange behaviors in LLMs.

Duplicating parts of a prompt can increase performance. In a case study on suicidal crisis detection, an email with context was accidentally included twice in the prompt. Removing the duplication reduced accuracy. There is no clear explanation for this. The researchers compare it to telling a model to reread a task before performing it.

Anonymizing names in prompts can also hurt performance. When real names in the crisis detection case study were replaced with random names, the model's accuracy dropped. The model was using proper names as signal, and the researchers do not fully understand why.

As the authors put it: "These systems are being cajoled, not programmed, and, in addition to being quite sensitive to the specific LLM being used, they can be incredibly sensitive to specific details in prompts without there being any obvious reason those details should matter."

What Practitioners Should Take Away

The report offers concrete guidance for anyone writing prompts for production systems.

Start with few-shot examples. They are the most consistently effective technique across benchmarks. But test your example selection and ordering carefully, because the model's sensitivity to these choices is extreme.

Add chain-of-thought reasoning for complex tasks. The combination of few-shot examples and step-by-step reasoning produced the best results on the MMLU benchmark in the report's testing.

Do not skip answer engineering. Think about the shape of the output you want, the space of valid answers, and how you will extract the final result from the model's raw text. These design decisions matter as much as the prompt itself.

Use ensembling for high-stakes decisions. Self-Consistency is expensive but provides a reliability floor that single-shot approaches cannot match.

Test on your actual task, not on benchmarks. The report's benchmarking case study showed significant variation between different phrasings of the same technique. What works on MMLU may not work on your data.

Consider automation. In the suicide crisis detection case study, the automated prompting framework DSPy outperformed the human prompt engineer. A hybrid approach, where humans set constraints and machines optimize within them, may be the most promising path forward.

Security and Safety

The report dedicates substantial space to prompt security, an area many practitioners overlook. Prompt hacking includes prompt injection, where malicious input overrides system instructions, and prompt leaking, where carefully crafted inputs extract the system prompt. The report catalogues hardening measures but acknowledges that no defense is complete.

On alignment, the report covers prompt sensitivity, overconfidence, calibration issues, and cultural biases embedded in prompts. These are not theoretical concerns. Small changes in prompt wording can shift model behavior in ways that introduce systematic bias.

Why This Report Matters

Before this survey, prompt engineering knowledge lived in blog posts, Twitter threads, and scattered papers. Different authors used different terms for the same technique. The same name sometimes referred to different techniques. Practitioners reinvented approaches that already had names and evidence behind them.

The Prompt Report gives the field a shared vocabulary, a tested taxonomy, and a baseline for future research. It also confirms something many suspected: prompt engineering is real, it is measurable, and we have only scratched the surface of understanding why it works.

The full paper is available at arxiv.org/abs/2406.06608, and the authors maintain an updated list of techniques and terminology at LearnPrompting.org.


Suggested title: Someone Finally Mapped the Chaos of Prompt Engineering

Word count: ~1,170

Citations:

Fact-check notes:

  • The exact number of authors varies by how you count affiliations (31 named authors per the arXiv page, some coverage says "over 40 researchers" including collaborators). I used 31, which matches the author list on arXiv.
  • The PRISMA numbers: 4,797 initial records, 1,565 relevant after filtering. These come directly from the paper's project site and abstract.
  • The claim that DSPy beat the human prompt engineer in the SCS case study comes from the project site, which states "Automated techniques (DSPy) were able to defeat our human prompt engineer." Worth verifying the exact F1 scores if precision matters.
  • The performance swing from "below 50 percent to above 90 percent" based on example ordering comes from The Decoder's coverage. The original paper discusses this sensitivity but may phrase it differently. Worth checking the paper's exact language before publishing.
  • The "cajoled, not programmed" quote appears in The Decoder's coverage, attributed to the researchers. Verify it appears in the actual paper text.
  • The paper has gone through 6 versions (v1 June 2024, v6 Feb 2025). Some details may differ between versions.