Skip to content

Prompt Engineering

Methods and techniques for crafting prompts to control LLM behavior, including deliberate framing, instruction design, and in-context learning.

Prompt engineering encompasses techniques for designing prompts to elicit desired behavior from large language models. Beyond straightforward instruction design, research reveals that subtle linguistic choices—claim framing, pronouns, confidence markers, source attribution—significantly influence model outputs. This matters for information integrity because: (1) well-intentioned but sloppy prompting can inadvertently trigger sycophancy or hallucination, and (2) adversarial actors can weaponize prompt engineering to manipulate models into generating misinformation.

Key papers

  • Claim Framing as a Driver of LLM Sycophancy — Systematic study of how 8 dimensions of claim framing (confidence, external source, hierarchy, social pressure, unity, stake, consequence) affect LLM sycophancy in factual QA; shows high-unity (we-based) framing and confidence claims are most manipulative
  • LLM Alignment — Alignment failures that prompt engineering can inadvertently trigger or mitigate
  • LLM Sycophancy — How phrasing and framing drive model agreement with incorrect user opinions
  • Adversarial robustness — Techniques to make prompts fail safely under adversarial manipulation

Papers on this topic