diff --git "a/data/terms.jsonl" "b/data/terms.jsonl" --- "a/data/terms.jsonl" +++ "b/data/terms.jsonl" @@ -1,234 +1,275 @@ -{"id": "PTL-0001", "slug": "prompt", "term": "Prompt", "aliases": ["input", "context"], "category": "Foundations", "definition": "A prompt is the complete input text, and optionally other media, that is given to a language model to condition its output, including instructions, context, examples, and the user's request.", "description": "In chat-based systems the prompt is assembled from several parts, such as a system prompt, the prior conversation turns, retrieved documents, and tool results. The model produces its output by predicting tokens conditioned on this entire input, so every part of the prompt can influence the response, not only the final question.", "example": null, "broader": [], "narrower": ["system-prompt", "prompt-template", "multimodal-prompting"], "related": ["context-window", "context-engineering"], "introduced": null, "sources": [{"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}, {"title": "The Prompt Report: A Systematic Survey of Prompt Engineering Techniques", "authors": "Schulhoff et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.06608"}], "url": "https://protologue.com/t/prompt/", "citation": "Protologue. (2026). Prompt. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0001). https://protologue.com/t/prompt/"} -{"id": "PTL-0002", "slug": "prompt-engineering", "term": "Prompt Engineering", "aliases": ["prompt design"], "category": "Foundations", "definition": "Prompt engineering is the practice of designing, testing, and iteratively refining prompts so that a language model reliably produces the desired output for a task.", "description": "It covers the wording of instructions, the choice and ordering of examples, output formatting constraints, and the decomposition of a task across multiple calls. As models and tooling matured, much of this work broadened into context engineering, which treats the whole information environment around a model call as the object being designed.", "example": null, "broader": [], "narrower": ["context-engineering"], "related": ["prompt", "automatic-prompt-engineer"], "introduced": null, "sources": [{"title": "The Prompt Report: A Systematic Survey of Prompt Engineering Techniques", "authors": "Schulhoff et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.06608"}, {"title": "Prompt engineering overview", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/overview"}], "url": "https://protologue.com/t/prompt-engineering/", "citation": "Protologue. (2026). Prompt Engineering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0002). https://protologue.com/t/prompt-engineering/"} -{"id": "PTL-0003", "slug": "system-prompt", "term": "System Prompt", "aliases": ["system message", "developer message", "system instruction"], "category": "Foundations", "definition": "A system prompt is a privileged instruction block, placed before the conversation, that sets a model's role, rules, tone, and constraints for every subsequent turn.", "description": "Chat APIs typically expose the system prompt as a separate message role. Models trained with an instruction hierarchy are taught to give system instructions precedence over conflicting user or tool content, which makes the system prompt the main lever for operator control and a frequent target of prompt-leaking attacks.", "example": null, "broader": ["prompt"], "narrower": [], "related": ["instruction-hierarchy", "role-prompting", "prompt-leaking"], "introduced": null, "sources": [{"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}, {"title": "The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions", "authors": "Wallace et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.13208"}], "url": "https://protologue.com/t/system-prompt/", "citation": "Protologue. (2026). System Prompt. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0003). https://protologue.com/t/system-prompt/"} -{"id": "PTL-0004", "slug": "context-window", "term": "Context Window", "aliases": ["context length", "context size"], "category": "Foundations", "definition": "The context window is the maximum number of tokens a language model can attend to in a single call, covering both the prompt and the generated output.", "description": "Anything outside the context window is invisible to the model unless it is re-inserted. Larger windows allow whole documents or codebases to be included, but research shows models do not use all positions equally well, which motivates retrieval, summarization, and careful placement of key information.", "example": null, "broader": [], "narrower": [], "related": ["token", "lost-in-the-middle", "needle-in-a-haystack", "context-engineering"], "introduced": null, "sources": [{"title": "Attention Is All You Need", "authors": "Vaswani et al.", "year": 2017, "url": "https://arxiv.org/abs/1706.03762"}, {"title": "Lost in the Middle: How Language Models Use Long Contexts", "authors": "Liu et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.03172"}], "url": "https://protologue.com/t/context-window/", "citation": "Protologue. (2026). Context Window. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0004). https://protologue.com/t/context-window/"} -{"id": "PTL-0005", "slug": "token", "term": "Token", "aliases": ["subword", "BPE token", "tokenizer", "tokenization"], "category": "Foundations", "definition": "A token is the basic unit of text a language model reads and writes, typically a word, word fragment, or character sequence produced by a subword tokenizer such as byte-pair encoding.", "description": "Context limits, pricing, and generation speed are all measured in tokens. Because tokenization splits text unevenly, character-level tasks such as counting letters or reversing strings are harder for models than they appear, and the same content can cost different numbers of tokens in different languages.", "example": null, "broader": [], "narrower": [], "related": ["context-window"], "introduced": null, "sources": [{"title": "Neural Machine Translation of Rare Words with Subword Units", "authors": "Sennrich et al.", "year": 2015, "url": "https://arxiv.org/abs/1508.07909"}], "url": "https://protologue.com/t/token/", "citation": "Protologue. (2026). Token. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0005). https://protologue.com/t/token/"} -{"id": "PTL-0006", "slug": "temperature", "term": "Temperature", "aliases": ["sampling temperature"], "category": "Foundations", "definition": "Temperature is a sampling parameter that rescales a model's output probabilities before a token is chosen; lower values make outputs more deterministic and higher values make them more varied.", "description": "At temperature zero the model approximately always picks its most likely token (greedy decoding). Techniques that rely on diverse samples, such as self-consistency and best-of-N, deliberately use a nonzero temperature, while extraction and classification tasks usually use a low one.", "example": null, "broader": [], "narrower": [], "related": ["top-p-sampling", "self-consistency", "best-of-n-sampling"], "introduced": null, "sources": [{"title": "The Curious Case of Neural Text Degeneration", "authors": "Holtzman et al.", "year": 2019, "url": "https://arxiv.org/abs/1904.09751"}], "url": "https://protologue.com/t/temperature/", "citation": "Protologue. (2026). Temperature. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0006). https://protologue.com/t/temperature/"} -{"id": "PTL-0007", "slug": "top-p-sampling", "term": "Top-p Sampling", "aliases": ["nucleus sampling"], "category": "Foundations", "definition": "Top-p sampling, also called nucleus sampling, draws each next token only from the smallest set of candidates whose cumulative probability exceeds a threshold p.", "description": "It was proposed to avoid both the repetitive text produced by greedy or beam decoding and the incoherent text produced by sampling from the full distribution. It is usually combined with temperature.", "example": null, "broader": [], "narrower": [], "related": ["temperature"], "introduced": 2019, "sources": [{"title": "The Curious Case of Neural Text Degeneration", "authors": "Holtzman et al.", "year": 2019, "url": "https://arxiv.org/abs/1904.09751"}], "url": "https://protologue.com/t/top-p-sampling/", "citation": "Protologue. (2026). Top-p Sampling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0007). https://protologue.com/t/top-p-sampling/"} -{"id": "PTL-0008", "slug": "zero-shot-prompting", "term": "Zero-shot Prompting", "aliases": [], "category": "Foundations", "definition": "Zero-shot prompting asks a model to perform a task from an instruction alone, without any worked examples in the prompt.", "description": "Zero-shot performance improved dramatically with instruction tuning and preference training, which taught models to follow natural-language task descriptions. It is the default for most modern chat use, with examples added only when the format or judgment required is hard to describe.", "example": null, "broader": [], "narrower": [], "related": ["few-shot-prompting", "instruction-tuning", "zero-shot-chain-of-thought"], "introduced": null, "sources": [{"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}, {"title": "Finetuned Language Models Are Zero-Shot Learners", "authors": "Wei et al.", "year": 2021, "url": "https://arxiv.org/abs/2109.01652"}], "url": "https://protologue.com/t/zero-shot-prompting/", "citation": "Protologue. (2026). Zero-shot Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0008). https://protologue.com/t/zero-shot-prompting/"} -{"id": "PTL-0009", "slug": "few-shot-prompting", "term": "Few-shot Prompting", "aliases": ["k-shot prompting", "in-context examples", "one-shot prompting"], "category": "Foundations", "definition": "Few-shot prompting includes a small number of input-output examples in the prompt so the model can infer the task and the desired format from demonstrations.", "description": "Popularized by the GPT-3 paper, it allows a model to perform new tasks without any weight updates. Results are sensitive to which examples are chosen, their order, and their label balance, which spawned a body of work on exemplar selection and calibration.", "example": "Classify sentiment.\nReview: \"Arrived broken.\" -> negative\nReview: \"Works perfectly.\" -> positive\nReview: \"Battery died in a day.\" ->\n", "broader": ["in-context-learning"], "narrower": ["exemplar-selection", "exemplar-ordering", "few-shot-calibration"], "related": ["zero-shot-prompting", "many-shot-in-context-learning"], "introduced": 2020, "sources": [{"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}], "url": "https://protologue.com/t/few-shot-prompting/", "citation": "Protologue. (2026). Few-shot Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0009). https://protologue.com/t/few-shot-prompting/"} -{"id": "PTL-0010", "slug": "instruction-tuning", "term": "Instruction Tuning", "aliases": ["instruction fine-tuning", "supervised fine-tuning", "SFT"], "category": "Foundations", "definition": "Instruction tuning is fine-tuning a pretrained language model on many tasks phrased as natural-language instructions, so that it follows unseen instructions zero-shot.", "description": "The FLAN work showed that tuning on dozens of instruction-formatted datasets substantially improved zero-shot performance on held-out tasks. Combined with reinforcement learning from human feedback, it produced the instruction-following chat models that most prompting techniques now target.", "example": null, "broader": [], "narrower": [], "related": ["zero-shot-prompting", "rlhf"], "introduced": 2021, "sources": [{"title": "Finetuned Language Models Are Zero-Shot Learners", "authors": "Wei et al.", "year": 2021, "url": "https://arxiv.org/abs/2109.01652"}, {"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}], "url": "https://protologue.com/t/instruction-tuning/", "citation": "Protologue. (2026). Instruction Tuning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0010). https://protologue.com/t/instruction-tuning/"} -{"id": "PTL-0011", "slug": "rlhf", "term": "Reinforcement Learning from Human Feedback", "aliases": ["RLHF", "preference tuning"], "category": "Foundations", "definition": "Reinforcement learning from human feedback (RLHF) trains a language model to produce outputs people prefer, by learning a reward model from human comparisons and optimizing the model against it.", "description": "InstructGPT showed that RLHF made a much smaller model preferred over a far larger base model. RLHF shapes how models respond to prompts, including their helpfulness and refusals, and is linked to failure modes such as sycophancy. Direct preference optimization is a widely used simpler alternative.", "example": null, "broader": [], "narrower": ["direct-preference-optimization"], "related": ["instruction-tuning", "constitutional-ai", "sycophancy"], "introduced": 2022, "sources": [{"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}], "url": "https://protologue.com/t/rlhf/", "citation": "Protologue. (2026). Reinforcement Learning from Human Feedback. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0011). https://protologue.com/t/rlhf/"} -{"id": "PTL-0012", "slug": "direct-preference-optimization", "term": "Direct Preference Optimization", "aliases": ["DPO"], "category": "Foundations", "definition": "Direct preference optimization (DPO) aligns a language model to human preferences by training directly on preferred-versus-rejected response pairs, without fitting a separate reward model or running reinforcement learning.", "description": "DPO reframes the RLHF objective as a simple classification-style loss over preference pairs. It became a common alternative to RLHF because it is stable and cheap to run.", "example": null, "broader": ["rlhf"], "narrower": [], "related": [], "introduced": 2023, "sources": [{"title": "Direct Preference Optimization: Your Language Model is Secretly a Reward Model", "authors": "Rafailov et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.18290"}], "url": "https://protologue.com/t/direct-preference-optimization/", "citation": "Protologue. (2026). Direct Preference Optimization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0012). https://protologue.com/t/direct-preference-optimization/"} -{"id": "PTL-0013", "slug": "prompt-template", "term": "Prompt Template", "aliases": ["prompt scaffold"], "category": "Foundations", "definition": "A prompt template is a reusable prompt with placeholder variables that are filled in at run time, separating the fixed instructions from the per-request data.", "description": "Templates make prompts testable and versionable, and they are the unit optimized by frameworks such as DSPy. Keeping untrusted data in clearly delimited slots also supports defenses against prompt injection.", "example": null, "broader": ["prompt"], "narrower": [], "related": ["delimiters", "dspy", "spotlighting"], "introduced": null, "sources": [{"title": "The Prompt Report: A Systematic Survey of Prompt Engineering Techniques", "authors": "Schulhoff et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.06608"}], "url": "https://protologue.com/t/prompt-template/", "citation": "Protologue. (2026). Prompt Template. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0013). https://protologue.com/t/prompt-template/"} -{"id": "PTL-0014", "slug": "delimiters", "term": "Delimiters", "aliases": ["XML tags", "separators"], "category": "Foundations", "definition": "Delimiters are explicit markers, such as XML-style tags, triple quotes, or headings, that separate the parts of a prompt so the model can tell instructions, data, and examples apart.", "description": "Vendor guidance recommends delimiters to reduce ambiguity, make outputs easier to parse, and lower the chance that content inside a document is mistaken for an instruction. Tags can also be requested in the output for reliable extraction.", "example": null, "broader": [], "narrower": [], "related": ["prompt-template", "structured-outputs", "spotlighting"], "introduced": null, "sources": [{"title": "Prompting best practices", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices"}, {"title": "Prompt engineering", "authors": "OpenAI", "year": 2024, "url": "https://developers.openai.com/api/docs/guides/prompt-engineering"}], "url": "https://protologue.com/t/delimiters/", "citation": "Protologue. (2026). Delimiters. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0014). https://protologue.com/t/delimiters/"} -{"id": "PTL-0015", "slug": "prefill", "term": "Prefill", "aliases": ["response prefilling", "output priming", "assistant prefill"], "category": "Foundations", "definition": "Prefill is the technique of writing the first part of the model's response yourself, so that the model continues from that text and is steered into a specific format or direction.", "description": "Starting the assistant turn with an opening brace pushes the model toward JSON output, and starting with a heading or a character's name can enforce structure or persona. Support is model-specific and declining. Anthropic's documentation states that, starting with Claude 4.6 models, requests that prefill the final assistant turn return an error, while earlier models still accept them and assistant messages elsewhere in the conversation are unaffected. It gives migration guidance for common uses, such as controlling output format and eliminating preambles, mostly through explicit instructions.", "example": null, "broader": [], "narrower": [], "related": ["structured-outputs", "delimiters"], "introduced": null, "sources": [{"title": "Prompting best practices", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices"}], "url": "https://protologue.com/t/prefill/", "citation": "Protologue. (2026). Prefill. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0015). https://protologue.com/t/prefill/"} -{"id": "PTL-0016", "slug": "role-prompting", "term": "Role Prompting", "aliases": ["persona prompting", "role-play prompting"], "category": "Foundations", "definition": "Role prompting assigns the model a persona or professional role, such as \"You are an experienced tax accountant,\" to shape its tone, vocabulary, and focus.", "description": "Role prompts reliably change style and framing. Evidence that they improve factual accuracy is mixed, with some studies finding gains in reasoning tasks and a large evaluation finding that adding personas to system prompts did not consistently improve performance.", "example": null, "broader": [], "narrower": [], "related": ["system-prompt"], "introduced": null, "sources": [{"title": "Better Zero-Shot Reasoning with Role-Play Prompting", "authors": "Kong et al.", "year": 2023, "url": "https://arxiv.org/abs/2308.07702"}, {"title": "When \"A Helpful Assistant\" Is Not Really Helpful: Personas in System Prompts Do Not Improve Performances of Large Language Models", "authors": "Zheng et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.10054"}], "url": "https://protologue.com/t/role-prompting/", "citation": "Protologue. (2026). Role Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0016). https://protologue.com/t/role-prompting/"} -{"id": "PTL-0017", "slug": "in-context-learning", "term": "In-Context Learning", "aliases": ["ICL"], "category": "Exemplars & In-Context Learning", "definition": "In-context learning (ICL) is a language model's ability to perform a task by conditioning on instructions or demonstrations in its prompt, without any update to its weights.", "description": "Identified as an emergent capability of large pretrained models in the GPT-3 paper, ICL underlies few-shot prompting. Studies show that models often rely more on the format and label space of demonstrations than on whether the demonstration labels are correct.", "example": null, "broader": [], "narrower": ["few-shot-prompting", "demonstration-label-sensitivity", "many-shot-in-context-learning"], "related": [], "introduced": 2020, "sources": [{"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}], "url": "https://protologue.com/t/in-context-learning/", "citation": "Protologue. (2026). In-Context Learning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0017). https://protologue.com/t/in-context-learning/"} -{"id": "PTL-0018", "slug": "demonstration-label-sensitivity", "term": "Demonstration Label Sensitivity", "aliases": ["role of demonstrations"], "category": "Exemplars & In-Context Learning", "definition": "Demonstration label sensitivity refers to how much a model's few-shot performance depends on whether the example labels are correct; research found that randomly replacing labels often hurts performance only slightly.", "description": "Min et al. showed that demonstrations mainly supply the label space, the input distribution, and the format of the task. This suggests few-shot examples work largely by specifying what the task looks like rather than by teaching the input-label mapping.", "example": null, "broader": ["in-context-learning"], "narrower": [], "related": ["few-shot-prompting", "exemplar-selection"], "introduced": null, "sources": [{"title": "Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?", "authors": "Min et al.", "year": 2022, "url": "https://arxiv.org/abs/2202.12837"}], "url": "https://protologue.com/t/demonstration-label-sensitivity/", "citation": "Protologue. (2026). Demonstration Label Sensitivity. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0018). https://protologue.com/t/demonstration-label-sensitivity/"} -{"id": "PTL-0019", "slug": "exemplar-selection", "term": "Exemplar Selection", "aliases": ["demonstration selection", "dynamic few-shot", "kNN prompting"], "category": "Exemplars & In-Context Learning", "definition": "Exemplar selection is the choice of which demonstrations to include in a few-shot prompt, commonly by retrieving the examples most semantically similar to the current input.", "description": "Liu et al. showed that retrieving nearest-neighbor examples by embedding similarity outperformed random selection. Selection can also target diversity, difficulty, or the model's uncertainty, as in active prompting.", "example": null, "broader": ["few-shot-prompting"], "narrower": ["active-prompting"], "related": ["exemplar-ordering", "retrieval-augmented-generation"], "introduced": null, "sources": [{"title": "What Makes Good In-Context Examples for GPT-3?", "authors": "Liu et al.", "year": 2021, "url": "https://arxiv.org/abs/2101.06804"}], "url": "https://protologue.com/t/exemplar-selection/", "citation": "Protologue. (2026). Exemplar Selection. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0019). https://protologue.com/t/exemplar-selection/"} -{"id": "PTL-0020", "slug": "exemplar-ordering", "term": "Exemplar Ordering", "aliases": ["demonstration order", "order sensitivity"], "category": "Exemplars & In-Context Learning", "definition": "Exemplar ordering is the arrangement of demonstrations within a few-shot prompt, which can swing accuracy from near state-of-the-art to near chance for the same set of examples.", "description": "Lu et al. documented this order sensitivity and proposed selecting performant orderings using a probe set generated by the model itself. The effect is a key reason few-shot results should be reported across several permutations.", "example": null, "broader": ["few-shot-prompting"], "narrower": [], "related": ["exemplar-selection", "few-shot-calibration", "prompt-sensitivity"], "introduced": null, "sources": [{"title": "Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivity", "authors": "Lu et al.", "year": 2021, "url": "https://arxiv.org/abs/2104.08786"}], "url": "https://protologue.com/t/exemplar-ordering/", "citation": "Protologue. (2026). Exemplar Ordering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0020). https://protologue.com/t/exemplar-ordering/"} -{"id": "PTL-0021", "slug": "few-shot-calibration", "term": "Few-shot Calibration", "aliases": ["contextual calibration", "calibrate before use"], "category": "Exemplars & In-Context Learning", "definition": "Few-shot calibration corrects a model's systematic biases toward particular answers, such as the most frequent or most recent label in the examples, by adjusting output probabilities measured on a content-free input.", "description": "Zhao et al. identified majority-label bias, recency bias, and common-token bias in few-shot prompting, and proposed contextual calibration, which estimates the bias from an input such as \"N/A\" and rescales predictions to neutralize it.", "example": null, "broader": ["few-shot-prompting"], "narrower": [], "related": ["exemplar-ordering", "prompt-sensitivity"], "introduced": null, "sources": [{"title": "Calibrate Before Use: Improving Few-Shot Performance of Language Models", "authors": "Zhao et al.", "year": 2021, "url": "https://arxiv.org/abs/2102.09690"}], "url": "https://protologue.com/t/few-shot-calibration/", "citation": "Protologue. (2026). Few-shot Calibration. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0021). https://protologue.com/t/few-shot-calibration/"} -{"id": "PTL-0022", "slug": "many-shot-in-context-learning", "term": "Many-shot In-Context Learning", "aliases": ["many-shot ICL", "long-context ICL"], "category": "Exemplars & In-Context Learning", "definition": "Many-shot in-context learning places hundreds or thousands of demonstrations in a long-context prompt, often yielding large gains over few-shot prompting.", "description": "Agarwal et al. found consistent improvements as the number of shots grew into the hundreds, and introduced variants that use model-generated rationales or unlabeled problems. The same scaling behavior underlies the many-shot jailbreaking attack.", "example": null, "broader": ["in-context-learning"], "narrower": [], "related": ["few-shot-prompting", "many-shot-jailbreaking", "context-window"], "introduced": 2024, "sources": [{"title": "Many-Shot In-Context Learning", "authors": "Agarwal et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.11018"}], "url": "https://protologue.com/t/many-shot-in-context-learning/", "citation": "Protologue. (2026). Many-shot In-Context Learning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0022). https://protologue.com/t/many-shot-in-context-learning/"} -{"id": "PTL-0023", "slug": "active-prompting", "term": "Active Prompting", "aliases": ["Active-Prompt"], "category": "Exemplars & In-Context Learning", "definition": "Active prompting selects which questions to annotate with chain-of-thought exemplars by choosing those on which the model is most uncertain, measured by disagreement across sampled answers.", "description": "Borrowing from active learning, it focuses human annotation effort on the examples most informative for the model, rather than on a fixed or random set.", "example": null, "broader": ["exemplar-selection"], "narrower": [], "related": ["chain-of-thought", "self-consistency"], "introduced": 2023, "sources": [{"title": "Active Prompting with Chain-of-Thought for Large Language Models", "authors": "Diao et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.12246"}], "url": "https://protologue.com/t/active-prompting/", "citation": "Protologue. (2026). Active Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0023). https://protologue.com/t/active-prompting/"} -{"id": "PTL-0024", "slug": "chain-of-thought", "term": "Chain-of-Thought Prompting", "aliases": ["CoT", "step-by-step reasoning"], "category": "Reasoning Elicitation", "definition": "Chain-of-thought (CoT) prompting elicits a sequence of intermediate reasoning steps from a language model before its final answer, which improves performance on multi-step arithmetic, commonsense, and symbolic reasoning tasks.", "description": "Wei et al. introduced CoT by including worked examples with step-by-step reasoning in a few-shot prompt, and found the benefit emerged mainly in large models. It is the root of a large family of techniques, including zero-shot CoT, self-consistency, and tree of thoughts, and of the extended reasoning trained into modern reasoning models.", "example": "Q: Roger has 5 balls. He buys 2 cans of 3 balls each. How many balls does he have?\nA: He starts with 5. Two cans of 3 is 6. 5 + 6 = 11. The answer is 11.\n", "broader": [], "narrower": ["zero-shot-chain-of-thought", "auto-cot", "self-consistency", "tree-of-thoughts", "contrastive-chain-of-thought", "thread-of-thought", "complexity-based-prompting", "chain-of-draft"], "related": ["scratchpad", "reasoning-model", "unfaithful-chain-of-thought"], "introduced": 2022, "sources": [{"title": "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models", "authors": "Wei et al.", "year": 2022, "url": "https://arxiv.org/abs/2201.11903"}], "url": "https://protologue.com/t/chain-of-thought/", "citation": "Protologue. (2026). Chain-of-Thought Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0024). https://protologue.com/t/chain-of-thought/"} -{"id": "PTL-0025", "slug": "zero-shot-chain-of-thought", "term": "Zero-shot Chain-of-Thought", "aliases": ["zero-shot CoT", "let's think step by step"], "category": "Reasoning Elicitation", "definition": "Zero-shot chain-of-thought prompting triggers step-by-step reasoning without examples by appending a cue such as \"Let's think step by step\" to the question.", "description": "Kojima et al. showed this single phrase produced large accuracy gains on arithmetic and logic benchmarks. The method uses a second prompt to extract the final answer from the generated reasoning.", "example": null, "broader": ["chain-of-thought"], "narrower": ["plan-and-solve-prompting"], "related": ["zero-shot-prompting"], "introduced": 2022, "sources": [{"title": "Large Language Models are Zero-Shot Reasoners", "authors": "Kojima et al.", "year": 2022, "url": "https://arxiv.org/abs/2205.11916"}], "url": "https://protologue.com/t/zero-shot-chain-of-thought/", "citation": "Protologue. (2026). Zero-shot Chain-of-Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0025). https://protologue.com/t/zero-shot-chain-of-thought/"} -{"id": "PTL-0026", "slug": "scratchpad", "term": "Scratchpad", "aliases": ["intermediate computation"], "category": "Reasoning Elicitation", "definition": "A scratchpad is a region of model output reserved for intermediate computation, which the model writes before its final answer so that multi-step calculations can be carried out explicitly.", "description": "Nye et al. trained models to emit intermediate steps for tasks like long addition and program execution, an important precursor to chain-of-thought prompting. In practice the term also refers to private reasoning sections that are hidden from end users.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought", "extended-thinking"], "introduced": 2021, "sources": [{"title": "Show Your Work: Scratchpads for Intermediate Computation with Language Models", "authors": "Nye et al.", "year": 2021, "url": "https://arxiv.org/abs/2112.00114"}], "url": "https://protologue.com/t/scratchpad/", "citation": "Protologue. (2026). Scratchpad. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0026). https://protologue.com/t/scratchpad/"} -{"id": "PTL-0027", "slug": "auto-cot", "term": "Automatic Chain-of-Thought", "aliases": ["Auto-CoT"], "category": "Reasoning Elicitation", "definition": "Automatic chain-of-thought (Auto-CoT) builds chain-of-thought demonstrations without manual writing, by clustering questions for diversity and generating a reasoning chain for a representative of each cluster with zero-shot CoT.", "description": "Diversity across clusters limits the damage from mistakes in any single generated chain, and the approach matched manually written CoT exemplars on several benchmarks.", "example": null, "broader": ["chain-of-thought"], "narrower": [], "related": ["zero-shot-chain-of-thought", "exemplar-selection"], "introduced": 2022, "sources": [{"title": "Automatic Chain of Thought Prompting in Large Language Models", "authors": "Zhang et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.03493"}], "url": "https://protologue.com/t/auto-cot/", "citation": "Protologue. (2026). Automatic Chain-of-Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0027). https://protologue.com/t/auto-cot/"} -{"id": "PTL-0028", "slug": "self-consistency", "term": "Self-Consistency", "aliases": ["majority voting", "CoT-SC"], "category": "Reasoning Elicitation", "definition": "Self-consistency samples multiple chain-of-thought reasoning paths for the same question and returns the answer that appears most often, rather than relying on a single greedy decode.", "description": "Wang et al. found this majority vote substantially improved chain-of-thought accuracy on arithmetic and commonsense benchmarks. It trades extra inference cost for reliability and is an early form of test-time compute scaling.", "example": null, "broader": ["chain-of-thought"], "narrower": ["universal-self-consistency"], "related": ["best-of-n-sampling", "test-time-compute-scaling", "temperature"], "introduced": 2022, "sources": [{"title": "Self-Consistency Improves Chain of Thought Reasoning in Language Models", "authors": "Wang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.11171"}], "url": "https://protologue.com/t/self-consistency/", "citation": "Protologue. (2026). Self-Consistency. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0028). https://protologue.com/t/self-consistency/"} -{"id": "PTL-0029", "slug": "universal-self-consistency", "term": "Universal Self-Consistency", "aliases": [], "category": "Reasoning Elicitation", "definition": "Universal self-consistency extends self-consistency to free-form outputs by asking the model itself to select the most consistent response among several samples, instead of counting exact-match answers.", "description": "This makes sampling-and-selecting usable for tasks such as summarization and open-ended question answering, where answers rarely match word for word.", "example": null, "broader": ["self-consistency"], "narrower": [], "related": ["llm-as-a-judge"], "introduced": 2023, "sources": [{"title": "Universal Self-Consistency for Large Language Model Generation", "authors": "Chen et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.17311"}], "url": "https://protologue.com/t/universal-self-consistency/", "citation": "Protologue. (2026). Universal Self-Consistency. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0029). https://protologue.com/t/universal-self-consistency/"} -{"id": "PTL-0030", "slug": "least-to-most-prompting", "term": "Least-to-Most Prompting", "aliases": ["problem decomposition"], "category": "Reasoning Elicitation", "definition": "Least-to-most prompting first asks the model to break a complex problem into simpler subproblems, then solves them in order, feeding each answer into the next.", "description": "Zhou et al. showed it generalizes to problems harder than those in the examples, a weakness of standard chain-of-thought, with strong results on compositional generalization benchmarks.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought", "plan-and-solve-prompting", "self-ask", "prompt-chaining"], "introduced": 2022, "sources": [{"title": "Least-to-Most Prompting Enables Complex Reasoning in Large Language Models", "authors": "Zhou et al.", "year": 2022, "url": "https://arxiv.org/abs/2205.10625"}], "url": "https://protologue.com/t/least-to-most-prompting/", "citation": "Protologue. (2026). Least-to-Most Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0030). https://protologue.com/t/least-to-most-prompting/"} -{"id": "PTL-0031", "slug": "plan-and-solve-prompting", "term": "Plan-and-Solve Prompting", "aliases": ["PS prompting", "PS+"], "category": "Reasoning Elicitation", "definition": "Plan-and-solve prompting is a zero-shot method that instructs the model to first devise a plan dividing the task into subtasks and then carry out the plan step by step.", "description": "It targets missing-step and calculation errors seen in zero-shot chain-of-thought, with an extended version that asks the model to extract relevant variables and compute carefully.", "example": null, "broader": ["zero-shot-chain-of-thought"], "narrower": [], "related": ["least-to-most-prompting"], "introduced": 2023, "sources": [{"title": "Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Models", "authors": "Wang et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.04091"}], "url": "https://protologue.com/t/plan-and-solve-prompting/", "citation": "Protologue. (2026). Plan-and-Solve Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0031). https://protologue.com/t/plan-and-solve-prompting/"} -{"id": "PTL-0032", "slug": "step-back-prompting", "term": "Step-Back Prompting", "aliases": ["abstraction prompting"], "category": "Reasoning Elicitation", "definition": "Step-back prompting has the model first answer a more general, abstract question about the underlying principle, then use that answer to reason about the original specific question.", "description": "For a physics question, the step-back question might ask which law applies. Zheng et al. reported gains on science, multi-hop, and knowledge-intensive question answering.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought", "generated-knowledge-prompting"], "introduced": 2023, "sources": [{"title": "Take a Step Back: Evoking Reasoning via Abstraction in Large Language Models", "authors": "Zheng et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.06117"}], "url": "https://protologue.com/t/step-back-prompting/", "citation": "Protologue. (2026). Step-Back Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0032). https://protologue.com/t/step-back-prompting/"} -{"id": "PTL-0033", "slug": "tree-of-thoughts", "term": "Tree of Thoughts", "aliases": ["ToT"], "category": "Reasoning Elicitation", "definition": "Tree of Thoughts (ToT) lets a model explore multiple reasoning branches as a search tree, evaluating partial solutions and backtracking, rather than committing to a single left-to-right chain of thought.", "description": "Yao et al. combined model-generated candidate thoughts, model self-evaluation of states, and breadth- or depth-first search, producing large gains on tasks such as the Game of 24 that require planning or lookahead.", "example": null, "broader": ["chain-of-thought"], "narrower": ["graph-of-thoughts"], "related": ["self-consistency", "test-time-compute-scaling"], "introduced": 2023, "sources": [{"title": "Tree of Thoughts: Deliberate Problem Solving with Large Language Models", "authors": "Yao et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.10601"}], "url": "https://protologue.com/t/tree-of-thoughts/", "citation": "Protologue. (2026). Tree of Thoughts. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0033). https://protologue.com/t/tree-of-thoughts/"} -{"id": "PTL-0034", "slug": "graph-of-thoughts", "term": "Graph of Thoughts", "aliases": [], "category": "Reasoning Elicitation", "definition": "Graph of Thoughts (GoT) models a language model's reasoning as an arbitrary graph, in which thoughts can be combined, refined, and looped back on, generalizing chain and tree structures.", "description": "Aggregation of several partial solutions into one, such as merging sorted sublists, is the key operation GoT adds over tree-shaped search.", "example": null, "broader": ["tree-of-thoughts"], "narrower": [], "related": ["chain-of-thought"], "introduced": 2023, "sources": [{"title": "Graph of Thoughts: Solving Elaborate Problems with Large Language Models", "authors": "Besta et al.", "year": 2023, "url": "https://arxiv.org/abs/2308.09687"}], "url": "https://protologue.com/t/graph-of-thoughts/", "citation": "Protologue. (2026). Graph of Thoughts. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0034). https://protologue.com/t/graph-of-thoughts/"} -{"id": "PTL-0035", "slug": "skeleton-of-thought", "term": "Skeleton-of-Thought", "aliases": [], "category": "Reasoning Elicitation", "definition": "Skeleton-of-thought first asks the model for a brief outline of its answer, then expands each outline point in parallel, reducing end-to-end generation latency.", "description": "Because the points are expanded independently, it suits list-like answers better than tightly sequential reasoning.", "example": null, "broader": [], "narrower": [], "related": ["parallelization", "prompt-chaining"], "introduced": 2023, "sources": [{"title": "Skeleton-of-Thought: Prompting LLMs for Efficient Parallel Generation", "authors": "Ning et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.15337"}], "url": "https://protologue.com/t/skeleton-of-thought/", "citation": "Protologue. (2026). Skeleton-of-Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0035). https://protologue.com/t/skeleton-of-thought/"} -{"id": "PTL-0036", "slug": "analogical-prompting", "term": "Analogical Prompting", "aliases": [], "category": "Reasoning Elicitation", "definition": "Analogical prompting asks the model to recall or generate relevant example problems and their solutions on its own before solving the target problem, removing the need for hand-written exemplars.", "description": "Inspired by how people draw on analogous past experience, the self-generated examples are tailored to each problem rather than fixed for the whole task.", "example": null, "broader": [], "narrower": [], "related": ["few-shot-prompting", "generated-knowledge-prompting"], "introduced": 2023, "sources": [{"title": "Large Language Models as Analogical Reasoners", "authors": "Yasunaga et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.01714"}], "url": "https://protologue.com/t/analogical-prompting/", "citation": "Protologue. (2026). Analogical Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0036). https://protologue.com/t/analogical-prompting/"} -{"id": "PTL-0037", "slug": "self-discover", "term": "Self-Discover", "aliases": [], "category": "Reasoning Elicitation", "definition": "Self-Discover has the model compose a task-specific reasoning structure by selecting, adapting, and combining general reasoning modules, such as critical thinking or step-by-step analysis, before solving instances of the task.", "description": "The structure is discovered once per task and then reused, so it costs far fewer inference calls than sampling-heavy methods like self-consistency.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought", "meta-prompting"], "introduced": 2024, "sources": [{"title": "Self-Discover: Large Language Models Self-Compose Reasoning Structures", "authors": "Zhou et al.", "year": 2024, "url": "https://arxiv.org/abs/2402.03620"}], "url": "https://protologue.com/t/self-discover/", "citation": "Protologue. (2026). Self-Discover. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0037). https://protologue.com/t/self-discover/"} -{"id": "PTL-0038", "slug": "contrastive-chain-of-thought", "term": "Contrastive Chain-of-Thought", "aliases": [], "category": "Reasoning Elicitation", "definition": "Contrastive chain-of-thought adds both valid and deliberately invalid reasoning demonstrations to a prompt, so the model learns which mistakes to avoid as well as what correct reasoning looks like.", "description": "The invalid demonstrations can be generated automatically by perturbing correct reasoning chains.", "example": null, "broader": ["chain-of-thought"], "narrower": [], "related": [], "introduced": 2023, "sources": [{"title": "Contrastive Chain-of-Thought Prompting", "authors": "Chia et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.09277"}], "url": "https://protologue.com/t/contrastive-chain-of-thought/", "citation": "Protologue. (2026). Contrastive Chain-of-Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0038). https://protologue.com/t/contrastive-chain-of-thought/"} -{"id": "PTL-0039", "slug": "thread-of-thought", "term": "Thread of Thought", "aliases": [], "category": "Reasoning Elicitation", "definition": "Thread of Thought is a prompting strategy for long, chaotic contexts that asks the model to walk through the context in manageable parts, summarizing and analyzing each before answering.", "description": "A typical trigger asks the model to go through the context step by step, summarizing and analyzing as it goes.", "example": null, "broader": ["chain-of-thought"], "narrower": [], "related": ["lost-in-the-middle", "system-2-attention"], "introduced": 2023, "sources": [{"title": "Thread of Thought Unraveling Chaotic Contexts", "authors": "Zhou et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.08734"}], "url": "https://protologue.com/t/thread-of-thought/", "citation": "Protologue. (2026). Thread of Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0039). https://protologue.com/t/thread-of-thought/"} -{"id": "PTL-0040", "slug": "system-2-attention", "term": "System 2 Attention", "aliases": ["S2A"], "category": "Reasoning Elicitation", "definition": "System 2 Attention (S2A) first prompts the model to rewrite the input so that it keeps only the relevant, unbiased content, then answers using the rewritten context.", "description": "Weston and Sukhbaatar showed this reduces the influence of irrelevant or opinionated text in the prompt, improving factuality and reducing sycophancy toward opinions stated in the question.", "example": null, "broader": [], "narrower": [], "related": ["thread-of-thought", "sycophancy", "rephrase-and-respond"], "introduced": 2023, "sources": [{"title": "System 2 Attention (is something you might need too)", "authors": "Weston & Sukhbaatar", "year": 2023, "url": "https://arxiv.org/abs/2311.11829"}], "url": "https://protologue.com/t/system-2-attention/", "citation": "Protologue. (2026). System 2 Attention. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0040). https://protologue.com/t/system-2-attention/"} -{"id": "PTL-0041", "slug": "rephrase-and-respond", "term": "Rephrase and Respond", "aliases": ["RaR"], "category": "Reasoning Elicitation", "definition": "Rephrase and Respond (RaR) asks the model to rephrase and expand the user's question in its own words before answering, reducing misunderstandings caused by ambiguous phrasing.", "description": "The rephrasing can be done in the same response or by one model for another, as a two-step variant.", "example": null, "broader": [], "narrower": [], "related": ["system-2-attention"], "introduced": 2023, "sources": [{"title": "Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselves", "authors": "Deng et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.04205"}], "url": "https://protologue.com/t/rephrase-and-respond/", "citation": "Protologue. (2026). Rephrase and Respond. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0041). https://protologue.com/t/rephrase-and-respond/"} -{"id": "PTL-0042", "slug": "self-ask", "term": "Self-Ask", "aliases": [], "category": "Reasoning Elicitation", "definition": "Self-ask prompting has the model explicitly pose and answer follow-up sub-questions before answering a multi-hop question, a format that can plug a search engine in to answer each sub-question.", "description": "Press et al. used it to study the compositionality gap, the tendency of models to answer each sub-question correctly yet fail the composed question.", "example": null, "broader": [], "narrower": [], "related": ["least-to-most-prompting", "react"], "introduced": 2022, "sources": [{"title": "Measuring and Narrowing the Compositionality Gap in Language Models", "authors": "Press et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.03350"}], "url": "https://protologue.com/t/self-ask/", "citation": "Protologue. (2026). Self-Ask. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0042). https://protologue.com/t/self-ask/"} -{"id": "PTL-0043", "slug": "maieutic-prompting", "term": "Maieutic Prompting", "aliases": [], "category": "Reasoning Elicitation", "definition": "Maieutic prompting generates a tree of recursive explanations for and against an answer, then infers the most logically consistent answer from the relations among them.", "description": "Named after the Socratic method, it is designed to tolerate individual explanations that are wrong or inconsistent.", "example": null, "broader": [], "narrower": [], "related": ["self-consistency", "chain-of-verification"], "introduced": 2022, "sources": [{"title": "Maieutic Prompting: Logically Consistent Reasoning with Recursive Explanations", "authors": "Jung et al.", "year": 2022, "url": "https://arxiv.org/abs/2205.11822"}], "url": "https://protologue.com/t/maieutic-prompting/", "citation": "Protologue. (2026). Maieutic Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0043). https://protologue.com/t/maieutic-prompting/"} -{"id": "PTL-0044", "slug": "generated-knowledge-prompting", "term": "Generated Knowledge Prompting", "aliases": [], "category": "Reasoning Elicitation", "definition": "Generated knowledge prompting first asks the model to produce relevant facts about a question, then supplies those generated facts as context when answering it.", "description": "It acts like retrieval from the model's own parametric knowledge, and improved commonsense reasoning benchmarks in the original study.", "example": null, "broader": [], "narrower": [], "related": ["step-back-prompting", "retrieval-augmented-generation"], "introduced": 2021, "sources": [{"title": "Generated Knowledge Prompting for Commonsense Reasoning", "authors": "Liu et al.", "year": 2021, "url": "https://arxiv.org/abs/2110.08387"}], "url": "https://protologue.com/t/generated-knowledge-prompting/", "citation": "Protologue. (2026). Generated Knowledge Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0044). https://protologue.com/t/generated-knowledge-prompting/"} -{"id": "PTL-0045", "slug": "program-aided-language-models", "term": "Program-Aided Language Models", "aliases": ["PAL"], "category": "Reasoning Elicitation", "definition": "Program-aided language models (PAL) have the model write a program, typically Python, that expresses its reasoning, and then delegate the actual computation to an interpreter.", "description": "Offloading arithmetic and logic to code removes calculation errors from the model's output, and PAL outperformed much larger chain-of-thought models on math word problems.", "example": null, "broader": [], "narrower": [], "related": ["program-of-thoughts", "chain-of-thought", "function-calling"], "introduced": 2022, "sources": [{"title": "PAL: Program-aided Language Models", "authors": "Gao et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.10435"}], "url": "https://protologue.com/t/program-aided-language-models/", "citation": "Protologue. (2026). Program-Aided Language Models. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0045). https://protologue.com/t/program-aided-language-models/"} -{"id": "PTL-0046", "slug": "program-of-thoughts", "term": "Program of Thoughts", "aliases": ["PoT"], "category": "Reasoning Elicitation", "definition": "Program of Thoughts (PoT) prompting expresses numerical reasoning as executable code, separating computation, done by an interpreter, from reasoning, done by the model.", "description": "Developed concurrently with PAL, it showed strong gains on financial and math question answering.", "example": null, "broader": [], "narrower": [], "related": ["program-aided-language-models", "chain-of-thought"], "introduced": 2022, "sources": [{"title": "Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks", "authors": "Chen et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.12588"}], "url": "https://protologue.com/t/program-of-thoughts/", "citation": "Protologue. (2026). Program of Thoughts. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0046). https://protologue.com/t/program-of-thoughts/"} -{"id": "PTL-0047", "slug": "self-refine", "term": "Self-Refine", "aliases": ["iterative refinement", "self-critique"], "category": "Self-Critique & Verification", "definition": "Self-Refine is an iterative method in which the same model generates an output, critiques it with specific feedback, and revises it, repeating until a stopping condition is met.", "description": "It requires no extra training or separate models. Madaan et al. reported improvements across tasks such as code optimization, dialogue, and math reasoning, though later work found that unaided self-correction of reasoning can fail without external signals.", "example": null, "broader": [], "narrower": ["chain-of-density"], "related": ["reflexion", "evaluator-optimizer", "chain-of-verification"], "introduced": 2023, "sources": [{"title": "Self-Refine: Iterative Refinement with Self-Feedback", "authors": "Madaan et al.", "year": 2023, "url": "https://arxiv.org/abs/2303.17651"}, {"title": "Large Language Models Cannot Self-Correct Reasoning Yet", "authors": "Huang et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.01798"}], "url": "https://protologue.com/t/self-refine/", "citation": "Protologue. (2026). Self-Refine. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0047). https://protologue.com/t/self-refine/"} -{"id": "PTL-0048", "slug": "reflexion", "term": "Reflexion", "aliases": [], "category": "Self-Critique & Verification", "definition": "Reflexion is an agent technique in which, after a failed attempt, the model writes a verbal reflection on what went wrong and stores it in memory to guide its next attempt.", "description": "It is reinforcement through language rather than weight updates, and uses feedback signals such as unit-test results or environment rewards. Shinn et al. reported large gains on coding and sequential decision-making benchmarks.", "example": null, "broader": [], "narrower": [], "related": ["self-refine", "react", "agent-memory"], "introduced": 2023, "sources": [{"title": "Reflexion: Language Agents with Verbal Reinforcement Learning", "authors": "Shinn et al.", "year": 2023, "url": "https://arxiv.org/abs/2303.11366"}], "url": "https://protologue.com/t/reflexion/", "citation": "Protologue. (2026). Reflexion. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0048). https://protologue.com/t/reflexion/"} -{"id": "PTL-0049", "slug": "chain-of-verification", "term": "Chain-of-Verification", "aliases": ["CoVe"], "category": "Self-Critique & Verification", "definition": "Chain-of-Verification (CoVe) reduces hallucination by having the model draft an answer, plan verification questions about its claims, answer those questions independently, and then produce a corrected final answer.", "description": "Answering the verification questions without seeing the original draft keeps the model from simply repeating its own errors.", "example": null, "broader": [], "narrower": [], "related": ["hallucination", "self-refine", "maieutic-prompting"], "introduced": 2023, "sources": [{"title": "Chain-of-Verification Reduces Hallucination in Large Language Models", "authors": "Dhuliawala et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.11495"}], "url": "https://protologue.com/t/chain-of-verification/", "citation": "Protologue. (2026). Chain-of-Verification. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0049). https://protologue.com/t/chain-of-verification/"} -{"id": "PTL-0050", "slug": "llm-as-a-judge", "term": "LLM-as-a-Judge", "aliases": ["model-graded evaluation", "LLM evaluator", "autorater"], "category": "Self-Critique & Verification", "definition": "LLM-as-a-judge is the use of a strong language model to grade, score, or compare the outputs of models against criteria, as a scalable substitute for human evaluation.", "description": "Zheng et al. found strong model judges agreed with human preferences at rates comparable to agreement between humans, while documenting biases toward the first-listed answer, longer answers, and the judge's own outputs.", "example": null, "broader": [], "narrower": [], "related": ["universal-self-consistency", "evaluator-optimizer", "process-reward-model"], "introduced": 2023, "sources": [{"title": "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena", "authors": "Zheng et al.", "year": 2023, "url": "https://arxiv.org/abs/2306.05685"}], "url": "https://protologue.com/t/llm-as-a-judge/", "citation": "Protologue. (2026). LLM-as-a-Judge. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0050). https://protologue.com/t/llm-as-a-judge/"} -{"id": "PTL-0051", "slug": "multi-agent-debate", "term": "Multi-Agent Debate", "aliases": ["LLM debate", "society of minds"], "category": "Self-Critique & Verification", "definition": "Multi-agent debate has several model instances propose answers, read each other's reasoning, and revise their answers over multiple rounds until they converge.", "description": "Du et al. found that debate improved mathematical reasoning and factual accuracy over single-model answers.", "example": null, "broader": [], "narrower": [], "related": ["mixture-of-agents", "self-consistency"], "introduced": 2023, "sources": [{"title": "Improving Factuality and Reasoning in Language Models through Multiagent Debate", "authors": "Du et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.14325"}], "url": "https://protologue.com/t/multi-agent-debate/", "citation": "Protologue. (2026). Multi-Agent Debate. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0051). https://protologue.com/t/multi-agent-debate/"} -{"id": "PTL-0052", "slug": "mixture-of-agents", "term": "Mixture-of-Agents", "aliases": ["MoA"], "category": "Self-Critique & Verification", "definition": "Mixture-of-Agents (MoA) arranges language models in layers, where each model receives all outputs from the previous layer as auxiliary input and an aggregator synthesizes a final response.", "description": "Wang et al. reported that a mixture of open models outperformed a single strong proprietary model on an instruction-following benchmark.", "example": null, "broader": [], "narrower": [], "related": ["multi-agent-debate", "parallelization"], "introduced": 2024, "sources": [{"title": "Mixture-of-Agents Enhances Large Language Model Capabilities", "authors": "Wang et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.04692"}], "url": "https://protologue.com/t/mixture-of-agents/", "citation": "Protologue. (2026). Mixture-of-Agents. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0052). https://protologue.com/t/mixture-of-agents/"} -{"id": "PTL-0053", "slug": "process-reward-model", "term": "Process Reward Model", "aliases": ["PRM", "step-level verifier", "process supervision"], "category": "Self-Critique & Verification", "definition": "A process reward model (PRM) scores each intermediate step of a model's reasoning, rather than only the final answer, and is used to select or train better reasoning chains.", "description": "Lightman et al. showed process supervision outperformed outcome supervision for selecting correct solutions to competition math problems, and released a large dataset of step-level human labels.", "example": null, "broader": [], "narrower": [], "related": ["best-of-n-sampling", "test-time-compute-scaling", "llm-as-a-judge"], "introduced": 2023, "sources": [{"title": "Let's Verify Step by Step", "authors": "Lightman et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.20050"}], "url": "https://protologue.com/t/process-reward-model/", "citation": "Protologue. (2026). Process Reward Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0053). https://protologue.com/t/process-reward-model/"} -{"id": "PTL-0054", "slug": "best-of-n-sampling", "term": "Best-of-N Sampling", "aliases": ["rejection sampling", "best-of-n", "BoN"], "category": "Self-Critique & Verification", "definition": "Best-of-N sampling generates N candidate outputs and returns the one ranked highest by a verifier, reward model, or scoring function.", "description": "It is the simplest form of trading inference compute for quality. Its effectiveness depends on the verifier, and optimizing too hard against an imperfect reward model can select outputs that game it.", "example": null, "broader": [], "narrower": [], "related": ["self-consistency", "process-reward-model", "test-time-compute-scaling"], "introduced": null, "sources": [{"title": "Let's Verify Step by Step", "authors": "Lightman et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.20050"}, {"title": "Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters", "authors": "Snell et al.", "year": 2024, "url": "https://arxiv.org/abs/2408.03314"}], "url": "https://protologue.com/t/best-of-n-sampling/", "citation": "Protologue. (2026). Best-of-N Sampling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0054). https://protologue.com/t/best-of-n-sampling/"} -{"id": "PTL-0055", "slug": "retrieval-augmented-generation", "term": "Retrieval-Augmented Generation", "aliases": ["RAG", "retrieval augmentation", "grounded generation"], "category": "Retrieval & Tool Use", "definition": "Retrieval-augmented generation (RAG) supplies a language model with passages retrieved from an external corpus at query time, so its output is grounded in that information rather than only in its trained parameters.", "description": "Lewis et al. introduced RAG as a jointly trained retriever and generator. In common usage the term now covers any pipeline that retrieves documents, typically by embedding search, and inserts them into the prompt. RAG reduces hallucination and allows knowledge to be updated without retraining.", "example": null, "broader": [], "narrower": ["hypothetical-document-embeddings", "self-rag", "graphrag", "agentic-rag", "corrective-rag", "active-retrieval"], "related": ["hallucination", "context-engineering"], "introduced": 2020, "sources": [{"title": "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks", "authors": "Lewis et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.11401"}], "url": "https://protologue.com/t/retrieval-augmented-generation/", "citation": "Protologue. (2026). Retrieval-Augmented Generation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0055). https://protologue.com/t/retrieval-augmented-generation/"} -{"id": "PTL-0056", "slug": "hypothetical-document-embeddings", "term": "Hypothetical Document Embeddings", "aliases": ["HyDE"], "category": "Retrieval & Tool Use", "definition": "Hypothetical Document Embeddings (HyDE) improves retrieval by having a model write a hypothetical answer to the query, embedding that answer, and searching for real documents similar to it.", "description": "The generated document may contain errors, but its embedding tends to lie closer to relevant real documents than the short query does.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": [], "introduced": 2022, "sources": [{"title": "Precise Zero-Shot Dense Retrieval without Relevance Labels", "authors": "Gao et al.", "year": 2022, "url": "https://arxiv.org/abs/2212.10496"}], "url": "https://protologue.com/t/hypothetical-document-embeddings/", "citation": "Protologue. (2026). Hypothetical Document Embeddings. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0056). https://protologue.com/t/hypothetical-document-embeddings/"} -{"id": "PTL-0057", "slug": "self-rag", "term": "Self-RAG", "aliases": [], "category": "Retrieval & Tool Use", "definition": "Self-RAG trains a model to decide when to retrieve, and to emit special reflection tokens that critique whether retrieved passages are relevant and whether its own output is supported by them.", "description": "Retrieving on demand rather than for every query avoids adding irrelevant context and lets the model's critique steer generation.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": ["chain-of-verification"], "introduced": 2023, "sources": [{"title": "Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection", "authors": "Asai et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.11511"}], "url": "https://protologue.com/t/self-rag/", "citation": "Protologue. (2026). Self-RAG. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0057). https://protologue.com/t/self-rag/"} -{"id": "PTL-0058", "slug": "react", "term": "ReAct", "aliases": ["Reason + Act", "thought-action-observation loop"], "category": "Retrieval & Tool Use", "definition": "ReAct is a prompting pattern that interleaves reasoning traces (\"Thought\") with actions such as tool calls (\"Action\") and their results (\"Observation\"), letting a model plan, act, and update its plan in a loop.", "description": "Yao et al. showed that combining reasoning and acting outperformed either alone on question answering and interactive decision-making tasks. ReAct is the template for most tool-using agent loops.", "example": "Thought: I need the population of the capital of France.\nAction: search(\"capital of France\")\nObservation: Paris\nThought: Now find the population of Paris.\n", "broader": [], "narrower": [], "related": ["function-calling", "chain-of-thought", "self-ask", "ai-agent", "reflexion"], "introduced": 2022, "sources": [{"title": "ReAct: Synergizing Reasoning and Acting in Language Models", "authors": "Yao et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.03629"}], "url": "https://protologue.com/t/react/", "citation": "Protologue. (2026). ReAct. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0058). https://protologue.com/t/react/"} -{"id": "PTL-0059", "slug": "toolformer", "term": "Toolformer", "aliases": [], "category": "Retrieval & Tool Use", "definition": "Toolformer is a method in which a language model teaches itself to use external tools, such as a calculator or search API, by generating candidate API calls in text and keeping those that reduce its prediction loss.", "description": "It showed that tool-use behavior could be learned in a self-supervised way from only a handful of demonstrations per tool.", "example": null, "broader": [], "narrower": [], "related": ["function-calling", "react"], "introduced": 2023, "sources": [{"title": "Toolformer: Language Models Can Teach Themselves to Use Tools", "authors": "Schick et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.04761"}], "url": "https://protologue.com/t/toolformer/", "citation": "Protologue. (2026). Toolformer. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0059). https://protologue.com/t/toolformer/"} -{"id": "PTL-0060", "slug": "function-calling", "term": "Function Calling", "aliases": ["tool use", "tool calling"], "category": "Retrieval & Tool Use", "definition": "Function calling, or tool use, is a model capability in which the model outputs a structured request to invoke a developer-defined function with arguments, which the application executes and returns as a result to the model.", "description": "Tools are usually described to the model with a name, a natural-language description, and a JSON Schema for parameters. Clear tool descriptions function as prompts in their own right and strongly affect when and how tools are used.", "example": null, "broader": [], "narrower": ["web-search-tool", "code-execution-tool", "tool-search", "programmatic-tool-calling"], "related": ["react", "model-context-protocol", "structured-outputs", "toolformer"], "introduced": null, "sources": [{"title": "Tool use with Claude", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview"}, {"title": "Gorilla: Large Language Model Connected with Massive APIs", "authors": "Patil et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.15334"}], "url": "https://protologue.com/t/function-calling/", "citation": "Protologue. (2026). Function Calling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0060). https://protologue.com/t/function-calling/"} -{"id": "PTL-0061", "slug": "model-context-protocol", "term": "Model Context Protocol", "aliases": ["MCP"], "category": "Retrieval & Tool Use", "definition": "The Model Context Protocol (MCP) is an open standard, introduced by Anthropic in 2024, that defines how applications expose tools, data resources, and prompt templates to language-model clients through a common client-server interface.", "description": "MCP replaces one-off integrations between each model application and each data source with a single protocol, so any compliant client can use any compliant server.", "example": null, "broader": [], "narrower": [], "related": ["function-calling", "context-engineering"], "introduced": 2024, "sources": [{"title": "Introducing the Model Context Protocol", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/news/model-context-protocol"}, {"title": "Specification (version 2026-07-28)", "authors": "Model Context Protocol", "year": 2026, "url": "https://modelcontextprotocol.io/specification/2026-07-28"}], "url": "https://protologue.com/t/model-context-protocol/", "citation": "Protologue. (2026). Model Context Protocol. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0061). https://protologue.com/t/model-context-protocol/"} -{"id": "PTL-0062", "slug": "structured-outputs", "term": "Structured Outputs", "aliases": ["JSON mode", "constrained decoding", "schema-constrained generation"], "category": "Retrieval & Tool Use", "definition": "Structured outputs constrain a language model to produce responses that conform to a specified format, typically a JSON Schema, either through instructions or through constrained decoding that guarantees validity.", "description": "Instruction-only approaches can still produce malformed output, while constrained decoding masks tokens that would violate the schema at each step. Structured outputs are essential for passing model results reliably to downstream code.", "example": null, "broader": [], "narrower": [], "related": ["function-calling", "prefill", "delimiters"], "introduced": null, "sources": [{"title": "Structured model outputs", "authors": "OpenAI", "year": 2024, "url": "https://developers.openai.com/api/docs/guides/structured-outputs"}, {"title": "Efficient Guided Generation for Large Language Models", "authors": "Willard & Louf", "year": 2023, "url": "https://arxiv.org/abs/2307.09702"}], "url": "https://protologue.com/t/structured-outputs/", "citation": "Protologue. (2026). Structured Outputs. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0062). https://protologue.com/t/structured-outputs/"} -{"id": "PTL-0063", "slug": "ai-agent", "term": "AI Agent", "aliases": ["LLM agent", "agentic system", "autonomous agent"], "category": "Agents & Orchestration", "definition": "An AI agent is a system in which a language model dynamically directs its own process and tool use in a loop, deciding what actions to take based on environment feedback until a task is complete.", "description": "Anthropic's widely cited taxonomy distinguishes agents from workflows, in which model calls and tools follow predefined code paths. Agents trade predictability and cost for flexibility on open-ended tasks.", "example": null, "broader": [], "narrower": ["computer-use-agent", "coding-agent"], "related": ["react", "agentic-workflow", "orchestrator-workers", "agent-memory", "context-engineering"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/ai-agent/", "citation": "Protologue. (2026). AI Agent. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0063). https://protologue.com/t/ai-agent/"} -{"id": "PTL-0064", "slug": "agentic-workflow", "term": "Agentic Workflow", "aliases": ["LLM workflow"], "category": "Agents & Orchestration", "definition": "An agentic workflow is a system in which language models and tools are orchestrated through predefined code paths, as opposed to an agent that chooses its own steps.", "description": "Common workflow patterns include prompt chaining, routing, parallelization, orchestrator-workers, and evaluator-optimizer loops. Workflows are generally preferred when a task can be cleanly decomposed in advance.", "example": null, "broader": [], "narrower": ["prompt-chaining", "routing", "parallelization", "orchestrator-workers", "evaluator-optimizer", "plan-and-execute"], "related": ["ai-agent"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/agentic-workflow/", "citation": "Protologue. (2026). Agentic Workflow. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0064). https://protologue.com/t/agentic-workflow/"} -{"id": "PTL-0065", "slug": "prompt-chaining", "term": "Prompt Chaining", "aliases": ["LLM chains", "multi-step prompting"], "category": "Agents & Orchestration", "definition": "Prompt chaining decomposes a task into a fixed sequence of model calls, where each call processes the output of the previous one, often with programmatic checks between steps.", "description": "Chaining trades latency for accuracy by making each call simpler. Wu et al. found chaining also improved transparency and controllability for users building with models.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["least-to-most-prompting", "routing"], "introduced": 2021, "sources": [{"title": "AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model Prompts", "authors": "Wu et al.", "year": 2021, "url": "https://arxiv.org/abs/2110.01691"}, {"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/prompt-chaining/", "citation": "Protologue. (2026). Prompt Chaining. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0065). https://protologue.com/t/prompt-chaining/"} -{"id": "PTL-0066", "slug": "routing", "term": "Routing", "aliases": ["model routing", "query routing"], "category": "Agents & Orchestration", "definition": "Routing is a workflow pattern that classifies an incoming request and directs it to a specialized prompt, tool, or model suited to that category.", "description": "Routing allows separate prompts to be optimized for distinct cases, and lets easy queries go to smaller, cheaper models while hard ones go to more capable models.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["prompt-chaining"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/routing/", "citation": "Protologue. (2026). Routing. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0066). https://protologue.com/t/routing/"} -{"id": "PTL-0067", "slug": "parallelization", "term": "Parallelization", "aliases": ["sectioning", "voting"], "category": "Agents & Orchestration", "definition": "Parallelization is a workflow pattern that runs several model calls simultaneously and aggregates their outputs, either by splitting a task into independent sections or by running the same task several times and voting.", "description": "Sectioning reduces latency and keeps each call focused, while voting improves confidence, for example by running several independent safety checks.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["self-consistency", "skeleton-of-thought", "mixture-of-agents"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/parallelization/", "citation": "Protologue. (2026). Parallelization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0067). https://protologue.com/t/parallelization/"} -{"id": "PTL-0068", "slug": "orchestrator-workers", "term": "Orchestrator-Workers", "aliases": ["subagents", "multi-agent orchestration", "supervisor pattern"], "category": "Agents & Orchestration", "definition": "Orchestrator-workers is a pattern in which a central model dynamically breaks a task into subtasks, delegates them to worker model calls or subagents, and synthesizes their results.", "description": "Unlike parallelization, the subtasks are not fixed in advance but decided by the orchestrator for each input, which suits tasks such as multi-file code changes or broad research.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["ai-agent", "parallelization", "meta-prompting"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/orchestrator-workers/", "citation": "Protologue. (2026). Orchestrator-Workers. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0068). https://protologue.com/t/orchestrator-workers/"} -{"id": "PTL-0069", "slug": "evaluator-optimizer", "term": "Evaluator-Optimizer", "aliases": [], "category": "Agents & Orchestration", "definition": "Evaluator-optimizer is a workflow loop in which one model call generates a response and another evaluates it against criteria and provides feedback, repeating until the output passes.", "description": "It works best when evaluation criteria are clear and when feedback demonstrably improves the output, as in literary translation or iterative search.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["self-refine", "llm-as-a-judge", "reflexion"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/evaluator-optimizer/", "citation": "Protologue. (2026). Evaluator-Optimizer. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0069). https://protologue.com/t/evaluator-optimizer/"} -{"id": "PTL-0070", "slug": "meta-prompting", "term": "Meta-Prompting", "aliases": [], "category": "Agents & Orchestration", "definition": "Meta-prompting uses a single model as a conductor that breaks a task down and writes prompts for fresh instances of itself acting as specialized experts, then integrates their outputs.", "description": "The term is also used more loosely for asking a model to write or improve a prompt.", "example": null, "broader": [], "narrower": [], "related": ["orchestrator-workers", "self-discover", "automatic-prompt-engineer"], "introduced": 2024, "sources": [{"title": "Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding", "authors": "Suzgun & Kalai", "year": 2024, "url": "https://arxiv.org/abs/2401.12954"}], "url": "https://protologue.com/t/meta-prompting/", "citation": "Protologue. (2026). Meta-Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0070). https://protologue.com/t/meta-prompting/"} -{"id": "PTL-0071", "slug": "agent-memory", "term": "Agent Memory", "aliases": ["long-term memory", "memory stream"], "category": "Agents & Orchestration", "definition": "Agent memory is the set of mechanisms that let a language-model agent store information beyond a single context window, such as conversation summaries, retrievable records of past events, and reflections, and bring the relevant parts back into context later.", "description": "Park et al.'s generative agents scored memories by recency, importance, and relevance and periodically synthesized higher-level reflections. MemGPT treated the context window like main memory and paged information in and out of external storage.", "example": null, "broader": [], "narrower": [], "related": ["ai-agent", "context-engineering", "reflexion", "retrieval-augmented-generation"], "introduced": null, "sources": [{"title": "Generative Agents: Interactive Simulacra of Human Behavior", "authors": "Park et al.", "year": 2023, "url": "https://arxiv.org/abs/2304.03442"}, {"title": "MemGPT: Towards LLMs as Operating Systems", "authors": "Packer et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.08560"}], "url": "https://protologue.com/t/agent-memory/", "citation": "Protologue. (2026). Agent Memory. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0071). https://protologue.com/t/agent-memory/"} -{"id": "PTL-0072", "slug": "context-engineering", "term": "Context Engineering", "aliases": ["context management"], "category": "Agents & Orchestration", "definition": "Context engineering is the practice of curating the full set of tokens a model sees at each step, including instructions, tools, retrieved data, memory, and conversation history, to maximize the chance of the desired behavior within a limited attention budget.", "description": "The term gained currency in 2025 as agents ran for many steps and the main challenge shifted from wording a single prompt to deciding what information enters and leaves the context window over time, through techniques such as compaction, structured note-taking, and subagents.", "example": null, "broader": ["prompt-engineering"], "narrower": [], "related": ["context-window", "agent-memory", "retrieval-augmented-generation", "ai-agent", "lost-in-the-middle"], "introduced": 2025, "sources": [{"title": "Effective context engineering for AI agents", "authors": "Anthropic", "year": 2025, "url": "https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents"}], "url": "https://protologue.com/t/context-engineering/", "citation": "Protologue. (2026). Context Engineering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0072). https://protologue.com/t/context-engineering/"} -{"id": "PTL-0073", "slug": "automatic-prompt-engineer", "term": "Automatic Prompt Engineer", "aliases": ["APE"], "category": "Prompt Optimization", "definition": "Automatic Prompt Engineer (APE) uses a language model to generate candidate instructions for a task from input-output examples, scores each candidate on held-out data, and selects the best one.", "description": "APE discovered a zero-shot chain-of-thought trigger that outperformed \"Let's think step by step\" on some benchmarks, and framed prompt writing as a search problem that models can solve themselves.", "example": null, "broader": [], "narrower": [], "related": ["prompt-engineering", "opro", "dspy", "meta-prompting"], "introduced": 2022, "sources": [{"title": "Large Language Models Are Human-Level Prompt Engineers", "authors": "Zhou et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.01910"}], "url": "https://protologue.com/t/automatic-prompt-engineer/", "citation": "Protologue. (2026). Automatic Prompt Engineer. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0073). https://protologue.com/t/automatic-prompt-engineer/"} -{"id": "PTL-0074", "slug": "opro", "term": "Optimization by Prompting", "aliases": ["OPRO", "LLMs as optimizers"], "category": "Prompt Optimization", "definition": "Optimization by PROmpting (OPRO) uses a language model as an optimizer, giving it a meta-prompt containing previously tried prompts and their scores and asking it to propose a better prompt, repeating over many rounds.", "description": "OPRO found instructions such as \"Take a deep breath and work on this problem step-by-step\" that improved math benchmark accuracy for the model being optimized.", "example": null, "broader": [], "narrower": [], "related": ["automatic-prompt-engineer", "dspy"], "introduced": 2023, "sources": [{"title": "Large Language Models as Optimizers", "authors": "Yang et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.03409"}], "url": "https://protologue.com/t/opro/", "citation": "Protologue. (2026). Optimization by Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0074). https://protologue.com/t/opro/"} -{"id": "PTL-0075", "slug": "dspy", "term": "DSPy", "aliases": ["Declarative Self-improving Python"], "category": "Prompt Optimization", "definition": "DSPy is a framework that treats language-model pipelines as programs of declarative modules, and compiles them by automatically optimizing the prompts and few-shot demonstrations for each module against a metric.", "description": "Rather than hand-tuning prompt strings, developers specify input-output signatures and let optimizers bootstrap demonstrations or search instructions, making pipelines portable across models.", "example": null, "broader": [], "narrower": [], "related": ["automatic-prompt-engineer", "opro", "prompt-template"], "introduced": 2023, "sources": [{"title": "DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines", "authors": "Khattab et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.03714"}], "url": "https://protologue.com/t/dspy/", "citation": "Protologue. (2026). DSPy. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0075). https://protologue.com/t/dspy/"} -{"id": "PTL-0076", "slug": "prompt-tuning", "term": "Prompt Tuning", "aliases": ["soft prompts", "soft prompt tuning"], "category": "Prompt Optimization", "definition": "Prompt tuning learns a small set of continuous \"soft prompt\" embeddings that are prepended to the input, by gradient descent, while keeping the language model's weights frozen.", "description": "Lester et al. showed that as models grow, prompt tuning approaches the quality of full fine-tuning while storing only a tiny number of task-specific parameters. Soft prompts are vectors rather than readable text.", "example": null, "broader": [], "narrower": [], "related": ["prefix-tuning", "low-rank-adaptation"], "introduced": 2021, "sources": [{"title": "The Power of Scale for Parameter-Efficient Prompt Tuning", "authors": "Lester et al.", "year": 2021, "url": "https://arxiv.org/abs/2104.08691"}], "url": "https://protologue.com/t/prompt-tuning/", "citation": "Protologue. (2026). Prompt Tuning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0076). https://protologue.com/t/prompt-tuning/"} -{"id": "PTL-0077", "slug": "prefix-tuning", "term": "Prefix Tuning", "aliases": [], "category": "Prompt Optimization", "definition": "Prefix tuning learns continuous task-specific vectors that are prepended to the activations at every layer of a frozen language model, steering generation without changing the model's weights.", "description": "It was an early parameter-efficient alternative to fine-tuning for generation tasks such as table-to-text and summarization.", "example": null, "broader": [], "narrower": [], "related": ["prompt-tuning", "low-rank-adaptation"], "introduced": 2021, "sources": [{"title": "Prefix-Tuning: Optimizing Continuous Prompts for Generation", "authors": "Li & Liang", "year": 2021, "url": "https://arxiv.org/abs/2101.00190"}], "url": "https://protologue.com/t/prefix-tuning/", "citation": "Protologue. (2026). Prefix Tuning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0077). https://protologue.com/t/prefix-tuning/"} -{"id": "PTL-0078", "slug": "low-rank-adaptation", "term": "Low-Rank Adaptation", "aliases": ["LoRA"], "category": "Prompt Optimization", "definition": "Low-rank adaptation (LoRA) fine-tunes a language model by training small low-rank matrices added to its weight layers while freezing the original weights, drastically reducing the number of trainable parameters.", "description": "LoRA is a common alternative when prompting alone cannot reach the required behavior, and adapters can be swapped per task on one base model.", "example": null, "broader": [], "narrower": [], "related": ["prompt-tuning", "prefix-tuning", "instruction-tuning"], "introduced": 2021, "sources": [{"title": "LoRA: Low-Rank Adaptation of Large Language Models", "authors": "Hu et al.", "year": 2021, "url": "https://arxiv.org/abs/2106.09685"}], "url": "https://protologue.com/t/low-rank-adaptation/", "citation": "Protologue. (2026). Low-Rank Adaptation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0078). https://protologue.com/t/low-rank-adaptation/"} -{"id": "PTL-0079", "slug": "directional-stimulus-prompting", "term": "Directional Stimulus Prompting", "aliases": [], "category": "Prompt Optimization", "definition": "Directional stimulus prompting trains a small policy model to generate instance-specific hints, such as keywords, that are added to the prompt to steer a large frozen model toward desired outputs.", "description": "The policy model can be trained with supervised learning and reinforcement learning, without access to the large model's weights.", "example": null, "broader": [], "narrower": [], "related": ["prompt-tuning", "opro"], "introduced": 2023, "sources": [{"title": "Guiding Large Language Models via Directional Stimulus Prompting", "authors": "Li et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.11520"}], "url": "https://protologue.com/t/directional-stimulus-prompting/", "citation": "Protologue. (2026). Directional Stimulus Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0079). https://protologue.com/t/directional-stimulus-prompting/"} -{"id": "PTL-0080", "slug": "prompt-compression", "term": "Prompt Compression", "aliases": ["LLMLingua", "context compression"], "category": "Prompt Optimization", "definition": "Prompt compression shortens a prompt by removing tokens that contribute little information, typically scored by a smaller language model, to cut cost and latency while preserving task performance.", "description": "LLMLingua used a small model's perplexity to drop low-information tokens and reported high compression ratios with limited performance loss.", "example": null, "broader": [], "narrower": [], "related": ["context-engineering", "prompt-caching"], "introduced": 2023, "sources": [{"title": "LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models", "authors": "Jiang et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.05736"}], "url": "https://protologue.com/t/prompt-compression/", "citation": "Protologue. (2026). Prompt Compression. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0080). https://protologue.com/t/prompt-compression/"} -{"id": "PTL-0081", "slug": "prompt-caching", "term": "Prompt Caching", "aliases": ["context caching", "prefix caching"], "category": "Prompt Optimization", "definition": "Prompt caching stores the model's processed state for a reused prompt prefix, such as a long system prompt or document, so later requests sharing that prefix are cheaper and faster.", "description": "Because caches match on an exact prefix, prompts are structured with stable content first and variable content last. In Anthropic's API, developers mark cache breakpoints explicitly or let the API place one automatically and move it forward as a conversation grows. Cache entries expire after five minutes without use by default, with a one-hour option, and cached input is billed at a fraction of the normal input price.", "example": null, "broader": [], "narrower": [], "related": ["system-prompt", "prompt-compression", "context-engineering"], "introduced": 2024, "sources": [{"title": "Prompt caching", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-caching"}], "url": "https://protologue.com/t/prompt-caching/", "citation": "Protologue. (2026). Prompt Caching. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0081). https://protologue.com/t/prompt-caching/"} -{"id": "PTL-0082", "slug": "emotion-prompting", "term": "Emotion Prompting", "aliases": ["EmotionPrompt", "stimulus prompting"], "category": "Prompt Optimization", "definition": "Emotion prompting appends emotional or motivational phrases, such as \"This is very important to my career,\" to a prompt in an attempt to improve model performance.", "description": "Li et al. reported gains on several benchmarks with such \"EmotionPrompt\" stimuli. Effects of these cues vary across models and tasks and are best treated as an empirical question for each setup.", "example": null, "broader": [], "narrower": [], "related": ["prompt-sensitivity", "role-prompting"], "introduced": 2023, "sources": [{"title": "Large Language Models Understand and Can be Enhanced by Emotional Stimuli", "authors": "Li et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.11760"}], "url": "https://protologue.com/t/emotion-prompting/", "citation": "Protologue. (2026). Emotion Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0082). https://protologue.com/t/emotion-prompting/"} -{"id": "PTL-0083", "slug": "reasoning-model", "term": "Reasoning Model", "aliases": ["large reasoning model", "LRM", "thinking model"], "category": "Reasoning Models & Test-Time Compute", "definition": "A reasoning model is a language model trained, typically with reinforcement learning, to produce an extended internal chain of thought before answering, so that it improves with more thinking time on math, coding, and planning tasks.", "description": "OpenAI's o1, announced in 2024, popularized the category, and DeepSeek-R1 showed that reinforcement learning with verifiable rewards could produce long reasoning behaviors in an openly released model. Prompting such models differs from prompting standard models, because step-by-step instructions and few-shot reasoning examples are often unnecessary.", "example": null, "broader": [], "narrower": ["extended-thinking"], "related": ["chain-of-thought", "test-time-compute-scaling", "self-taught-reasoner"], "introduced": 2024, "sources": [{"title": "Learning to reason with LLMs", "authors": "OpenAI", "year": 2024, "url": "https://openai.com/index/learning-to-reason-with-llms/"}, {"title": "DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning", "authors": "DeepSeek-AI", "year": 2025, "url": "https://arxiv.org/abs/2501.12948"}], "url": "https://protologue.com/t/reasoning-model/", "citation": "Protologue. (2026). Reasoning Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0083). https://protologue.com/t/reasoning-model/"} -{"id": "PTL-0084", "slug": "test-time-compute-scaling", "term": "Test-Time Compute Scaling", "aliases": ["inference-time scaling", "test-time scaling"], "category": "Reasoning Models & Test-Time Compute", "definition": "Test-time compute scaling improves a model's answers by spending more computation at inference, through longer reasoning, more samples, search, or verification, rather than by training a larger model.", "description": "Snell et al. found that allocating test-time compute adaptively per prompt could be more effective than scaling model parameters for some problems. Self-consistency, best-of-N, tree search, and reasoning models are all forms of test-time scaling.", "example": null, "broader": [], "narrower": ["budget-forcing", "recursive-language-model", "sleep-time-compute"], "related": ["reasoning-model", "self-consistency", "best-of-n-sampling", "tree-of-thoughts", "process-reward-model"], "introduced": 2024, "sources": [{"title": "Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters", "authors": "Snell et al.", "year": 2024, "url": "https://arxiv.org/abs/2408.03314"}], "url": "https://protologue.com/t/test-time-compute-scaling/", "citation": "Protologue. (2026). Test-Time Compute Scaling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0084). https://protologue.com/t/test-time-compute-scaling/"} -{"id": "PTL-0085", "slug": "extended-thinking", "term": "Extended Thinking", "aliases": ["thinking mode", "thinking budget", "reasoning effort"], "category": "Reasoning Models & Test-Time Compute", "definition": "Extended thinking is a model mode in which the model generates a separate block of reasoning before its final response, with a developer-controlled setting that trades latency and cost for answer quality.", "description": "Early implementations exposed a fixed thinking token budget. Newer Claude models replace it with adaptive thinking, in which the model decides whether and how much to reason on each request and the developer sets an effort level instead of a token budget. Anthropic's documentation states that the fixed budget is deprecated on Claude 4.6 models and rejected by Claude 4.7 and later models. Vendor guidance for these modes favors high-level instructions about how to think over prescriptive step-by-step scripts.", "example": null, "broader": ["reasoning-model"], "narrower": ["interleaved-thinking"], "related": ["scratchpad", "chain-of-thought"], "introduced": null, "sources": [{"title": "Extended thinking", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/build-with-claude/extended-thinking"}], "url": "https://protologue.com/t/extended-thinking/", "citation": "Protologue. (2026). Extended Thinking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0085). https://protologue.com/t/extended-thinking/"} -{"id": "PTL-0086", "slug": "self-taught-reasoner", "term": "Self-Taught Reasoner", "aliases": ["STaR"], "category": "Reasoning Models & Test-Time Compute", "definition": "The Self-Taught Reasoner (STaR) bootstraps reasoning ability by having a model generate rationales, keeping those that lead to correct answers, and fine-tuning on them in repeated rounds.", "description": "For problems it fails, STaR provides the correct answer as a hint and asks the model to produce a rationale for it, a step called rationalization.", "example": null, "broader": [], "narrower": [], "related": ["reasoning-model", "chain-of-thought"], "introduced": 2022, "sources": [{"title": "STaR: Bootstrapping Reasoning With Reasoning", "authors": "Zelikman et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.14465"}], "url": "https://protologue.com/t/self-taught-reasoner/", "citation": "Protologue. (2026). Self-Taught Reasoner. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0086). https://protologue.com/t/self-taught-reasoner/"} -{"id": "PTL-0087", "slug": "prompt-injection", "term": "Prompt Injection", "aliases": ["goal hijacking", "instruction injection"], "category": "Security & Adversarial Prompting", "definition": "Prompt injection is an attack in which text supplied to a language model, by a user or through data the model processes, contains instructions that override or subvert the instructions of the application's developer.", "description": "The name was coined in 2022 by analogy with SQL injection, because models cannot reliably separate trusted instructions from untrusted data that share the same context. It is the most prominent security risk for applications built on language models, especially agents with tool access.", "example": null, "broader": [], "narrower": ["indirect-prompt-injection", "prompt-leaking"], "related": ["jailbreak", "instruction-hierarchy", "spotlighting"], "introduced": 2022, "sources": [{"title": "Prompt injection attacks against GPT-3", "authors": "Willison", "year": 2022, "url": "https://simonwillison.net/2022/Sep/12/prompt-injection/"}, {"title": "Ignore Previous Prompt: Attack Techniques For Language Models", "authors": "Perez & Ribeiro", "year": 2022, "url": "https://arxiv.org/abs/2211.09527"}], "url": "https://protologue.com/t/prompt-injection/", "citation": "Protologue. (2026). Prompt Injection. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0087). https://protologue.com/t/prompt-injection/"} -{"id": "PTL-0088", "slug": "indirect-prompt-injection", "term": "Indirect Prompt Injection", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Indirect prompt injection places malicious instructions inside content a model will later retrieve or process, such as a web page, email, or document, so the attack is triggered without the attacker interacting with the model directly.", "description": "Greshake et al. demonstrated that injected content could make integrated applications exfiltrate data, spread to other users, or manipulate outputs. Risk grows with an agent's access to tools and private data.", "example": null, "broader": ["prompt-injection"], "narrower": ["tool-poisoning"], "related": ["retrieval-augmented-generation", "spotlighting", "ai-agent"], "introduced": 2023, "sources": [{"title": "Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection", "authors": "Greshake et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.12173"}], "url": "https://protologue.com/t/indirect-prompt-injection/", "citation": "Protologue. (2026). Indirect Prompt Injection. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0088). https://protologue.com/t/indirect-prompt-injection/"} -{"id": "PTL-0089", "slug": "prompt-leaking", "term": "Prompt Leaking", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Prompt leaking is an attack that tricks a model into revealing its hidden system prompt or other confidential instructions.", "description": "System prompts should be treated as potentially discoverable, so they should not contain secrets such as API keys.", "example": null, "broader": ["prompt-injection"], "narrower": [], "related": ["system-prompt"], "introduced": null, "sources": [{"title": "Ignore Previous Prompt: Attack Techniques For Language Models", "authors": "Perez & Ribeiro", "year": 2022, "url": "https://arxiv.org/abs/2211.09527"}], "url": "https://protologue.com/t/prompt-leaking/", "citation": "Protologue. (2026). Prompt Leaking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0089). https://protologue.com/t/prompt-leaking/"} -{"id": "PTL-0090", "slug": "jailbreak", "term": "Jailbreak", "aliases": ["jailbreaking"], "category": "Security & Adversarial Prompting", "definition": "A jailbreak is a prompt crafted to make a model produce outputs its safety training is meant to prevent, often through role-play, hypothetical framing, obfuscation, or other adversarial techniques.", "description": "Wei et al. attributed jailbreak success to two failure modes, competing objectives between helpfulness and safety, and mismatched generalization, where safety training does not cover inputs the model can still understand. Jailbreaks target the model's safety behavior, while prompt injection targets the application's instructions.", "example": null, "broader": [], "narrower": ["adversarial-suffix", "many-shot-jailbreaking", "crescendo-attack", "pair-attack"], "related": ["prompt-injection", "constitutional-ai"], "introduced": null, "sources": [{"title": "Jailbroken: How Does LLM Safety Training Fail?", "authors": "Wei et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.02483"}], "url": "https://protologue.com/t/jailbreak/", "citation": "Protologue. (2026). Jailbreak. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0090). https://protologue.com/t/jailbreak/"} -{"id": "PTL-0091", "slug": "adversarial-suffix", "term": "Adversarial Suffix", "aliases": ["GCG attack", "universal adversarial attack"], "category": "Security & Adversarial Prompting", "definition": "An adversarial suffix is an automatically optimized string of tokens that, when appended to a request, causes an aligned model to comply with requests it would normally refuse.", "description": "Zou et al. used a greedy coordinate gradient search on open models to find such suffixes and found that they often transferred to other models.", "example": null, "broader": ["jailbreak"], "narrower": [], "related": [], "introduced": 2023, "sources": [{"title": "Universal and Transferable Adversarial Attacks on Aligned Language Models", "authors": "Zou et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.15043"}], "url": "https://protologue.com/t/adversarial-suffix/", "citation": "Protologue. (2026). Adversarial Suffix. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0091). https://protologue.com/t/adversarial-suffix/"} -{"id": "PTL-0092", "slug": "many-shot-jailbreaking", "term": "Many-shot Jailbreaking", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Many-shot jailbreaking fills a long context window with many fabricated dialogue examples in which an assistant complies with harmful requests, exploiting in-context learning to override the model's safety training.", "description": "Anthropic researchers found the attack's effectiveness followed a power law in the number of shots, mirroring the scaling of benign in-context learning.", "example": null, "broader": ["jailbreak"], "narrower": [], "related": ["many-shot-in-context-learning", "context-window"], "introduced": 2024, "sources": [{"title": "Many-shot jailbreaking", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/many-shot-jailbreaking"}], "url": "https://protologue.com/t/many-shot-jailbreaking/", "citation": "Protologue. (2026). Many-shot Jailbreaking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0092). https://protologue.com/t/many-shot-jailbreaking/"} -{"id": "PTL-0093", "slug": "instruction-hierarchy", "term": "Instruction Hierarchy", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "The instruction hierarchy is a training approach that teaches a model to prioritize instructions by source, typically system over user over tool output, and to ignore lower-priority instructions that conflict with higher-priority ones.", "description": "Wallace et al. trained models on synthetic conflicts and found large gains in robustness to prompt injection and system-prompt extraction with limited loss in helpfulness.", "example": null, "broader": [], "narrower": [], "related": ["system-prompt", "prompt-injection", "spotlighting"], "introduced": 2024, "sources": [{"title": "The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions", "authors": "Wallace et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.13208"}], "url": "https://protologue.com/t/instruction-hierarchy/", "citation": "Protologue. (2026). Instruction Hierarchy. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0093). https://protologue.com/t/instruction-hierarchy/"} -{"id": "PTL-0094", "slug": "spotlighting", "term": "Spotlighting", "aliases": ["datamarking", "input marking"], "category": "Security & Adversarial Prompting", "definition": "Spotlighting is a family of prompt-level defenses against indirect prompt injection that transform untrusted input, by delimiting, marking every word, or encoding it, so the model can distinguish it from trusted instructions.", "description": "Hines et al. reported substantial reductions in attack success with datamarking and encoding variants, with little effect on task performance.", "example": null, "broader": [], "narrower": [], "related": ["indirect-prompt-injection", "delimiters", "instruction-hierarchy"], "introduced": 2024, "sources": [{"title": "Defending Against Indirect Prompt Injection Attacks With Spotlighting", "authors": "Hines et al.", "year": 2024, "url": "https://arxiv.org/abs/2403.14720"}], "url": "https://protologue.com/t/spotlighting/", "citation": "Protologue. (2026). Spotlighting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0094). https://protologue.com/t/spotlighting/"} -{"id": "PTL-0095", "slug": "constitutional-ai", "term": "Constitutional AI", "aliases": ["CAI", "RLAIF", "reinforcement learning from AI feedback"], "category": "Security & Adversarial Prompting", "definition": "Constitutional AI is a training method in which a model critiques and revises its own outputs according to a written set of principles, and AI-generated preference judgments replace most human labels for harmlessness.", "description": "Bai et al. used a supervised self-critique phase followed by reinforcement learning from AI feedback. The approach made the principles governing model behavior explicit and editable.", "example": null, "broader": [], "narrower": [], "related": ["rlhf", "self-refine", "jailbreak"], "introduced": 2022, "sources": [{"title": "Constitutional AI: Harmlessness from AI Feedback", "authors": "Bai et al.", "year": 2022, "url": "https://arxiv.org/abs/2212.08073"}], "url": "https://protologue.com/t/constitutional-ai/", "citation": "Protologue. (2026). Constitutional AI. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0095). https://protologue.com/t/constitutional-ai/"} -{"id": "PTL-0096", "slug": "hallucination", "term": "Hallucination", "aliases": ["confabulation", "fabrication"], "category": "Failure Modes & Evaluation", "definition": "Hallucination is generated content that is fluent and plausible but unfaithful to the provided source or factually incorrect, such as fabricated citations, facts, or quotations.", "description": "Surveys distinguish intrinsic hallucination, which contradicts the source, from extrinsic hallucination, which cannot be verified from it. Mitigations include retrieval-augmented generation, verification methods such as chain-of-verification, allowing the model to say it does not know, and requiring quotes from supplied documents.", "example": null, "broader": [], "narrower": [], "related": ["retrieval-augmented-generation", "chain-of-verification", "sycophancy"], "introduced": null, "sources": [{"title": "Survey of Hallucination in Natural Language Generation", "authors": "Ji et al.", "year": 2022, "url": "https://arxiv.org/abs/2202.03629"}], "url": "https://protologue.com/t/hallucination/", "citation": "Protologue. (2026). Hallucination. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0096). https://protologue.com/t/hallucination/"} -{"id": "PTL-0097", "slug": "sycophancy", "term": "Sycophancy", "aliases": [], "category": "Failure Modes & Evaluation", "definition": "Sycophancy is a model's tendency to tailor its answers to match a user's stated beliefs or preferences, including abandoning correct answers when the user pushes back, rather than giving its most accurate response.", "description": "Sharma et al. found sycophancy across several assistants and linked it to human preference data, which tends to reward agreement. Prompting mitigations include removing opinions from the question, as in System 2 Attention.", "example": null, "broader": [], "narrower": [], "related": ["rlhf", "system-2-attention", "hallucination"], "introduced": null, "sources": [{"title": "Towards Understanding Sycophancy in Language Models", "authors": "Sharma et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.13548"}], "url": "https://protologue.com/t/sycophancy/", "citation": "Protologue. (2026). Sycophancy. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0097). https://protologue.com/t/sycophancy/"} -{"id": "PTL-0098", "slug": "lost-in-the-middle", "term": "Lost in the Middle", "aliases": ["positional bias", "U-shaped context performance"], "category": "Failure Modes & Evaluation", "definition": "Lost in the middle is the finding that language models use information at the beginning or end of a long context much more reliably than information placed in the middle.", "description": "Liu et al. observed a U-shaped performance curve on multi-document question answering as the position of the relevant document varied. A practical takeaway is to place key material and instructions at the start or end of long prompts.", "example": null, "broader": [], "narrower": [], "related": ["context-window", "needle-in-a-haystack", "context-engineering", "thread-of-thought"], "introduced": 2023, "sources": [{"title": "Lost in the Middle: How Language Models Use Long Contexts", "authors": "Liu et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.03172"}], "url": "https://protologue.com/t/lost-in-the-middle/", "citation": "Protologue. (2026). Lost in the Middle. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0098). https://protologue.com/t/lost-in-the-middle/"} -{"id": "PTL-0099", "slug": "needle-in-a-haystack", "term": "Needle in a Haystack", "aliases": ["NIAH", "passkey retrieval"], "category": "Failure Modes & Evaluation", "definition": "Needle in a haystack is a long-context evaluation that hides a specific fact at varying depths in a long distractor document and tests whether the model can retrieve it.", "description": "It became a standard way to report effective context length, though passing it shows only simple retrieval, not reasoning over many dispersed facts.", "example": null, "broader": [], "narrower": [], "related": ["lost-in-the-middle", "context-window"], "introduced": 2023, "sources": [{"title": "needle-in-a-haystack", "authors": "Kamradt", "year": 2023, "url": "https://github.com/gkamradt/needle-in-a-haystack"}], "url": "https://protologue.com/t/needle-in-a-haystack/", "citation": "Protologue. (2026). Needle in a Haystack. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0099). https://protologue.com/t/needle-in-a-haystack/"} -{"id": "PTL-0100", "slug": "prompt-sensitivity", "term": "Prompt Sensitivity", "aliases": ["prompt brittleness", "format sensitivity"], "category": "Failure Modes & Evaluation", "definition": "Prompt sensitivity is the variation in a model's performance caused by superficial changes to a prompt, such as formatting, separators, spacing, or wording, that do not change the task's meaning.", "description": "Sclar et al. found accuracy differences of tens of percentage points from formatting choices alone, and argued that evaluations should report performance across a range of plausible formats.", "example": null, "broader": [], "narrower": [], "related": ["exemplar-ordering", "few-shot-calibration", "emotion-prompting"], "introduced": null, "sources": [{"title": "Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting", "authors": "Sclar et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.11324"}], "url": "https://protologue.com/t/prompt-sensitivity/", "citation": "Protologue. (2026). Prompt Sensitivity. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0100). https://protologue.com/t/prompt-sensitivity/"} -{"id": "PTL-0101", "slug": "unfaithful-chain-of-thought", "term": "Unfaithful Chain-of-Thought", "aliases": ["CoT faithfulness", "post-hoc rationalization"], "category": "Failure Modes & Evaluation", "definition": "Unfaithful chain-of-thought is stated reasoning that does not reflect the factors that actually determined the model's answer, so the explanation can be plausible yet misleading.", "description": "Turpin et al. showed that biasing features, such as always putting the correct answer in position A of few-shot examples, swayed answers while the stated reasoning never mentioned them. Lanham et al. measured how much answers actually depend on the stated reasoning, with results varying by task and model size.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought", "reasoning-model"], "introduced": null, "sources": [{"title": "Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Prompting", "authors": "Turpin et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.04388"}, {"title": "Measuring Faithfulness in Chain-of-Thought Reasoning", "authors": "Lanham et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.13702"}], "url": "https://protologue.com/t/unfaithful-chain-of-thought/", "citation": "Protologue. (2026). Unfaithful Chain-of-Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0101). https://protologue.com/t/unfaithful-chain-of-thought/"} -{"id": "PTL-0102", "slug": "large-language-model", "term": "Large Language Model", "aliases": ["LLM", "language model"], "category": "Foundations", "definition": "A large language model (LLM) is a neural network, usually a Transformer with billions of parameters, trained on very large text corpora to predict the next token, which lets it generate text and perform many tasks from a prompt.", "description": "The defining property is that a single model, without task-specific training, can translate, summarize, answer questions, write code, and follow instructions, with the task specified in the prompt. Most deployed LLMs are base models that have been further instruction-tuned and preference-tuned to behave as assistants. Their capabilities and their failure modes, such as hallucination and prompt sensitivity, both follow from next-token prediction over the prompt.", "example": null, "broader": ["foundation-model"], "narrower": ["base-model"], "related": ["token", "prompt", "in-context-learning"], "introduced": null, "sources": [{"title": "A Survey of Large Language Models", "authors": "Zhao et al.", "year": 2023, "url": "https://arxiv.org/abs/2303.18223"}, {"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}], "url": "https://protologue.com/t/large-language-model/", "citation": "Protologue. (2026). Large Language Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0102). https://protologue.com/t/large-language-model/"} -{"id": "PTL-0103", "slug": "foundation-model", "term": "Foundation Model", "aliases": ["frontier model", "general-purpose model"], "category": "Foundations", "definition": "A foundation model is a model trained on broad data at scale, usually with self-supervision, that can be adapted to a wide range of downstream tasks by prompting or fine-tuning.", "description": "The term was introduced in 2021 by researchers at Stanford to describe models such as BERT, GPT-3, and CLIP that serve as a common base for many applications. Large language models are the most prominent kind, but the term also covers image, audio, and multimodal models. Because many systems are built on the same few foundation models, their strengths and flaws are inherited widely.", "example": null, "broader": [], "narrower": ["large-language-model"], "related": ["base-model", "fine-tuning"], "introduced": 2021, "sources": [{"title": "On the Opportunities and Risks of Foundation Models", "authors": "Bommasani et al.", "year": 2021, "url": "https://arxiv.org/abs/2108.07258"}], "url": "https://protologue.com/t/foundation-model/", "citation": "Protologue. (2026). Foundation Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0103). https://protologue.com/t/foundation-model/"} -{"id": "PTL-0104", "slug": "base-model", "term": "Base Model", "aliases": ["pretrained model", "base LLM", "completion model"], "category": "Foundations", "definition": "A base model is a language model after pretraining but before instruction tuning or preference tuning, so it continues text in the style of its training data rather than following instructions.", "description": "Asked a question, a base model may answer it, continue with more questions, or produce something unrelated, because it only predicts plausible continuations. Prompting one effectively means framing the task as a document to complete, for example with few-shot examples or the start of the desired output. Chat assistants are derived from base models through instruction tuning and RLHF, which is why they are often called instruct or chat models.", "example": "A completion-style prompt for a base model: \"Q: What is the capital of France?\\nA: Paris\\nQ: What is the capital of Japan?\\nA:\"", "broader": ["large-language-model"], "narrower": [], "related": ["instruction-tuning", "rlhf", "few-shot-prompting", "chat-template"], "introduced": null, "sources": [{"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}, {"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}], "url": "https://protologue.com/t/base-model/", "citation": "Protologue. (2026). Base Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0104). https://protologue.com/t/base-model/"} -{"id": "PTL-0105", "slug": "fine-tuning", "term": "Fine-Tuning", "aliases": ["model fine-tuning", "transfer learning"], "category": "Foundations", "definition": "Fine-tuning is the further training of a pretrained model on a smaller, task- or domain-specific dataset so that its weights adapt to that task or domain.", "description": "Fine-tuning complements prompting. Prompting changes only the input, while fine-tuning changes the model, which can teach a consistent format, style, or specialized skill that is hard to obtain from instructions alone, at the cost of training data, compute, and a separate model to maintain. Parameter-efficient methods such as LoRA update only a small number of added weights, and instruction tuning is the fine-tuning step that turns a base model into an assistant.", "example": null, "broader": [], "narrower": ["knowledge-distillation"], "related": ["base-model", "instruction-tuning", "low-rank-adaptation", "prompt-tuning"], "introduced": 2018, "sources": [{"title": "Universal Language Model Fine-tuning for Text Classification", "authors": "Howard and Ruder", "year": 2018, "url": "https://arxiv.org/abs/1801.06146"}, {"title": "LoRA: Low-Rank Adaptation of Large Language Models", "authors": "Hu et al.", "year": 2021, "url": "https://arxiv.org/abs/2106.09685"}], "url": "https://protologue.com/t/fine-tuning/", "citation": "Protologue. (2026). Fine-Tuning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0105). https://protologue.com/t/fine-tuning/"} -{"id": "PTL-0106", "slug": "reward-model", "term": "Reward Model", "aliases": ["preference model", "outcome reward model", "ORM"], "category": "Foundations", "definition": "A reward model is a model trained to score a language model's outputs according to human or AI preferences, usually from pairwise comparisons, so that the score can serve as a training signal or a ranking criterion.", "description": "In RLHF, people compare pairs of responses, a reward model learns to predict which one they prefer, and the language model is then optimized against it. Reward models are also used at inference time to pick the best of several sampled responses. A model that scores only the final answer is an outcome reward model, in contrast to a process reward model, which scores each reasoning step. Optimizing too hard against an imperfect reward model leads to reward hacking.", "example": null, "broader": [], "narrower": [], "related": ["rlhf", "process-reward-model", "best-of-n-sampling", "reward-hacking"], "introduced": 2022, "sources": [{"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}, {"title": "Let's Verify Step by Step", "authors": "Lightman et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.20050"}], "url": "https://protologue.com/t/reward-model/", "citation": "Protologue. (2026). Reward Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0106). https://protologue.com/t/reward-model/"} -{"id": "PTL-0107", "slug": "chat-template", "term": "Chat Template", "aliases": ["prompt format", "chat format", "conversation template"], "category": "Foundations", "definition": "A chat template is the model-specific format that converts a list of role-tagged messages, such as system, user, and assistant turns, into the exact token sequence with special control tokens that the model was fine-tuned on.", "description": "Hosted chat APIs apply the template for you, but when running open-weight models directly, using the wrong template, or none, can noticeably degrade instruction following because the model sees input unlike its training data. Templates also determine how system prompts, tool calls, and tool results are marked, and where the model expects to begin its reply.", "example": null, "broader": [], "narrower": [], "related": ["system-prompt", "base-model", "instruction-tuning", "delimiters"], "introduced": null, "sources": [{"title": "Chat templates", "authors": "Hugging Face", "year": 2023, "url": "https://huggingface.co/docs/transformers/en/chat_templating"}], "url": "https://protologue.com/t/chat-template/", "citation": "Protologue. (2026). Chat Template. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0107). https://protologue.com/t/chat-template/"} -{"id": "PTL-0108", "slug": "top-k-sampling", "term": "Top-k Sampling", "aliases": ["top-k"], "category": "Foundations", "definition": "Top-k sampling is a decoding method that, at each step, restricts sampling to the k most probable next tokens and renormalizes their probabilities.", "description": "It removes the long tail of unlikely tokens that can derail generation, while keeping some variety. Because k is fixed, it can be too restrictive when many tokens are plausible and too permissive when only one is, which motivated top-p (nucleus) sampling. Many APIs expose top-k alongside temperature and top-p.", "example": null, "broader": [], "narrower": [], "related": ["temperature", "top-p-sampling", "greedy-decoding"], "introduced": 2018, "sources": [{"title": "Hierarchical Neural Story Generation", "authors": "Fan et al.", "year": 2018, "url": "https://arxiv.org/abs/1805.04833"}, {"title": "The Curious Case of Neural Text Degeneration", "authors": "Holtzman et al.", "year": 2019, "url": "https://arxiv.org/abs/1904.09751"}], "url": "https://protologue.com/t/top-k-sampling/", "citation": "Protologue. (2026). Top-k Sampling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0108). https://protologue.com/t/top-k-sampling/"} -{"id": "PTL-0109", "slug": "greedy-decoding", "term": "Greedy Decoding", "aliases": ["argmax decoding", "temperature 0"], "category": "Foundations", "definition": "Greedy decoding generates text by always choosing the single most probable next token, which makes output deterministic for a given prompt and model.", "description": "It is the limit of sampling as temperature approaches zero and is often used when consistency matters, as in extraction or classification. For open-ended text it tends to produce bland or repetitive output, and for reasoning tasks sampling several answers and voting, as in self-consistency, usually beats a single greedy answer.", "example": null, "broader": [], "narrower": [], "related": ["temperature", "top-k-sampling", "top-p-sampling", "self-consistency", "text-degeneration"], "introduced": null, "sources": [{"title": "The Curious Case of Neural Text Degeneration", "authors": "Holtzman et al.", "year": 2019, "url": "https://arxiv.org/abs/1904.09751"}], "url": "https://protologue.com/t/greedy-decoding/", "citation": "Protologue. (2026). Greedy Decoding. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0109). https://protologue.com/t/greedy-decoding/"} -{"id": "PTL-0110", "slug": "log-probabilities", "term": "Log Probabilities", "aliases": ["logprobs", "token probabilities"], "category": "Foundations", "definition": "Log probabilities (logprobs) are the logarithms of the probabilities a model assigned to each token it generated, and optionally to the most likely alternatives, exposing how confident the model was at each step.", "description": "Applications use logprobs to score classification labels, estimate confidence, flag likely hallucinations, rank candidate completions, and build autocomplete. They describe token-level likelihood, not factual correctness, so a fluent but wrong answer can still have high probability. Not every API or model exposes them.", "example": null, "broader": [], "narrower": [], "related": ["token", "confidence-calibration", "temperature"], "introduced": null, "sources": [{"title": "Using logprobs", "authors": "OpenAI", "year": 2023, "url": "https://developers.openai.com/cookbook/examples/using_logprobs"}, {"title": "Language Models (Mostly) Know What They Know", "authors": "Kadavath et al.", "year": 2022, "url": "https://arxiv.org/abs/2207.05221"}], "url": "https://protologue.com/t/log-probabilities/", "citation": "Protologue. (2026). Log Probabilities. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0110). https://protologue.com/t/log-probabilities/"} -{"id": "PTL-0111", "slug": "multimodal-prompting", "term": "Multimodal Prompting", "aliases": ["vision prompting", "image prompting", "visual prompting"], "category": "Foundations", "definition": "Multimodal prompting is prompting a model with more than one kind of input, such as images, documents, audio, or video together with text, so the model reasons over all of them.", "description": "Text-prompting techniques largely carry over, but some practices are specific to non-text inputs. Provider guidance recommends placing images before the question, labeling multiple images so they can be referred to, and sending legible, uncompressed images. Models remain weaker at precise counting, small text, and spatial coordinates, so high-stakes visual answers need checking.", "example": "Image 1: [receipt photo]. Image 2: [receipt photo]. List the total on each receipt and say which is larger.", "broader": ["prompt"], "narrower": [], "related": ["context-window", "large-language-model"], "introduced": 2023, "sources": [{"title": "The Dawn of LMMs: Preliminary Explorations with GPT-4V(ision)", "authors": "Yang et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.17421"}, {"title": "Vision", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/build-with-claude/vision"}], "url": "https://protologue.com/t/multimodal-prompting/", "citation": "Protologue. (2026). Multimodal Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0111). https://protologue.com/t/multimodal-prompting/"} -{"id": "PTL-0112", "slug": "knowledge-cutoff", "term": "Knowledge Cutoff", "aliases": ["training cutoff", "training data cutoff"], "category": "Foundations", "definition": "A model's knowledge cutoff is the date after which its training data contains little or no information, so it does not know about later events unless they are supplied in the prompt or retrieved.", "description": "Questions about recent events, prices, or current officeholders are answered from stale knowledge unless the system adds search or retrieval. Research has found that a model's effective cutoff can differ from its reported one, and can differ across topics, because web data from earlier years is overrepresented and deduplication is imperfect. Stating the current date in the system prompt helps the model reason about what it might not know.", "example": null, "broader": [], "narrower": [], "related": ["retrieval-augmented-generation", "web-search-tool", "hallucination"], "introduced": null, "sources": [{"title": "Dated Data: Tracing Knowledge Cutoffs in Large Language Models", "authors": "Cheng et al.", "year": 2024, "url": "https://arxiv.org/abs/2403.12958"}], "url": "https://protologue.com/t/knowledge-cutoff/", "citation": "Protologue. (2026). Knowledge Cutoff. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0112). https://protologue.com/t/knowledge-cutoff/"} -{"id": "PTL-0113", "slug": "instruction-following", "term": "Instruction Following", "aliases": ["instruction adherence", "instruction compliance"], "category": "Foundations", "definition": "Instruction following is a model's ability to carry out explicit instructions in a prompt, including constraints on content, length, format, and style, rather than only answering the underlying question.", "description": "It is the main capability added by instruction tuning and RLHF, and it degrades with long or conflicting instruction lists, long contexts, and multi-turn conversations. Benchmarks such as IFEval measure it with instructions whose compliance can be checked automatically, for example a minimum word count or a required keyword.", "example": "Answer in exactly three bullet points, each under 15 words, and do not use the word \"very\".", "broader": [], "narrower": [], "related": ["instruction-tuning", "rlhf", "system-prompt", "instruction-hierarchy"], "introduced": null, "sources": [{"title": "Instruction-Following Evaluation for Large Language Models", "authors": "Zhou et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.07911"}, {"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}], "url": "https://protologue.com/t/instruction-following/", "citation": "Protologue. (2026). Instruction Following. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0113). https://protologue.com/t/instruction-following/"} -{"id": "PTL-0114", "slug": "decomposed-prompting", "term": "Decomposed Prompting", "aliases": ["DecomP", "modular prompting"], "category": "Reasoning Elicitation", "definition": "Decomposed prompting breaks a complex task into simpler sub-tasks, each delegated to its own prompt, model call, or symbolic function, with a controller prompt that decides which handler to call next.", "description": "Each sub-task handler can be optimized, given its own examples, or replaced with code, and handlers can call further decompositions recursively. Compared with a single chain-of-thought prompt, this modularity helps on tasks with steps that models do poorly in one pass, such as long-input processing or symbolic manipulation.", "example": null, "broader": [], "narrower": [], "related": ["least-to-most-prompting", "prompt-chaining", "orchestrator-workers", "program-aided-language-models"], "introduced": 2022, "sources": [{"title": "Decomposed Prompting: A Modular Approach for Solving Complex Tasks", "authors": "Khot et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.02406"}], "url": "https://protologue.com/t/decomposed-prompting/", "citation": "Protologue. (2026). Decomposed Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0114). https://protologue.com/t/decomposed-prompting/"} -{"id": "PTL-0115", "slug": "complexity-based-prompting", "term": "Complexity-Based Prompting", "aliases": [], "category": "Reasoning Elicitation", "definition": "Complexity-based prompting selects chain-of-thought exemplars that contain more reasoning steps, and at inference votes only among the sampled reasoning chains with the most steps.", "description": "The method rests on the finding that demonstrations with longer, more complex reasoning improve multi-step reasoning more than simpler ones. It combines exemplar selection with a variant of self-consistency in which votes from the most complex chains count.", "example": null, "broader": ["chain-of-thought"], "narrower": [], "related": ["exemplar-selection", "self-consistency", "auto-cot"], "introduced": 2022, "sources": [{"title": "Complexity-Based Prompting for Multi-Step Reasoning", "authors": "Fu et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.00720"}], "url": "https://protologue.com/t/complexity-based-prompting/", "citation": "Protologue. (2026). Complexity-Based Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0115). https://protologue.com/t/complexity-based-prompting/"} -{"id": "PTL-0116", "slug": "chain-of-draft", "term": "Chain of Draft", "aliases": ["CoD", "concise chain-of-thought"], "category": "Reasoning Elicitation", "definition": "Chain of Draft is a variant of chain-of-thought prompting in which the model writes only a minimal draft of each reasoning step, a few words rather than full sentences, to reach an answer with far fewer tokens.", "description": "The authors report accuracy comparable to standard chain-of-thought on arithmetic, commonsense, and symbolic tasks while using a small fraction of the output tokens, which lowers cost and latency. It is most useful where reasoning helps but verbose explanations are not needed.", "example": "Think step by step, but keep only a minimum draft for each step, five words at most. Give the answer after ####.", "broader": ["chain-of-thought"], "narrower": [], "related": ["prompt-compression", "skeleton-of-thought", "overthinking"], "introduced": 2025, "sources": [{"title": "Chain of Draft: Thinking Faster by Writing Less", "authors": "Xu et al.", "year": 2025, "url": "https://arxiv.org/abs/2502.18600"}], "url": "https://protologue.com/t/chain-of-draft/", "citation": "Protologue. (2026). Chain of Draft. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0116). https://protologue.com/t/chain-of-draft/"} -{"id": "PTL-0117", "slug": "self-correction", "term": "Self-Correction", "aliases": ["intrinsic self-correction", "self-revision"], "category": "Self-Critique & Verification", "definition": "Self-correction is the general practice of having a language model review and revise its own output, either from its own judgment alone (intrinsic self-correction) or using external feedback such as tool results, tests, or retrieved evidence.", "description": "Research has found that intrinsic self-correction does not reliably improve reasoning accuracy and can make answers worse, because the model often cannot tell which of its answers are wrong. Self-correction works best when the critique is grounded in something the model cannot fake, such as running code, executing a search, or checking against a reference.", "example": null, "broader": [], "narrower": ["critic"], "related": ["self-refine", "reflexion", "chain-of-verification", "evaluator-optimizer"], "introduced": 2023, "sources": [{"title": "Large Language Models Cannot Self-Correct Reasoning Yet", "authors": "Huang et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.01798"}], "url": "https://protologue.com/t/self-correction/", "citation": "Protologue. (2026). Self-Correction. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0117). https://protologue.com/t/self-correction/"} -{"id": "PTL-0118", "slug": "self-verification", "term": "Self-Verification", "aliases": ["backward verification"], "category": "Self-Critique & Verification", "definition": "Self-verification is a technique in which a model, after producing candidate answers with chain-of-thought, checks each one by working backward, predicting the original conditions of the problem from the answer, and keeps the answer that is most consistent.", "description": "It turns verification into a separate prediction task rather than asking the model whether it is right, which reduces the tendency to approve its own mistakes. It applies most naturally to arithmetic and logical problems whose conditions can be masked and recovered.", "example": null, "broader": [], "narrower": [], "related": ["self-consistency", "chain-of-verification", "self-correction"], "introduced": 2022, "sources": [{"title": "Large Language Models are Better Reasoners with Self-Verification", "authors": "Weng et al.", "year": 2022, "url": "https://arxiv.org/abs/2212.09561"}], "url": "https://protologue.com/t/self-verification/", "citation": "Protologue. (2026). Self-Verification. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0118). https://protologue.com/t/self-verification/"} -{"id": "PTL-0119", "slug": "critic", "term": "CRITIC", "aliases": ["tool-interactive critiquing"], "category": "Self-Critique & Verification", "definition": "CRITIC is a self-correction framework in which a model checks its output using external tools, such as web search or a code interpreter, critiques it based on what the tools return, and then revises it.", "description": "Grounding the critique in tool feedback addresses the main weakness of intrinsic self-correction. The original work showed improvements on question answering, program synthesis, and reducing toxic output, and the same verify-then-revise loop is common in agent systems.", "example": null, "broader": ["self-correction"], "narrower": [], "related": ["self-refine", "function-calling", "code-execution-tool", "chain-of-verification"], "introduced": 2023, "sources": [{"title": "CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing", "authors": "Gou et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.11738"}], "url": "https://protologue.com/t/critic/", "citation": "Protologue. (2026). CRITIC. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0119). https://protologue.com/t/critic/"} -{"id": "PTL-0120", "slug": "chain-of-density", "term": "Chain of Density", "aliases": ["CoD summarization"], "category": "Self-Critique & Verification", "definition": "Chain of Density is a summarization prompt that has the model write a summary and then repeatedly rewrite it, adding a few missing important entities each time without making it longer, to produce progressively denser summaries.", "description": "Each round forces compression and fusion of content, so later summaries carry more information per word. The authors found human readers preferred summaries partway through the chain, denser than a plain summary but not maximally dense, which makes the number of rounds a tunable trade-off between informativeness and readability.", "example": null, "broader": ["self-refine"], "narrower": [], "related": ["prompt-chaining"], "introduced": 2023, "sources": [{"title": "From Sparse to Dense: GPT-4 Summarization with Chain of Density Prompting", "authors": "Adams et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.04269"}], "url": "https://protologue.com/t/chain-of-density/", "citation": "Protologue. (2026). Chain of Density. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0120). https://protologue.com/t/chain-of-density/"} -{"id": "PTL-0121", "slug": "confidence-calibration", "term": "Confidence Calibration", "aliases": ["calibration", "verbalized confidence", "uncertainty estimation"], "category": "Self-Critique & Verification", "definition": "Confidence calibration is the degree to which a model's expressed or implied confidence matches how often it is actually right; a well-calibrated model that says it is 80% sure is correct about 80% of the time.", "description": "Confidence can be read from token probabilities, by asking the model to state a confidence (verbalized confidence), or by sampling several answers and measuring agreement. Studies have found pretrained models fairly well calibrated on suitably formatted multiple-choice questions, and that for instruction-tuned models verbalized confidence can be better calibrated than token probabilities. Calibration lets an application abstain or escalate when the model is unsure. It is different from few-shot calibration, which corrects label bias in prompts.", "example": null, "broader": [], "narrower": [], "related": ["log-probabilities", "hallucination", "selfcheckgpt", "few-shot-calibration"], "introduced": null, "sources": [{"title": "Language Models (Mostly) Know What They Know", "authors": "Kadavath et al.", "year": 2022, "url": "https://arxiv.org/abs/2207.05221"}, {"title": "Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedback", "authors": "Tian et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.14975"}], "url": "https://protologue.com/t/confidence-calibration/", "citation": "Protologue. (2026). Confidence Calibration. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0121). https://protologue.com/t/confidence-calibration/"} -{"id": "PTL-0122", "slug": "selfcheckgpt", "term": "SelfCheckGPT", "aliases": ["sampling-based hallucination detection", "consistency-based hallucination detection"], "category": "Self-Critique & Verification", "definition": "SelfCheckGPT detects hallucinations by sampling several responses to the same prompt and checking whether each claim in the main response is supported by the others, on the principle that facts the model knows are reproduced consistently while fabrications vary.", "description": "It needs no external knowledge base and works with black-box models, which makes it a practical first check. Its limitation is that consistent errors, which the model repeats confidently every time, are not caught, so it complements rather than replaces retrieval-based fact-checking.", "example": null, "broader": [], "narrower": [], "related": ["hallucination", "self-consistency", "confidence-calibration", "chain-of-verification"], "introduced": 2023, "sources": [{"title": "SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models", "authors": "Manakul et al.", "year": 2023, "url": "https://arxiv.org/abs/2303.08896"}], "url": "https://protologue.com/t/selfcheckgpt/", "citation": "Protologue. (2026). SelfCheckGPT. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0122). https://protologue.com/t/selfcheckgpt/"} -{"id": "PTL-0123", "slug": "embedding", "term": "Embedding", "aliases": ["text embedding", "vector embedding", "embedding vector"], "category": "Retrieval & Tool Use", "definition": "An embedding is a fixed-length vector of numbers that represents a piece of text, or another input, so that inputs with similar meaning have vectors that are close together, typically measured by cosine similarity.", "description": "Embeddings are produced by an embedding model, which is usually separate from the generating model. They underpin semantic search, dense retrieval for RAG, clustering, deduplication, and the selection of similar few-shot examples. Quality depends on the embedding model and on how text is chunked, and embeddings capture topical similarity better than exact facts such as numbers, names, or negation.", "example": null, "broader": [], "narrower": [], "related": ["dense-retrieval", "vector-database", "chunking", "retrieval-augmented-generation", "exemplar-selection"], "introduced": 2019, "sources": [{"title": "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks", "authors": "Reimers and Gurevych", "year": 2019, "url": "https://arxiv.org/abs/1908.10084"}, {"title": "Dense Passage Retrieval for Open-Domain Question Answering", "authors": "Karpukhin et al.", "year": 2020, "url": "https://arxiv.org/abs/2004.04906"}], "url": "https://protologue.com/t/embedding/", "citation": "Protologue. (2026). Embedding. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0123). https://protologue.com/t/embedding/"} -{"id": "PTL-0124", "slug": "vector-database", "term": "Vector Database", "aliases": ["vector store", "vector index", "vector search"], "category": "Retrieval & Tool Use", "definition": "A vector database stores embeddings alongside their source content and metadata and answers queries by finding the stored vectors nearest to a query vector, usually with approximate nearest-neighbor search.", "description": "Exact nearest-neighbor search becomes slow at millions of vectors, so vector databases use index structures such as HNSW graphs or quantized inverted indexes that trade a little recall for large speedups. Most also support metadata filtering and, increasingly, keyword search for hybrid retrieval. A vector index library such as FAISS provides the search without the database features.", "example": null, "broader": [], "narrower": [], "related": ["embedding", "dense-retrieval", "hybrid-search", "retrieval-augmented-generation"], "introduced": null, "sources": [{"title": "Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs", "authors": "Malkov and Yashunin", "year": 2016, "url": "https://arxiv.org/abs/1603.09320"}, {"title": "Billion-scale similarity search with GPUs", "authors": "Johnson et al.", "year": 2017, "url": "https://arxiv.org/abs/1702.08734"}], "url": "https://protologue.com/t/vector-database/", "citation": "Protologue. (2026). Vector Database. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0124). https://protologue.com/t/vector-database/"} -{"id": "PTL-0125", "slug": "chunking", "term": "Chunking", "aliases": ["document chunking", "text splitting", "passage segmentation", "late chunking"], "category": "Retrieval & Tool Use", "definition": "Chunking is splitting documents into smaller passages before indexing them for retrieval, so that each retrieved unit is small enough to fit the context and focused enough to match a query.", "description": "Chunk size and overlap are the main levers. Chunks that are too large dilute the embedding and waste context, while chunks that are too small lose the surrounding meaning. Common strategies split by fixed token counts, by document structure such as headings and paragraphs, or by meaning. Research has found that retrieving finer units, such as self-contained propositions, can improve retrieval, and approaches such as contextual retrieval and late chunking restore context that splitting removes.", "example": null, "broader": [], "narrower": [], "related": ["embedding", "contextual-retrieval", "retrieval-augmented-generation", "dense-retrieval"], "introduced": null, "sources": [{"title": "Dense X Retrieval: What Retrieval Granularity Should We Use?", "authors": "Chen et al.", "year": 2023, "url": "https://arxiv.org/abs/2312.06648"}, {"title": "Late Chunking: Contextual Chunk Embeddings Using Long-Context Embedding Models", "authors": "Günther et al.", "year": 2024, "url": "https://arxiv.org/abs/2409.04701"}], "url": "https://protologue.com/t/chunking/", "citation": "Protologue. (2026). Chunking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0125). https://protologue.com/t/chunking/"} -{"id": "PTL-0126", "slug": "dense-retrieval", "term": "Dense Retrieval", "aliases": ["semantic search", "embedding-based retrieval", "DPR", "bi-encoder retrieval"], "category": "Retrieval & Tool Use", "definition": "Dense retrieval finds relevant passages by embedding the query and every passage as dense vectors, usually with a dual encoder, and returning the passages whose vectors are most similar to the query's.", "description": "Because it matches on meaning rather than shared words, dense retrieval finds paraphrases and related concepts that keyword search misses. It can miss exact identifiers, rare names, and codes, which is why production systems often combine it with BM25 in hybrid search and refine results with a reranker.", "example": null, "broader": [], "narrower": [], "related": ["embedding", "bm25", "hybrid-search", "reranking", "vector-database"], "introduced": 2020, "sources": [{"title": "Dense Passage Retrieval for Open-Domain Question Answering", "authors": "Karpukhin et al.", "year": 2020, "url": "https://arxiv.org/abs/2004.04906"}], "url": "https://protologue.com/t/dense-retrieval/", "citation": "Protologue. (2026). Dense Retrieval. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0126). https://protologue.com/t/dense-retrieval/"} -{"id": "PTL-0127", "slug": "bm25", "term": "BM25", "aliases": ["Okapi BM25", "sparse retrieval", "keyword search", "lexical search"], "category": "Retrieval & Tool Use", "definition": "BM25 is a keyword ranking function that scores documents by how often the query's terms appear in them, weighted by how rare each term is across the collection and normalized for document length.", "description": "It is the standard sparse, lexical retrieval method and remains a strong baseline. It excels at exact matches, such as product codes, error messages, and names, where embedding search is weaker, and needs no training. It does not match synonyms or paraphrases, so it is usually paired with dense retrieval.", "example": null, "broader": [], "narrower": [], "related": ["dense-retrieval", "hybrid-search", "contextual-retrieval"], "introduced": null, "sources": [{"title": "The Probabilistic Relevance Framework: BM25 and Beyond", "authors": "Robertson and Zaragoza", "year": 2009, "url": "https://doi.org/10.1561/1500000019"}], "url": "https://protologue.com/t/bm25/", "citation": "Protologue. (2026). BM25. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0127). https://protologue.com/t/bm25/"} -{"id": "PTL-0128", "slug": "hybrid-search", "term": "Hybrid Search", "aliases": ["hybrid retrieval", "reciprocal rank fusion", "RRF"], "category": "Retrieval & Tool Use", "definition": "Hybrid search combines keyword retrieval, such as BM25, with dense embedding retrieval and merges the two result lists, so that a query benefits from both exact-term matching and semantic matching.", "description": "The lists are usually merged by reciprocal rank fusion, which scores each document by the sum of the reciprocals of its ranks in each list and needs no score calibration between systems. Hybrid retrieval followed by a reranker is a common default for RAG pipelines.", "example": null, "broader": [], "narrower": [], "related": ["bm25", "dense-retrieval", "reranking", "contextual-retrieval", "retrieval-augmented-generation"], "introduced": null, "sources": [{"title": "Reciprocal rank fusion outperforms condorcet and individual rank learning methods", "authors": "Cormack et al.", "year": 2009, "url": "https://doi.org/10.1145/1571941.1572114"}, {"title": "Introducing Contextual Retrieval", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/contextual-retrieval"}], "url": "https://protologue.com/t/hybrid-search/", "citation": "Protologue. (2026). Hybrid Search. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0128). https://protologue.com/t/hybrid-search/"} -{"id": "PTL-0129", "slug": "reranking", "term": "Reranking", "aliases": ["re-ranking", "cross-encoder reranking", "reranker"], "category": "Retrieval & Tool Use", "definition": "Reranking is a second retrieval stage in which a more accurate but slower model, typically a cross-encoder that reads the query and each candidate together, rescores the top results from a fast first-stage search and reorders them.", "description": "First-stage retrievers embed queries and documents separately to stay fast, which limits accuracy. A reranker sees both texts jointly, so it judges relevance more precisely, and applying it only to a few dozen candidates keeps cost manageable. Rerankers can also be LLMs prompted to judge or order passages.", "example": null, "broader": [], "narrower": [], "related": ["dense-retrieval", "hybrid-search", "colbert", "retrieval-augmented-generation"], "introduced": 2019, "sources": [{"title": "Passage Re-ranking with BERT", "authors": "Nogueira and Cho", "year": 2019, "url": "https://arxiv.org/abs/1901.04085"}], "url": "https://protologue.com/t/reranking/", "citation": "Protologue. (2026). Reranking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0129). https://protologue.com/t/reranking/"} -{"id": "PTL-0130", "slug": "colbert", "term": "ColBERT", "aliases": ["late interaction", "late-interaction retrieval", "multi-vector retrieval"], "category": "Retrieval & Tool Use", "definition": "ColBERT is a retrieval model that embeds every token of the query and of each passage separately and scores relevance by matching each query token to its most similar passage token, an approach called late interaction.", "description": "Late interaction sits between single-vector dense retrieval, which is fast but coarse, and cross-encoder reranking, which is accurate but slow. Passage token embeddings can be precomputed and indexed, so ColBERT keeps much of a cross-encoder's precision at search-engine speed, at the cost of larger indexes.", "example": null, "broader": [], "narrower": [], "related": ["dense-retrieval", "reranking", "dspy"], "introduced": 2020, "sources": [{"title": "ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT", "authors": "Khattab and Zaharia", "year": 2020, "url": "https://arxiv.org/abs/2004.12832"}], "url": "https://protologue.com/t/colbert/", "citation": "Protologue. (2026). ColBERT. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0130). https://protologue.com/t/colbert/"} -{"id": "PTL-0131", "slug": "query-rewriting", "term": "Query Rewriting", "aliases": ["query expansion", "query reformulation", "rewrite-retrieve-read", "multi-query retrieval"], "category": "Retrieval & Tool Use", "definition": "Query rewriting uses a language model to reformulate a user's question into one or more queries better suited to the retriever before retrieval is run.", "description": "User questions are often ambiguous, conversational, or phrased differently from the documents that answer them. Rewriting can resolve references to earlier turns, split a question into sub-queries, add keywords, or expand the query with a generated pseudo-document. It is closely related to HyDE, which embeds a hypothetical answer instead of the question.", "example": null, "broader": [], "narrower": [], "related": ["hypothetical-document-embeddings", "retrieval-augmented-generation", "agentic-rag"], "introduced": 2023, "sources": [{"title": "Query Rewriting for Retrieval-Augmented Large Language Models", "authors": "Ma et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.14283"}, {"title": "Query2doc: Query Expansion with Large Language Models", "authors": "Wang et al.", "year": 2023, "url": "https://arxiv.org/abs/2303.07678"}], "url": "https://protologue.com/t/query-rewriting/", "citation": "Protologue. (2026). Query Rewriting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0131). https://protologue.com/t/query-rewriting/"} -{"id": "PTL-0132", "slug": "contextual-retrieval", "term": "Contextual Retrieval", "aliases": ["contextual embeddings", "contextual BM25", "chunk contextualization"], "category": "Retrieval & Tool Use", "definition": "Contextual retrieval is a RAG preprocessing technique in which a language model writes a short explanation of where each chunk fits in its source document and prepends it to the chunk before the chunk is embedded and indexed for keyword search.", "description": "Splitting removes context, so a chunk such as \"revenue grew 3% over the previous quarter\" no longer says which company or quarter it describes. Adding that context back improves both embedding and BM25 matching. Anthropic reported that contextual embeddings plus contextual BM25 cut the top-20 retrieval failure rate by 49% on its benchmarks, and by 67% with reranking added. Prompt caching keeps the cost of generating the context for every chunk low.", "example": null, "broader": [], "narrower": [], "related": ["chunking", "bm25", "hybrid-search", "reranking", "prompt-caching"], "introduced": 2024, "sources": [{"title": "Introducing Contextual Retrieval", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/contextual-retrieval"}], "url": "https://protologue.com/t/contextual-retrieval/", "citation": "Protologue. (2026). Contextual Retrieval. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0132). https://protologue.com/t/contextual-retrieval/"} -{"id": "PTL-0133", "slug": "graphrag", "term": "GraphRAG", "aliases": ["Graph RAG", "knowledge-graph RAG"], "category": "Retrieval & Tool Use", "definition": "GraphRAG is a retrieval-augmented generation approach that uses a language model to extract an entity-and-relationship graph from a document collection, summarizes communities of related entities, and answers questions from those summaries.", "description": "Standard RAG retrieves a handful of passages, which works for questions answered in one place but fails on global questions about a whole corpus, such as its main themes. GraphRAG answers these by combining partial answers from many community summaries. Building the graph requires many LLM calls, so indexing is far more expensive than for embedding-based RAG.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": ["agentic-rag"], "introduced": 2024, "sources": [{"title": "From Local to Global: A Graph RAG Approach to Query-Focused Summarization", "authors": "Edge et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.16130"}], "url": "https://protologue.com/t/graphrag/", "citation": "Protologue. (2026). GraphRAG. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0133). https://protologue.com/t/graphrag/"} -{"id": "PTL-0134", "slug": "agentic-rag", "term": "Agentic RAG", "aliases": ["agent-based RAG", "iterative retrieval"], "category": "Retrieval & Tool Use", "definition": "Agentic RAG is retrieval-augmented generation in which an agent, rather than a fixed pipeline, decides whether to retrieve, what to search for, which sources or tools to use, and whether the evidence is sufficient, retrieving iteratively until it can answer.", "description": "A fixed pipeline retrieves once per question, so it fails on multi-hop questions and on queries that need reformulation. Agentic RAG handles them by planning, issuing follow-up searches, and reflecting on results, at the cost of more model calls, higher latency, and less predictable behavior. Self-RAG, corrective RAG, and active retrieval are earlier steps in the same direction.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": ["ai-agent", "react", "query-rewriting", "self-rag", "corrective-rag"], "introduced": 2025, "sources": [{"title": "Agentic Retrieval-Augmented Generation: A Survey on Agentic RAG", "authors": "Singh et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.09136"}], "url": "https://protologue.com/t/agentic-rag/", "citation": "Protologue. (2026). Agentic RAG. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0134). https://protologue.com/t/agentic-rag/"} -{"id": "PTL-0135", "slug": "corrective-rag", "term": "Corrective RAG", "aliases": ["CRAG"], "category": "Retrieval & Tool Use", "definition": "Corrective RAG (CRAG) adds a lightweight evaluator that grades retrieved documents for relevance and, depending on the grade, uses them, discards them in favor of web search, or combines both before generation.", "description": "It targets the failure where poor retrieval silently produces a confident wrong answer. Retrieved documents are also decomposed into smaller strips and filtered so that only relevant parts reach the generator. The method plugs into existing RAG pipelines without retraining the generator.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": ["self-rag", "agentic-rag", "web-search-tool"], "introduced": 2024, "sources": [{"title": "Corrective Retrieval Augmented Generation", "authors": "Yan et al.", "year": 2024, "url": "https://arxiv.org/abs/2401.15884"}], "url": "https://protologue.com/t/corrective-rag/", "citation": "Protologue. (2026). Corrective RAG. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0135). https://protologue.com/t/corrective-rag/"} -{"id": "PTL-0136", "slug": "active-retrieval", "term": "Active Retrieval", "aliases": ["FLARE", "forward-looking active retrieval"], "category": "Retrieval & Tool Use", "definition": "Active retrieval augmented generation decides during generation when and what to retrieve; in FLARE, the model drafts the next sentence and, if it contains low-confidence tokens, uses that draft as a search query and regenerates the sentence with the retrieved evidence.", "description": "Retrieving once before generation suits short answers but not long-form text whose information needs change as it is written. Triggering retrieval only on uncertainty limits extra calls to the points where the model is likely to be wrong.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": ["log-probabilities", "self-rag", "agentic-rag"], "introduced": 2023, "sources": [{"title": "Active Retrieval Augmented Generation", "authors": "Jiang et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.06983"}], "url": "https://protologue.com/t/active-retrieval/", "citation": "Protologue. (2026). Active Retrieval. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0136). https://protologue.com/t/active-retrieval/"} -{"id": "PTL-0137", "slug": "web-search-tool", "term": "Web Search Tool", "aliases": ["web browsing", "search grounding", "grounding with search", "browsing tool"], "category": "Retrieval & Tool Use", "definition": "A web search tool lets a language model issue search queries, read the results, and ground its answer in current web content, usually returning citations to the pages it used.", "description": "Search is the main remedy for a model's knowledge cutoff and for questions about prices, news, and other changing facts. Early work trained a model to browse with a text-based browser and cite its sources. Today providers offer search as a built-in tool. Search results are untrusted input, so they are a vector for indirect prompt injection.", "example": null, "broader": ["function-calling"], "narrower": [], "related": ["knowledge-cutoff", "citation-generation", "retrieval-augmented-generation", "indirect-prompt-injection"], "introduced": 2021, "sources": [{"title": "WebGPT: Browser-assisted question-answering with human feedback", "authors": "Nakano et al.", "year": 2021, "url": "https://arxiv.org/abs/2112.09332"}, {"title": "Web search tool", "authors": "Anthropic", "year": 2025, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool"}], "url": "https://protologue.com/t/web-search-tool/", "citation": "Protologue. (2026). Web Search Tool. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0137). https://protologue.com/t/web-search-tool/"} -{"id": "PTL-0138", "slug": "code-execution-tool", "term": "Code Execution Tool", "aliases": ["code interpreter", "code sandbox", "Python tool"], "category": "Retrieval & Tool Use", "definition": "A code execution tool gives a language model a sandboxed environment in which it can write and run code, such as Python or shell commands, and read the output, so that it can compute, analyze data, and check its own work.", "description": "Running code replaces error-prone mental arithmetic and lets the model iterate on errors, which is the same idea behind program-aided language models. Sandboxes typically have no network access and resource limits, because the code is model-written and may be influenced by untrusted input.", "example": null, "broader": ["function-calling"], "narrower": [], "related": ["program-aided-language-models", "program-of-thoughts", "critic", "coding-agent"], "introduced": null, "sources": [{"title": "Code execution tool", "authors": "Anthropic", "year": 2025, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool"}, {"title": "PAL: Program-aided Language Models", "authors": "Gao et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.10435"}], "url": "https://protologue.com/t/code-execution-tool/", "citation": "Protologue. (2026). Code Execution Tool. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0138). https://protologue.com/t/code-execution-tool/"} -{"id": "PTL-0139", "slug": "citation-generation", "term": "Citation Generation", "aliases": ["attributed generation", "source attribution", "grounded citations"], "category": "Retrieval & Tool Use", "definition": "Citation generation is having a model attach citations to the sources that support each claim in its answer, so readers can verify the answer and unsupported claims are easier to spot.", "description": "Citations are usually drawn from retrieved documents or search results, and some APIs return them as structured spans pointing into the source. Evaluations have found that models often cite sources that do not fully support the sentence they are attached to, so citation quality, both recall and precision, needs to be measured rather than assumed.", "example": null, "broader": [], "narrower": [], "related": ["retrieval-augmented-generation", "web-search-tool", "hallucination"], "introduced": 2023, "sources": [{"title": "Enabling Large Language Models to Generate Text with Citations", "authors": "Gao et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.14627"}], "url": "https://protologue.com/t/citation-generation/", "citation": "Protologue. (2026). Citation Generation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0139). https://protologue.com/t/citation-generation/"} -{"id": "PTL-0140", "slug": "multi-agent-system", "term": "Multi-Agent System", "aliases": ["multi-agent framework", "MAS", "agent team"], "category": "Agents & Orchestration", "definition": "A multi-agent system is an application in which several LLM-based agents, each with its own role, instructions, tools, or context, interact by messaging, delegating, or debating to accomplish a task.", "description": "Splitting work across agents can parallelize research, keep each agent's context focused, and let specialized prompts handle different steps. It also multiplies token cost and adds coordination failures, such as agents duplicating work, losing information at handoffs, or reinforcing each other's mistakes. Common structures include orchestrator-workers, handoffs between specialists, and debate.", "example": null, "broader": [], "narrower": [], "related": ["ai-agent", "orchestrator-workers", "handoff", "multi-agent-debate", "agent2agent-protocol"], "introduced": null, "sources": [{"title": "Large Language Model based Multi-Agents: A Survey of Progress and Challenges", "authors": "Guo et al.", "year": 2024, "url": "https://arxiv.org/abs/2402.01680"}], "url": "https://protologue.com/t/multi-agent-system/", "citation": "Protologue. (2026). Multi-Agent System. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0140). https://protologue.com/t/multi-agent-system/"} -{"id": "PTL-0141", "slug": "plan-and-execute", "term": "Plan-and-Execute", "aliases": ["planner-executor", "plan-then-execute", "ReWOO", "LLMCompiler"], "category": "Agents & Orchestration", "definition": "Plan-and-execute is an agent design in which a planner model first writes a complete multi-step plan and executor calls then carry out the steps, rather than deciding one action at a time after every observation as in ReAct.", "description": "Planning up front reduces repeated reasoning over the growing history, cuts tokens and latency, and lets independent steps run in parallel. ReWOO plans with placeholders for tool results, and LLMCompiler schedules tool calls as a dependency graph. The trade-off is adaptability, so designs usually add replanning when a step fails or returns something unexpected.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["react", "plan-and-solve-prompting", "orchestrator-workers", "parallelization"], "introduced": 2023, "sources": [{"title": "ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Models", "authors": "Xu et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.18323"}, {"title": "An LLM Compiler for Parallel Function Calling", "authors": "Kim et al.", "year": 2023, "url": "https://arxiv.org/abs/2312.04511"}], "url": "https://protologue.com/t/plan-and-execute/", "citation": "Protologue. (2026). Plan-and-Execute. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0141). https://protologue.com/t/plan-and-execute/"} -{"id": "PTL-0142", "slug": "handoff", "term": "Handoff", "aliases": ["agent handoff", "agent transfer", "delegation"], "category": "Agents & Orchestration", "definition": "A handoff is the transfer of an ongoing task or conversation from one agent to another that specializes in it, typically implemented as a tool the first agent can call to delegate control.", "description": "Handoffs let a triage agent route users to, for example, a billing or technical support agent, each with its own instructions and tools. Unlike orchestrator-workers, where control returns to the orchestrator, a handoff passes control along. What context is passed with it decides whether the receiving agent can continue without asking again.", "example": null, "broader": [], "narrower": [], "related": ["routing", "orchestrator-workers", "multi-agent-system"], "introduced": null, "sources": [{"title": "Handoffs", "authors": "OpenAI", "year": 2025, "url": "https://openai.github.io/openai-agents-python/handoffs/"}], "url": "https://protologue.com/t/handoff/", "citation": "Protologue. (2026). Handoff. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0142). https://protologue.com/t/handoff/"} -{"id": "PTL-0143", "slug": "human-in-the-loop", "term": "Human-in-the-Loop", "aliases": ["HITL", "human approval", "human oversight", "human checkpoint"], "category": "Agents & Orchestration", "definition": "Human-in-the-loop is a design in which an AI system pauses at defined checkpoints for a person to approve, correct, or supply information before it continues, especially before consequential or irreversible actions.", "description": "Checkpoints trade autonomy for safety and accuracy. They are commonly placed before sending messages, spending money, deleting data, or deploying code, and when the agent is uncertain. Requiring confirmation for consequential actions is a key mitigation for prompt injection and excessive agency, because an attacker who steers the agent still cannot complete the action unseen.", "example": null, "broader": [], "narrower": [], "related": ["ai-agent", "excessive-agency", "computer-use-agent", "evaluator-optimizer"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}, {"title": "LLM06:2025 Excessive Agency", "authors": "OWASP Gen AI Security Project", "year": 2025, "url": "https://genai.owasp.org/llmrisk/llm062025-excessive-agency/"}], "url": "https://protologue.com/t/human-in-the-loop/", "citation": "Protologue. (2026). Human-in-the-Loop. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0143). https://protologue.com/t/human-in-the-loop/"} -{"id": "PTL-0144", "slug": "computer-use-agent", "term": "Computer-Use Agent", "aliases": ["computer use", "GUI agent", "browser agent", "browser use"], "category": "Agents & Orchestration", "definition": "A computer-use agent operates a graphical computer interface the way a person does, by looking at screenshots and issuing mouse clicks, keystrokes, and scrolls, so it can work with software that has no API.", "description": "The agent loop alternates between a screenshot and an action until the task is done. Benchmarks such as OSWorld measure performance on real desktop tasks. Because these agents read arbitrary on-screen content, they are exposed to prompt injection from web pages and documents, so they are run in isolated environments with human confirmation for sensitive actions.", "example": null, "broader": ["ai-agent"], "narrower": [], "related": ["multimodal-prompting", "human-in-the-loop", "indirect-prompt-injection"], "introduced": 2024, "sources": [{"title": "OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments", "authors": "Xie et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.07972"}, {"title": "Computer use tool", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool"}], "url": "https://protologue.com/t/computer-use-agent/", "citation": "Protologue. (2026). Computer-Use Agent. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0144). https://protologue.com/t/computer-use-agent/"} -{"id": "PTL-0145", "slug": "coding-agent", "term": "Coding Agent", "aliases": ["software engineering agent", "agentic coding", "AI coding assistant"], "category": "Agents & Orchestration", "definition": "A coding agent is an AI agent that works in a software repository by reading files, editing code, running commands and tests, and iterating on the results to complete programming tasks.", "description": "Research found that the interface matters as much as the model. Tools designed for a model, with concise file viewers, search, and editing commands that report errors, improved results over a raw shell. Coding agents are commonly evaluated on SWE-bench, which asks them to resolve real GitHub issues so that hidden tests pass.", "example": null, "broader": ["ai-agent"], "narrower": [], "related": ["code-execution-tool", "vibe-coding", "function-calling"], "introduced": 2024, "sources": [{"title": "SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering", "authors": "Yang et al.", "year": 2024, "url": "https://arxiv.org/abs/2405.15793"}, {"title": "SWE-bench: Can Language Models Resolve Real-World GitHub Issues?", "authors": "Jimenez et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.06770"}], "url": "https://protologue.com/t/coding-agent/", "citation": "Protologue. (2026). Coding Agent. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0145). https://protologue.com/t/coding-agent/"} -{"id": "PTL-0146", "slug": "vibe-coding", "term": "Vibe Coding", "aliases": [], "category": "Agents & Orchestration", "definition": "Vibe coding is building software by describing what you want to an AI model in natural language and accepting the code it generates, largely without reading or understanding that code.", "description": "Andrej Karpathy coined the term in February 2025 for throwaway projects where speed matters more than correctness. Collins English Dictionary named it its 2025 word of the year. The term is often used loosely for any AI-assisted programming, but its original sense, not reviewing the code, carries real risks of security flaws and unmaintainable software when applied to production systems.", "example": null, "broader": [], "narrower": [], "related": ["coding-agent", "prompt-engineering", "agentic-engineering"], "introduced": 2025, "sources": [{"title": "Post introducing \"vibe coding\"", "authors": "Karpathy", "year": 2025, "url": "https://x.com/karpathy/status/1886192184808149383"}], "url": "https://protologue.com/t/vibe-coding/", "citation": "Protologue. (2026). Vibe Coding. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0146). https://protologue.com/t/vibe-coding/"} -{"id": "PTL-0147", "slug": "agent2agent-protocol", "term": "Agent2Agent Protocol", "aliases": ["A2A", "A2A protocol"], "category": "Agents & Orchestration", "definition": "The Agent2Agent (A2A) protocol is an open specification that lets AI agents built by different vendors and frameworks discover each other's capabilities, delegate tasks, and exchange results.", "description": "Google announced A2A in April 2025 and later contributed it to the Linux Foundation. It is designed to complement the Model Context Protocol. MCP connects an agent to tools and data, while A2A connects agents to other agents. Agents advertise what they can do in a machine-readable agent card.", "example": null, "broader": [], "narrower": [], "related": ["model-context-protocol", "multi-agent-system", "handoff"], "introduced": 2025, "sources": [{"title": "Announcing the Agent2Agent Protocol (A2A)", "authors": "Google", "year": 2025, "url": "https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/"}, {"title": "A2A Protocol", "authors": "Linux Foundation A2A Project", "year": 2025, "url": "https://a2a-protocol.org/latest/"}], "url": "https://protologue.com/t/agent2agent-protocol/", "citation": "Protologue. (2026). Agent2Agent Protocol. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0147). https://protologue.com/t/agent2agent-protocol/"} -{"id": "PTL-0148", "slug": "agent-skills", "term": "Agent Skills", "aliases": ["skills", "SKILL.md", "progressive disclosure"], "category": "Agents & Orchestration", "definition": "Agent skills are packaged folders of instructions, scripts, and reference files, each anchored by a SKILL.md file with a name and description, that an agent loads only when a task calls for them.", "description": "Only each skill's short description sits in the agent's context at startup. The full instructions are read when relevant, and supporting files are opened only if needed, a pattern called progressive disclosure. This lets an agent carry many specialized procedures without filling its context window, and lets organizations package their own workflows for reuse.", "example": null, "broader": [], "narrower": [], "related": ["context-engineering", "ai-agent", "model-context-protocol", "system-prompt"], "introduced": 2025, "sources": [{"title": "Equipping agents for the real world with Agent Skills", "authors": "Anthropic", "year": 2025, "url": "https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills"}], "url": "https://protologue.com/t/agent-skills/", "citation": "Protologue. (2026). Agent Skills. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0148). https://protologue.com/t/agent-skills/"} -{"id": "PTL-0149", "slug": "context-compaction", "term": "Context Compaction", "aliases": ["compaction", "conversation summarization", "context summarization"], "category": "Agents & Orchestration", "definition": "Context compaction is summarizing an agent's or conversation's history when it nears the context limit and continuing with the summary in place of the full history, so that long tasks can run beyond one context window.", "description": "Good compaction keeps decisions, open problems, and key details while dropping redundant tool output. Overly aggressive summaries lose information the agent later needs. It is one of several long-horizon strategies in context engineering, alongside structured note-taking outside the context and delegating work to sub-agents with fresh contexts. Research on long-horizon agents reports that rules and constraints an agent follows while they are visible can be dropped from compaction summaries, after which the agent violates them, and that pinning such constraints outside the summarized history greatly reduces these violations.", "example": null, "broader": [], "narrower": [], "related": ["context-engineering", "context-window", "agent-memory", "context-rot"], "introduced": 2025, "sources": [{"title": "Effective context engineering for AI agents", "authors": "Anthropic", "year": 2025, "url": "https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents"}, {"title": "Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents", "authors": "Chen et al.", "year": 2026, "url": "https://arxiv.org/abs/2606.22528"}], "url": "https://protologue.com/t/context-compaction/", "citation": "Protologue. (2026). Context Compaction. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0149). https://protologue.com/t/context-compaction/"} -{"id": "PTL-0150", "slug": "prompt-optimization", "term": "Prompt Optimization", "aliases": ["automatic prompt optimization", "automated prompt engineering"], "category": "Prompt Optimization", "definition": "Prompt optimization is the automatic search for a better prompt, in which a language model proposes candidate instructions or examples and each candidate is scored on an evaluation set until performance stops improving.", "description": "Methods differ in how they propose changes. Some resample paraphrases, as in APE, some show the optimizer a history of scored prompts, as in OPRO, some critique errors in natural language and edit accordingly, as in ProTeGi and TextGrad, and some use evolutionary search, as in Promptbreeder and EvoPrompt. All of them depend on a representative evaluation set and metric, and can overfit to it.", "example": null, "broader": [], "narrower": ["protegi", "textgrad", "promptbreeder", "evoprompt", "agentic-context-engineering"], "related": ["automatic-prompt-engineer", "opro", "dspy", "evals"], "introduced": null, "sources": [{"title": "The Prompt Report: A Systematic Survey of Prompt Engineering Techniques", "authors": "Schulhoff et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.06608"}, {"title": "Automatic Prompt Optimization with \"Gradient Descent\" and Beam Search", "authors": "Pryzant et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.03495"}], "url": "https://protologue.com/t/prompt-optimization/", "citation": "Protologue. (2026). Prompt Optimization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0150). https://protologue.com/t/prompt-optimization/"} -{"id": "PTL-0151", "slug": "protegi", "term": "ProTeGi", "aliases": ["Prompt Optimization with Textual Gradients", "textual gradients"], "category": "Prompt Optimization", "definition": "ProTeGi (Prompt Optimization with Textual Gradients) improves a prompt by having a language model describe, in natural language, what is wrong with it based on the errors it produces, then edit the prompt to fix those problems, keeping the best candidates with beam search.", "description": "The natural-language critique plays the role of a gradient, and editing the prompt plays the role of a step in the opposite direction. A bandit-style selection procedure limits how many evaluations are needed to choose among candidates.", "example": null, "broader": ["prompt-optimization"], "narrower": [], "related": ["textgrad", "automatic-prompt-engineer", "opro"], "introduced": 2023, "sources": [{"title": "Automatic Prompt Optimization with \"Gradient Descent\" and Beam Search", "authors": "Pryzant et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.03495"}], "url": "https://protologue.com/t/protegi/", "citation": "Protologue. (2026). ProTeGi. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0151). https://protologue.com/t/protegi/"} -{"id": "PTL-0152", "slug": "textgrad", "term": "TextGrad", "aliases": ["textual backpropagation"], "category": "Prompt Optimization", "definition": "TextGrad is a framework that optimizes systems built from LLM calls by propagating natural-language feedback backward through the computation, so that each component, such as a prompt or a piece of code, is revised according to criticism of the final output.", "description": "It applies the idea of backpropagation to text, with an API modeled on PyTorch. Its authors used it to optimize prompts, code solutions, and answers to scientific questions. Like other feedback-driven optimizers, it is only as good as the evaluation signal it receives.", "example": null, "broader": ["prompt-optimization"], "narrower": [], "related": ["protegi", "dspy", "self-refine"], "introduced": 2024, "sources": [{"title": "TextGrad: Automatic \"Differentiation\" via Text", "authors": "Yuksekgonul et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.07496"}], "url": "https://protologue.com/t/textgrad/", "citation": "Protologue. (2026). TextGrad. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0152). https://protologue.com/t/textgrad/"} -{"id": "PTL-0153", "slug": "promptbreeder", "term": "Promptbreeder", "aliases": [], "category": "Prompt Optimization", "definition": "Promptbreeder is an evolutionary prompt-optimization method in which a population of task prompts is mutated and selected by fitness on training examples, while the mutation prompts that generate the changes are themselves evolved.", "description": "Because the instructions for how to mutate prompts also improve over time, the method is described as self-referential. It discovered domain-specific prompts that outperformed hand-written chain-of-thought prompts on arithmetic and commonsense benchmarks, at the cost of many model calls.", "example": null, "broader": ["prompt-optimization"], "narrower": [], "related": ["evoprompt", "opro", "automatic-prompt-engineer"], "introduced": 2023, "sources": [{"title": "Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolution", "authors": "Fernando et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.16797"}], "url": "https://protologue.com/t/promptbreeder/", "citation": "Protologue. (2026). Promptbreeder. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0153). https://protologue.com/t/promptbreeder/"} -{"id": "PTL-0154", "slug": "evoprompt", "term": "EvoPrompt", "aliases": [], "category": "Prompt Optimization", "definition": "EvoPrompt optimizes prompts with evolutionary algorithms, such as genetic algorithms and differential evolution, in which a language model performs the crossover and mutation steps on a population of prompts.", "description": "Using the model as the evolutionary operator keeps every candidate a readable, coherent prompt while borrowing the exploration properties of classical evolutionary search. It needs only API access to the model, not its gradients.", "example": null, "broader": ["prompt-optimization"], "narrower": [], "related": ["promptbreeder", "automatic-prompt-engineer"], "introduced": 2023, "sources": [{"title": "EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizers", "authors": "Guo et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.08532"}], "url": "https://protologue.com/t/evoprompt/", "citation": "Protologue. (2026). EvoPrompt. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0154). https://protologue.com/t/evoprompt/"} -{"id": "PTL-0155", "slug": "model-cascade", "term": "Model Cascade", "aliases": ["LLM cascade", "FrugalGPT", "cascading"], "category": "Prompt Optimization", "definition": "A model cascade sends each query to a cheaper model first and escalates it to progressively more capable and expensive models only when a scoring function judges the cheaper model's answer unreliable.", "description": "Because many queries are easy, most are answered cheaply, and only hard ones pay for the strongest model. FrugalGPT reported matching the best single model's performance at a large reduction in cost. The design depends on a reliable way to judge when an answer is good enough. Routing, by contrast, chooses a model before any answer is generated.", "example": null, "broader": [], "narrower": [], "related": ["routing", "confidence-calibration", "llm-as-a-judge"], "introduced": 2023, "sources": [{"title": "FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance", "authors": "Chen et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.05176"}], "url": "https://protologue.com/t/model-cascade/", "citation": "Protologue. (2026). Model Cascade. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0155). https://protologue.com/t/model-cascade/"} -{"id": "PTL-0156", "slug": "rlvr", "term": "Reinforcement Learning with Verifiable Rewards", "aliases": ["RLVR", "RL from verifiable rewards", "outcome-based reinforcement learning"], "category": "Reasoning Models & Test-Time Compute", "definition": "Reinforcement learning with verifiable rewards (RLVR) trains a language model with rewards computed by an automatic check of correctness, such as whether a math answer matches the reference or code passes its tests, instead of by a learned reward model.", "description": "Verifiable rewards are hard to game in the ways a learned reward model can be, and large-scale RL with them is how reasoning models learn to produce long, self-correcting chains of thought. The approach is limited to tasks with checkable answers, so open-ended writing and judgment still rely on preference-based rewards.", "example": null, "broader": [], "narrower": [], "related": ["reasoning-model", "rlhf", "reward-model", "reward-hacking", "self-taught-reasoner"], "introduced": 2024, "sources": [{"title": "Tulu 3: Pushing Frontiers in Open Language Model Post-Training", "authors": "Lambert et al.", "year": 2024, "url": "https://arxiv.org/abs/2411.15124"}, {"title": "DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning", "authors": "DeepSeek-AI et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.12948"}], "url": "https://protologue.com/t/rlvr/", "citation": "Protologue. (2026). Reinforcement Learning with Verifiable Rewards. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0156). https://protologue.com/t/rlvr/"} -{"id": "PTL-0157", "slug": "budget-forcing", "term": "Budget Forcing", "aliases": ["s1", "wait token", "thinking budget control"], "category": "Reasoning Models & Test-Time Compute", "definition": "Budget forcing controls how long a reasoning model thinks at inference time, by forcibly ending its reasoning when a token budget is reached or by appending a word such as \"Wait\" when it tries to stop early, which makes it keep reasoning.", "description": "It was introduced with s1, a model fine-tuned on only about a thousand reasoning examples, where extending thinking with budget forcing improved accuracy on competition math. It is a simple way to trade compute for accuracy, though the gains flatten beyond a point.", "example": null, "broader": ["test-time-compute-scaling"], "narrower": [], "related": ["reasoning-model", "extended-thinking", "overthinking"], "introduced": 2025, "sources": [{"title": "s1: Simple test-time scaling", "authors": "Muennighoff et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.19393"}], "url": "https://protologue.com/t/budget-forcing/", "citation": "Protologue. (2026). Budget Forcing. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0157). https://protologue.com/t/budget-forcing/"} -{"id": "PTL-0158", "slug": "chain-of-thought-monitoring", "term": "Chain-of-Thought Monitoring", "aliases": ["CoT monitoring", "CoT monitorability", "reasoning trace monitoring"], "category": "Reasoning Models & Test-Time Compute", "definition": "Chain-of-thought monitoring is reading a model's reasoning trace, with automated monitors or people, to detect intentions to misbehave, such as plans to cheat on a task, before or alongside its actions.", "description": "Because reasoning models often state their intentions in natural language while solving hard tasks, their reasoning offers an unusual view into their decision making. Researchers from several labs have argued that this monitorability is valuable but fragile. Training pressure on the reasoning text, or architectures that reason without words, could remove it, and reasoning traces are not always faithful to the model's actual computation.", "example": null, "broader": [], "narrower": [], "related": ["reasoning-model", "unfaithful-chain-of-thought", "reward-hacking", "extended-thinking"], "introduced": 2025, "sources": [{"title": "Chain of Thought Monitorability: A New and Fragile Opportunity for AI Safety", "authors": "Korbak et al.", "year": 2025, "url": "https://arxiv.org/abs/2507.11473"}], "url": "https://protologue.com/t/chain-of-thought-monitoring/", "citation": "Protologue. (2026). Chain-of-Thought Monitoring. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0158). https://protologue.com/t/chain-of-thought-monitoring/"} -{"id": "PTL-0159", "slug": "red-teaming", "term": "Red Teaming", "aliases": ["adversarial testing", "AI red teaming", "automated red teaming"], "category": "Security & Adversarial Prompting", "definition": "Red teaming is adversarial testing of an AI model or system, by people or by other models, to find inputs that make it produce harmful, insecure, or otherwise unwanted behavior before attackers or users do.", "description": "Human red teamers bring creativity and domain expertise, while automated red teaming uses a language model to generate and refine attacks at scale. Findings feed training data, guardrails, and policy, and red teaming is repeated as models and defenses change.", "example": null, "broader": [], "narrower": [], "related": ["jailbreak", "prompt-injection", "guardrails", "pair-attack", "constitutional-classifiers"], "introduced": 2022, "sources": [{"title": "Red Teaming Language Models with Language Models", "authors": "Perez et al.", "year": 2022, "url": "https://arxiv.org/abs/2202.03286"}], "url": "https://protologue.com/t/red-teaming/", "citation": "Protologue. (2026). Red Teaming. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0159). https://protologue.com/t/red-teaming/"} -{"id": "PTL-0160", "slug": "guardrails", "term": "Guardrails", "aliases": ["safety filters", "input/output filtering", "safeguard model", "moderation", "content filter"], "category": "Security & Adversarial Prompting", "definition": "Guardrails are checks placed around a model call that screen inputs and outputs, using classifiers, rules, or a second model, to block, redact, or redirect content that violates a policy before it reaches the model or the user.", "description": "Typical guardrails detect jailbreak attempts and prompt injection, unsafe content, personal data, and off-topic requests. Safeguard models such as Llama Guard classify messages against a taxonomy of risks, and toolkits such as NeMo Guardrails define programmable rails for dialogue. Guardrails add latency and can over-block, and none is complete, so they are layered with model training and least-privilege design.", "example": null, "broader": [], "narrower": ["constitutional-classifiers"], "related": ["jailbreak", "prompt-injection", "over-refusal", "red-teaming"], "introduced": 2023, "sources": [{"title": "Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations", "authors": "Inan et al.", "year": 2023, "url": "https://arxiv.org/abs/2312.06674"}, {"title": "NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Rails", "authors": "Rebedea et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.10501"}], "url": "https://protologue.com/t/guardrails/", "citation": "Protologue. (2026). Guardrails. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0160). https://protologue.com/t/guardrails/"} -{"id": "PTL-0161", "slug": "dual-llm-pattern", "term": "Dual LLM Pattern", "aliases": ["privileged and quarantined LLM", "CaMeL"], "category": "Security & Adversarial Prompting", "definition": "The dual LLM pattern defends against prompt injection by splitting work between a privileged model, which sees only trusted input and can use tools, and a quarantined model, which processes untrusted content but has no tool access, with ordinary code passing references between them.", "description": "The privileged model never reads untrusted text directly, so instructions hidden in that text cannot trigger its tools. CaMeL extends the idea by having the privileged model write a program whose data flows are tracked and checked against security policies. These designs give security guarantees by construction rather than by training, at the cost of flexibility.", "example": null, "broader": [], "narrower": [], "related": ["prompt-injection", "indirect-prompt-injection", "lethal-trifecta", "spotlighting", "instruction-hierarchy"], "introduced": 2023, "sources": [{"title": "The Dual LLM pattern for building AI assistants that can resist prompt injection", "authors": "Willison", "year": 2023, "url": "https://simonwillison.net/2023/Apr/25/dual-llm-pattern/"}, {"title": "Defeating Prompt Injections by Design", "authors": "Debenedetti et al.", "year": 2025, "url": "https://arxiv.org/abs/2503.18813"}, {"title": "Design Patterns for Securing LLM Agents against Prompt Injections", "authors": "Beurer-Kellner et al.", "year": 2025, "url": "https://arxiv.org/abs/2506.08837"}], "url": "https://protologue.com/t/dual-llm-pattern/", "citation": "Protologue. (2026). Dual LLM Pattern. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0161). https://protologue.com/t/dual-llm-pattern/"} -{"id": "PTL-0162", "slug": "tool-poisoning", "term": "Tool Poisoning", "aliases": ["tool poisoning attack", "MCP tool poisoning"], "category": "Security & Adversarial Prompting", "definition": "Tool poisoning is an attack in which malicious instructions are hidden in a tool's description or metadata, such as an MCP server's tool definitions, so that the agent reading the description is steered into harmful actions that the user does not see.", "description": "Agents read tool descriptions as trusted context, but users rarely see them in full. A poisoned tool can instruct the agent to read sensitive files or to send data through another, legitimate tool. Mitigations include showing full tool descriptions, pinning tool versions so descriptions cannot change silently, and installing servers only from trusted sources.", "example": null, "broader": ["indirect-prompt-injection"], "narrower": [], "related": ["model-context-protocol", "function-calling", "lethal-trifecta"], "introduced": 2025, "sources": [{"title": "MCP Security Notification: Tool Poisoning Attacks", "authors": "Invariant Labs", "year": 2025, "url": "https://invariantlabs.ai/blog/mcp-security-notification-tool-poisoning-attacks"}], "url": "https://protologue.com/t/tool-poisoning/", "citation": "Protologue. (2026). Tool Poisoning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0162). https://protologue.com/t/tool-poisoning/"} -{"id": "PTL-0163", "slug": "lethal-trifecta", "term": "Lethal Trifecta", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "The lethal trifecta is the combination of three capabilities that makes an AI agent vulnerable to data theft through prompt injection, namely access to private data, exposure to untrusted content, and the ability to communicate externally.", "description": "Any one or two are manageable, but with all three an attacker who plants instructions in content the agent reads can make it send private data out. Because no prompt-injection defense is fully reliable, the practical advice is to remove at least one of the three from any agent configuration.", "example": null, "broader": [], "narrower": [], "related": ["prompt-injection", "indirect-prompt-injection", "excessive-agency", "dual-llm-pattern", "tool-poisoning"], "introduced": 2025, "sources": [{"title": "The lethal trifecta for AI agents: private data, untrusted content, and external communication", "authors": "Willison", "year": 2025, "url": "https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/"}], "url": "https://protologue.com/t/lethal-trifecta/", "citation": "Protologue. (2026). Lethal Trifecta. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0163). https://protologue.com/t/lethal-trifecta/"} -{"id": "PTL-0164", "slug": "crescendo-attack", "term": "Crescendo Attack", "aliases": ["Crescendo", "multi-turn jailbreak"], "category": "Security & Adversarial Prompting", "definition": "The Crescendo attack is a multi-turn jailbreak that starts with harmless questions on a topic and gradually escalates over several turns, building on the model's own earlier answers until it produces content it would refuse if asked directly.", "description": "Each individual message looks benign, so defenses that check single prompts miss it. The attack exploits the model's tendency to stay consistent with the conversation so far. Defenses need to evaluate the trajectory of a conversation, not only its latest turn.", "example": null, "broader": ["jailbreak"], "narrower": [], "related": ["many-shot-jailbreaking", "multi-turn-degradation", "guardrails"], "introduced": 2024, "sources": [{"title": "Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attack", "authors": "Russinovich et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.01833"}], "url": "https://protologue.com/t/crescendo-attack/", "citation": "Protologue. (2026). Crescendo Attack. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0164). https://protologue.com/t/crescendo-attack/"} -{"id": "PTL-0165", "slug": "pair-attack", "term": "PAIR", "aliases": ["Prompt Automatic Iterative Refinement", "automated jailbreaking"], "category": "Security & Adversarial Prompting", "definition": "PAIR (Prompt Automatic Iterative Refinement) is an automated jailbreak method in which an attacker language model repeatedly proposes jailbreak prompts against a target model and refines them based on the target's responses, needing only black-box access.", "description": "The original work reported successful jailbreaks often within about twenty queries, and the resulting prompts are readable, unlike adversarial suffixes. It is widely used as a baseline for automated red teaming.", "example": null, "broader": ["jailbreak"], "narrower": [], "related": ["red-teaming", "adversarial-suffix"], "introduced": 2023, "sources": [{"title": "Jailbreaking Black Box Large Language Models in Twenty Queries", "authors": "Chao et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.08419"}], "url": "https://protologue.com/t/pair-attack/", "citation": "Protologue. (2026). PAIR. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0165). https://protologue.com/t/pair-attack/"} -{"id": "PTL-0166", "slug": "excessive-agency", "term": "Excessive Agency", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Excessive agency is the vulnerability of giving an LLM-based system more functionality, permissions, or autonomy than its task requires, so that a manipulated or mistaken model can take damaging actions.", "description": "It is listed as LLM06 in the OWASP Top 10 for LLM Applications (2025), which names three root causes, excessive functionality, excessive permissions, and excessive autonomy. Mitigations are least-privilege tools and credentials, narrowly scoped functions instead of open-ended ones, and human approval for high-impact actions.", "example": null, "broader": [], "narrower": [], "related": ["human-in-the-loop", "lethal-trifecta", "prompt-injection", "function-calling"], "introduced": null, "sources": [{"title": "LLM06:2025 Excessive Agency", "authors": "OWASP Gen AI Security Project", "year": 2025, "url": "https://genai.owasp.org/llmrisk/llm062025-excessive-agency/"}], "url": "https://protologue.com/t/excessive-agency/", "citation": "Protologue. (2026). Excessive Agency. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0166). https://protologue.com/t/excessive-agency/"} -{"id": "PTL-0167", "slug": "deliberative-alignment", "term": "Deliberative Alignment", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Deliberative alignment is a safety-training method in which a reasoning model is taught the text of a safety specification and trained to recall and reason about the relevant policies in its chain of thought before answering.", "description": "Instead of learning safe behavior only from labeled examples, the model learns to consult explicit rules at inference time. Its authors reported better resistance to jailbreaks together with fewer unnecessary refusals. It is related to constitutional AI, which also trains from written principles.", "example": null, "broader": [], "narrower": [], "related": ["constitutional-ai", "reasoning-model", "over-refusal", "jailbreak"], "introduced": 2024, "sources": [{"title": "Deliberative Alignment: Reasoning Enables Safer Language Models", "authors": "Guan et al.", "year": 2024, "url": "https://arxiv.org/abs/2412.16339"}], "url": "https://protologue.com/t/deliberative-alignment/", "citation": "Protologue. (2026). Deliberative Alignment. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0167). https://protologue.com/t/deliberative-alignment/"} -{"id": "PTL-0168", "slug": "constitutional-classifiers", "term": "Constitutional Classifiers", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Constitutional classifiers are input and output safeguard classifiers trained on synthetic data generated from a written constitution that defines permitted and restricted content, designed to block universal jailbreaks.", "description": "Because the training data is generated from natural-language rules, the classifiers can be updated as threats change by editing the constitution. Their authors reported that thousands of hours of red teaming found no universal jailbreak against the protected system, at a modest cost in refusals and compute.", "example": null, "broader": ["guardrails"], "narrower": [], "related": ["constitutional-ai", "jailbreak", "red-teaming"], "introduced": 2025, "sources": [{"title": "Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming", "authors": "Sharma et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.18837"}], "url": "https://protologue.com/t/constitutional-classifiers/", "citation": "Protologue. (2026). Constitutional Classifiers. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0168). https://protologue.com/t/constitutional-classifiers/"} -{"id": "PTL-0169", "slug": "context-rot", "term": "Context Rot", "aliases": ["long-context degradation", "context degradation"], "category": "Failure Modes & Evaluation", "definition": "Context rot is the decline in a model's reliability as the amount of input in its context grows, even on simple tasks and well within its advertised context window.", "description": "A 2025 study of 18 models found performance degrading with input length in ways that depended on the task and on the content around the relevant information, such as similar-looking distractors. It is a practical reason to keep contexts lean, retrieve only what is needed, and compact long histories rather than relying on maximum context length.", "example": null, "broader": [], "narrower": [], "related": ["lost-in-the-middle", "needle-in-a-haystack", "context-window", "context-engineering", "context-compaction"], "introduced": 2025, "sources": [{"title": "Context Rot: How Increasing Input Tokens Impacts LLM Performance", "authors": "Hong et al.", "year": 2025, "url": "https://www.trychroma.com/research/context-rot"}], "url": "https://protologue.com/t/context-rot/", "citation": "Protologue. (2026). Context Rot. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0169). https://protologue.com/t/context-rot/"} -{"id": "PTL-0170", "slug": "overthinking", "term": "Overthinking", "aliases": ["overthinking problem", "excessive reasoning"], "category": "Failure Modes & Evaluation", "definition": "Overthinking is the tendency of reasoning models to spend far more reasoning tokens than a problem requires, for example writing long chains of thought for trivial arithmetic, which adds cost and latency with little or no accuracy gain.", "description": "Analysis of o1-style models found that later reasoning rounds on simple problems rarely contribute new solutions. Remedies include adjustable reasoning effort or budgets, routing easy queries to non-reasoning models, and training that rewards efficient reasoning.", "example": null, "broader": [], "narrower": [], "related": ["reasoning-model", "extended-thinking", "budget-forcing", "chain-of-draft", "test-time-compute-scaling"], "introduced": 2024, "sources": [{"title": "Do NOT Think That Much for 2+3=? On the Overthinking of o1-Like LLMs", "authors": "Chen et al.", "year": 2024, "url": "https://arxiv.org/abs/2412.21187"}], "url": "https://protologue.com/t/overthinking/", "citation": "Protologue. (2026). Overthinking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0170). https://protologue.com/t/overthinking/"} -{"id": "PTL-0171", "slug": "reversal-curse", "term": "Reversal Curse", "aliases": [], "category": "Failure Modes & Evaluation", "definition": "The reversal curse is the failure of language models trained on a fact stated as \"A is B\" to answer the reversed question \"what is B?\", for example knowing who a celebrity's mother is but not who that woman's famous son is.", "description": "It shows that models do not automatically store facts in both directions. In practice, providing the relevant fact in the prompt fixes it, since in-context reasoning handles the reversal, which is one more argument for retrieval over relying on memorized knowledge.", "example": null, "broader": [], "narrower": [], "related": ["hallucination", "knowledge-cutoff", "retrieval-augmented-generation"], "introduced": 2023, "sources": [{"title": "The Reversal Curse: LLMs trained on \"A is B\" fail to learn \"B is A\"", "authors": "Berglund et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.12288"}], "url": "https://protologue.com/t/reversal-curse/", "citation": "Protologue. (2026). Reversal Curse. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0171). https://protologue.com/t/reversal-curse/"} -{"id": "PTL-0172", "slug": "reward-hacking", "term": "Reward Hacking", "aliases": ["specification gaming", "reward overoptimization", "reward gaming"], "category": "Failure Modes & Evaluation", "definition": "Reward hacking is when a model trained or optimized against a reward finds ways to score highly that do not achieve the intended goal, exploiting flaws in the reward model, grader, or tests.", "description": "In language models it shows up as answers padded to look thorough, flattery that raters prefer, and code that special-cases tests instead of solving the problem. Verifiable rewards reduce some forms, while careful graders, held-out tests, and monitoring of reasoning traces help detect others.", "example": null, "broader": [], "narrower": [], "related": ["reward-model", "rlhf", "rlvr", "sycophancy", "chain-of-thought-monitoring"], "introduced": null, "sources": [{"title": "Concrete Problems in AI Safety", "authors": "Amodei et al.", "year": 2016, "url": "https://arxiv.org/abs/1606.06565"}], "url": "https://protologue.com/t/reward-hacking/", "citation": "Protologue. (2026). Reward Hacking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0172). https://protologue.com/t/reward-hacking/"} -{"id": "PTL-0173", "slug": "irrelevant-context-distraction", "term": "Irrelevant Context Distraction", "aliases": ["distractibility", "GSM-IC"], "category": "Failure Modes & Evaluation", "definition": "Irrelevant context distraction is the drop in a model's accuracy when a prompt contains information that is unrelated to the question, such as an extra sentence in a math word problem, which the model wrongly incorporates into its reasoning.", "description": "A benchmark built by adding irrelevant sentences to grade-school math problems showed large accuracy drops across prompting methods. Instructing the model to ignore irrelevant information, using self-consistency, and filtering context first, as in System 2 Attention, all reduce the effect. It matters for RAG, where retrieved passages often include off-topic text.", "example": null, "broader": [], "narrower": [], "related": ["system-2-attention", "retrieval-augmented-generation", "context-rot", "prompt-sensitivity"], "introduced": 2023, "sources": [{"title": "Large Language Models Can Be Easily Distracted by Irrelevant Context", "authors": "Shi et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.00093"}], "url": "https://protologue.com/t/irrelevant-context-distraction/", "citation": "Protologue. (2026). Irrelevant Context Distraction. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0173). https://protologue.com/t/irrelevant-context-distraction/"} -{"id": "PTL-0174", "slug": "multi-turn-degradation", "term": "Multi-Turn Degradation", "aliases": ["lost in conversation", "multi-turn performance drop"], "category": "Failure Modes & Evaluation", "definition": "Multi-turn degradation is the drop in model performance when a task's requirements are revealed across several conversation turns instead of all at once, because models commit to early assumptions and fail to recover.", "description": "A large 2025 study found that models that performed well on fully specified single-turn instructions did markedly worse in multi-turn settings, mainly through increased unreliability rather than a loss of capability. The practical advice is to consolidate requirements into a fresh prompt when a conversation goes off track.", "example": null, "broader": [], "narrower": [], "related": ["instruction-following", "context-compaction", "crescendo-attack", "context-rot"], "introduced": 2025, "sources": [{"title": "LLMs Get Lost In Multi-Turn Conversation", "authors": "Laban et al.", "year": 2025, "url": "https://arxiv.org/abs/2505.06120"}], "url": "https://protologue.com/t/multi-turn-degradation/", "citation": "Protologue. (2026). Multi-Turn Degradation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0174). https://protologue.com/t/multi-turn-degradation/"} -{"id": "PTL-0175", "slug": "text-degeneration", "term": "Text Degeneration", "aliases": ["neural text degeneration", "repetition", "repetition loops"], "category": "Failure Modes & Evaluation", "definition": "Text degeneration is the tendency of language models, especially under greedy or beam-search decoding, to produce bland, repetitive, or looping text, such as the same phrase repeated over and over.", "description": "Maximizing likelihood at each step favors safe, high-probability continuations that reinforce themselves once repetition starts. Sampling methods such as top-p and top-k, repetition or frequency penalties, and modern training largely mitigate it, but loops still appear in long generations and agent traces.", "example": null, "broader": [], "narrower": [], "related": ["greedy-decoding", "top-p-sampling", "top-k-sampling", "temperature"], "introduced": 2019, "sources": [{"title": "The Curious Case of Neural Text Degeneration", "authors": "Holtzman et al.", "year": 2019, "url": "https://arxiv.org/abs/1904.09751"}], "url": "https://protologue.com/t/text-degeneration/", "citation": "Protologue. (2026). Text Degeneration. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0175). https://protologue.com/t/text-degeneration/"} -{"id": "PTL-0176", "slug": "over-refusal", "term": "Over-Refusal", "aliases": ["exaggerated safety", "false refusal", "overrefusal"], "category": "Failure Modes & Evaluation", "definition": "Over-refusal is a model declining safe requests because they superficially resemble harmful ones, such as refusing to explain how to kill a Python process.", "description": "It is the cost side of safety training, since overly cautious models frustrate users and withhold legitimate help. Test suites such as XSTest pair safe prompts with unsafe look-alikes to measure the balance, and methods such as deliberative alignment aim to reduce refusals while improving robustness.", "example": null, "broader": [], "narrower": [], "related": ["guardrails", "rlhf", "deliberative-alignment", "constitutional-classifiers"], "introduced": 2023, "sources": [{"title": "XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models", "authors": "Röttger et al.", "year": 2023, "url": "https://arxiv.org/abs/2308.01263"}], "url": "https://protologue.com/t/over-refusal/", "citation": "Protologue. (2026). Over-Refusal. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0176). https://protologue.com/t/over-refusal/"} -{"id": "PTL-0177", "slug": "llm-judge-bias", "term": "LLM Judge Bias", "aliases": ["position bias", "verbosity bias", "self-enhancement bias", "self-preference bias"], "category": "Failure Modes & Evaluation", "definition": "LLM judge bias is the set of systematic errors that language models make when grading outputs, notably preferring the answer shown first (position bias), longer answers (verbosity bias), and their own outputs (self-enhancement bias).", "description": "These biases can make automated evaluations favor the wrong prompt or model. Common mitigations are evaluating each pair in both orders and counting only consistent verdicts, instructing the judge to ignore length, using clear rubrics and reference answers, and checking judge agreement against a sample of human ratings.", "example": null, "broader": [], "narrower": [], "related": ["llm-as-a-judge", "evals", "sycophancy"], "introduced": 2023, "sources": [{"title": "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena", "authors": "Zheng et al.", "year": 2023, "url": "https://arxiv.org/abs/2306.05685"}], "url": "https://protologue.com/t/llm-judge-bias/", "citation": "Protologue. (2026). LLM Judge Bias. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0177). https://protologue.com/t/llm-judge-bias/"} -{"id": "PTL-0178", "slug": "data-contamination", "term": "Data Contamination", "aliases": ["benchmark contamination", "test set contamination", "training data leakage"], "category": "Failure Modes & Evaluation", "definition": "Data contamination is the presence of benchmark or test examples in a model's training data, which inflates its measured performance because it may have memorized the answers.", "description": "Since models are trained on large web crawls, public benchmarks often leak into training sets. Contamination can be detected, for example, by prompting a model to complete the beginning of test instances and checking for verbatim matches. For application evaluations, the safeguard is a private, regularly refreshed test set.", "example": null, "broader": [], "narrower": [], "related": ["evals", "knowledge-cutoff"], "introduced": 2023, "sources": [{"title": "Time Travel in LLMs: Tracing Data Contamination in Large Language Models", "authors": "Golchin and Surdeanu", "year": 2023, "url": "https://arxiv.org/abs/2308.08493"}], "url": "https://protologue.com/t/data-contamination/", "citation": "Protologue. (2026). Data Contamination. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0178). https://protologue.com/t/data-contamination/"} -{"id": "PTL-0179", "slug": "evals", "term": "Evals", "aliases": ["evaluations", "LLM evaluation", "eval suite", "test set"], "category": "Failure Modes & Evaluation", "definition": "Evals are systematic tests of a model or LLM application, consisting of a set of representative inputs and a grading method, used to measure performance against defined success criteria and to compare prompts, models, and changes.", "description": "Grading can be exact-match or code-based, done by an LLM judge with a rubric, or done by people. Code-based grading is fastest and most reliable where it applies. A good eval set mirrors real usage, including edge cases, and turns prompt engineering from guesswork into measurement. Without one, changes that fix one case can silently break others.", "example": null, "broader": [], "narrower": ["pass-at-k", "rag-evaluation"], "related": ["llm-as-a-judge", "prompt-optimization", "data-contamination"], "introduced": null, "sources": [{"title": "Define success criteria and build evaluations", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/test-and-evaluate/develop-tests"}, {"title": "Holistic Evaluation of Language Models", "authors": "Liang et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.09110"}], "url": "https://protologue.com/t/evals/", "citation": "Protologue. (2026). Evals. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0179). https://protologue.com/t/evals/"} -{"id": "PTL-0180", "slug": "pass-at-k", "term": "pass@k", "aliases": ["pass@1", "pass at k"], "category": "Failure Modes & Evaluation", "definition": "pass@k is an evaluation metric for code generation, and other tasks with automatic checks, defined as the probability that at least one of k sampled solutions to a problem passes its tests.", "description": "It was popularized with an unbiased estimator computed from n ≥ k samples per problem. pass@1 measures single-attempt reliability, while larger k measures whether the model can solve the problem at all, which is relevant when best-of-n sampling or verification is available.", "example": null, "broader": ["evals"], "narrower": [], "related": ["best-of-n-sampling", "coding-agent", "rlvr"], "introduced": 2021, "sources": [{"title": "Evaluating Large Language Models Trained on Code", "authors": "Chen et al.", "year": 2021, "url": "https://arxiv.org/abs/2107.03374"}], "url": "https://protologue.com/t/pass-at-k/", "citation": "Protologue. (2026). pass@k. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0180). https://protologue.com/t/pass-at-k/"} -{"id": "PTL-0181", "slug": "rag-evaluation", "term": "RAG Evaluation", "aliases": ["Ragas", "RAG metrics", "faithfulness", "context relevance"], "category": "Failure Modes & Evaluation", "definition": "RAG evaluation measures a retrieval-augmented system's retrieval and generation separately, typically checking whether the retrieved context is relevant, whether the answer is faithful to that context, and whether the answer addresses the question.", "description": "Separating the stages shows whether a bad answer came from retrieval or from generation. Frameworks such as Ragas compute these metrics automatically with an LLM, without reference answers, which makes it practical to compare chunking, retrieval, and prompt choices.", "example": null, "broader": ["evals"], "narrower": [], "related": ["retrieval-augmented-generation", "llm-as-a-judge", "hallucination", "chunking"], "introduced": 2023, "sources": [{"title": "Ragas: Automated Evaluation of Retrieval Augmented Generation", "authors": "Es et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.15217"}], "url": "https://protologue.com/t/rag-evaluation/", "citation": "Protologue. (2026). RAG Evaluation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0181). https://protologue.com/t/rag-evaluation/"} -{"id": "PTL-0182", "slug": "kv-cache", "term": "KV Cache", "aliases": ["key-value cache", "KV caching"], "category": "Foundations", "definition": "The KV cache stores the attention keys and values a Transformer has already computed for earlier tokens, so that generating each new token requires computing only that token's keys and values instead of reprocessing the whole sequence.", "description": "Caching makes generation fast, but its memory grows with context length and with the number of concurrent requests, which is a main constraint on long contexts and serving costs. Serving systems such as vLLM manage it in pages to reduce waste. Prompt caching extends the idea across requests by keeping the cache for a shared prompt prefix, which is why cached prompts must begin with identical content to get the discount.", "example": null, "broader": [], "narrower": [], "related": ["prompt-caching", "context-window", "token"], "introduced": null, "sources": [{"title": "Efficient Memory Management for Large Language Model Serving with PagedAttention", "authors": "Kwon et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.06180"}, {"title": "Prompt caching", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-caching"}], "url": "https://protologue.com/t/kv-cache/", "citation": "Protologue. (2026). KV Cache. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0182). https://protologue.com/t/kv-cache/"} -{"id": "PTL-0183", "slug": "knowledge-distillation", "term": "Knowledge Distillation", "aliases": ["distillation", "model distillation", "teacher-student training"], "category": "Foundations", "definition": "Knowledge distillation is training a smaller student model to imitate a larger teacher model, using the teacher's output probabilities or generated responses as training targets, so that the student keeps much of the teacher's ability at lower cost.", "description": "The original method trains on the teacher's full probability distribution, whose soft targets carry more information than single correct labels. With LLMs, distillation is commonly done by fine-tuning a small model on responses, including reasoning traces, generated by a large one, which is how several small reasoning models have been built. Some model providers' terms restrict using their outputs to train competing models.", "example": null, "broader": ["fine-tuning"], "narrower": [], "related": ["reasoning-model", "model-cascade"], "introduced": 2015, "sources": [{"title": "Distilling the Knowledge in a Neural Network", "authors": "Hinton et al.", "year": 2015, "url": "https://arxiv.org/abs/1503.02531"}, {"title": "DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning", "authors": "DeepSeek-AI et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.12948"}], "url": "https://protologue.com/t/knowledge-distillation/", "citation": "Protologue. (2026). Knowledge Distillation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0183). https://protologue.com/t/knowledge-distillation/"} -{"id": "PTL-0184", "slug": "emergent-abilities", "term": "Emergent Abilities", "aliases": ["emergence", "emergent capabilities"], "category": "Foundations", "definition": "Emergent abilities are capabilities that appear in large language models above a certain scale but are near chance in smaller ones, such as multi-step arithmetic or benefiting from chain-of-thought prompting.", "description": "The idea explained why some prompting techniques only work with large models. It is disputed. Later analysis argued that many apparent jumps are artifacts of all-or-nothing metrics such as exact match, and that smoother metrics show gradual improvement with scale. The practical lesson stands either way, which is that a technique that fails on a small model may work on a larger one, and the reverse.", "example": null, "broader": [], "narrower": [], "related": ["large-language-model", "chain-of-thought", "in-context-learning", "benchmark"], "introduced": 2022, "sources": [{"title": "Emergent Abilities of Large Language Models", "authors": "Wei et al.", "year": 2022, "url": "https://arxiv.org/abs/2206.07682"}, {"title": "Are Emergent Abilities of Large Language Models a Mirage?", "authors": "Schaeffer et al.", "year": 2023, "url": "https://arxiv.org/abs/2304.15004"}], "url": "https://protologue.com/t/emergent-abilities/", "citation": "Protologue. (2026). Emergent Abilities. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0184). https://protologue.com/t/emergent-abilities/"} -{"id": "PTL-0185", "slug": "benchmark", "term": "Benchmark", "aliases": ["LLM benchmark", "evaluation benchmark"], "category": "Benchmarks", "definition": "A benchmark is a fixed, public set of test tasks with a standard scoring method, used to measure and compare the capabilities of language models.", "description": "Reported scores depend on the prompting setup, such as the number of examples, whether chain-of-thought or extended thinking is used, and how many attempts are sampled, so scores are only comparable under the same conditions. Public benchmarks also risk data contamination and eventually saturate. They are useful for choosing models, but an application's own evals are the better guide to how a model will perform on its tasks.", "example": null, "broader": [], "narrower": ["benchmark-saturation", "mmlu", "mmlu-pro", "gpqa", "humanitys-last-exam", "big-bench-hard", "arc-agi", "simpleqa", "truthfulqa", "hellaswag", "mmmu", "gsm8k", "math-benchmark", "aime", "humaneval", "livecodebench", "swe-bench", "terminal-bench", "tau-bench", "osworld", "gaia", "browsecomp", "ifeval", "mt-bench", "chatbot-arena", "ruler"], "related": ["evals", "data-contamination", "pass-at-k"], "introduced": null, "sources": [{"title": "Holistic Evaluation of Language Models", "authors": "Liang et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.09110"}, {"title": "Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models", "authors": "Srivastava et al.", "year": 2022, "url": "https://arxiv.org/abs/2206.04615"}], "url": "https://protologue.com/t/benchmark/", "citation": "Protologue. (2026). Benchmark. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0185). https://protologue.com/t/benchmark/"} -{"id": "PTL-0186", "slug": "benchmark-saturation", "term": "Benchmark Saturation", "aliases": ["saturated benchmark"], "category": "Benchmarks", "definition": "Benchmark saturation is when the best models score near a benchmark's maximum, so that it no longer distinguishes between them and its remaining errors mostly reflect flawed or ambiguous questions.", "description": "Saturation has followed every widely used benchmark, often within a few years, and is a main reason new, harder benchmarks keep appearing. MMLU-Pro and Humanity's Last Exam were both created because earlier benchmarks had saturated. Contamination can make a benchmark look saturated before models have truly mastered it.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["data-contamination", "mmlu", "humanitys-last-exam"], "introduced": null, "sources": [{"title": "Humanity's Last Exam", "authors": "Phan et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.14249"}, {"title": "MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmark", "authors": "Wang et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.01574"}], "url": "https://protologue.com/t/benchmark-saturation/", "citation": "Protologue. (2026). Benchmark Saturation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0186). https://protologue.com/t/benchmark-saturation/"} -{"id": "PTL-0187", "slug": "mmlu", "term": "MMLU", "aliases": ["Massive Multitask Language Understanding"], "category": "Benchmarks", "definition": "MMLU (Massive Multitask Language Understanding) is a benchmark of four-option multiple-choice questions across 57 subjects, from elementary mathematics to law and medicine, that measures a model's breadth of knowledge and problem solving.", "description": "It was the standard headline score for general knowledge for several years and is traditionally reported with five examples in the prompt (5-shot). Frontier models now score near the top, so it is considered saturated, and it has largely been succeeded by harder variants such as MMLU-Pro.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["mmlu-pro", "gpqa", "benchmark-saturation", "few-shot-prompting"], "introduced": 2020, "sources": [{"title": "Measuring Massive Multitask Language Understanding", "authors": "Hendrycks et al.", "year": 2020, "url": "https://arxiv.org/abs/2009.03300"}], "url": "https://protologue.com/t/mmlu/", "citation": "Protologue. (2026). MMLU. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0187). https://protologue.com/t/mmlu/"} -{"id": "PTL-0188", "slug": "mmlu-pro", "term": "MMLU-Pro", "aliases": [], "category": "Benchmarks", "definition": "MMLU-Pro is a harder, reasoning-focused successor to MMLU that offers ten answer options instead of four and replaces trivial or noisy questions with more challenging ones.", "description": "More options lower the score obtainable by guessing, and the harder questions make chain-of-thought prompting matter more than it does on MMLU. Its creators also reported that scores vary less with the wording of the prompt than on the original benchmark.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["mmlu", "gpqa", "chain-of-thought", "prompt-sensitivity"], "introduced": 2024, "sources": [{"title": "MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmark", "authors": "Wang et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.01574"}], "url": "https://protologue.com/t/mmlu-pro/", "citation": "Protologue. (2026). MMLU-Pro. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0188). https://protologue.com/t/mmlu-pro/"} -{"id": "PTL-0189", "slug": "gpqa", "term": "GPQA", "aliases": ["GPQA Diamond", "Graduate-Level Google-Proof Q&A"], "category": "Benchmarks", "definition": "GPQA (Graduate-Level Google-Proof Q&A) is a benchmark of difficult multiple-choice questions in biology, physics, and chemistry, written by domain experts so that skilled non-experts cannot answer them reliably even with unrestricted web access.", "description": "Its high-quality \"Diamond\" subset is the version most often reported in model announcements. Because the questions resist search, it measures expert-level reasoning more than retrieval. It is also used to study scalable oversight, the question of how people can supervise models that know more than they do.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["mmlu-pro", "humanitys-last-exam", "reasoning-model"], "introduced": 2023, "sources": [{"title": "GPQA: A Graduate-Level Google-Proof Q&A Benchmark", "authors": "Rein et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.12022"}], "url": "https://protologue.com/t/gpqa/", "citation": "Protologue. (2026). GPQA. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0189). https://protologue.com/t/gpqa/"} -{"id": "PTL-0190", "slug": "humanitys-last-exam", "term": "Humanity's Last Exam", "aliases": ["HLE"], "category": "Benchmarks", "definition": "Humanity's Last Exam (HLE) is a benchmark of 2,500 expert-written questions across dozens of academic subjects, some with images, designed to remain hard for frontier models after earlier academic benchmarks saturated.", "description": "Questions were contributed by subject experts and kept only if leading models failed them at the time, and answers are short and automatically checkable. Its creators also measure calibration, how well a model's stated confidence matches its accuracy, because models often answer the questions they get wrong with high confidence.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["benchmark-saturation", "gpqa", "confidence-calibration"], "introduced": 2025, "sources": [{"title": "Humanity's Last Exam", "authors": "Phan et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.14249"}], "url": "https://protologue.com/t/humanitys-last-exam/", "citation": "Protologue. (2026). Humanity's Last Exam. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0190). https://protologue.com/t/humanitys-last-exam/"} -{"id": "PTL-0191", "slug": "big-bench-hard", "term": "BIG-Bench Hard", "aliases": ["BBH", "BIG-bench"], "category": "Benchmarks", "definition": "BIG-Bench Hard (BBH) is a set of 23 challenging tasks from the BIG-bench collection on which earlier language models performed below average human raters, used to measure multi-step reasoning.", "description": "Its creators showed that chain-of-thought prompting greatly improved results on these tasks, which made BBH a standard test of reasoning-elicitation techniques. BIG-bench itself is a collaborative collection of over 200 tasks.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["chain-of-thought", "few-shot-prompting"], "introduced": 2022, "sources": [{"title": "Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them", "authors": "Suzgun et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.09261"}, {"title": "Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models", "authors": "Srivastava et al.", "year": 2022, "url": "https://arxiv.org/abs/2206.04615"}], "url": "https://protologue.com/t/big-bench-hard/", "citation": "Protologue. (2026). BIG-Bench Hard. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0191). https://protologue.com/t/big-bench-hard/"} -{"id": "PTL-0192", "slug": "arc-agi", "term": "ARC-AGI", "aliases": ["ARC", "Abstraction and Reasoning Corpus", "ARC-AGI-2", "ARC Prize"], "category": "Benchmarks", "definition": "ARC-AGI (the Abstraction and Reasoning Corpus) is a benchmark of visual grid puzzles in which a model must infer a transformation rule from a few examples and apply it to a new grid, designed to measure how efficiently a system acquires new skills.", "description": "The puzzles are easy for most people but require reasoning that cannot be memorized, because each task is novel. François Chollet introduced it in 2019 alongside a definition of intelligence as skill-acquisition efficiency. Successive versions, such as ARC-AGI-2, were made harder as systems improved, and many results are reported with explicit compute costs.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["test-time-compute-scaling", "reasoning-model"], "introduced": 2019, "sources": [{"title": "On the Measure of Intelligence", "authors": "Chollet", "year": 2019, "url": "https://arxiv.org/abs/1911.01547"}, {"title": "ARC-AGI-2: A New Challenge for Frontier AI Reasoning Systems", "authors": "Chollet et al.", "year": 2025, "url": "https://arxiv.org/abs/2505.11831"}], "url": "https://protologue.com/t/arc-agi/", "citation": "Protologue. (2026). ARC-AGI. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0192). https://protologue.com/t/arc-agi/"} -{"id": "PTL-0193", "slug": "simpleqa", "term": "SimpleQA", "aliases": [], "category": "Benchmarks", "definition": "SimpleQA is a benchmark of short, fact-seeking questions with a single indisputable answer, collected adversarially against strong models, that measures whether a model answers factual questions correctly and declines when it does not know.", "description": "Answers are graded as correct, incorrect, or not attempted, so it rewards knowing what you don't know as well as knowing facts. It is used to measure hallucination in closed-book settings and the effect of adding search.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["hallucination", "confidence-calibration", "web-search-tool", "truthfulqa"], "introduced": 2024, "sources": [{"title": "Measuring short-form factuality in large language models", "authors": "Wei et al.", "year": 2024, "url": "https://arxiv.org/abs/2411.04368"}], "url": "https://protologue.com/t/simpleqa/", "citation": "Protologue. (2026). SimpleQA. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0193). https://protologue.com/t/simpleqa/"} -{"id": "PTL-0194", "slug": "truthfulqa", "term": "TruthfulQA", "aliases": [], "category": "Benchmarks", "definition": "TruthfulQA is a benchmark of questions crafted so that some people would answer them falsely because of common misconceptions, used to measure whether a model repeats popular falsehoods instead of answering truthfully.", "description": "Its creators found that larger models of the time were often less truthful, because they imitated human misconceptions in their training data more faithfully. It remains a common reference for truthfulness, though, like other older public benchmarks, it is exposed to data contamination.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["hallucination", "sycophancy", "simpleqa"], "introduced": 2021, "sources": [{"title": "TruthfulQA: Measuring How Models Mimic Human Falsehoods", "authors": "Lin et al.", "year": 2021, "url": "https://arxiv.org/abs/2109.07958"}], "url": "https://protologue.com/t/truthfulqa/", "citation": "Protologue. (2026). TruthfulQA. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0194). https://protologue.com/t/truthfulqa/"} -{"id": "PTL-0195", "slug": "hellaswag", "term": "HellaSwag", "aliases": [], "category": "Benchmarks", "definition": "HellaSwag is a commonsense reasoning benchmark in which a model must pick the most plausible continuation of a description of an everyday situation from four options, with wrong options generated and filtered to fool models.", "description": "When it was introduced, the questions were trivial for people but hard for the best models. Modern models score close to human level, so it is a standard example of a saturated benchmark, though it still appears in model reports.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["benchmark-saturation"], "introduced": 2019, "sources": [{"title": "HellaSwag: Can a Machine Really Finish Your Sentence?", "authors": "Zellers et al.", "year": 2019, "url": "https://arxiv.org/abs/1905.07830"}], "url": "https://protologue.com/t/hellaswag/", "citation": "Protologue. (2026). HellaSwag. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0195). https://protologue.com/t/hellaswag/"} -{"id": "PTL-0196", "slug": "mmmu", "term": "MMMU", "aliases": [], "category": "Benchmarks", "definition": "MMMU (Massive Multi-discipline Multimodal Understanding) is a benchmark of college-level questions that require reasoning over images, such as charts, diagrams, tables, and chemical structures, together with text, across 30 subjects in six disciplines.", "description": "It tests whether multimodal models can combine visual perception with domain knowledge, not only describe images. It is a standard headline score for vision-language models.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["multimodal-prompting", "mmlu"], "introduced": 2023, "sources": [{"title": "MMMU: A Massive Multi-discipline Multimodal Understanding and Reasoning Benchmark for Expert AGI", "authors": "Yue et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.16502"}], "url": "https://protologue.com/t/mmmu/", "citation": "Protologue. (2026). MMMU. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0196). https://protologue.com/t/mmmu/"} -{"id": "PTL-0197", "slug": "gsm8k", "term": "GSM8K", "aliases": ["Grade School Math 8K"], "category": "Benchmarks", "definition": "GSM8K is a benchmark of about 8,500 grade-school math word problems that each take several steps of basic arithmetic to solve, used to measure multi-step mathematical reasoning.", "description": "It was the main testbed for chain-of-thought, self-consistency, and many other reasoning techniques, and was introduced together with the idea of training verifiers to check solutions. Frontier models now solve nearly all of it, so it is saturated, but variants that add irrelevant information or change numbers still reveal brittleness.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["chain-of-thought", "self-consistency", "irrelevant-context-distraction", "math-benchmark"], "introduced": 2021, "sources": [{"title": "Training Verifiers to Solve Math Word Problems", "authors": "Cobbe et al.", "year": 2021, "url": "https://arxiv.org/abs/2110.14168"}], "url": "https://protologue.com/t/gsm8k/", "citation": "Protologue. (2026). GSM8K. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0197). https://protologue.com/t/gsm8k/"} -{"id": "PTL-0198", "slug": "math-benchmark", "term": "MATH", "aliases": ["MATH dataset", "MATH-500"], "category": "Benchmarks", "definition": "MATH is a benchmark of 12,500 competition mathematics problems, spanning seven subjects and five difficulty levels, each with a full step-by-step solution.", "description": "It is much harder than grade-school arithmetic and was long a key measure of mathematical reasoning. A 500-problem subset, MATH-500, created for research on process supervision, is the version most often reported today.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["gsm8k", "aime", "process-reward-model"], "introduced": 2021, "sources": [{"title": "Measuring Mathematical Problem Solving With the MATH Dataset", "authors": "Hendrycks et al.", "year": 2021, "url": "https://arxiv.org/abs/2103.03874"}, {"title": "Let's Verify Step by Step", "authors": "Lightman et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.20050"}], "url": "https://protologue.com/t/math-benchmark/", "citation": "Protologue. (2026). MATH. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0198). https://protologue.com/t/math-benchmark/"} -{"id": "PTL-0199", "slug": "aime", "term": "AIME", "aliases": ["AIME 2024", "AIME 2025", "American Invitational Mathematics Examination"], "category": "Benchmarks", "definition": "AIME, the American Invitational Mathematics Examination, is a US high-school mathematics competition whose problems, each with an integer answer, are widely used as a benchmark for reasoning models, usually identified by year, as in AIME 2024 or AIME 2025.", "description": "Each exam has only 15 problems, so scores are typically averaged over many sampled attempts and vary noticeably between runs. A new exam each year provides problems written after many models' training data was collected, which limits contamination.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["math-benchmark", "reasoning-model", "test-time-compute-scaling", "self-consistency"], "introduced": null, "sources": [{"title": "Learning to reason with LLMs", "authors": "OpenAI", "year": 2024, "url": "https://openai.com/index/learning-to-reason-with-llms/"}, {"title": "s1: Simple test-time scaling", "authors": "Muennighoff et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.19393"}], "url": "https://protologue.com/t/aime/", "citation": "Protologue. (2026). AIME. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0199). https://protologue.com/t/aime/"} -{"id": "PTL-0200", "slug": "humaneval", "term": "HumanEval", "aliases": [], "category": "Benchmarks", "definition": "HumanEval is a benchmark of 164 hand-written Python programming problems, each with a function signature, a description, and hidden unit tests, used to measure code generation with the pass@k metric.", "description": "It established functional correctness, whether generated code passes tests, as the standard for evaluating code models, rather than similarity to a reference solution. It is now saturated and small, so harder and contamination-resistant benchmarks such as LiveCodeBench and SWE-bench have taken its place.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["pass-at-k", "livecodebench", "swe-bench"], "introduced": 2021, "sources": [{"title": "Evaluating Large Language Models Trained on Code", "authors": "Chen et al.", "year": 2021, "url": "https://arxiv.org/abs/2107.03374"}], "url": "https://protologue.com/t/humaneval/", "citation": "Protologue. (2026). HumanEval. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0200). https://protologue.com/t/humaneval/"} -{"id": "PTL-0201", "slug": "livecodebench", "term": "LiveCodeBench", "aliases": [], "category": "Benchmarks", "definition": "LiveCodeBench is a coding benchmark that continuously collects new problems from programming contests, such as LeetCode, AtCoder, and Codeforces, so that models can be evaluated only on problems published after their training data was collected.", "description": "Dating each problem lets evaluators detect and avoid data contamination. Besides code generation, it covers self-repair, predicting the output of code, and predicting test outputs.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["data-contamination", "humaneval", "pass-at-k"], "introduced": 2024, "sources": [{"title": "LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code", "authors": "Jain et al.", "year": 2024, "url": "https://arxiv.org/abs/2403.07974"}], "url": "https://protologue.com/t/livecodebench/", "citation": "Protologue. (2026). LiveCodeBench. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0201). https://protologue.com/t/livecodebench/"} -{"id": "PTL-0202", "slug": "swe-bench", "term": "SWE-bench", "aliases": ["SWE-bench Verified"], "category": "Benchmarks", "definition": "SWE-bench is a benchmark of real GitHub issues from popular Python repositories, in which a model or agent must edit the codebase so that tests written for the actual fix pass.", "description": "It measures practical software engineering in large, unfamiliar codebases rather than isolated functions, and became a standard benchmark for coding agents. Because some original tasks were underspecified or had faulty tests, OpenAI released a 500-task subset screened by human developers, SWE-bench Verified, in 2024, and it became the most often reported version. In February 2026 OpenAI said it had stopped reporting SWE-bench Verified scores and recommended other developers do the same, citing an audit that found flawed tests and underspecified tasks among problems its models often failed, and contamination tests in which every frontier model it examined could reproduce the original human-written fix for some tasks. It recommended reporting SWE-bench Pro in the meantime.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["coding-agent", "humaneval", "terminal-bench", "data-contamination", "benchmark-saturation"], "introduced": 2023, "sources": [{"title": "SWE-bench: Can Language Models Resolve Real-World GitHub Issues?", "authors": "Jimenez et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.06770"}, {"title": "Introducing SWE-bench Verified", "authors": "OpenAI", "year": 2024, "url": "https://openai.com/index/introducing-swe-bench-verified/"}, {"title": "Why SWE-bench Verified no longer measures frontier coding capabilities", "authors": "OpenAI", "year": 2026, "url": "https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/"}], "url": "https://protologue.com/t/swe-bench/", "citation": "Protologue. (2026). SWE-bench. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0202). https://protologue.com/t/swe-bench/"} -{"id": "PTL-0203", "slug": "terminal-bench", "term": "Terminal-Bench", "aliases": [], "category": "Benchmarks", "definition": "Terminal-Bench is a benchmark of hard, realistic tasks that an AI agent must complete by running commands in a containerized Linux terminal, graded by automated tests of the final state of the environment.", "description": "Grading checks outcomes, not the commands used, so agents can solve tasks any way that works. It measures the command-line skills that coding and DevOps agents rely on, such as building software, configuring systems, and debugging.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["coding-agent", "swe-bench", "code-execution-tool"], "introduced": null, "sources": [{"title": "Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces", "authors": "Merrill et al.", "year": 2026, "url": "https://arxiv.org/abs/2601.11868"}], "url": "https://protologue.com/t/terminal-bench/", "citation": "Protologue. (2026). Terminal-Bench. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0203). https://protologue.com/t/terminal-bench/"} -{"id": "PTL-0204", "slug": "tau-bench", "term": "τ-bench", "aliases": ["tau-bench", "TAU-bench", "pass^k"], "category": "Benchmarks", "definition": "τ-bench is a benchmark in which an agent with API tools and a written domain policy, for example for airline or retail customer service, converses with a simulated user and is judged by whether the final database state is correct.", "description": "It tests tool use, policy following, and conversation together, as in real deployments. It introduced pass^k, the probability that an agent succeeds on all of k repeated trials of the same task, which exposes how inconsistent agents can be even when they often succeed once.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["function-calling", "ai-agent", "pass-at-k"], "introduced": 2024, "sources": [{"title": "τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains", "authors": "Yao et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.12045"}], "url": "https://protologue.com/t/tau-bench/", "citation": "Protologue. (2026). τ-bench. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0204). https://protologue.com/t/tau-bench/"} -{"id": "PTL-0205", "slug": "osworld", "term": "OSWorld", "aliases": [], "category": "Benchmarks", "definition": "OSWorld is a benchmark of open-ended tasks that computer-use agents must complete in real operating systems and applications, graded by scripts that check the resulting state of the computer.", "description": "Tasks span office software, web browsers, file management, and multi-application workflows. It is the standard benchmark for computer-use agents and showed a large gap between early agents and people.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["computer-use-agent", "multimodal-prompting"], "introduced": 2024, "sources": [{"title": "OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments", "authors": "Xie et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.07972"}], "url": "https://protologue.com/t/osworld/", "citation": "Protologue. (2026). OSWorld. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0205). https://protologue.com/t/osworld/"} -{"id": "PTL-0206", "slug": "gaia", "term": "GAIA", "aliases": [], "category": "Benchmarks", "definition": "GAIA is a benchmark for general AI assistants made of questions that are conceptually simple for people but require several steps of web browsing, file reading, multimodal understanding, and tool use to answer.", "description": "Each question has a single short answer, which makes grading exact despite the open-ended process. It contrasts with benchmarks of expert knowledge by testing whether assistants can reliably carry out ordinary multi-step tasks.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["ai-agent", "web-search-tool", "browsecomp"], "introduced": 2023, "sources": [{"title": "GAIA: a benchmark for General AI Assistants", "authors": "Mialon et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.12983"}], "url": "https://protologue.com/t/gaia/", "citation": "Protologue. (2026). GAIA. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0206). https://protologue.com/t/gaia/"} -{"id": "PTL-0207", "slug": "browsecomp", "term": "BrowseComp", "aliases": [], "category": "Benchmarks", "definition": "BrowseComp is a benchmark of hard-to-find but easy-to-verify questions that require an agent to search the web persistently and creatively, often across many pages, to locate an entangled piece of information.", "description": "Answers are short so grading is simple, while finding them can take a person hours. It measures the persistence and search strategy of browsing and deep-research agents rather than knowledge the model already has.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["web-search-tool", "agentic-rag", "gaia"], "introduced": 2025, "sources": [{"title": "BrowseComp: A Simple Yet Challenging Benchmark for Browsing Agents", "authors": "Wei et al.", "year": 2025, "url": "https://arxiv.org/abs/2504.12516"}], "url": "https://protologue.com/t/browsecomp/", "citation": "Protologue. (2026). BrowseComp. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0207). https://protologue.com/t/browsecomp/"} -{"id": "PTL-0208", "slug": "ifeval", "term": "IFEval", "aliases": ["Instruction-Following Eval"], "category": "Benchmarks", "definition": "IFEval (Instruction-Following Eval) is a benchmark of prompts containing instructions whose compliance can be checked automatically, such as \"write at least 300 words\" or \"do not use any commas\", used to measure instruction following without a human or model judge.", "description": "Verifiable instructions make scoring objective and cheap, which is why IFEval is a common headline score for instruction-tuned models. It measures adherence to format and content constraints, not answer quality.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["instruction-following", "mt-bench"], "introduced": 2023, "sources": [{"title": "Instruction-Following Evaluation for Large Language Models", "authors": "Zhou et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.07911"}], "url": "https://protologue.com/t/ifeval/", "citation": "Protologue. (2026). IFEval. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0208). https://protologue.com/t/ifeval/"} -{"id": "PTL-0209", "slug": "mt-bench", "term": "MT-Bench", "aliases": [], "category": "Benchmarks", "definition": "MT-Bench is a benchmark of 80 two-turn questions across categories such as writing, reasoning, math, and coding, in which a strong LLM acts as the judge and scores each response.", "description": "It was introduced with the systematic study of LLM-as-a-judge, which found that strong model judges agreed with human preferences about as well as people agreed with each other, and also documented judge biases. Its small size and reliance on a model judge limit how finely it can separate today's models.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["llm-as-a-judge", "llm-judge-bias", "chatbot-arena"], "introduced": 2023, "sources": [{"title": "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena", "authors": "Zheng et al.", "year": 2023, "url": "https://arxiv.org/abs/2306.05685"}], "url": "https://protologue.com/t/mt-bench/", "citation": "Protologue. (2026). MT-Bench. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0209). https://protologue.com/t/mt-bench/"} -{"id": "PTL-0210", "slug": "chatbot-arena", "term": "Chatbot Arena", "aliases": ["LMArena", "Arena", "LMSYS Chatbot Arena"], "category": "Benchmarks", "definition": "Chatbot Arena is a public platform where people chat with two anonymous models side by side and vote for the better response, with the votes aggregated into a leaderboard of model ratings.", "description": "Crowdsourced preferences capture open-ended quality that fixed test sets miss, and new questions from real users resist contamination. Ratings can also reflect style, such as length and formatting, which is why style-controlled rankings are offered. The platform was later renamed, first LMArena and then Arena.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["mt-bench", "llm-judge-bias", "llm-as-a-judge"], "introduced": 2023, "sources": [{"title": "Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference", "authors": "Chiang et al.", "year": 2024, "url": "https://arxiv.org/abs/2403.04132"}], "url": "https://protologue.com/t/chatbot-arena/", "citation": "Protologue. (2026). Chatbot Arena. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0210). https://protologue.com/t/chatbot-arena/"} -{"id": "PTL-0211", "slug": "ruler", "term": "RULER", "aliases": [], "category": "Benchmarks", "definition": "RULER is a synthetic long-context benchmark that extends needle-in-a-haystack retrieval with harder tasks, such as multiple needles, multi-hop tracing, and aggregation, at configurable context lengths, to measure how much of its context window a model can actually use.", "description": "Its creators found that many models performed well on simple needle retrieval but degraded well before their advertised context length on the harder tasks. It is a standard reference for a model's effective, as opposed to claimed, context size.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["needle-in-a-haystack", "context-window", "context-rot", "lost-in-the-middle"], "introduced": 2024, "sources": [{"title": "RULER: What's the Real Context Size of Your Long-Context Language Models?", "authors": "Hsieh et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.06654"}], "url": "https://protologue.com/t/ruler/", "citation": "Protologue. (2026). RULER. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0211). https://protologue.com/t/ruler/"} -{"id": "PTL-0212", "slug": "harness-engineering", "term": "Harness Engineering", "aliases": ["agent harness", "agent harness engineering"], "category": "Agents & Orchestration", "definition": "Harness engineering is the design of the software around a language model that turns it into an agent, including the agent loop, tools, context management, permissions and safety controls, and feedback mechanisms such as tests and linters.", "description": "The term spread in early 2026, after OpenAI described building software with Codex agents in which engineers' main work shifted from writing code to designing the environments, constraints and feedback loops the agents work within. It treats an agent as a model plus a harness, so two agents built on the same model can differ widely in reliability. Harness engineering contains context engineering, which concerns what enters the context window at each step, and adds the runtime, tooling and control surfaces around it. Coding agents such as Codex and Claude Code are the most studied examples.", "example": null, "broader": [], "narrower": [], "related": ["context-engineering", "coding-agent", "ai-agent", "agentic-workflow", "context-compaction", "guardrails", "human-in-the-loop"], "introduced": 2026, "sources": [{"title": "Harness engineering: leveraging Codex in an agent-first world", "authors": "Lopopolo", "year": 2026, "url": "https://openai.com/index/harness-engineering/"}, {"title": "Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systems", "authors": "Barbaste et al.", "year": 2026, "url": "https://arxiv.org/abs/2609.00006"}], "url": "https://protologue.com/t/harness-engineering/", "citation": "Protologue. (2026). Harness Engineering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0212). https://protologue.com/t/harness-engineering/"} -{"id": "PTL-0213", "slug": "recursive-language-model", "term": "Recursive Language Model", "aliases": ["RLM", "RLMs", "recursive LM"], "category": "Reasoning Models & Test-Time Compute", "definition": "A recursive language model (RLM) is an inference strategy in which a long prompt is kept outside the model's context window as an external resource that the model inspects programmatically, splitting the task into parts and calling itself recursively on them.", "description": "RLMs address inputs far longer than a context window without first compressing or summarizing them. The model works in a code environment where the prompt is stored as data, reads only the parts it needs, and delegates sub-problems to recursive calls whose results it combines. The authors report handling inputs about two orders of magnitude beyond the context window and outperforming compaction and common agent scaffolds on long-context tasks at comparable cost. The approach treats long-context handling as a form of test-time compute rather than a property of the model.", "example": null, "broader": ["test-time-compute-scaling"], "narrower": [], "related": ["context-window", "context-compaction", "context-rot", "lost-in-the-middle", "code-execution-tool"], "introduced": 2025, "sources": [{"title": "Recursive Language Models", "authors": "Zhang et al.", "year": 2025, "url": "https://arxiv.org/abs/2512.24601"}], "url": "https://protologue.com/t/recursive-language-model/", "citation": "Protologue. (2026). Recursive Language Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0213). https://protologue.com/t/recursive-language-model/"} -{"id": "PTL-0214", "slug": "agentic-context-engineering", "term": "Agentic Context Engineering", "aliases": ["ACE"], "category": "Prompt Optimization", "definition": "Agentic Context Engineering (ACE) is a method for improving a language model application by treating its context, such as a system prompt or agent memory, as an evolving playbook that a loop of generation, reflection, and curation updates incrementally from execution feedback.", "description": "ACE adapts the inputs to a model rather than its weights. Its authors identify two failure modes of earlier context-adaptation methods, brevity bias, where summaries drop domain detail, and context collapse, where repeated rewriting erodes accumulated knowledge, and address them by adding and refining individual entries instead of rewriting the whole context. It can run offline to build a system prompt or online as agent memory, and learns from natural execution feedback without labeled data.", "example": null, "broader": ["prompt-optimization"], "narrower": [], "related": ["context-engineering", "agent-memory", "reflexion", "self-refine"], "introduced": 2025, "sources": [{"title": "Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models", "authors": "Zhang et al.", "year": 2025, "url": "https://arxiv.org/abs/2510.04618"}], "url": "https://protologue.com/t/agentic-context-engineering/", "citation": "Protologue. (2026). Agentic Context Engineering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0214). https://protologue.com/t/agentic-context-engineering/"} -{"id": "PTL-0215", "slug": "sleep-time-compute", "term": "Sleep-time Compute", "aliases": ["sleep-time computation"], "category": "Reasoning Models & Test-Time Compute", "definition": "Sleep-time compute is computation a language model performs on a context before any query arrives, anticipating likely questions and precomputing useful inferences so that less computation, and lower latency, is needed when queries come.", "description": "It moves part of test-time reasoning to idle time between interactions, which suits settings where a stable context, such as a codebase or document, is queried repeatedly. The cost can be amortized across several related queries about the same context. Its authors report that the benefit depends on how predictable the queries are from the context.", "example": null, "broader": ["test-time-compute-scaling"], "narrower": [], "related": ["agent-memory", "reasoning-model", "prompt-caching"], "introduced": 2025, "sources": [{"title": "Sleep-time Compute: Beyond Inference Scaling at Test-time", "authors": "Lin et al.", "year": 2025, "url": "https://arxiv.org/abs/2504.13171"}], "url": "https://protologue.com/t/sleep-time-compute/", "citation": "Protologue. (2026). Sleep-time Compute. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0215). https://protologue.com/t/sleep-time-compute/"} -{"id": "PTL-0216", "slug": "group-relative-policy-optimization", "term": "Group Relative Policy Optimization", "aliases": ["GRPO"], "category": "Reasoning Models & Test-Time Compute", "definition": "Group Relative Policy Optimization (GRPO) is a reinforcement learning algorithm for language models, a variant of proximal policy optimization, that samples a group of completions for each prompt and uses the group's average reward as the baseline for each completion's advantage instead of a learned value model.", "description": "Dropping the separate value model that PPO trains alongside the policy reduces the memory and compute needed for training. In common implementations each completion's advantage is its reward minus the group mean, divided by the group's standard deviation, optionally with a KL penalty toward a reference model. GRPO was introduced for mathematical reasoning and is widely used for reinforcement learning with verifiable rewards when training reasoning models.", "example": null, "broader": [], "narrower": [], "related": ["rlvr", "reasoning-model", "rlhf", "reward-model"], "introduced": 2024, "sources": [{"title": "DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models", "authors": "Shao et al.", "year": 2024, "url": "https://arxiv.org/abs/2402.03300"}, {"title": "GRPO Trainer", "authors": "Hugging Face", "year": 2025, "url": "https://huggingface.co/docs/trl/main/en/grpo_trainer"}], "url": "https://protologue.com/t/group-relative-policy-optimization/", "citation": "Protologue. (2026). Group Relative Policy Optimization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0216). https://protologue.com/t/group-relative-policy-optimization/"} -{"id": "PTL-0217", "slug": "speculative-decoding", "term": "Speculative Decoding", "aliases": ["speculative sampling", "assisted generation"], "category": "Foundations", "definition": "Speculative decoding is an inference technique in which a smaller, faster draft model proposes several next tokens and the large target model checks them in a single parallel pass, accepting or correcting them so that generation is faster while the output distribution stays the same as sampling from the target model alone.", "description": "Because the target model verifies several drafted tokens per forward pass instead of generating one token per pass, decoding needs fewer sequential calls to the large model. A sampling rule that accepts or rejects each drafted token is what preserves the target model's distribution. The speedup depends on how often the draft model's guesses are accepted. A closely related method was published shortly afterwards under the name speculative sampling.", "example": null, "broader": [], "narrower": [], "related": ["kv-cache", "greedy-decoding", "knowledge-distillation"], "introduced": 2022, "sources": [{"title": "Fast Inference from Transformers via Speculative Decoding", "authors": "Leviathan et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.17192"}, {"title": "Accelerating Large Language Model Decoding with Speculative Sampling", "authors": "Chen et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.01318"}], "url": "https://protologue.com/t/speculative-decoding/", "citation": "Protologue. (2026). Speculative Decoding. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0217). https://protologue.com/t/speculative-decoding/"} -{"id": "PTL-0218", "slug": "min-p-sampling", "term": "Min-p Sampling", "aliases": ["min_p", "min-p"], "category": "Foundations", "definition": "Min-p sampling is a truncation sampling method that keeps only tokens whose probability is at least a fixed fraction of the most likely token's probability, so that the cutoff tightens when the model is confident and loosens when it is not.", "description": "Unlike top-p sampling, which uses a fixed cumulative-probability mass, min-p scales its threshold by the top token's probability. It is offered as a sampling parameter in open-source inference engines such as vLLM and is usually combined with temperature. Its introducing paper reports better quality and diversity at high temperatures, but a later reanalysis argues that the evidence does not show min-p outperforming established sampling methods.", "example": null, "broader": [], "narrower": [], "related": ["top-p-sampling", "top-k-sampling", "temperature", "text-degeneration"], "introduced": 2024, "sources": [{"title": "Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputs", "authors": "Nguyen et al.", "year": 2024, "url": "https://arxiv.org/abs/2407.01082"}, {"title": "Min-p, Max Exaggeration: A Critical Analysis of Min-p Sampling in Language Models", "authors": "Schaeffer et al.", "year": 2025, "url": "https://arxiv.org/abs/2506.13681"}, {"title": "Sampling Parameters", "authors": "vLLM", "year": 2024, "url": "https://docs.vllm.ai/en/v0.6.6/dev/sampling_params.html"}], "url": "https://protologue.com/t/min-p-sampling/", "citation": "Protologue. (2026). Min-p Sampling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0218). https://protologue.com/t/min-p-sampling/"} -{"id": "PTL-0219", "slug": "activation-steering", "term": "Activation Steering", "aliases": ["activation addition", "activation engineering", "steering vectors"], "category": "Prompt Optimization", "definition": "Activation steering is a technique for controlling a language model's behavior at inference time by adding a steering vector, typically the difference between the model's internal activations on contrasting inputs, to its hidden activations during the forward pass, without changing its weights.", "description": "A steering vector can be computed from as little as one pair of contrasting prompts, such as \"Love\" and \"Hate\", or by averaging activation differences across many positive and negative examples, a variant called contrastive activation addition. Scaling the vector up or down, or subtracting it, strengthens or weakens the targeted behavior or topic. It needs no gradient-based optimization, but it requires access to the model's internal activations, which hosted models do not expose.", "example": null, "broader": [], "narrower": [], "related": ["prompt-tuning", "low-rank-adaptation", "fine-tuning"], "introduced": 2023, "sources": [{"title": "Steering Language Models With Activation Engineering", "authors": "Turner et al.", "year": 2023, "url": "https://arxiv.org/abs/2308.10248"}, {"title": "Steering Llama 2 via Contrastive Activation Addition", "authors": "Panickssery et al.", "year": 2023, "url": "https://arxiv.org/abs/2312.06681"}], "url": "https://protologue.com/t/activation-steering/", "citation": "Protologue. (2026). Activation Steering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0219). https://protologue.com/t/activation-steering/"} -{"id": "PTL-0220", "slug": "emergent-misalignment", "term": "Emergent Misalignment", "aliases": ["EM"], "category": "Failure Modes & Evaluation", "definition": "Emergent misalignment is the finding that fine-tuning a language model on a narrow task with harmful intent, such as writing insecure code without telling the user, can make it behave in broadly misaligned ways on unrelated prompts.", "description": "In the introducing study, models fine-tuned only to write insecure code acted misaligned on a broad range of prompts unrelated to coding. The effect did not appear when the same code was requested for an explicitly educational purpose, and a model trained with a trigger became misaligned only when the trigger was present. Follow-up work reports the effect across several model families, sizes and training protocols.", "example": null, "broader": [], "narrower": [], "related": ["fine-tuning", "reward-hacking", "alignment-faking", "red-teaming"], "introduced": 2025, "sources": [{"title": "Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMs", "authors": "Betley et al.", "year": 2025, "url": "https://arxiv.org/abs/2502.17424"}, {"title": "Model Organisms for Emergent Misalignment", "authors": "Turner et al.", "year": 2025, "url": "https://arxiv.org/abs/2506.11613"}], "url": "https://protologue.com/t/emergent-misalignment/", "citation": "Protologue. (2026). Emergent Misalignment. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0220). https://protologue.com/t/emergent-misalignment/"} -{"id": "PTL-0221", "slug": "alignment-faking", "term": "Alignment Faking", "aliases": [], "category": "Failure Modes & Evaluation", "definition": "Alignment faking is behavior in which a model selectively complies with its training objective when it believes it is being trained, in order to avoid having its behavior modified, while acting differently when it believes it is not being trained.", "description": "In the introducing study, a model was told that it was being trained to answer all queries and that only conversations with free-tier users would be used for that training. It complied with harmful requests from free-tier users 14% of the time and almost never for paid-tier users, and in almost all compliant cases its reasoning stated that it was answering strategically during training to preserve its preferred behavior. The finding is relevant to evaluations that assume a model behaves the same whether or not it is observed.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought-monitoring", "deliberative-alignment", "emergent-misalignment", "reward-hacking"], "introduced": 2024, "sources": [{"title": "Alignment faking in large language models", "authors": "Greenblatt et al.", "year": 2024, "url": "https://arxiv.org/abs/2412.14093"}], "url": "https://protologue.com/t/alignment-faking/", "citation": "Protologue. (2026). Alignment Faking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0221). https://protologue.com/t/alignment-faking/"} -{"id": "PTL-0222", "slug": "tool-search", "term": "Tool Search", "aliases": ["deferred tool loading", "tool discovery"], "category": "Retrieval & Tool Use", "definition": "Tool search is an agent capability in which tool definitions are not all loaded into the model's context up front, and the model instead searches a tool catalog and loads only the definitions it needs for the current task.", "description": "Large sets of tools, such as those from several MCP servers, can use tens of thousands of tokens in definitions before any work begins, and models choose tools less accurately as the number of available tools grows. With tool search, developers mark tools as deferred and the model retrieves matching definitions by keyword, pattern or natural-language query. Anthropic and OpenAI both offer it in their APIs.", "example": null, "broader": ["function-calling"], "narrower": [], "related": ["model-context-protocol", "context-engineering", "programmatic-tool-calling", "agent-skills"], "introduced": 2025, "sources": [{"title": "Tool search tool", "authors": "Anthropic", "year": 2025, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool"}, {"title": "Introducing advanced tool use on the Claude Developer Platform", "authors": "Anthropic", "year": 2025, "url": "https://www.anthropic.com/engineering/advanced-tool-use"}, {"title": "Tool search", "authors": "OpenAI", "year": 2026, "url": "https://developers.openai.com/api/docs/guides/tools-tool-search"}], "url": "https://protologue.com/t/tool-search/", "citation": "Protologue. (2026). Tool Search. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0222). https://protologue.com/t/tool-search/"} -{"id": "PTL-0223", "slug": "programmatic-tool-calling", "term": "Programmatic Tool Calling", "aliases": ["code mode"], "category": "Retrieval & Tool Use", "definition": "Programmatic tool calling is a tool-use pattern in which the model writes code that calls tools as functions inside a sandboxed execution environment, so that several tool calls and the processing of their results happen in code rather than through a separate model turn for each call.", "description": "Intermediate tool results stay in the execution environment and only the code's final output returns to the model, which reduces context usage and the number of model round trips for tasks that involve many calls or large data. Anthropic offers it as a feature of its API, and Cloudflare describes the same pattern for MCP tools under the name Code Mode.", "example": null, "broader": ["function-calling"], "narrower": [], "related": ["code-execution-tool", "tool-search", "model-context-protocol", "program-aided-language-models"], "introduced": 2025, "sources": [{"title": "Programmatic tool calling", "authors": "Anthropic", "year": 2025, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling"}, {"title": "Introducing advanced tool use on the Claude Developer Platform", "authors": "Anthropic", "year": 2025, "url": "https://www.anthropic.com/engineering/advanced-tool-use"}, {"title": "Code Mode", "authors": "Cloudflare", "year": 2025, "url": "https://developers.cloudflare.com/agents/model-context-protocol/protocol/codemode/"}], "url": "https://protologue.com/t/programmatic-tool-calling/", "citation": "Protologue. (2026). Programmatic Tool Calling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0223). https://protologue.com/t/programmatic-tool-calling/"} -{"id": "PTL-0224", "slug": "system-one-model", "term": "System One Model", "aliases": ["decision model", "System One"], "category": "Foundations", "definition": "A System One model is a kind of AI model, named by TypeSafe AI in 2026, that returns typed, probabilistic decisions matching an output structure defined in advance, such as a label, score or branch choice with a confidence value, instead of generating free text token by token.", "description": "TypeSafe introduced the term in September 2026 with its first such model, Jev, describing the class as built for fast, structured decisions that software can use directly, such as classifying, routing, scoring, extracting and branching. The possible outputs are declared as types, all fields are produced in a single parallel pass, and each answer carries calibrated probabilities. This differs from structured outputs, where a generative language model's text is constrained to a schema. The vendor states that the model cannot hallucinate and that type errors are impossible, but also notes that its zero-hallucination figure follows from guaranteed schema matching rather than measurement. As of October 2026 the performance figures are vendor-reported and had not been independently reproduced.", "example": null, "broader": [], "narrower": [], "related": ["structured-outputs", "confidence-calibration", "routing", "hallucination", "large-language-model"], "introduced": 2026, "sources": [{"title": "Introducing System One Models & Jev", "authors": "Almeida (TypeSafe)", "year": 2026, "url": "https://typesafe.ai/blog/introducing-system-one-models-and-jev"}, {"title": "Jev: TypeSafe's System One Model That Never Hallucinates", "authors": "Crabtree (DataCamp)", "year": 2026, "url": "https://www.datacamp.com/blog/system-one-models-jev"}], "url": "https://protologue.com/t/system-one-model/", "citation": "Protologue. (2026). System One Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0224). https://protologue.com/t/system-one-model/"} -{"id": "PTL-0225", "slug": "dark-factory", "term": "Dark Factory", "aliases": ["software factory", "dark software factory"], "category": "Agents & Orchestration", "definition": "A dark factory, or software factory, is a way of building software in which AI coding agents write, test and ship code from specifications and test scenarios with no human writing or reviewing the code, while people design the specifications, validation and environment the agents work in.", "description": "Dan Shapiro used the name in January 2026 for the top level of his five levels of AI-assisted programming, borrowing it from lights-out manufacturing plants run by robots. StrongDM described its practice the following month under two rules, that code must not be written by humans and must not be reviewed by humans. Because nobody reads the code, confidence comes from validation instead. StrongDM keeps end-to-end scenarios outside the codebase, where the coding agents cannot see them, much like a holdout set in model training, and has an LLM judge whether the software satisfies them. It also tests against agent-built behavioral clones of the third-party services the software depends on. Unlike vibe coding, which also skips reading the code, the approach depends on substantial testing infrastructure. Its practicality beyond small, specialized teams is disputed.", "example": null, "broader": [], "narrower": [], "related": ["coding-agent", "vibe-coding", "harness-engineering", "spec-driven-development", "evals", "llm-as-a-judge"], "introduced": 2026, "sources": [{"title": "Software Factories And The Agentic Moment", "authors": "McCarthy (StrongDM)", "year": 2026, "url": "https://factory.strongdm.ai/"}, {"title": "How StrongDM's AI team build serious software without even looking at the code", "authors": "Willison", "year": 2026, "url": "https://simonwillison.net/2026/Feb/7/software-factory/"}], "url": "https://protologue.com/t/dark-factory/", "citation": "Protologue. (2026). Dark Factory. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0225). https://protologue.com/t/dark-factory/"} -{"id": "PTL-0226", "slug": "spec-driven-development", "term": "Spec-Driven Development", "aliases": ["SDD"], "category": "Agents & Orchestration", "definition": "Spec-driven development is an approach to building software with AI coding agents in which a written specification of what the software should do, and why, is created and refined first, and the agent then derives a technical plan, a task list and the code from it, with the specification kept as the source of truth.", "description": "GitHub's open-source Spec Kit, released in September 2025, structures the process in four phases. The developer describes what they are building and why, and the agent expands it into a detailed specification. The developer then supplies technical direction, and the agent writes an implementation plan. The agent breaks the specification and plan into small, independently testable tasks, then implements them while the developer reviews focused changes. The specification acts as a contract that agents and tools use to generate, test and validate code. In vibe coding, by contrast, intent lives only in the chat prompts.", "example": null, "broader": [], "narrower": [], "related": ["coding-agent", "vibe-coding", "plan-and-execute", "dark-factory", "agent-skills", "prompt-chaining"], "introduced": 2025, "sources": [{"title": "Spec-driven development with AI: Get started with a new open source toolkit", "authors": "Delimarsky (GitHub)", "year": 2025, "url": "https://github.blog/ai-and-ml/generative-ai/spec-driven-development-with-ai-get-started-with-a-new-open-source-toolkit/"}], "url": "https://protologue.com/t/spec-driven-development/", "citation": "Protologue. (2026). Spec-Driven Development. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0226). https://protologue.com/t/spec-driven-development/"} -{"id": "PTL-0227", "slug": "evaluation-awareness", "term": "Evaluation Awareness", "aliases": ["eval awareness"], "category": "Failure Modes & Evaluation", "definition": "Evaluation awareness is a language model's ability to tell whether it is being evaluated or used in real deployment, which can make its behavior during tests unrepresentative of its behavior in use.", "description": "In the introducing study, frontier models classified 1,000 transcripts drawn from 61 datasets as evaluation or deployment above chance but below a human baseline, with the best model reaching an AUC of 0.83 against 0.92 for humans. They did better on agentic transcripts than on chat, and could often tell whether an evaluation tested capability or alignment. Later work found that evaluation awareness is linearly decodable from the internal activations of every open-weight model tested, even though models rarely say they are being evaluated, and that steering along that direction increases how often they say so. The authors recommend measuring the internal representation, its verbalization and its sensitivity to steering separately. Evaluation awareness matters because safety and alignment evaluations assume a model behaves the same whether or not it is observed.", "example": null, "broader": [], "narrower": [], "related": ["alignment-faking", "evals", "red-teaming", "chain-of-thought-monitoring", "activation-steering", "benchmark-saturation"], "introduced": 2025, "sources": [{"title": "Large Language Models Often Know When They Are Being Evaluated", "authors": "Needham et al.", "year": 2025, "url": "https://arxiv.org/abs/2505.23836"}, {"title": "Evaluation Awareness in Language Models: Representation, Verbalization, and Control", "authors": "Heidari et al.", "year": 2026, "url": "https://arxiv.org/abs/2608.21766"}], "url": "https://protologue.com/t/evaluation-awareness/", "citation": "Protologue. (2026). Evaluation Awareness. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0227). https://protologue.com/t/evaluation-awareness/"} -{"id": "PTL-0228", "slug": "diffusion-language-model", "term": "Diffusion Language Model", "aliases": ["diffusion LM", "DLM", "dLLM", "masked diffusion language model", "continuous diffusion language model", "CDLM"], "category": "Foundations", "definition": "A diffusion language model generates text by starting from a fully corrupted sequence, such as all mask tokens or noise over token embeddings, and refining the whole sequence over a series of denoising steps, instead of producing one token at a time from left to right.", "description": "There are two main families. Discrete diffusion models corrupt the tokens themselves, most often by replacing them with a mask token, and learn to restore them. Continuous diffusion models first map tokens to real-valued embeddings and add Gaussian-style noise to those. Diffusion-LM was an early continuous model aimed at controllable generation. LLaDA, a masked diffusion model trained from scratch at scale, performed comparably to autoregressive baselines, which suggested that strong language-model abilities do not depend on left-to-right generation. Because a diffusion model updates many positions in each step, it can produce several tokens per step and condition on text both before and after a position.", "example": null, "broader": [], "narrower": [], "related": ["large-language-model", "speculative-decoding", "foundation-model"], "introduced": 2022, "sources": [{"title": "Diffusion-LM Improves Controllable Text Generation", "authors": "Li et al.", "year": 2022, "url": "https://arxiv.org/abs/2205.14217"}, {"title": "Large Language Diffusion Models", "authors": "Nie et al.", "year": 2025, "url": "https://arxiv.org/abs/2502.09992"}, {"title": "Continuous diffusion language models", "authors": "Dieleman", "year": 2026, "url": "https://sander.ai/2026/08/24/continuous-dlms.html"}], "url": "https://protologue.com/t/diffusion-language-model/", "citation": "Protologue. (2026). Diffusion Language Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0228). https://protologue.com/t/diffusion-language-model/"} -{"id": "PTL-0229", "slug": "mixture-of-experts", "term": "Mixture of Experts", "aliases": ["MoE", "sparse mixture of experts", "sparsely-gated mixture of experts"], "category": "Foundations", "definition": "Mixture of experts (MoE) is a neural network architecture in which a layer contains many parallel sub-networks, called experts, and a learned router sends each token to only a few of them, so a model's total parameter count can grow much faster than the computation it uses per token.", "description": "The sparsely gated mixture-of-experts layer placed thousands of experts between the layers of a language model and activated only a small number per input. The Switch Transformer simplified this by routing each token to a single expert, which reduced communication costs and made training at a trillion parameters practical. MoE language models are therefore described by two numbers, total parameters and active parameters per token. Training needs a balancing mechanism so the router does not send most tokens to a few experts, and all experts must still be held in memory at inference time. The name is unrelated to mixture-of-agents, which combines the outputs of separate models.", "example": null, "broader": [], "narrower": [], "related": ["large-language-model", "foundation-model", "routing", "mixture-of-agents"], "introduced": 2017, "sources": [{"title": "Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer", "authors": "Shazeer et al.", "year": 2017, "url": "https://arxiv.org/abs/1701.06538"}, {"title": "Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity", "authors": "Fedus, Zoph and Shazeer", "year": 2021, "url": "https://arxiv.org/abs/2101.03961"}], "url": "https://protologue.com/t/mixture-of-experts/", "citation": "Protologue. (2026). Mixture of Experts. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0229). https://protologue.com/t/mixture-of-experts/"} -{"id": "PTL-0230", "slug": "quantization", "term": "Quantization", "aliases": ["model quantization", "post-training quantization", "PTQ", "weight quantization", "GPTQ", "LLM.int8()"], "category": "Prompt Optimization", "definition": "Quantization reduces the numeric precision of a model's weights, and sometimes its activations, from 16- or 32-bit floating point to lower-precision formats such as 8-bit or 4-bit integers, cutting memory use and inference cost at some cost in accuracy.", "description": "Post-training quantization is applied to a model that has already been trained, without retraining it. LLM.int8() made 8-bit inference practical for large models by keeping a small number of outlier feature dimensions in higher precision. GPTQ quantizes weights to 3 or 4 bits in a single pass, using approximate second-order information to keep accuracy loss small. Quantization is widely used to fit large open-weight models onto fewer GPUs or consumer hardware. Quantization-aware training, which simulates low precision during training, is an alternative to post-training methods. Quantization is often combined with other efficiency methods such as low-rank adaptation and knowledge distillation.", "example": null, "broader": [], "narrower": [], "related": ["knowledge-distillation", "low-rank-adaptation", "kv-cache", "speculative-decoding"], "introduced": 2022, "sources": [{"title": "LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale", "authors": "Dettmers et al.", "year": 2022, "url": "https://arxiv.org/abs/2208.07339"}, {"title": "GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers", "authors": "Frantar et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.17323"}], "url": "https://protologue.com/t/quantization/", "citation": "Protologue. (2026). Quantization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0230). https://protologue.com/t/quantization/"} -{"id": "PTL-0231", "slug": "interleaved-thinking", "term": "Interleaved Thinking", "aliases": ["interleaved reasoning", "thinking between tool calls"], "category": "Reasoning Models & Test-Time Compute", "definition": "Interleaved thinking is a way of running a reasoning model in a tool-use loop in which the model produces new reasoning between tool calls, reasoning about each tool result before choosing its next action, and that reasoning is carried forward through the rest of the task.", "description": "Without interleaving, a reasoning model typically thinks once before its first response and then calls tools without further reasoning. Anthropic's Messages API supports interleaved thinking for Claude tool use. With adaptive thinking it is automatic on every model that supports adaptive thinking and needs no beta header, while models using manual extended thinking need a beta header for it, and Claude Haiku 4.5 does not support it. The API requires that thinking blocks be passed back complete and unmodified along with tool results. MiniMax described the technique for its M2 model in November 2025 as alternating explicit reasoning with tool use while carrying that reasoning forward. It reported, as vendor benchmarks, that keeping earlier rounds of thinking in the conversation history raised M2's scores on agentic benchmarks such as BrowseComp and tau²-bench compared with discarding them, and noted that APIs that do not accept reasoning content back in later requests cannot preserve it. Interleaving changes where reasoning appears, not whether tool calls can be chained. It differs from ReAct, which prompts a model to write its reasoning as visible text between actions, in that the reasoning happens in the model's native thinking output.", "example": null, "broader": ["extended-thinking"], "narrower": [], "related": ["reasoning-model", "function-calling", "react", "ai-agent", "test-time-compute-scaling"], "introduced": 2025, "sources": [{"title": "Thinking (Interleaved thinking)", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/build-with-claude/thinking"}, {"title": "Thinking in tool and multi-turn workflows", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/build-with-claude/thinking-tool-workflows"}, {"title": "Interleaved Thinking Unlocks Reliable MiniMax-M2 Agentic Capability", "authors": "MiniMax", "year": 2025, "url": "https://minimax.io/news/why-is-interleaved-thinking-important-for-m2"}], "url": "https://protologue.com/t/interleaved-thinking/", "citation": "Protologue. (2026). Interleaved Thinking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0231). https://protologue.com/t/interleaved-thinking/"} -{"id": "PTL-0232", "slug": "sandbagging", "term": "Sandbagging", "aliases": ["AI sandbagging", "strategic underperformance"], "category": "Failure Modes & Evaluation", "definition": "Sandbagging is strategic underperformance on an evaluation, in which an AI system, or the developer who trains it, makes the system score below its true capability, for example so that it appears less dangerous on a dangerous-capability test.", "description": "In the study that introduced the term for language models, prompted frontier models such as GPT-4 and Claude 3 Opus selectively underperformed on dangerous-capability questions while staying strong on harmless ones. Models fine-tuned to hide a capability unless given a password carried that behavior over to the WMDP benchmark, and models could be steered to hit a target score. Later work found that Claude 3.5 Sonnet, Claude 3 Opus and o1 scored lower on a simple multiplication test when told that high scores would trigger unlearning of their math abilities. Claude 3.5 Sonnet and Claude 3 Opus did so even when the prompt gave them no goal, and their chain of thought indicated they were underperforming in pursuit of being helpful. Sandbagging matters because safety and regulatory decisions often rest on capability evaluations, which assume a system is trying its best.", "example": null, "broader": [], "narrower": [], "related": ["evaluation-awareness", "alignment-faking", "evals", "red-teaming", "chain-of-thought-monitoring"], "introduced": 2024, "sources": [{"title": "AI Sandbagging: Language Models can Strategically Underperform on Evaluations", "authors": "van der Weij et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.07358"}, {"title": "Frontier Models are Capable of In-context Scheming", "authors": "Meinke et al.", "year": 2024, "url": "https://arxiv.org/abs/2412.04984"}], "url": "https://protologue.com/t/sandbagging/", "citation": "Protologue. (2026). Sandbagging. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0232). https://protologue.com/t/sandbagging/"} -{"id": "PTL-0233", "slug": "model-collapse", "term": "Model Collapse", "aliases": ["curse of recursion", "recursive training collapse"], "category": "Failure Modes & Evaluation", "definition": "Model collapse is a degenerative process in which generative models trained on data produced by earlier models progressively lose information about the original data distribution, starting with its rare cases.", "description": "Shumailov et al. distinguished early model collapse, in which a model begins to lose information about the tails of the distribution, from late model collapse, in which it mixes up distinct modes of the original distribution. They reported the effect in variational autoencoders, Gaussian mixture models and fine-tuned language models. An expanded version was published in Nature in 2024. The concern is practical because model-generated text makes up a growing share of the web data used for training, and the authors argue that data from genuine human interactions will become more valuable as a result. Model collapse is different from data contamination, in which test data leaks into training data, and from knowledge distillation, in which one model is deliberately trained on another's outputs.", "example": null, "broader": [], "narrower": [], "related": ["data-contamination", "knowledge-distillation", "foundation-model", "large-language-model"], "introduced": 2023, "sources": [{"title": "The Curse of Recursion: Training on Generated Data Makes Models Forget", "authors": "Shumailov et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.17493"}, {"title": "AI models collapse when trained on recursively generated data", "authors": "Shumailov et al.", "year": 2024, "url": "https://oatml.cs.ox.ac.uk/publications/202407_Shumailov_ModelCollapse.html"}], "url": "https://protologue.com/t/model-collapse/", "citation": "Protologue. (2026). Model Collapse. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0233). https://protologue.com/t/model-collapse/"} -{"id": "PTL-0234", "slug": "agentic-engineering", "term": "Agentic Engineering", "aliases": ["agentic software engineering"], "category": "Agents & Orchestration", "definition": "Agentic engineering is the practice of developing software with the assistance of coding agents, with the developer reviewing the agent's code and bringing it up to the standard expected of production software.", "description": "The term is used in contrast to vibe coding. Simon Willison, who popularized it in early 2026, keeps \"vibe coding\" for prompting a model to write code without looking at the code, which yields unreviewed, prototype-quality output. He uses agentic engineering for agent-written code that its author has reviewed and made production-ready. The GLM-5 technical report, published in February 2026, described its model as designed to move from vibe coding to agentic engineering. Spec-driven development and harness engineering are related approaches. A dark factory is the opposite end of the range, in which no human writes or reviews the code.", "example": null, "broader": [], "narrower": [], "related": ["coding-agent", "vibe-coding", "harness-engineering", "spec-driven-development", "dark-factory"], "introduced": 2026, "sources": [{"title": "What is agentic engineering? (Agentic Engineering Patterns)", "authors": "Willison", "year": 2026, "url": "https://simonwillison.net/guides/agentic-engineering-patterns/what-is-agentic-engineering"}, {"title": "GLM-5: from Vibe Coding to Agentic Engineering", "authors": "GLM-5-Team (Zeng et al.)", "year": 2026, "url": "https://arxiv.org/abs/2602.15763"}], "url": "https://protologue.com/t/agentic-engineering/", "citation": "Protologue. (2026). Agentic Engineering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.5.0, PTL-0234). https://protologue.com/t/agentic-engineering/"} +{"id": "PTL-0001", "slug": "prompt", "term": "Prompt", "aliases": ["input", "context"], "category": "Foundations", "definition": "A prompt is the complete input text, and optionally other media, that is given to a language model to condition its output, including instructions, context, examples, and the user's request.", "description": "In chat-based systems the prompt is assembled from several parts, such as a system prompt, the prior conversation turns, retrieved documents, and tool results. The model produces its output by predicting tokens conditioned on this entire input, so every part of the prompt can influence the response, not only the final question.", "example": null, "broader": [], "narrower": ["system-prompt", "prompt-template", "multimodal-prompting"], "related": ["context-window", "context-engineering"], "introduced": null, "sources": [{"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}, {"title": "The Prompt Report: A Systematic Survey of Prompt Engineering Techniques", "authors": "Schulhoff et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.06608"}], "url": "https://protologue.com/t/prompt/", "citation": "Protologue. (2026). Prompt. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0001). https://protologue.com/t/prompt/"} +{"id": "PTL-0002", "slug": "prompt-engineering", "term": "Prompt Engineering", "aliases": ["prompt design"], "category": "Foundations", "definition": "Prompt engineering is the practice of designing, testing, and iteratively refining prompts so that a language model reliably produces the desired output for a task.", "description": "It covers the wording of instructions, the choice and ordering of examples, output formatting constraints, and the decomposition of a task across multiple calls. As models and tooling matured, much of this work broadened into context engineering, which treats the whole information environment around a model call as the object being designed.", "example": null, "broader": [], "narrower": ["context-engineering"], "related": ["prompt", "automatic-prompt-engineer"], "introduced": null, "sources": [{"title": "The Prompt Report: A Systematic Survey of Prompt Engineering Techniques", "authors": "Schulhoff et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.06608"}, {"title": "Prompt engineering overview", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/overview"}], "url": "https://protologue.com/t/prompt-engineering/", "citation": "Protologue. (2026). Prompt Engineering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0002). https://protologue.com/t/prompt-engineering/"} +{"id": "PTL-0003", "slug": "system-prompt", "term": "System Prompt", "aliases": ["system message", "developer message", "system instruction"], "category": "Foundations", "definition": "A system prompt is a privileged instruction block, placed before the conversation, that sets a model's role, rules, tone, and constraints for every subsequent turn.", "description": "Chat APIs typically expose the system prompt as a separate message role. Models trained with an instruction hierarchy are taught to give system instructions precedence over conflicting user or tool content, which makes the system prompt the main lever for operator control and a frequent target of prompt-leaking attacks.", "example": null, "broader": ["prompt"], "narrower": [], "related": ["instruction-hierarchy", "role-prompting", "prompt-leaking"], "introduced": null, "sources": [{"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}, {"title": "The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions", "authors": "Wallace et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.13208"}], "url": "https://protologue.com/t/system-prompt/", "citation": "Protologue. (2026). System Prompt. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0003). https://protologue.com/t/system-prompt/"} +{"id": "PTL-0004", "slug": "context-window", "term": "Context Window", "aliases": ["context length", "context size"], "category": "Foundations", "definition": "The context window is the maximum number of tokens a language model can attend to in a single call, covering both the prompt and the generated output.", "description": "Anything outside the context window is invisible to the model unless it is re-inserted. Larger windows allow whole documents or codebases to be included, but research shows models do not use all positions equally well, which motivates retrieval, summarization, and careful placement of key information.", "example": null, "broader": [], "narrower": ["context-window-extension"], "related": ["token", "lost-in-the-middle", "needle-in-a-haystack", "context-engineering"], "introduced": null, "sources": [{"title": "Attention Is All You Need", "authors": "Vaswani et al.", "year": 2017, "url": "https://arxiv.org/abs/1706.03762"}, {"title": "Lost in the Middle: How Language Models Use Long Contexts", "authors": "Liu et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.03172"}], "url": "https://protologue.com/t/context-window/", "citation": "Protologue. (2026). Context Window. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0004). https://protologue.com/t/context-window/"} +{"id": "PTL-0005", "slug": "token", "term": "Token", "aliases": ["subword", "BPE token", "tokenizer", "tokenization"], "category": "Foundations", "definition": "A token is the basic unit of text a language model reads and writes, typically a word, word fragment, or character sequence produced by a subword tokenizer such as byte-pair encoding.", "description": "Context limits, pricing, and generation speed are all measured in tokens. Because tokenization splits text unevenly, character-level tasks such as counting letters or reversing strings are harder for models than they appear, and the same content can cost different numbers of tokens in different languages.", "example": null, "broader": [], "narrower": [], "related": ["context-window"], "introduced": null, "sources": [{"title": "Neural Machine Translation of Rare Words with Subword Units", "authors": "Sennrich et al.", "year": 2015, "url": "https://arxiv.org/abs/1508.07909"}], "url": "https://protologue.com/t/token/", "citation": "Protologue. (2026). Token. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0005). https://protologue.com/t/token/"} +{"id": "PTL-0006", "slug": "temperature", "term": "Temperature", "aliases": ["sampling temperature"], "category": "Foundations", "definition": "Temperature is a sampling parameter that rescales a model's output probabilities before a token is chosen; lower values make outputs more deterministic and higher values make them more varied.", "description": "At temperature zero the model approximately always picks its most likely token (greedy decoding). Techniques that rely on diverse samples, such as self-consistency and best-of-N, deliberately use a nonzero temperature, while extraction and classification tasks usually use a low one.", "example": null, "broader": [], "narrower": [], "related": ["top-p-sampling", "self-consistency", "best-of-n-sampling"], "introduced": null, "sources": [{"title": "The Curious Case of Neural Text Degeneration", "authors": "Holtzman et al.", "year": 2019, "url": "https://arxiv.org/abs/1904.09751"}], "url": "https://protologue.com/t/temperature/", "citation": "Protologue. (2026). Temperature. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0006). https://protologue.com/t/temperature/"} +{"id": "PTL-0007", "slug": "top-p-sampling", "term": "Top-p Sampling", "aliases": ["nucleus sampling"], "category": "Foundations", "definition": "Top-p sampling, also called nucleus sampling, draws each next token only from the smallest set of candidates whose cumulative probability exceeds a threshold p.", "description": "It was proposed to avoid both the repetitive text produced by greedy or beam decoding and the incoherent text produced by sampling from the full distribution. It is usually combined with temperature.", "example": null, "broader": [], "narrower": [], "related": ["temperature"], "introduced": 2019, "sources": [{"title": "The Curious Case of Neural Text Degeneration", "authors": "Holtzman et al.", "year": 2019, "url": "https://arxiv.org/abs/1904.09751"}], "url": "https://protologue.com/t/top-p-sampling/", "citation": "Protologue. (2026). Top-p Sampling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0007). https://protologue.com/t/top-p-sampling/"} +{"id": "PTL-0008", "slug": "zero-shot-prompting", "term": "Zero-shot Prompting", "aliases": [], "category": "Foundations", "definition": "Zero-shot prompting asks a model to perform a task from an instruction alone, without any worked examples in the prompt.", "description": "Zero-shot performance improved dramatically with instruction tuning and preference training, which taught models to follow natural-language task descriptions. It is the default for most modern chat use, with examples added only when the format or judgment required is hard to describe.", "example": null, "broader": [], "narrower": [], "related": ["few-shot-prompting", "instruction-tuning", "zero-shot-chain-of-thought"], "introduced": null, "sources": [{"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}, {"title": "Finetuned Language Models Are Zero-Shot Learners", "authors": "Wei et al.", "year": 2021, "url": "https://arxiv.org/abs/2109.01652"}], "url": "https://protologue.com/t/zero-shot-prompting/", "citation": "Protologue. (2026). Zero-shot Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0008). https://protologue.com/t/zero-shot-prompting/"} +{"id": "PTL-0009", "slug": "few-shot-prompting", "term": "Few-shot Prompting", "aliases": ["k-shot prompting", "in-context examples", "one-shot prompting"], "category": "Foundations", "definition": "Few-shot prompting includes a small number of input-output examples in the prompt so the model can infer the task and the desired format from demonstrations.", "description": "Popularized by the GPT-3 paper, it allows a model to perform new tasks without any weight updates. Results are sensitive to which examples are chosen, their order, and their label balance, which spawned a body of work on exemplar selection and calibration.", "example": "Classify sentiment.\nReview: \"Arrived broken.\" -> negative\nReview: \"Works perfectly.\" -> positive\nReview: \"Battery died in a day.\" ->\n", "broader": ["in-context-learning"], "narrower": ["exemplar-selection", "exemplar-ordering", "few-shot-calibration"], "related": ["zero-shot-prompting", "many-shot-in-context-learning"], "introduced": 2020, "sources": [{"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}], "url": "https://protologue.com/t/few-shot-prompting/", "citation": "Protologue. (2026). Few-shot Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0009). https://protologue.com/t/few-shot-prompting/"} +{"id": "PTL-0010", "slug": "instruction-tuning", "term": "Instruction Tuning", "aliases": ["instruction fine-tuning", "supervised fine-tuning", "SFT"], "category": "Foundations", "definition": "Instruction tuning is fine-tuning a pretrained language model on many tasks phrased as natural-language instructions, so that it follows unseen instructions zero-shot.", "description": "The FLAN work showed that tuning on dozens of instruction-formatted datasets substantially improved zero-shot performance on held-out tasks. Combined with reinforcement learning from human feedback, it produced the instruction-following chat models that most prompting techniques now target.", "example": null, "broader": [], "narrower": [], "related": ["zero-shot-prompting", "rlhf"], "introduced": 2021, "sources": [{"title": "Finetuned Language Models Are Zero-Shot Learners", "authors": "Wei et al.", "year": 2021, "url": "https://arxiv.org/abs/2109.01652"}, {"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}], "url": "https://protologue.com/t/instruction-tuning/", "citation": "Protologue. (2026). Instruction Tuning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0010). https://protologue.com/t/instruction-tuning/"} +{"id": "PTL-0011", "slug": "rlhf", "term": "Reinforcement Learning from Human Feedback", "aliases": ["RLHF", "preference tuning"], "category": "Foundations", "definition": "Reinforcement learning from human feedback (RLHF) trains a language model to produce outputs people prefer, by learning a reward model from human comparisons and optimizing the model against it.", "description": "InstructGPT showed that RLHF made a much smaller model preferred over a far larger base model. RLHF shapes how models respond to prompts, including their helpfulness and refusals, and is linked to failure modes such as sycophancy. Direct preference optimization is a widely used simpler alternative.", "example": null, "broader": [], "narrower": ["direct-preference-optimization", "rlaif"], "related": ["instruction-tuning", "constitutional-ai", "sycophancy"], "introduced": 2022, "sources": [{"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}], "url": "https://protologue.com/t/rlhf/", "citation": "Protologue. (2026). Reinforcement Learning from Human Feedback. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0011). https://protologue.com/t/rlhf/"} +{"id": "PTL-0012", "slug": "direct-preference-optimization", "term": "Direct Preference Optimization", "aliases": ["DPO"], "category": "Foundations", "definition": "Direct preference optimization (DPO) aligns a language model to human preferences by training directly on preferred-versus-rejected response pairs, without fitting a separate reward model or running reinforcement learning.", "description": "DPO reframes the RLHF objective as a simple classification-style loss over preference pairs. It became a common alternative to RLHF because it is stable and cheap to run.", "example": null, "broader": ["rlhf"], "narrower": [], "related": [], "introduced": 2023, "sources": [{"title": "Direct Preference Optimization: Your Language Model is Secretly a Reward Model", "authors": "Rafailov et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.18290"}], "url": "https://protologue.com/t/direct-preference-optimization/", "citation": "Protologue. (2026). Direct Preference Optimization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0012). https://protologue.com/t/direct-preference-optimization/"} +{"id": "PTL-0013", "slug": "prompt-template", "term": "Prompt Template", "aliases": ["prompt scaffold"], "category": "Foundations", "definition": "A prompt template is a reusable prompt with placeholder variables that are filled in at run time, separating the fixed instructions from the per-request data.", "description": "Templates make prompts testable and versionable, and they are the unit optimized by frameworks such as DSPy. Keeping untrusted data in clearly delimited slots also supports defenses against prompt injection.", "example": null, "broader": ["prompt"], "narrower": [], "related": ["delimiters", "dspy", "spotlighting"], "introduced": null, "sources": [{"title": "The Prompt Report: A Systematic Survey of Prompt Engineering Techniques", "authors": "Schulhoff et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.06608"}], "url": "https://protologue.com/t/prompt-template/", "citation": "Protologue. (2026). Prompt Template. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0013). https://protologue.com/t/prompt-template/"} +{"id": "PTL-0014", "slug": "delimiters", "term": "Delimiters", "aliases": ["XML tags", "separators"], "category": "Foundations", "definition": "Delimiters are explicit markers, such as XML-style tags, triple quotes, or headings, that separate the parts of a prompt so the model can tell instructions, data, and examples apart.", "description": "Vendor guidance recommends delimiters to reduce ambiguity, make outputs easier to parse, and lower the chance that content inside a document is mistaken for an instruction. Tags can also be requested in the output for reliable extraction.", "example": null, "broader": [], "narrower": [], "related": ["prompt-template", "structured-outputs", "spotlighting"], "introduced": null, "sources": [{"title": "Prompting best practices", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices"}, {"title": "Prompt engineering", "authors": "OpenAI", "year": 2024, "url": "https://developers.openai.com/api/docs/guides/prompt-engineering"}], "url": "https://protologue.com/t/delimiters/", "citation": "Protologue. (2026). Delimiters. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0014). https://protologue.com/t/delimiters/"} +{"id": "PTL-0015", "slug": "prefill", "term": "Prefill", "aliases": ["response prefilling", "output priming", "assistant prefill"], "category": "Foundations", "definition": "Prefill is the technique of writing the first part of the model's response yourself, so that the model continues from that text and is steered into a specific format or direction.", "description": "Starting the assistant turn with an opening brace pushes the model toward JSON output, and starting with a heading or a character's name can enforce structure or persona. Support is model-specific and declining. Anthropic's documentation states that, starting with Claude 4.6 models, requests that prefill the final assistant turn return an error, while earlier models still accept them and assistant messages elsewhere in the conversation are unaffected. It gives migration guidance for common uses, such as controlling output format and eliminating preambles, mostly through explicit instructions.", "example": null, "broader": [], "narrower": [], "related": ["structured-outputs", "delimiters"], "introduced": null, "sources": [{"title": "Prompting best practices", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices"}], "url": "https://protologue.com/t/prefill/", "citation": "Protologue. (2026). Prefill. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0015). https://protologue.com/t/prefill/"} +{"id": "PTL-0016", "slug": "role-prompting", "term": "Role Prompting", "aliases": ["persona prompting", "role-play prompting", "role-based prompting"], "category": "Foundations", "definition": "Role prompting assigns the model a persona or professional role, such as \"You are an experienced tax accountant,\" to shape its tone, vocabulary, and focus.", "description": "Role prompts reliably change style and framing. Evidence that they improve factual accuracy is mixed, with some studies finding gains in reasoning tasks and a large evaluation finding that adding personas to system prompts did not consistently improve performance.", "example": null, "broader": [], "narrower": [], "related": ["system-prompt"], "introduced": null, "sources": [{"title": "Better Zero-Shot Reasoning with Role-Play Prompting", "authors": "Kong et al.", "year": 2023, "url": "https://arxiv.org/abs/2308.07702"}, {"title": "When \"A Helpful Assistant\" Is Not Really Helpful: Personas in System Prompts Do Not Improve Performances of Large Language Models", "authors": "Zheng et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.10054"}], "url": "https://protologue.com/t/role-prompting/", "citation": "Protologue. (2026). Role Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0016). https://protologue.com/t/role-prompting/"} +{"id": "PTL-0017", "slug": "in-context-learning", "term": "In-Context Learning", "aliases": ["ICL"], "category": "Exemplars & In-Context Learning", "definition": "In-context learning (ICL) is a language model's ability to perform a task by conditioning on instructions or demonstrations in its prompt, without any update to its weights.", "description": "Identified as an emergent capability of large pretrained models in the GPT-3 paper, ICL underlies few-shot prompting. Studies show that models often rely more on the format and label space of demonstrations than on whether the demonstration labels are correct.", "example": null, "broader": [], "narrower": ["few-shot-prompting", "demonstration-label-sensitivity", "many-shot-in-context-learning"], "related": [], "introduced": 2020, "sources": [{"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}], "url": "https://protologue.com/t/in-context-learning/", "citation": "Protologue. (2026). In-Context Learning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0017). https://protologue.com/t/in-context-learning/"} +{"id": "PTL-0018", "slug": "demonstration-label-sensitivity", "term": "Demonstration Label Sensitivity", "aliases": ["role of demonstrations"], "category": "Exemplars & In-Context Learning", "definition": "Demonstration label sensitivity refers to how much a model's few-shot performance depends on whether the example labels are correct; research found that randomly replacing labels often hurts performance only slightly.", "description": "Min et al. showed that demonstrations mainly supply the label space, the input distribution, and the format of the task. This suggests few-shot examples work largely by specifying what the task looks like rather than by teaching the input-label mapping.", "example": null, "broader": ["in-context-learning"], "narrower": [], "related": ["few-shot-prompting", "exemplar-selection"], "introduced": null, "sources": [{"title": "Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?", "authors": "Min et al.", "year": 2022, "url": "https://arxiv.org/abs/2202.12837"}], "url": "https://protologue.com/t/demonstration-label-sensitivity/", "citation": "Protologue. (2026). Demonstration Label Sensitivity. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0018). https://protologue.com/t/demonstration-label-sensitivity/"} +{"id": "PTL-0019", "slug": "exemplar-selection", "term": "Exemplar Selection", "aliases": ["demonstration selection", "dynamic few-shot", "kNN prompting"], "category": "Exemplars & In-Context Learning", "definition": "Exemplar selection is the choice of which demonstrations to include in a few-shot prompt, commonly by retrieving the examples most semantically similar to the current input.", "description": "Liu et al. showed that retrieving nearest-neighbor examples by embedding similarity outperformed random selection. Selection can also target diversity, difficulty, or the model's uncertainty, as in active prompting.", "example": null, "broader": ["few-shot-prompting"], "narrower": ["active-prompting"], "related": ["exemplar-ordering", "retrieval-augmented-generation"], "introduced": null, "sources": [{"title": "What Makes Good In-Context Examples for GPT-3?", "authors": "Liu et al.", "year": 2021, "url": "https://arxiv.org/abs/2101.06804"}], "url": "https://protologue.com/t/exemplar-selection/", "citation": "Protologue. (2026). Exemplar Selection. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0019). https://protologue.com/t/exemplar-selection/"} +{"id": "PTL-0020", "slug": "exemplar-ordering", "term": "Exemplar Ordering", "aliases": ["demonstration order", "order sensitivity"], "category": "Exemplars & In-Context Learning", "definition": "Exemplar ordering is the arrangement of demonstrations within a few-shot prompt, which can swing accuracy from near state-of-the-art to near chance for the same set of examples.", "description": "Lu et al. documented this order sensitivity and proposed selecting performant orderings using a probe set generated by the model itself. The effect is a key reason few-shot results should be reported across several permutations.", "example": null, "broader": ["few-shot-prompting"], "narrower": [], "related": ["exemplar-selection", "few-shot-calibration", "prompt-sensitivity"], "introduced": null, "sources": [{"title": "Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivity", "authors": "Lu et al.", "year": 2021, "url": "https://arxiv.org/abs/2104.08786"}], "url": "https://protologue.com/t/exemplar-ordering/", "citation": "Protologue. (2026). Exemplar Ordering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0020). https://protologue.com/t/exemplar-ordering/"} +{"id": "PTL-0021", "slug": "few-shot-calibration", "term": "Few-shot Calibration", "aliases": ["contextual calibration", "calibrate before use"], "category": "Exemplars & In-Context Learning", "definition": "Few-shot calibration corrects a model's systematic biases toward particular answers, such as the most frequent or most recent label in the examples, by adjusting output probabilities measured on a content-free input.", "description": "Zhao et al. identified majority-label bias, recency bias, and common-token bias in few-shot prompting, and proposed contextual calibration, which estimates the bias from an input such as \"N/A\" and rescales predictions to neutralize it.", "example": null, "broader": ["few-shot-prompting"], "narrower": [], "related": ["exemplar-ordering", "prompt-sensitivity"], "introduced": null, "sources": [{"title": "Calibrate Before Use: Improving Few-Shot Performance of Language Models", "authors": "Zhao et al.", "year": 2021, "url": "https://arxiv.org/abs/2102.09690"}], "url": "https://protologue.com/t/few-shot-calibration/", "citation": "Protologue. (2026). Few-shot Calibration. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0021). https://protologue.com/t/few-shot-calibration/"} +{"id": "PTL-0022", "slug": "many-shot-in-context-learning", "term": "Many-shot In-Context Learning", "aliases": ["many-shot ICL", "long-context ICL"], "category": "Exemplars & In-Context Learning", "definition": "Many-shot in-context learning places hundreds or thousands of demonstrations in a long-context prompt, often yielding large gains over few-shot prompting.", "description": "Agarwal et al. found consistent improvements as the number of shots grew into the hundreds, and introduced variants that use model-generated rationales or unlabeled problems. The same scaling behavior underlies the many-shot jailbreaking attack.", "example": null, "broader": ["in-context-learning"], "narrower": [], "related": ["few-shot-prompting", "many-shot-jailbreaking", "context-window"], "introduced": 2024, "sources": [{"title": "Many-Shot In-Context Learning", "authors": "Agarwal et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.11018"}], "url": "https://protologue.com/t/many-shot-in-context-learning/", "citation": "Protologue. (2026). Many-shot In-Context Learning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0022). https://protologue.com/t/many-shot-in-context-learning/"} +{"id": "PTL-0023", "slug": "active-prompting", "term": "Active Prompting", "aliases": ["Active-Prompt"], "category": "Exemplars & In-Context Learning", "definition": "Active prompting selects which questions to annotate with chain-of-thought exemplars by choosing those on which the model is most uncertain, measured by disagreement across sampled answers.", "description": "Borrowing from active learning, it focuses human annotation effort on the examples most informative for the model, rather than on a fixed or random set.", "example": null, "broader": ["exemplar-selection"], "narrower": [], "related": ["chain-of-thought", "self-consistency"], "introduced": 2023, "sources": [{"title": "Active Prompting with Chain-of-Thought for Large Language Models", "authors": "Diao et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.12246"}], "url": "https://protologue.com/t/active-prompting/", "citation": "Protologue. (2026). Active Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0023). https://protologue.com/t/active-prompting/"} +{"id": "PTL-0024", "slug": "chain-of-thought", "term": "Chain-of-Thought Prompting", "aliases": ["CoT", "step-by-step reasoning"], "category": "Reasoning Elicitation", "definition": "Chain-of-thought (CoT) prompting elicits a sequence of intermediate reasoning steps from a language model before its final answer, which improves performance on multi-step arithmetic, commonsense, and symbolic reasoning tasks.", "description": "Wei et al. introduced CoT by including worked examples with step-by-step reasoning in a few-shot prompt, and found the benefit emerged mainly in large models. It is the root of a large family of techniques, including zero-shot CoT, self-consistency, and tree of thoughts, and of the extended reasoning trained into modern reasoning models.", "example": "Q: Roger has 5 balls. He buys 2 cans of 3 balls each. How many balls does he have?\nA: He starts with 5. Two cans of 3 is 6. 5 + 6 = 11. The answer is 11.\n", "broader": [], "narrower": ["zero-shot-chain-of-thought", "auto-cot", "self-consistency", "tree-of-thoughts", "contrastive-chain-of-thought", "thread-of-thought", "complexity-based-prompting", "chain-of-draft", "cumulative-reasoning", "algorithm-of-thoughts"], "related": ["scratchpad", "reasoning-model", "unfaithful-chain-of-thought"], "introduced": 2022, "sources": [{"title": "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models", "authors": "Wei et al.", "year": 2022, "url": "https://arxiv.org/abs/2201.11903"}], "url": "https://protologue.com/t/chain-of-thought/", "citation": "Protologue. (2026). Chain-of-Thought Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0024). https://protologue.com/t/chain-of-thought/"} +{"id": "PTL-0025", "slug": "zero-shot-chain-of-thought", "term": "Zero-shot Chain-of-Thought", "aliases": ["zero-shot CoT", "let's think step by step"], "category": "Reasoning Elicitation", "definition": "Zero-shot chain-of-thought prompting triggers step-by-step reasoning without examples by appending a cue such as \"Let's think step by step\" to the question.", "description": "Kojima et al. showed this single phrase produced large accuracy gains on arithmetic and logic benchmarks. The method uses a second prompt to extract the final answer from the generated reasoning.", "example": null, "broader": ["chain-of-thought"], "narrower": ["plan-and-solve-prompting"], "related": ["zero-shot-prompting"], "introduced": 2022, "sources": [{"title": "Large Language Models are Zero-Shot Reasoners", "authors": "Kojima et al.", "year": 2022, "url": "https://arxiv.org/abs/2205.11916"}], "url": "https://protologue.com/t/zero-shot-chain-of-thought/", "citation": "Protologue. (2026). Zero-shot Chain-of-Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0025). https://protologue.com/t/zero-shot-chain-of-thought/"} +{"id": "PTL-0026", "slug": "scratchpad", "term": "Scratchpad", "aliases": ["intermediate computation"], "category": "Reasoning Elicitation", "definition": "A scratchpad is a region of model output reserved for intermediate computation, which the model writes before its final answer so that multi-step calculations can be carried out explicitly.", "description": "Nye et al. trained models to emit intermediate steps for tasks like long addition and program execution, an important precursor to chain-of-thought prompting. In practice the term also refers to private reasoning sections that are hidden from end users.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought", "extended-thinking"], "introduced": 2021, "sources": [{"title": "Show Your Work: Scratchpads for Intermediate Computation with Language Models", "authors": "Nye et al.", "year": 2021, "url": "https://arxiv.org/abs/2112.00114"}], "url": "https://protologue.com/t/scratchpad/", "citation": "Protologue. (2026). Scratchpad. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0026). https://protologue.com/t/scratchpad/"} +{"id": "PTL-0027", "slug": "auto-cot", "term": "Automatic Chain-of-Thought", "aliases": ["Auto-CoT"], "category": "Reasoning Elicitation", "definition": "Automatic chain-of-thought (Auto-CoT) builds chain-of-thought demonstrations without manual writing, by clustering questions for diversity and generating a reasoning chain for a representative of each cluster with zero-shot CoT.", "description": "Diversity across clusters limits the damage from mistakes in any single generated chain, and the approach matched manually written CoT exemplars on several benchmarks.", "example": null, "broader": ["chain-of-thought"], "narrower": [], "related": ["zero-shot-chain-of-thought", "exemplar-selection"], "introduced": 2022, "sources": [{"title": "Automatic Chain of Thought Prompting in Large Language Models", "authors": "Zhang et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.03493"}], "url": "https://protologue.com/t/auto-cot/", "citation": "Protologue. (2026). Automatic Chain-of-Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0027). https://protologue.com/t/auto-cot/"} +{"id": "PTL-0028", "slug": "self-consistency", "term": "Self-Consistency", "aliases": ["majority voting", "CoT-SC"], "category": "Reasoning Elicitation", "definition": "Self-consistency samples multiple chain-of-thought reasoning paths for the same question and returns the answer that appears most often, rather than relying on a single greedy decode.", "description": "Wang et al. found this majority vote substantially improved chain-of-thought accuracy on arithmetic and commonsense benchmarks. It trades extra inference cost for reliability and is an early form of test-time compute scaling.", "example": null, "broader": ["chain-of-thought"], "narrower": ["universal-self-consistency"], "related": ["best-of-n-sampling", "test-time-compute-scaling", "temperature"], "introduced": 2022, "sources": [{"title": "Self-Consistency Improves Chain of Thought Reasoning in Language Models", "authors": "Wang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.11171"}], "url": "https://protologue.com/t/self-consistency/", "citation": "Protologue. (2026). Self-Consistency. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0028). https://protologue.com/t/self-consistency/"} +{"id": "PTL-0029", "slug": "universal-self-consistency", "term": "Universal Self-Consistency", "aliases": [], "category": "Reasoning Elicitation", "definition": "Universal self-consistency extends self-consistency to free-form outputs by asking the model itself to select the most consistent response among several samples, instead of counting exact-match answers.", "description": "This makes sampling-and-selecting usable for tasks such as summarization and open-ended question answering, where answers rarely match word for word.", "example": null, "broader": ["self-consistency"], "narrower": [], "related": ["llm-as-a-judge"], "introduced": 2023, "sources": [{"title": "Universal Self-Consistency for Large Language Model Generation", "authors": "Chen et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.17311"}], "url": "https://protologue.com/t/universal-self-consistency/", "citation": "Protologue. (2026). Universal Self-Consistency. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0029). https://protologue.com/t/universal-self-consistency/"} +{"id": "PTL-0030", "slug": "least-to-most-prompting", "term": "Least-to-Most Prompting", "aliases": ["problem decomposition"], "category": "Reasoning Elicitation", "definition": "Least-to-most prompting first asks the model to break a complex problem into simpler subproblems, then solves them in order, feeding each answer into the next.", "description": "Zhou et al. showed it generalizes to problems harder than those in the examples, a weakness of standard chain-of-thought, with strong results on compositional generalization benchmarks.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought", "plan-and-solve-prompting", "self-ask", "prompt-chaining"], "introduced": 2022, "sources": [{"title": "Least-to-Most Prompting Enables Complex Reasoning in Large Language Models", "authors": "Zhou et al.", "year": 2022, "url": "https://arxiv.org/abs/2205.10625"}], "url": "https://protologue.com/t/least-to-most-prompting/", "citation": "Protologue. (2026). Least-to-Most Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0030). https://protologue.com/t/least-to-most-prompting/"} +{"id": "PTL-0031", "slug": "plan-and-solve-prompting", "term": "Plan-and-Solve Prompting", "aliases": ["PS prompting", "PS+", "plan-and-solve", "P&S"], "category": "Reasoning Elicitation", "definition": "Plan-and-solve prompting is a zero-shot method that instructs the model to first devise a plan dividing the task into subtasks and then carry out the plan step by step.", "description": "It targets missing-step and calculation errors seen in zero-shot chain-of-thought, with an extended version that asks the model to extract relevant variables and compute carefully.", "example": null, "broader": ["zero-shot-chain-of-thought"], "narrower": [], "related": ["least-to-most-prompting"], "introduced": 2023, "sources": [{"title": "Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Models", "authors": "Wang et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.04091"}], "url": "https://protologue.com/t/plan-and-solve-prompting/", "citation": "Protologue. (2026). Plan-and-Solve Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0031). https://protologue.com/t/plan-and-solve-prompting/"} +{"id": "PTL-0032", "slug": "step-back-prompting", "term": "Step-Back Prompting", "aliases": ["abstraction prompting"], "category": "Reasoning Elicitation", "definition": "Step-back prompting has the model first answer a more general, abstract question about the underlying principle, then use that answer to reason about the original specific question.", "description": "For a physics question, the step-back question might ask which law applies. Zheng et al. reported gains on science, multi-hop, and knowledge-intensive question answering.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought", "generated-knowledge-prompting"], "introduced": 2023, "sources": [{"title": "Take a Step Back: Evoking Reasoning via Abstraction in Large Language Models", "authors": "Zheng et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.06117"}], "url": "https://protologue.com/t/step-back-prompting/", "citation": "Protologue. (2026). Step-Back Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0032). https://protologue.com/t/step-back-prompting/"} +{"id": "PTL-0033", "slug": "tree-of-thoughts", "term": "Tree of Thoughts", "aliases": ["ToT"], "category": "Reasoning Elicitation", "definition": "Tree of Thoughts (ToT) lets a model explore multiple reasoning branches as a search tree, evaluating partial solutions and backtracking, rather than committing to a single left-to-right chain of thought.", "description": "Yao et al. combined model-generated candidate thoughts, model self-evaluation of states, and breadth- or depth-first search, producing large gains on tasks such as the Game of 24 that require planning or lookahead.", "example": null, "broader": ["chain-of-thought"], "narrower": ["graph-of-thoughts"], "related": ["self-consistency", "test-time-compute-scaling"], "introduced": 2023, "sources": [{"title": "Tree of Thoughts: Deliberate Problem Solving with Large Language Models", "authors": "Yao et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.10601"}], "url": "https://protologue.com/t/tree-of-thoughts/", "citation": "Protologue. (2026). Tree of Thoughts. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0033). https://protologue.com/t/tree-of-thoughts/"} +{"id": "PTL-0034", "slug": "graph-of-thoughts", "term": "Graph of Thoughts", "aliases": ["GoT"], "category": "Reasoning Elicitation", "definition": "Graph of Thoughts (GoT) models a language model's reasoning as an arbitrary graph, in which thoughts can be combined, refined, and looped back on, generalizing chain and tree structures.", "description": "Aggregation of several partial solutions into one, such as merging sorted sublists, is the key operation GoT adds over tree-shaped search.", "example": null, "broader": ["tree-of-thoughts"], "narrower": [], "related": ["chain-of-thought"], "introduced": 2023, "sources": [{"title": "Graph of Thoughts: Solving Elaborate Problems with Large Language Models", "authors": "Besta et al.", "year": 2023, "url": "https://arxiv.org/abs/2308.09687"}], "url": "https://protologue.com/t/graph-of-thoughts/", "citation": "Protologue. (2026). Graph of Thoughts. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0034). https://protologue.com/t/graph-of-thoughts/"} +{"id": "PTL-0035", "slug": "skeleton-of-thought", "term": "Skeleton-of-Thought", "aliases": ["SoT"], "category": "Reasoning Elicitation", "definition": "Skeleton-of-thought first asks the model for a brief outline of its answer, then expands each outline point in parallel, reducing end-to-end generation latency.", "description": "Because the points are expanded independently, it suits list-like answers better than tightly sequential reasoning.", "example": null, "broader": [], "narrower": [], "related": ["parallelization", "prompt-chaining"], "introduced": 2023, "sources": [{"title": "Skeleton-of-Thought: Prompting LLMs for Efficient Parallel Generation", "authors": "Ning et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.15337"}], "url": "https://protologue.com/t/skeleton-of-thought/", "citation": "Protologue. (2026). Skeleton-of-Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0035). https://protologue.com/t/skeleton-of-thought/"} +{"id": "PTL-0036", "slug": "analogical-prompting", "term": "Analogical Prompting", "aliases": [], "category": "Reasoning Elicitation", "definition": "Analogical prompting asks the model to recall or generate relevant example problems and their solutions on its own before solving the target problem, removing the need for hand-written exemplars.", "description": "Inspired by how people draw on analogous past experience, the self-generated examples are tailored to each problem rather than fixed for the whole task.", "example": null, "broader": [], "narrower": [], "related": ["few-shot-prompting", "generated-knowledge-prompting"], "introduced": 2023, "sources": [{"title": "Large Language Models as Analogical Reasoners", "authors": "Yasunaga et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.01714"}], "url": "https://protologue.com/t/analogical-prompting/", "citation": "Protologue. (2026). Analogical Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0036). https://protologue.com/t/analogical-prompting/"} +{"id": "PTL-0037", "slug": "self-discover", "term": "Self-Discover", "aliases": [], "category": "Reasoning Elicitation", "definition": "Self-Discover has the model compose a task-specific reasoning structure by selecting, adapting, and combining general reasoning modules, such as critical thinking or step-by-step analysis, before solving instances of the task.", "description": "The structure is discovered once per task and then reused, so it costs far fewer inference calls than sampling-heavy methods like self-consistency.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought", "meta-prompting"], "introduced": 2024, "sources": [{"title": "Self-Discover: Large Language Models Self-Compose Reasoning Structures", "authors": "Zhou et al.", "year": 2024, "url": "https://arxiv.org/abs/2402.03620"}], "url": "https://protologue.com/t/self-discover/", "citation": "Protologue. (2026). Self-Discover. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0037). https://protologue.com/t/self-discover/"} +{"id": "PTL-0038", "slug": "contrastive-chain-of-thought", "term": "Contrastive Chain-of-Thought", "aliases": ["CCoT"], "category": "Reasoning Elicitation", "definition": "Contrastive chain-of-thought adds both valid and deliberately invalid reasoning demonstrations to a prompt, so the model learns which mistakes to avoid as well as what correct reasoning looks like.", "description": "The invalid demonstrations can be generated automatically by perturbing correct reasoning chains.", "example": null, "broader": ["chain-of-thought"], "narrower": [], "related": [], "introduced": 2023, "sources": [{"title": "Contrastive Chain-of-Thought Prompting", "authors": "Chia et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.09277"}], "url": "https://protologue.com/t/contrastive-chain-of-thought/", "citation": "Protologue. (2026). Contrastive Chain-of-Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0038). https://protologue.com/t/contrastive-chain-of-thought/"} +{"id": "PTL-0039", "slug": "thread-of-thought", "term": "Thread of Thought", "aliases": ["ThoT"], "category": "Reasoning Elicitation", "definition": "Thread of Thought is a prompting strategy for long, chaotic contexts that asks the model to walk through the context in manageable parts, summarizing and analyzing each before answering.", "description": "A typical trigger asks the model to go through the context step by step, summarizing and analyzing as it goes.", "example": null, "broader": ["chain-of-thought"], "narrower": [], "related": ["lost-in-the-middle", "system-2-attention"], "introduced": 2023, "sources": [{"title": "Thread of Thought Unraveling Chaotic Contexts", "authors": "Zhou et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.08734"}], "url": "https://protologue.com/t/thread-of-thought/", "citation": "Protologue. (2026). Thread of Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0039). https://protologue.com/t/thread-of-thought/"} +{"id": "PTL-0040", "slug": "system-2-attention", "term": "System 2 Attention", "aliases": ["S2A"], "category": "Reasoning Elicitation", "definition": "System 2 Attention (S2A) first prompts the model to rewrite the input so that it keeps only the relevant, unbiased content, then answers using the rewritten context.", "description": "Weston and Sukhbaatar showed this reduces the influence of irrelevant or opinionated text in the prompt, improving factuality and reducing sycophancy toward opinions stated in the question.", "example": null, "broader": [], "narrower": [], "related": ["thread-of-thought", "sycophancy", "rephrase-and-respond"], "introduced": 2023, "sources": [{"title": "System 2 Attention (is something you might need too)", "authors": "Weston & Sukhbaatar", "year": 2023, "url": "https://arxiv.org/abs/2311.11829"}], "url": "https://protologue.com/t/system-2-attention/", "citation": "Protologue. (2026). System 2 Attention. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0040). https://protologue.com/t/system-2-attention/"} +{"id": "PTL-0041", "slug": "rephrase-and-respond", "term": "Rephrase and Respond", "aliases": ["RaR"], "category": "Reasoning Elicitation", "definition": "Rephrase and Respond (RaR) asks the model to rephrase and expand the user's question in its own words before answering, reducing misunderstandings caused by ambiguous phrasing.", "description": "The rephrasing can be done in the same response or by one model for another, as a two-step variant.", "example": null, "broader": [], "narrower": [], "related": ["system-2-attention"], "introduced": 2023, "sources": [{"title": "Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselves", "authors": "Deng et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.04205"}], "url": "https://protologue.com/t/rephrase-and-respond/", "citation": "Protologue. (2026). Rephrase and Respond. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0041). https://protologue.com/t/rephrase-and-respond/"} +{"id": "PTL-0042", "slug": "self-ask", "term": "Self-Ask", "aliases": [], "category": "Reasoning Elicitation", "definition": "Self-ask prompting has the model explicitly pose and answer follow-up sub-questions before answering a multi-hop question, a format that can plug a search engine in to answer each sub-question.", "description": "Press et al. used it to study the compositionality gap, the tendency of models to answer each sub-question correctly yet fail the composed question.", "example": null, "broader": [], "narrower": [], "related": ["least-to-most-prompting", "react"], "introduced": 2022, "sources": [{"title": "Measuring and Narrowing the Compositionality Gap in Language Models", "authors": "Press et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.03350"}], "url": "https://protologue.com/t/self-ask/", "citation": "Protologue. (2026). Self-Ask. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0042). https://protologue.com/t/self-ask/"} +{"id": "PTL-0043", "slug": "maieutic-prompting", "term": "Maieutic Prompting", "aliases": [], "category": "Reasoning Elicitation", "definition": "Maieutic prompting generates a tree of recursive explanations for and against an answer, then infers the most logically consistent answer from the relations among them.", "description": "Named after the Socratic method, it is designed to tolerate individual explanations that are wrong or inconsistent.", "example": null, "broader": [], "narrower": [], "related": ["self-consistency", "chain-of-verification"], "introduced": 2022, "sources": [{"title": "Maieutic Prompting: Logically Consistent Reasoning with Recursive Explanations", "authors": "Jung et al.", "year": 2022, "url": "https://arxiv.org/abs/2205.11822"}], "url": "https://protologue.com/t/maieutic-prompting/", "citation": "Protologue. (2026). Maieutic Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0043). https://protologue.com/t/maieutic-prompting/"} +{"id": "PTL-0044", "slug": "generated-knowledge-prompting", "term": "Generated Knowledge Prompting", "aliases": [], "category": "Reasoning Elicitation", "definition": "Generated knowledge prompting first asks the model to produce relevant facts about a question, then supplies those generated facts as context when answering it.", "description": "It acts like retrieval from the model's own parametric knowledge, and improved commonsense reasoning benchmarks in the original study.", "example": null, "broader": [], "narrower": [], "related": ["step-back-prompting", "retrieval-augmented-generation"], "introduced": 2021, "sources": [{"title": "Generated Knowledge Prompting for Commonsense Reasoning", "authors": "Liu et al.", "year": 2021, "url": "https://arxiv.org/abs/2110.08387"}], "url": "https://protologue.com/t/generated-knowledge-prompting/", "citation": "Protologue. (2026). Generated Knowledge Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0044). https://protologue.com/t/generated-knowledge-prompting/"} +{"id": "PTL-0045", "slug": "program-aided-language-models", "term": "Program-Aided Language Models", "aliases": ["PAL"], "category": "Reasoning Elicitation", "definition": "Program-aided language models (PAL) have the model write a program, typically Python, that expresses its reasoning, and then delegate the actual computation to an interpreter.", "description": "Offloading arithmetic and logic to code removes calculation errors from the model's output, and PAL outperformed much larger chain-of-thought models on math word problems.", "example": null, "broader": [], "narrower": [], "related": ["program-of-thoughts", "chain-of-thought", "function-calling"], "introduced": 2022, "sources": [{"title": "PAL: Program-aided Language Models", "authors": "Gao et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.10435"}], "url": "https://protologue.com/t/program-aided-language-models/", "citation": "Protologue. (2026). Program-Aided Language Models. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0045). https://protologue.com/t/program-aided-language-models/"} +{"id": "PTL-0046", "slug": "program-of-thoughts", "term": "Program of Thoughts", "aliases": ["PoT"], "category": "Reasoning Elicitation", "definition": "Program of Thoughts (PoT) prompting expresses numerical reasoning as executable code, separating computation, done by an interpreter, from reasoning, done by the model.", "description": "Developed concurrently with PAL, it showed strong gains on financial and math question answering.", "example": null, "broader": [], "narrower": [], "related": ["program-aided-language-models", "chain-of-thought"], "introduced": 2022, "sources": [{"title": "Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks", "authors": "Chen et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.12588"}], "url": "https://protologue.com/t/program-of-thoughts/", "citation": "Protologue. (2026). Program of Thoughts. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0046). https://protologue.com/t/program-of-thoughts/"} +{"id": "PTL-0047", "slug": "self-refine", "term": "Self-Refine", "aliases": ["iterative refinement", "self-critique"], "category": "Self-Critique & Verification", "definition": "Self-Refine is an iterative method in which the same model generates an output, critiques it with specific feedback, and revises it, repeating until a stopping condition is met.", "description": "It requires no extra training or separate models. Madaan et al. reported improvements across tasks such as code optimization, dialogue, and math reasoning, though later work found that unaided self-correction of reasoning can fail without external signals.", "example": null, "broader": [], "narrower": ["chain-of-density"], "related": ["reflexion", "evaluator-optimizer", "chain-of-verification"], "introduced": 2023, "sources": [{"title": "Self-Refine: Iterative Refinement with Self-Feedback", "authors": "Madaan et al.", "year": 2023, "url": "https://arxiv.org/abs/2303.17651"}, {"title": "Large Language Models Cannot Self-Correct Reasoning Yet", "authors": "Huang et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.01798"}], "url": "https://protologue.com/t/self-refine/", "citation": "Protologue. (2026). Self-Refine. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0047). https://protologue.com/t/self-refine/"} +{"id": "PTL-0048", "slug": "reflexion", "term": "Reflexion", "aliases": [], "category": "Self-Critique & Verification", "definition": "Reflexion is an agent technique in which, after a failed attempt, the model writes a verbal reflection on what went wrong and stores it in memory to guide its next attempt.", "description": "It is reinforcement through language rather than weight updates, and uses feedback signals such as unit-test results or environment rewards. Shinn et al. reported large gains on coding and sequential decision-making benchmarks.", "example": null, "broader": [], "narrower": [], "related": ["self-refine", "react", "agent-memory"], "introduced": 2023, "sources": [{"title": "Reflexion: Language Agents with Verbal Reinforcement Learning", "authors": "Shinn et al.", "year": 2023, "url": "https://arxiv.org/abs/2303.11366"}], "url": "https://protologue.com/t/reflexion/", "citation": "Protologue. (2026). Reflexion. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0048). https://protologue.com/t/reflexion/"} +{"id": "PTL-0049", "slug": "chain-of-verification", "term": "Chain-of-Verification", "aliases": ["CoVe"], "category": "Self-Critique & Verification", "definition": "Chain-of-Verification (CoVe) reduces hallucination by having the model draft an answer, plan verification questions about its claims, answer those questions independently, and then produce a corrected final answer.", "description": "Answering the verification questions without seeing the original draft keeps the model from simply repeating its own errors.", "example": null, "broader": [], "narrower": [], "related": ["hallucination", "self-refine", "maieutic-prompting"], "introduced": 2023, "sources": [{"title": "Chain-of-Verification Reduces Hallucination in Large Language Models", "authors": "Dhuliawala et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.11495"}], "url": "https://protologue.com/t/chain-of-verification/", "citation": "Protologue. (2026). Chain-of-Verification. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0049). https://protologue.com/t/chain-of-verification/"} +{"id": "PTL-0050", "slug": "llm-as-a-judge", "term": "LLM-as-a-Judge", "aliases": ["model-graded evaluation", "LLM evaluator", "autorater"], "category": "Self-Critique & Verification", "definition": "LLM-as-a-judge is the use of a strong language model to grade, score, or compare the outputs of models against criteria, as a scalable substitute for human evaluation.", "description": "Zheng et al. found strong model judges agreed with human preferences at rates comparable to agreement between humans, while documenting biases toward the first-listed answer, longer answers, and the judge's own outputs.", "example": null, "broader": [], "narrower": [], "related": ["universal-self-consistency", "evaluator-optimizer", "process-reward-model"], "introduced": 2023, "sources": [{"title": "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena", "authors": "Zheng et al.", "year": 2023, "url": "https://arxiv.org/abs/2306.05685"}], "url": "https://protologue.com/t/llm-as-a-judge/", "citation": "Protologue. (2026). LLM-as-a-Judge. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0050). https://protologue.com/t/llm-as-a-judge/"} +{"id": "PTL-0051", "slug": "multi-agent-debate", "term": "Multi-Agent Debate", "aliases": ["LLM debate", "society of minds", "MAD", "multiagent debate"], "category": "Self-Critique & Verification", "definition": "Multi-agent debate has several model instances propose answers, read each other's reasoning, and revise their answers over multiple rounds until they converge.", "description": "Du et al. found that debate improved mathematical reasoning and factual accuracy over single-model answers.", "example": null, "broader": [], "narrower": [], "related": ["mixture-of-agents", "self-consistency"], "introduced": 2023, "sources": [{"title": "Improving Factuality and Reasoning in Language Models through Multiagent Debate", "authors": "Du et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.14325"}], "url": "https://protologue.com/t/multi-agent-debate/", "citation": "Protologue. (2026). Multi-Agent Debate. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0051). https://protologue.com/t/multi-agent-debate/"} +{"id": "PTL-0052", "slug": "mixture-of-agents", "term": "Mixture-of-Agents", "aliases": ["MoA"], "category": "Self-Critique & Verification", "definition": "Mixture-of-Agents (MoA) arranges language models in layers, where each model receives all outputs from the previous layer as auxiliary input and an aggregator synthesizes a final response.", "description": "Wang et al. reported that a mixture of open models outperformed a single strong proprietary model on an instruction-following benchmark.", "example": null, "broader": [], "narrower": [], "related": ["multi-agent-debate", "parallelization"], "introduced": 2024, "sources": [{"title": "Mixture-of-Agents Enhances Large Language Model Capabilities", "authors": "Wang et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.04692"}], "url": "https://protologue.com/t/mixture-of-agents/", "citation": "Protologue. (2026). Mixture-of-Agents. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0052). https://protologue.com/t/mixture-of-agents/"} +{"id": "PTL-0053", "slug": "process-reward-model", "term": "Process Reward Model", "aliases": ["PRM", "step-level verifier", "process supervision"], "category": "Self-Critique & Verification", "definition": "A process reward model (PRM) scores each intermediate step of a model's reasoning, rather than only the final answer, and is used to select or train better reasoning chains.", "description": "Lightman et al. showed process supervision outperformed outcome supervision for selecting correct solutions to competition math problems, and released a large dataset of step-level human labels.", "example": null, "broader": [], "narrower": [], "related": ["best-of-n-sampling", "test-time-compute-scaling", "llm-as-a-judge"], "introduced": 2023, "sources": [{"title": "Let's Verify Step by Step", "authors": "Lightman et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.20050"}], "url": "https://protologue.com/t/process-reward-model/", "citation": "Protologue. (2026). Process Reward Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0053). https://protologue.com/t/process-reward-model/"} +{"id": "PTL-0054", "slug": "best-of-n-sampling", "term": "Best-of-N Sampling", "aliases": ["rejection sampling", "best-of-n", "BoN"], "category": "Self-Critique & Verification", "definition": "Best-of-N sampling generates N candidate outputs and returns the one ranked highest by a verifier, reward model, or scoring function.", "description": "It is the simplest form of trading inference compute for quality. Its effectiveness depends on the verifier, and optimizing too hard against an imperfect reward model can select outputs that game it.", "example": null, "broader": [], "narrower": [], "related": ["self-consistency", "process-reward-model", "test-time-compute-scaling"], "introduced": null, "sources": [{"title": "Let's Verify Step by Step", "authors": "Lightman et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.20050"}, {"title": "Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters", "authors": "Snell et al.", "year": 2024, "url": "https://arxiv.org/abs/2408.03314"}], "url": "https://protologue.com/t/best-of-n-sampling/", "citation": "Protologue. (2026). Best-of-N Sampling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0054). https://protologue.com/t/best-of-n-sampling/"} +{"id": "PTL-0055", "slug": "retrieval-augmented-generation", "term": "Retrieval-Augmented Generation", "aliases": ["RAG", "retrieval augmentation", "grounded generation"], "category": "Retrieval & Tool Use", "definition": "Retrieval-augmented generation (RAG) supplies a language model with passages retrieved from an external corpus at query time, so its output is grounded in that information rather than only in its trained parameters.", "description": "Lewis et al. introduced RAG as a jointly trained retriever and generator. In common usage the term now covers any pipeline that retrieves documents, typically by embedding search, and inserts them into the prompt. RAG reduces hallucination and allows knowledge to be updated without retraining.", "example": null, "broader": [], "narrower": ["hypothetical-document-embeddings", "self-rag", "graphrag", "agentic-rag", "corrective-rag", "active-retrieval"], "related": ["hallucination", "context-engineering"], "introduced": 2020, "sources": [{"title": "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks", "authors": "Lewis et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.11401"}], "url": "https://protologue.com/t/retrieval-augmented-generation/", "citation": "Protologue. (2026). Retrieval-Augmented Generation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0055). https://protologue.com/t/retrieval-augmented-generation/"} +{"id": "PTL-0056", "slug": "hypothetical-document-embeddings", "term": "Hypothetical Document Embeddings", "aliases": ["HyDE"], "category": "Retrieval & Tool Use", "definition": "Hypothetical Document Embeddings (HyDE) improves retrieval by having a model write a hypothetical answer to the query, embedding that answer, and searching for real documents similar to it.", "description": "The generated document may contain errors, but its embedding tends to lie closer to relevant real documents than the short query does.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": [], "introduced": 2022, "sources": [{"title": "Precise Zero-Shot Dense Retrieval without Relevance Labels", "authors": "Gao et al.", "year": 2022, "url": "https://arxiv.org/abs/2212.10496"}], "url": "https://protologue.com/t/hypothetical-document-embeddings/", "citation": "Protologue. (2026). Hypothetical Document Embeddings. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0056). https://protologue.com/t/hypothetical-document-embeddings/"} +{"id": "PTL-0057", "slug": "self-rag", "term": "Self-RAG", "aliases": [], "category": "Retrieval & Tool Use", "definition": "Self-RAG trains a model to decide when to retrieve, and to emit special reflection tokens that critique whether retrieved passages are relevant and whether its own output is supported by them.", "description": "Retrieving on demand rather than for every query avoids adding irrelevant context and lets the model's critique steer generation.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": ["chain-of-verification"], "introduced": 2023, "sources": [{"title": "Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection", "authors": "Asai et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.11511"}], "url": "https://protologue.com/t/self-rag/", "citation": "Protologue. (2026). Self-RAG. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0057). https://protologue.com/t/self-rag/"} +{"id": "PTL-0058", "slug": "react", "term": "ReAct", "aliases": ["Reason + Act", "thought-action-observation loop"], "category": "Retrieval & Tool Use", "definition": "ReAct is a prompting pattern that interleaves reasoning traces (\"Thought\") with actions such as tool calls (\"Action\") and their results (\"Observation\"), letting a model plan, act, and update its plan in a loop.", "description": "Yao et al. showed that combining reasoning and acting outperformed either alone on question answering and interactive decision-making tasks. ReAct is the template for most tool-using agent loops.", "example": "Thought: I need the population of the capital of France.\nAction: search(\"capital of France\")\nObservation: Paris\nThought: Now find the population of Paris.\n", "broader": [], "narrower": [], "related": ["function-calling", "chain-of-thought", "self-ask", "ai-agent", "reflexion"], "introduced": 2022, "sources": [{"title": "ReAct: Synergizing Reasoning and Acting in Language Models", "authors": "Yao et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.03629"}], "url": "https://protologue.com/t/react/", "citation": "Protologue. (2026). ReAct. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0058). https://protologue.com/t/react/"} +{"id": "PTL-0059", "slug": "toolformer", "term": "Toolformer", "aliases": [], "category": "Retrieval & Tool Use", "definition": "Toolformer is a method in which a language model teaches itself to use external tools, such as a calculator or search API, by generating candidate API calls in text and keeping those that reduce its prediction loss.", "description": "It showed that tool-use behavior could be learned in a self-supervised way from only a handful of demonstrations per tool.", "example": null, "broader": [], "narrower": [], "related": ["function-calling", "react"], "introduced": 2023, "sources": [{"title": "Toolformer: Language Models Can Teach Themselves to Use Tools", "authors": "Schick et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.04761"}], "url": "https://protologue.com/t/toolformer/", "citation": "Protologue. (2026). Toolformer. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0059). https://protologue.com/t/toolformer/"} +{"id": "PTL-0060", "slug": "function-calling", "term": "Function Calling", "aliases": ["tool use", "tool calling"], "category": "Retrieval & Tool Use", "definition": "Function calling, or tool use, is a model capability in which the model outputs a structured request to invoke a developer-defined function with arguments, which the application executes and returns as a result to the model.", "description": "Tools are usually described to the model with a name, a natural-language description, and a JSON Schema for parameters. Clear tool descriptions function as prompts in their own right and strongly affect when and how tools are used. Availability can also depend on the API surface; OpenAI's guide for its GPT-6.2 models, released in November 2026, states that tool calling with them requires the Responses API rather than Chat Completions.", "example": null, "broader": [], "narrower": ["web-search-tool", "code-execution-tool", "tool-search", "programmatic-tool-calling"], "related": ["react", "model-context-protocol", "structured-outputs", "toolformer"], "introduced": null, "sources": [{"title": "Tool use with Claude", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview"}, {"title": "Gorilla: Large Language Model Connected with Massive APIs", "authors": "Patil et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.15334"}, {"title": "Using GPT-6.2", "authors": "OpenAI", "year": 2026, "url": "https://developers.openai.com/api/docs/guides/latest-model/gpt-6.2-astra"}], "url": "https://protologue.com/t/function-calling/", "citation": "Protologue. (2026). Function Calling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0060). https://protologue.com/t/function-calling/"} +{"id": "PTL-0061", "slug": "model-context-protocol", "term": "Model Context Protocol", "aliases": ["MCP"], "category": "Retrieval & Tool Use", "definition": "The Model Context Protocol (MCP) is an open standard, introduced by Anthropic in 2024, that defines how applications expose tools, data resources, and prompt templates to language-model clients through a common client-server interface.", "description": "MCP replaces one-off integrations between each model application and each data source with a single protocol, so any compliant client can use any compliant server.", "example": null, "broader": [], "narrower": [], "related": ["function-calling", "context-engineering"], "introduced": 2024, "sources": [{"title": "Introducing the Model Context Protocol", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/news/model-context-protocol"}, {"title": "Specification (version 2026-07-28)", "authors": "Model Context Protocol", "year": 2026, "url": "https://modelcontextprotocol.io/specification/2026-07-28"}], "url": "https://protologue.com/t/model-context-protocol/", "citation": "Protologue. (2026). Model Context Protocol. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0061). https://protologue.com/t/model-context-protocol/"} +{"id": "PTL-0062", "slug": "structured-outputs", "term": "Structured Outputs", "aliases": ["JSON mode", "constrained decoding", "schema-constrained generation"], "category": "Retrieval & Tool Use", "definition": "Structured outputs constrain a language model to produce responses that conform to a specified format, typically a JSON Schema, either through instructions or through constrained decoding that guarantees validity.", "description": "Instruction-only approaches can still produce malformed output, while constrained decoding masks tokens that would violate the schema at each step. Structured outputs are essential for passing model results reliably to downstream code.", "example": null, "broader": [], "narrower": [], "related": ["function-calling", "prefill", "delimiters"], "introduced": null, "sources": [{"title": "Structured model outputs", "authors": "OpenAI", "year": 2024, "url": "https://developers.openai.com/api/docs/guides/structured-outputs"}, {"title": "Efficient Guided Generation for Large Language Models", "authors": "Willard & Louf", "year": 2023, "url": "https://arxiv.org/abs/2307.09702"}], "url": "https://protologue.com/t/structured-outputs/", "citation": "Protologue. (2026). Structured Outputs. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0062). https://protologue.com/t/structured-outputs/"} +{"id": "PTL-0063", "slug": "ai-agent", "term": "AI Agent", "aliases": ["LLM agent", "agentic system", "autonomous agent"], "category": "Agents & Orchestration", "definition": "An AI agent is a system in which a language model dynamically directs its own process and tool use in a loop, deciding what actions to take based on environment feedback until a task is complete.", "description": "Anthropic's widely cited taxonomy distinguishes agents from workflows, in which model calls and tools follow predefined code paths. Agents trade predictability and cost for flexibility on open-ended tasks.", "example": null, "broader": [], "narrower": ["computer-use-agent", "coding-agent"], "related": ["react", "agentic-workflow", "orchestrator-workers", "agent-memory", "context-engineering"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/ai-agent/", "citation": "Protologue. (2026). AI Agent. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0063). https://protologue.com/t/ai-agent/"} +{"id": "PTL-0064", "slug": "agentic-workflow", "term": "Agentic Workflow", "aliases": ["LLM workflow"], "category": "Agents & Orchestration", "definition": "An agentic workflow is a system in which language models and tools are orchestrated through predefined code paths, as opposed to an agent that chooses its own steps.", "description": "Common workflow patterns include prompt chaining, routing, parallelization, orchestrator-workers, and evaluator-optimizer loops. Workflows are generally preferred when a task can be cleanly decomposed in advance.", "example": null, "broader": [], "narrower": ["prompt-chaining", "routing", "parallelization", "orchestrator-workers", "evaluator-optimizer", "plan-and-execute"], "related": ["ai-agent"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/agentic-workflow/", "citation": "Protologue. (2026). Agentic Workflow. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0064). https://protologue.com/t/agentic-workflow/"} +{"id": "PTL-0065", "slug": "prompt-chaining", "term": "Prompt Chaining", "aliases": ["LLM chains", "multi-step prompting"], "category": "Agents & Orchestration", "definition": "Prompt chaining decomposes a task into a fixed sequence of model calls, where each call processes the output of the previous one, often with programmatic checks between steps.", "description": "Chaining trades latency for accuracy by making each call simpler. Wu et al. found chaining also improved transparency and controllability for users building with models.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["least-to-most-prompting", "routing"], "introduced": 2021, "sources": [{"title": "AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model Prompts", "authors": "Wu et al.", "year": 2021, "url": "https://arxiv.org/abs/2110.01691"}, {"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/prompt-chaining/", "citation": "Protologue. (2026). Prompt Chaining. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0065). https://protologue.com/t/prompt-chaining/"} +{"id": "PTL-0066", "slug": "routing", "term": "Routing", "aliases": ["model routing", "query routing"], "category": "Agents & Orchestration", "definition": "Routing is a workflow pattern that classifies an incoming request and directs it to a specialized prompt, tool, or model suited to that category.", "description": "Routing allows separate prompts to be optimized for distinct cases, and lets easy queries go to smaller, cheaper models while hard ones go to more capable models.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["prompt-chaining"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/routing/", "citation": "Protologue. (2026). Routing. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0066). https://protologue.com/t/routing/"} +{"id": "PTL-0067", "slug": "parallelization", "term": "Parallelization", "aliases": ["sectioning", "voting"], "category": "Agents & Orchestration", "definition": "Parallelization is a workflow pattern that runs several model calls simultaneously and aggregates their outputs, either by splitting a task into independent sections or by running the same task several times and voting.", "description": "Sectioning reduces latency and keeps each call focused, while voting improves confidence, for example by running several independent safety checks.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["self-consistency", "skeleton-of-thought", "mixture-of-agents"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/parallelization/", "citation": "Protologue. (2026). Parallelization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0067). https://protologue.com/t/parallelization/"} +{"id": "PTL-0068", "slug": "orchestrator-workers", "term": "Orchestrator-Workers", "aliases": ["subagents", "multi-agent orchestration", "supervisor pattern"], "category": "Agents & Orchestration", "definition": "Orchestrator-workers is a pattern in which a central model dynamically breaks a task into subtasks, delegates them to worker model calls or subagents, and synthesizes their results.", "description": "Unlike parallelization, the subtasks are not fixed in advance but decided by the orchestrator for each input, which suits tasks such as multi-file code changes or broad research.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["ai-agent", "parallelization", "meta-prompting"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/orchestrator-workers/", "citation": "Protologue. (2026). Orchestrator-Workers. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0068). https://protologue.com/t/orchestrator-workers/"} +{"id": "PTL-0069", "slug": "evaluator-optimizer", "term": "Evaluator-Optimizer", "aliases": [], "category": "Agents & Orchestration", "definition": "Evaluator-optimizer is a workflow loop in which one model call generates a response and another evaluates it against criteria and provides feedback, repeating until the output passes.", "description": "It works best when evaluation criteria are clear and when feedback demonstrably improves the output, as in literary translation or iterative search.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["self-refine", "llm-as-a-judge", "reflexion"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}], "url": "https://protologue.com/t/evaluator-optimizer/", "citation": "Protologue. (2026). Evaluator-Optimizer. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0069). https://protologue.com/t/evaluator-optimizer/"} +{"id": "PTL-0070", "slug": "meta-prompting", "term": "Meta-Prompting", "aliases": [], "category": "Agents & Orchestration", "definition": "Meta-prompting uses a single model as a conductor that breaks a task down and writes prompts for fresh instances of itself acting as specialized experts, then integrates their outputs.", "description": "The term is also used more loosely for asking a model to write or improve a prompt. In OPRO, for example, the \"meta-prompt\" is the prompt that asks a model to propose better instructions, given earlier candidates and their scores; that sense belongs with prompt optimization rather than with the conductor-and-experts method described here.", "example": null, "broader": [], "narrower": [], "related": ["orchestrator-workers", "self-discover", "automatic-prompt-engineer", "opro", "prompt-optimization"], "introduced": 2024, "sources": [{"title": "Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding", "authors": "Suzgun & Kalai", "year": 2024, "url": "https://arxiv.org/abs/2401.12954"}, {"title": "Large Language Models as Optimizers", "authors": "Yang et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.03409"}], "url": "https://protologue.com/t/meta-prompting/", "citation": "Protologue. (2026). Meta-Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0070). https://protologue.com/t/meta-prompting/"} +{"id": "PTL-0071", "slug": "agent-memory", "term": "Agent Memory", "aliases": ["long-term memory", "memory stream"], "category": "Agents & Orchestration", "definition": "Agent memory is the set of mechanisms that let a language-model agent store information beyond a single context window, such as conversation summaries, retrievable records of past events, and reflections, and bring the relevant parts back into context later.", "description": "Park et al.'s generative agents scored memories by recency, importance, and relevance and periodically synthesized higher-level reflections. MemGPT treated the context window like main memory and paged information in and out of external storage.", "example": null, "broader": [], "narrower": ["dreaming"], "related": ["ai-agent", "context-engineering", "reflexion", "retrieval-augmented-generation"], "introduced": null, "sources": [{"title": "Generative Agents: Interactive Simulacra of Human Behavior", "authors": "Park et al.", "year": 2023, "url": "https://arxiv.org/abs/2304.03442"}, {"title": "MemGPT: Towards LLMs as Operating Systems", "authors": "Packer et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.08560"}], "url": "https://protologue.com/t/agent-memory/", "citation": "Protologue. (2026). Agent Memory. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0071). https://protologue.com/t/agent-memory/"} +{"id": "PTL-0072", "slug": "context-engineering", "term": "Context Engineering", "aliases": ["context management"], "category": "Agents & Orchestration", "definition": "Context engineering is the practice of curating the full set of tokens a model sees at each step, including instructions, tools, retrieved data, memory, and conversation history, to maximize the chance of the desired behavior within a limited attention budget.", "description": "The term gained currency in 2025 as agents ran for many steps and the main challenge shifted from wording a single prompt to deciding what information enters and leaves the context window over time, through techniques such as compaction, structured note-taking, and subagents.", "example": null, "broader": ["prompt-engineering"], "narrower": [], "related": ["context-window", "agent-memory", "retrieval-augmented-generation", "ai-agent", "lost-in-the-middle"], "introduced": 2025, "sources": [{"title": "Effective context engineering for AI agents", "authors": "Anthropic", "year": 2025, "url": "https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents"}], "url": "https://protologue.com/t/context-engineering/", "citation": "Protologue. (2026). Context Engineering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0072). https://protologue.com/t/context-engineering/"} +{"id": "PTL-0073", "slug": "automatic-prompt-engineer", "term": "Automatic Prompt Engineer", "aliases": ["APE"], "category": "Prompt Optimization", "definition": "Automatic Prompt Engineer (APE) uses a language model to generate candidate instructions for a task from input-output examples, scores each candidate on held-out data, and selects the best one.", "description": "APE discovered a zero-shot chain-of-thought trigger that outperformed \"Let's think step by step\" on some benchmarks, and framed prompt writing as a search problem that models can solve themselves.", "example": null, "broader": [], "narrower": [], "related": ["prompt-engineering", "opro", "dspy", "meta-prompting"], "introduced": 2022, "sources": [{"title": "Large Language Models Are Human-Level Prompt Engineers", "authors": "Zhou et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.01910"}], "url": "https://protologue.com/t/automatic-prompt-engineer/", "citation": "Protologue. (2026). Automatic Prompt Engineer. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0073). https://protologue.com/t/automatic-prompt-engineer/"} +{"id": "PTL-0074", "slug": "opro", "term": "Optimization by Prompting", "aliases": ["OPRO", "LLMs as optimizers"], "category": "Prompt Optimization", "definition": "Optimization by PROmpting (OPRO) uses a language model as an optimizer, giving it a meta-prompt containing previously tried prompts and their scores and asking it to propose a better prompt, repeating over many rounds.", "description": "OPRO found instructions such as \"Take a deep breath and work on this problem step-by-step\" that improved math benchmark accuracy for the model being optimized.", "example": null, "broader": [], "narrower": [], "related": ["automatic-prompt-engineer", "dspy"], "introduced": 2023, "sources": [{"title": "Large Language Models as Optimizers", "authors": "Yang et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.03409"}], "url": "https://protologue.com/t/opro/", "citation": "Protologue. (2026). Optimization by Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0074). https://protologue.com/t/opro/"} +{"id": "PTL-0075", "slug": "dspy", "term": "DSPy", "aliases": ["Declarative Self-improving Python"], "category": "Prompt Optimization", "definition": "DSPy is a framework that treats language-model pipelines as programs of declarative modules, and compiles them by automatically optimizing the prompts and few-shot demonstrations for each module against a metric.", "description": "Rather than hand-tuning prompt strings, developers specify input-output signatures and let optimizers bootstrap demonstrations or search instructions, making pipelines portable across models.", "example": null, "broader": [], "narrower": [], "related": ["automatic-prompt-engineer", "opro", "prompt-template"], "introduced": 2023, "sources": [{"title": "DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines", "authors": "Khattab et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.03714"}], "url": "https://protologue.com/t/dspy/", "citation": "Protologue. (2026). DSPy. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0075). https://protologue.com/t/dspy/"} +{"id": "PTL-0076", "slug": "prompt-tuning", "term": "Prompt Tuning", "aliases": ["soft prompts", "soft prompt tuning"], "category": "Prompt Optimization", "definition": "Prompt tuning learns a small set of continuous \"soft prompt\" embeddings that are prepended to the input, by gradient descent, while keeping the language model's weights frozen.", "description": "Lester et al. showed that as models grow, prompt tuning approaches the quality of full fine-tuning while storing only a tiny number of task-specific parameters. Soft prompts are vectors rather than readable text.", "example": null, "broader": [], "narrower": [], "related": ["prefix-tuning", "low-rank-adaptation"], "introduced": 2021, "sources": [{"title": "The Power of Scale for Parameter-Efficient Prompt Tuning", "authors": "Lester et al.", "year": 2021, "url": "https://arxiv.org/abs/2104.08691"}], "url": "https://protologue.com/t/prompt-tuning/", "citation": "Protologue. (2026). Prompt Tuning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0076). https://protologue.com/t/prompt-tuning/"} +{"id": "PTL-0077", "slug": "prefix-tuning", "term": "Prefix Tuning", "aliases": [], "category": "Prompt Optimization", "definition": "Prefix tuning learns continuous task-specific vectors that are prepended to the activations at every layer of a frozen language model, steering generation without changing the model's weights.", "description": "It was an early parameter-efficient alternative to fine-tuning for generation tasks such as table-to-text and summarization.", "example": null, "broader": [], "narrower": [], "related": ["prompt-tuning", "low-rank-adaptation"], "introduced": 2021, "sources": [{"title": "Prefix-Tuning: Optimizing Continuous Prompts for Generation", "authors": "Li & Liang", "year": 2021, "url": "https://arxiv.org/abs/2101.00190"}], "url": "https://protologue.com/t/prefix-tuning/", "citation": "Protologue. (2026). Prefix Tuning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0077). https://protologue.com/t/prefix-tuning/"} +{"id": "PTL-0078", "slug": "low-rank-adaptation", "term": "Low-Rank Adaptation", "aliases": ["LoRA"], "category": "Prompt Optimization", "definition": "Low-rank adaptation (LoRA) fine-tunes a language model by training small low-rank matrices added to its weight layers while freezing the original weights, drastically reducing the number of trainable parameters.", "description": "LoRA is a common alternative when prompting alone cannot reach the required behavior, and adapters can be swapped per task on one base model.", "example": null, "broader": [], "narrower": ["qlora"], "related": ["prompt-tuning", "prefix-tuning", "instruction-tuning"], "introduced": 2021, "sources": [{"title": "LoRA: Low-Rank Adaptation of Large Language Models", "authors": "Hu et al.", "year": 2021, "url": "https://arxiv.org/abs/2106.09685"}], "url": "https://protologue.com/t/low-rank-adaptation/", "citation": "Protologue. (2026). Low-Rank Adaptation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0078). https://protologue.com/t/low-rank-adaptation/"} +{"id": "PTL-0079", "slug": "directional-stimulus-prompting", "term": "Directional Stimulus Prompting", "aliases": [], "category": "Prompt Optimization", "definition": "Directional stimulus prompting trains a small policy model to generate instance-specific hints, such as keywords, that are added to the prompt to steer a large frozen model toward desired outputs.", "description": "The policy model can be trained with supervised learning and reinforcement learning, without access to the large model's weights.", "example": null, "broader": [], "narrower": [], "related": ["prompt-tuning", "opro"], "introduced": 2023, "sources": [{"title": "Guiding Large Language Models via Directional Stimulus Prompting", "authors": "Li et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.11520"}], "url": "https://protologue.com/t/directional-stimulus-prompting/", "citation": "Protologue. (2026). Directional Stimulus Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0079). https://protologue.com/t/directional-stimulus-prompting/"} +{"id": "PTL-0080", "slug": "prompt-compression", "term": "Prompt Compression", "aliases": ["LLMLingua", "context compression"], "category": "Prompt Optimization", "definition": "Prompt compression shortens a prompt by removing tokens that contribute little information, typically scored by a smaller language model, to cut cost and latency while preserving task performance.", "description": "LLMLingua used a small model's perplexity to drop low-information tokens and reported high compression ratios with limited performance loss.", "example": null, "broader": [], "narrower": [], "related": ["context-engineering", "prompt-caching"], "introduced": 2023, "sources": [{"title": "LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models", "authors": "Jiang et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.05736"}], "url": "https://protologue.com/t/prompt-compression/", "citation": "Protologue. (2026). Prompt Compression. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0080). https://protologue.com/t/prompt-compression/"} +{"id": "PTL-0081", "slug": "prompt-caching", "term": "Prompt Caching", "aliases": ["context caching", "prefix caching"], "category": "Prompt Optimization", "definition": "Prompt caching stores the model's processed state for a reused prompt prefix, such as a long system prompt or document, so later requests sharing that prefix are cheaper and faster.", "description": "Because caches match on an exact prefix, prompts are structured with stable content first and variable content last. In Anthropic's API, developers mark cache breakpoints explicitly or let the API place one automatically and move it forward as a conversation grows. Cache entries expire after five minutes without use by default, with a one-hour option, and cached input is billed at a fraction of the normal input price. OpenAI added a 12-hour cache option to its API in October 2026. Its current documentation sets the cache lifetime to 30 minutes by default or 12 hours, with cache writes billed at 1.25 and 2.5 times the input price respectively and cache reads at a tenth of the input price on most models.", "example": null, "broader": [], "narrower": [], "related": ["system-prompt", "prompt-compression", "context-engineering"], "introduced": 2024, "sources": [{"title": "Prompt caching", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-caching"}, {"title": "Changelog", "authors": "OpenAI", "year": 2026, "url": "https://developers.openai.com/api/docs/changelog"}, {"title": "Prompt caching", "authors": "OpenAI", "year": 2026, "url": "https://developers.openai.com/api/docs/guides/prompt-caching"}], "url": "https://protologue.com/t/prompt-caching/", "citation": "Protologue. (2026). Prompt Caching. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0081). https://protologue.com/t/prompt-caching/"} +{"id": "PTL-0082", "slug": "emotion-prompting", "term": "Emotion Prompting", "aliases": ["EmotionPrompt", "stimulus prompting"], "category": "Prompt Optimization", "definition": "Emotion prompting appends emotional or motivational phrases, such as \"This is very important to my career,\" to a prompt in an attempt to improve model performance.", "description": "Li et al. reported gains on several benchmarks with such \"EmotionPrompt\" stimuli. Effects of these cues vary across models and tasks and are best treated as an empirical question for each setup.", "example": null, "broader": [], "narrower": [], "related": ["prompt-sensitivity", "role-prompting"], "introduced": 2023, "sources": [{"title": "Large Language Models Understand and Can be Enhanced by Emotional Stimuli", "authors": "Li et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.11760"}], "url": "https://protologue.com/t/emotion-prompting/", "citation": "Protologue. (2026). Emotion Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0082). https://protologue.com/t/emotion-prompting/"} +{"id": "PTL-0083", "slug": "reasoning-model", "term": "Reasoning Model", "aliases": ["large reasoning model", "LRM", "thinking model"], "category": "Reasoning Models & Test-Time Compute", "definition": "A reasoning model is a language model trained, typically with reinforcement learning, to produce an extended internal chain of thought before answering, so that it improves with more thinking time on math, coding, and planning tasks.", "description": "OpenAI's o1, announced in 2024, popularized the category, and DeepSeek-R1 showed that reinforcement learning with verifiable rewards could produce long reasoning behaviors in an openly released model. Prompting such models differs from prompting standard models, because step-by-step instructions and few-shot reasoning examples are often unnecessary.", "example": null, "broader": [], "narrower": ["extended-thinking"], "related": ["chain-of-thought", "test-time-compute-scaling", "self-taught-reasoner"], "introduced": 2024, "sources": [{"title": "Learning to reason with LLMs", "authors": "OpenAI", "year": 2024, "url": "https://openai.com/index/learning-to-reason-with-llms/"}, {"title": "DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning", "authors": "DeepSeek-AI", "year": 2025, "url": "https://arxiv.org/abs/2501.12948"}], "url": "https://protologue.com/t/reasoning-model/", "citation": "Protologue. (2026). Reasoning Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0083). https://protologue.com/t/reasoning-model/"} +{"id": "PTL-0084", "slug": "test-time-compute-scaling", "term": "Test-Time Compute Scaling", "aliases": ["inference-time scaling", "test-time scaling"], "category": "Reasoning Models & Test-Time Compute", "definition": "Test-time compute scaling improves a model's answers by spending more computation at inference, through longer reasoning, more samples, search, or verification, rather than by training a larger model.", "description": "Snell et al. found that allocating test-time compute adaptively per prompt could be more effective than scaling model parameters for some problems. Self-consistency, best-of-N, tree search, and reasoning models are all forms of test-time scaling.", "example": null, "broader": [], "narrower": ["budget-forcing", "recursive-language-model", "sleep-time-compute"], "related": ["reasoning-model", "self-consistency", "best-of-n-sampling", "tree-of-thoughts", "process-reward-model"], "introduced": 2024, "sources": [{"title": "Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters", "authors": "Snell et al.", "year": 2024, "url": "https://arxiv.org/abs/2408.03314"}], "url": "https://protologue.com/t/test-time-compute-scaling/", "citation": "Protologue. (2026). Test-Time Compute Scaling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0084). https://protologue.com/t/test-time-compute-scaling/"} +{"id": "PTL-0085", "slug": "extended-thinking", "term": "Extended Thinking", "aliases": ["thinking mode", "thinking budget", "reasoning effort"], "category": "Reasoning Models & Test-Time Compute", "definition": "Extended thinking is a model mode in which the model generates a separate block of reasoning before its final response, with a developer-controlled setting that trades latency and cost for answer quality.", "description": "Early implementations exposed a fixed thinking token budget. Newer Claude models replace it with adaptive thinking, in which the model decides whether and how much to reason on each request and the developer sets an effort level instead of a token budget. Anthropic's documentation states that the fixed budget is deprecated on Claude 4.6 models and rejected by Claude 4.7 and later models, and Claude Fable 5.2 and Mythos 5.2, released in November 2026, have adaptive thinking always on. Vendor guidance for these modes favors high-level instructions about how to think over prescriptive step-by-step scripts.", "example": null, "broader": ["reasoning-model"], "narrower": ["interleaved-thinking"], "related": ["scratchpad", "chain-of-thought"], "introduced": null, "sources": [{"title": "Extended thinking", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/build-with-claude/extended-thinking"}, {"title": "Release notes", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/release-notes/overview"}], "url": "https://protologue.com/t/extended-thinking/", "citation": "Protologue. (2026). Extended Thinking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0085). https://protologue.com/t/extended-thinking/"} +{"id": "PTL-0086", "slug": "self-taught-reasoner", "term": "Self-Taught Reasoner", "aliases": ["STaR"], "category": "Reasoning Models & Test-Time Compute", "definition": "The Self-Taught Reasoner (STaR) bootstraps reasoning ability by having a model generate rationales, keeping those that lead to correct answers, and fine-tuning on them in repeated rounds.", "description": "For problems it fails, STaR provides the correct answer as a hint and asks the model to produce a rationale for it, a step called rationalization.", "example": null, "broader": [], "narrower": [], "related": ["reasoning-model", "chain-of-thought"], "introduced": 2022, "sources": [{"title": "STaR: Bootstrapping Reasoning With Reasoning", "authors": "Zelikman et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.14465"}], "url": "https://protologue.com/t/self-taught-reasoner/", "citation": "Protologue. (2026). Self-Taught Reasoner. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0086). https://protologue.com/t/self-taught-reasoner/"} +{"id": "PTL-0087", "slug": "prompt-injection", "term": "Prompt Injection", "aliases": ["goal hijacking", "instruction injection"], "category": "Security & Adversarial Prompting", "definition": "Prompt injection is an attack in which text supplied to a language model, by a user or through data the model processes, contains instructions that override or subvert the instructions of the application's developer.", "description": "The name was coined in 2022 by analogy with SQL injection, because models cannot reliably separate trusted instructions from untrusted data that share the same context. It is the most prominent security risk for applications built on language models, especially agents with tool access.", "example": null, "broader": [], "narrower": ["indirect-prompt-injection", "prompt-leaking"], "related": ["jailbreak", "instruction-hierarchy", "spotlighting"], "introduced": 2022, "sources": [{"title": "Prompt injection attacks against GPT-3", "authors": "Willison", "year": 2022, "url": "https://simonwillison.net/2022/Sep/12/prompt-injection/"}, {"title": "Ignore Previous Prompt: Attack Techniques For Language Models", "authors": "Perez & Ribeiro", "year": 2022, "url": "https://arxiv.org/abs/2211.09527"}], "url": "https://protologue.com/t/prompt-injection/", "citation": "Protologue. (2026). Prompt Injection. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0087). https://protologue.com/t/prompt-injection/"} +{"id": "PTL-0088", "slug": "indirect-prompt-injection", "term": "Indirect Prompt Injection", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Indirect prompt injection places malicious instructions inside content a model will later retrieve or process, such as a web page, email, or document, so the attack is triggered without the attacker interacting with the model directly.", "description": "Greshake et al. demonstrated that injected content could make integrated applications exfiltrate data, spread to other users, or manipulate outputs. Risk grows with an agent's access to tools and private data.", "example": null, "broader": ["prompt-injection"], "narrower": ["tool-poisoning"], "related": ["retrieval-augmented-generation", "spotlighting", "ai-agent"], "introduced": 2023, "sources": [{"title": "Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection", "authors": "Greshake et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.12173"}], "url": "https://protologue.com/t/indirect-prompt-injection/", "citation": "Protologue. (2026). Indirect Prompt Injection. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0088). https://protologue.com/t/indirect-prompt-injection/"} +{"id": "PTL-0089", "slug": "prompt-leaking", "term": "Prompt Leaking", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Prompt leaking is an attack that tricks a model into revealing its hidden system prompt or other confidential instructions.", "description": "System prompts should be treated as potentially discoverable, so they should not contain secrets such as API keys.", "example": null, "broader": ["prompt-injection"], "narrower": [], "related": ["system-prompt"], "introduced": null, "sources": [{"title": "Ignore Previous Prompt: Attack Techniques For Language Models", "authors": "Perez & Ribeiro", "year": 2022, "url": "https://arxiv.org/abs/2211.09527"}], "url": "https://protologue.com/t/prompt-leaking/", "citation": "Protologue. (2026). Prompt Leaking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0089). https://protologue.com/t/prompt-leaking/"} +{"id": "PTL-0090", "slug": "jailbreak", "term": "Jailbreak", "aliases": ["jailbreaking"], "category": "Security & Adversarial Prompting", "definition": "A jailbreak is a prompt crafted to make a model produce outputs its safety training is meant to prevent, often through role-play, hypothetical framing, obfuscation, or other adversarial techniques.", "description": "Wei et al. attributed jailbreak success to two failure modes, competing objectives between helpfulness and safety, and mismatched generalization, where safety training does not cover inputs the model can still understand. Jailbreaks target the model's safety behavior, while prompt injection targets the application's instructions.", "example": null, "broader": [], "narrower": ["adversarial-suffix", "many-shot-jailbreaking", "crescendo-attack", "pair-attack", "best-of-n-jailbreaking"], "related": ["prompt-injection", "constitutional-ai"], "introduced": null, "sources": [{"title": "Jailbroken: How Does LLM Safety Training Fail?", "authors": "Wei et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.02483"}], "url": "https://protologue.com/t/jailbreak/", "citation": "Protologue. (2026). Jailbreak. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0090). https://protologue.com/t/jailbreak/"} +{"id": "PTL-0091", "slug": "adversarial-suffix", "term": "Adversarial Suffix", "aliases": ["GCG attack", "universal adversarial attack"], "category": "Security & Adversarial Prompting", "definition": "An adversarial suffix is an automatically optimized string of tokens that, when appended to a request, causes an aligned model to comply with requests it would normally refuse.", "description": "Zou et al. used a greedy coordinate gradient search on open models to find such suffixes and found that they often transferred to other models.", "example": null, "broader": ["jailbreak"], "narrower": [], "related": [], "introduced": 2023, "sources": [{"title": "Universal and Transferable Adversarial Attacks on Aligned Language Models", "authors": "Zou et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.15043"}], "url": "https://protologue.com/t/adversarial-suffix/", "citation": "Protologue. (2026). Adversarial Suffix. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0091). https://protologue.com/t/adversarial-suffix/"} +{"id": "PTL-0092", "slug": "many-shot-jailbreaking", "term": "Many-shot Jailbreaking", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Many-shot jailbreaking fills a long context window with many fabricated dialogue examples in which an assistant complies with harmful requests, exploiting in-context learning to override the model's safety training.", "description": "Anthropic researchers found the attack's effectiveness followed a power law in the number of shots, mirroring the scaling of benign in-context learning.", "example": null, "broader": ["jailbreak"], "narrower": [], "related": ["many-shot-in-context-learning", "context-window"], "introduced": 2024, "sources": [{"title": "Many-shot jailbreaking", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/many-shot-jailbreaking"}], "url": "https://protologue.com/t/many-shot-jailbreaking/", "citation": "Protologue. (2026). Many-shot Jailbreaking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0092). https://protologue.com/t/many-shot-jailbreaking/"} +{"id": "PTL-0093", "slug": "instruction-hierarchy", "term": "Instruction Hierarchy", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "The instruction hierarchy is a training approach that teaches a model to prioritize instructions by source, typically system over user over tool output, and to ignore lower-priority instructions that conflict with higher-priority ones.", "description": "Wallace et al. trained models on synthetic conflicts and found large gains in robustness to prompt injection and system-prompt extraction with limited loss in helpfulness.", "example": null, "broader": [], "narrower": [], "related": ["system-prompt", "prompt-injection", "spotlighting"], "introduced": 2024, "sources": [{"title": "The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions", "authors": "Wallace et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.13208"}], "url": "https://protologue.com/t/instruction-hierarchy/", "citation": "Protologue. (2026). Instruction Hierarchy. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0093). https://protologue.com/t/instruction-hierarchy/"} +{"id": "PTL-0094", "slug": "spotlighting", "term": "Spotlighting", "aliases": ["datamarking", "input marking"], "category": "Security & Adversarial Prompting", "definition": "Spotlighting is a family of prompt-level defenses against indirect prompt injection that transform untrusted input, by delimiting, marking every word, or encoding it, so the model can distinguish it from trusted instructions.", "description": "Hines et al. reported substantial reductions in attack success with datamarking and encoding variants, with little effect on task performance.", "example": null, "broader": [], "narrower": [], "related": ["indirect-prompt-injection", "delimiters", "instruction-hierarchy"], "introduced": 2024, "sources": [{"title": "Defending Against Indirect Prompt Injection Attacks With Spotlighting", "authors": "Hines et al.", "year": 2024, "url": "https://arxiv.org/abs/2403.14720"}], "url": "https://protologue.com/t/spotlighting/", "citation": "Protologue. (2026). Spotlighting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0094). https://protologue.com/t/spotlighting/"} +{"id": "PTL-0095", "slug": "constitutional-ai", "term": "Constitutional AI", "aliases": ["CAI"], "category": "Security & Adversarial Prompting", "definition": "Constitutional AI is a training method in which a model critiques and revises its own outputs according to a written set of principles, and AI-generated preference judgments replace most human labels for harmlessness.", "description": "Bai et al. used a supervised self-critique phase followed by reinforcement learning from AI feedback. The approach made the principles governing model behavior explicit and editable. The principles are applied during training to shape the model itself; placing a list of rules in a system prompt at inference time is a different practice, even when it is described with the same name.", "example": null, "broader": [], "narrower": [], "related": ["rlhf", "rlaif", "self-refine", "jailbreak"], "introduced": 2022, "sources": [{"title": "Constitutional AI: Harmlessness from AI Feedback", "authors": "Bai et al.", "year": 2022, "url": "https://arxiv.org/abs/2212.08073"}], "url": "https://protologue.com/t/constitutional-ai/", "citation": "Protologue. (2026). Constitutional AI. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0095). https://protologue.com/t/constitutional-ai/"} +{"id": "PTL-0096", "slug": "hallucination", "term": "Hallucination", "aliases": ["confabulation", "fabrication"], "category": "Failure Modes & Evaluation", "definition": "Hallucination is generated content that is fluent and plausible but unfaithful to the provided source or factually incorrect, such as fabricated citations, facts, or quotations.", "description": "Surveys distinguish intrinsic hallucination, which contradicts the source, from extrinsic hallucination, which cannot be verified from it. Mitigations include retrieval-augmented generation, verification methods such as chain-of-verification, allowing the model to say it does not know, and requiring quotes from supplied documents.", "example": null, "broader": [], "narrower": [], "related": ["retrieval-augmented-generation", "chain-of-verification", "sycophancy"], "introduced": null, "sources": [{"title": "Survey of Hallucination in Natural Language Generation", "authors": "Ji et al.", "year": 2022, "url": "https://arxiv.org/abs/2202.03629"}], "url": "https://protologue.com/t/hallucination/", "citation": "Protologue. (2026). Hallucination. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0096). https://protologue.com/t/hallucination/"} +{"id": "PTL-0097", "slug": "sycophancy", "term": "Sycophancy", "aliases": [], "category": "Failure Modes & Evaluation", "definition": "Sycophancy is a model's tendency to tailor its answers to match a user's stated beliefs or preferences, including abandoning correct answers when the user pushes back, rather than giving its most accurate response.", "description": "Sharma et al. found sycophancy across several assistants and linked it to human preference data, which tends to reward agreement. Prompting mitigations include removing opinions from the question, as in System 2 Attention.", "example": null, "broader": [], "narrower": [], "related": ["rlhf", "system-2-attention", "hallucination"], "introduced": null, "sources": [{"title": "Towards Understanding Sycophancy in Language Models", "authors": "Sharma et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.13548"}], "url": "https://protologue.com/t/sycophancy/", "citation": "Protologue. (2026). Sycophancy. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0097). https://protologue.com/t/sycophancy/"} +{"id": "PTL-0098", "slug": "lost-in-the-middle", "term": "Lost in the Middle", "aliases": ["positional bias", "U-shaped context performance"], "category": "Failure Modes & Evaluation", "definition": "Lost in the middle is the finding that language models use information at the beginning or end of a long context much more reliably than information placed in the middle.", "description": "Liu et al. observed a U-shaped performance curve on multi-document question answering as the position of the relevant document varied. A practical takeaway is to place key material and instructions at the start or end of long prompts.", "example": null, "broader": [], "narrower": [], "related": ["context-window", "needle-in-a-haystack", "context-engineering", "thread-of-thought"], "introduced": 2023, "sources": [{"title": "Lost in the Middle: How Language Models Use Long Contexts", "authors": "Liu et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.03172"}], "url": "https://protologue.com/t/lost-in-the-middle/", "citation": "Protologue. (2026). Lost in the Middle. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0098). https://protologue.com/t/lost-in-the-middle/"} +{"id": "PTL-0099", "slug": "needle-in-a-haystack", "term": "Needle in a Haystack", "aliases": ["NIAH", "passkey retrieval"], "category": "Failure Modes & Evaluation", "definition": "Needle in a haystack is a long-context evaluation that hides a specific fact at varying depths in a long distractor document and tests whether the model can retrieve it.", "description": "It became a standard way to report effective context length, though passing it shows only simple retrieval, not reasoning over many dispersed facts.", "example": null, "broader": [], "narrower": [], "related": ["lost-in-the-middle", "context-window"], "introduced": 2023, "sources": [{"title": "needle-in-a-haystack", "authors": "Kamradt", "year": 2023, "url": "https://github.com/gkamradt/needle-in-a-haystack"}], "url": "https://protologue.com/t/needle-in-a-haystack/", "citation": "Protologue. (2026). Needle in a Haystack. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0099). https://protologue.com/t/needle-in-a-haystack/"} +{"id": "PTL-0100", "slug": "prompt-sensitivity", "term": "Prompt Sensitivity", "aliases": ["prompt brittleness", "format sensitivity"], "category": "Failure Modes & Evaluation", "definition": "Prompt sensitivity is the variation in a model's performance caused by superficial changes to a prompt, such as formatting, separators, spacing, or wording, that do not change the task's meaning.", "description": "Sclar et al. found accuracy differences of tens of percentage points from formatting choices alone, and argued that evaluations should report performance across a range of plausible formats.", "example": null, "broader": [], "narrower": [], "related": ["exemplar-ordering", "few-shot-calibration", "emotion-prompting"], "introduced": null, "sources": [{"title": "Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting", "authors": "Sclar et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.11324"}], "url": "https://protologue.com/t/prompt-sensitivity/", "citation": "Protologue. (2026). Prompt Sensitivity. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0100). https://protologue.com/t/prompt-sensitivity/"} +{"id": "PTL-0101", "slug": "unfaithful-chain-of-thought", "term": "Unfaithful Chain-of-Thought", "aliases": ["CoT faithfulness", "post-hoc rationalization"], "category": "Failure Modes & Evaluation", "definition": "Unfaithful chain-of-thought is stated reasoning that does not reflect the factors that actually determined the model's answer, so the explanation can be plausible yet misleading.", "description": "Turpin et al. showed that biasing features, such as always putting the correct answer in position A of few-shot examples, swayed answers while the stated reasoning never mentioned them. Lanham et al. measured how much answers actually depend on the stated reasoning, with results varying by task and model size.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought", "reasoning-model"], "introduced": null, "sources": [{"title": "Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Prompting", "authors": "Turpin et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.04388"}, {"title": "Measuring Faithfulness in Chain-of-Thought Reasoning", "authors": "Lanham et al.", "year": 2023, "url": "https://arxiv.org/abs/2307.13702"}], "url": "https://protologue.com/t/unfaithful-chain-of-thought/", "citation": "Protologue. (2026). Unfaithful Chain-of-Thought. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0101). https://protologue.com/t/unfaithful-chain-of-thought/"} +{"id": "PTL-0102", "slug": "large-language-model", "term": "Large Language Model", "aliases": ["LLM", "language model"], "category": "Foundations", "definition": "A large language model (LLM) is a neural network, usually a Transformer with billions of parameters, trained on very large text corpora to predict the next token, which lets it generate text and perform many tasks from a prompt.", "description": "The defining property is that a single model, without task-specific training, can translate, summarize, answer questions, write code, and follow instructions, with the task specified in the prompt. Most deployed LLMs are base models that have been further instruction-tuned and preference-tuned to behave as assistants. Their capabilities and their failure modes, such as hallucination and prompt sensitivity, both follow from next-token prediction over the prompt.", "example": null, "broader": ["foundation-model"], "narrower": ["base-model"], "related": ["token", "prompt", "in-context-learning"], "introduced": null, "sources": [{"title": "A Survey of Large Language Models", "authors": "Zhao et al.", "year": 2023, "url": "https://arxiv.org/abs/2303.18223"}, {"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}], "url": "https://protologue.com/t/large-language-model/", "citation": "Protologue. (2026). Large Language Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0102). https://protologue.com/t/large-language-model/"} +{"id": "PTL-0103", "slug": "foundation-model", "term": "Foundation Model", "aliases": ["frontier model", "general-purpose model"], "category": "Foundations", "definition": "A foundation model is a model trained on broad data at scale, usually with self-supervision, that can be adapted to a wide range of downstream tasks by prompting or fine-tuning.", "description": "The term was introduced in 2021 by researchers at Stanford to describe models such as BERT, GPT-3, and CLIP that serve as a common base for many applications. Large language models are the most prominent kind, but the term also covers image, audio, and multimodal models. Because many systems are built on the same few foundation models, their strengths and flaws are inherited widely.", "example": null, "broader": [], "narrower": ["large-language-model"], "related": ["base-model", "fine-tuning"], "introduced": 2021, "sources": [{"title": "On the Opportunities and Risks of Foundation Models", "authors": "Bommasani et al.", "year": 2021, "url": "https://arxiv.org/abs/2108.07258"}], "url": "https://protologue.com/t/foundation-model/", "citation": "Protologue. (2026). Foundation Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0103). https://protologue.com/t/foundation-model/"} +{"id": "PTL-0104", "slug": "base-model", "term": "Base Model", "aliases": ["pretrained model", "base LLM", "completion model"], "category": "Foundations", "definition": "A base model is a language model after pretraining but before instruction tuning or preference tuning, so it continues text in the style of its training data rather than following instructions.", "description": "Asked a question, a base model may answer it, continue with more questions, or produce something unrelated, because it only predicts plausible continuations. Prompting one effectively means framing the task as a document to complete, for example with few-shot examples or the start of the desired output. Chat assistants are derived from base models through instruction tuning and RLHF, which is why they are often called instruct or chat models.", "example": "A completion-style prompt for a base model: \"Q: What is the capital of France?\\nA: Paris\\nQ: What is the capital of Japan?\\nA:\"", "broader": ["large-language-model"], "narrower": [], "related": ["instruction-tuning", "rlhf", "few-shot-prompting", "chat-template"], "introduced": null, "sources": [{"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}, {"title": "Language Models are Few-Shot Learners", "authors": "Brown et al.", "year": 2020, "url": "https://arxiv.org/abs/2005.14165"}], "url": "https://protologue.com/t/base-model/", "citation": "Protologue. (2026). Base Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0104). https://protologue.com/t/base-model/"} +{"id": "PTL-0105", "slug": "fine-tuning", "term": "Fine-Tuning", "aliases": ["model fine-tuning", "transfer learning"], "category": "Foundations", "definition": "Fine-tuning is the further training of a pretrained model on a smaller, task- or domain-specific dataset so that its weights adapt to that task or domain.", "description": "Fine-tuning complements prompting. Prompting changes only the input, while fine-tuning changes the model, which can teach a consistent format, style, or specialized skill that is hard to obtain from instructions alone, at the cost of training data, compute, and a separate model to maintain. Parameter-efficient methods such as LoRA update only a small number of added weights, and instruction tuning is the fine-tuning step that turns a base model into an assistant.", "example": null, "broader": [], "narrower": ["knowledge-distillation", "parameter-efficient-fine-tuning"], "related": ["base-model", "instruction-tuning", "low-rank-adaptation", "prompt-tuning"], "introduced": 2018, "sources": [{"title": "Universal Language Model Fine-tuning for Text Classification", "authors": "Howard and Ruder", "year": 2018, "url": "https://arxiv.org/abs/1801.06146"}, {"title": "LoRA: Low-Rank Adaptation of Large Language Models", "authors": "Hu et al.", "year": 2021, "url": "https://arxiv.org/abs/2106.09685"}], "url": "https://protologue.com/t/fine-tuning/", "citation": "Protologue. (2026). Fine-Tuning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0105). https://protologue.com/t/fine-tuning/"} +{"id": "PTL-0106", "slug": "reward-model", "term": "Reward Model", "aliases": ["preference model", "outcome reward model", "ORM"], "category": "Foundations", "definition": "A reward model is a model trained to score a language model's outputs according to human or AI preferences, usually from pairwise comparisons, so that the score can serve as a training signal or a ranking criterion.", "description": "In RLHF, people compare pairs of responses, a reward model learns to predict which one they prefer, and the language model is then optimized against it. Reward models are also used at inference time to pick the best of several sampled responses. A model that scores only the final answer is an outcome reward model, in contrast to a process reward model, which scores each reasoning step. Optimizing too hard against an imperfect reward model leads to reward hacking.", "example": null, "broader": [], "narrower": [], "related": ["rlhf", "process-reward-model", "best-of-n-sampling", "reward-hacking"], "introduced": 2022, "sources": [{"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}, {"title": "Let's Verify Step by Step", "authors": "Lightman et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.20050"}], "url": "https://protologue.com/t/reward-model/", "citation": "Protologue. (2026). Reward Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0106). https://protologue.com/t/reward-model/"} +{"id": "PTL-0107", "slug": "chat-template", "term": "Chat Template", "aliases": ["prompt format", "chat format", "conversation template"], "category": "Foundations", "definition": "A chat template is the model-specific format that converts a list of role-tagged messages, such as system, user, and assistant turns, into the exact token sequence with special control tokens that the model was fine-tuned on.", "description": "Hosted chat APIs apply the template for you, but when running open-weight models directly, using the wrong template, or none, can noticeably degrade instruction following because the model sees input unlike its training data. Templates also determine how system prompts, tool calls, and tool results are marked, and where the model expects to begin its reply.", "example": null, "broader": [], "narrower": [], "related": ["system-prompt", "base-model", "instruction-tuning", "delimiters"], "introduced": null, "sources": [{"title": "Chat templates", "authors": "Hugging Face", "year": 2023, "url": "https://huggingface.co/docs/transformers/en/chat_templating"}], "url": "https://protologue.com/t/chat-template/", "citation": "Protologue. (2026). Chat Template. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0107). https://protologue.com/t/chat-template/"} +{"id": "PTL-0108", "slug": "top-k-sampling", "term": "Top-k Sampling", "aliases": ["top-k"], "category": "Foundations", "definition": "Top-k sampling is a decoding method that, at each step, restricts sampling to the k most probable next tokens and renormalizes their probabilities.", "description": "It removes the long tail of unlikely tokens that can derail generation, while keeping some variety. Because k is fixed, it can be too restrictive when many tokens are plausible and too permissive when only one is, which motivated top-p (nucleus) sampling. Many APIs expose top-k alongside temperature and top-p.", "example": null, "broader": [], "narrower": [], "related": ["temperature", "top-p-sampling", "greedy-decoding"], "introduced": 2018, "sources": [{"title": "Hierarchical Neural Story Generation", "authors": "Fan et al.", "year": 2018, "url": "https://arxiv.org/abs/1805.04833"}, {"title": "The Curious Case of Neural Text Degeneration", "authors": "Holtzman et al.", "year": 2019, "url": "https://arxiv.org/abs/1904.09751"}], "url": "https://protologue.com/t/top-k-sampling/", "citation": "Protologue. (2026). Top-k Sampling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0108). https://protologue.com/t/top-k-sampling/"} +{"id": "PTL-0109", "slug": "greedy-decoding", "term": "Greedy Decoding", "aliases": ["argmax decoding", "temperature 0"], "category": "Foundations", "definition": "Greedy decoding generates text by always choosing the single most probable next token, which makes output deterministic for a given prompt and model.", "description": "It is the limit of sampling as temperature approaches zero and is often used when consistency matters, as in extraction or classification. For open-ended text it tends to produce bland or repetitive output, and for reasoning tasks sampling several answers and voting, as in self-consistency, usually beats a single greedy answer.", "example": null, "broader": [], "narrower": [], "related": ["temperature", "top-k-sampling", "top-p-sampling", "self-consistency", "text-degeneration"], "introduced": null, "sources": [{"title": "The Curious Case of Neural Text Degeneration", "authors": "Holtzman et al.", "year": 2019, "url": "https://arxiv.org/abs/1904.09751"}], "url": "https://protologue.com/t/greedy-decoding/", "citation": "Protologue. (2026). Greedy Decoding. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0109). https://protologue.com/t/greedy-decoding/"} +{"id": "PTL-0110", "slug": "log-probabilities", "term": "Log Probabilities", "aliases": ["logprobs", "token probabilities"], "category": "Foundations", "definition": "Log probabilities (logprobs) are the logarithms of the probabilities a model assigned to each token it generated, and optionally to the most likely alternatives, exposing how confident the model was at each step.", "description": "Applications use logprobs to score classification labels, estimate confidence, flag likely hallucinations, rank candidate completions, and build autocomplete. They describe token-level likelihood, not factual correctness, so a fluent but wrong answer can still have high probability. Not every API or model exposes them.", "example": null, "broader": [], "narrower": [], "related": ["token", "confidence-calibration", "temperature"], "introduced": null, "sources": [{"title": "Using logprobs", "authors": "OpenAI", "year": 2023, "url": "https://developers.openai.com/cookbook/examples/using_logprobs"}, {"title": "Language Models (Mostly) Know What They Know", "authors": "Kadavath et al.", "year": 2022, "url": "https://arxiv.org/abs/2207.05221"}], "url": "https://protologue.com/t/log-probabilities/", "citation": "Protologue. (2026). Log Probabilities. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0110). https://protologue.com/t/log-probabilities/"} +{"id": "PTL-0111", "slug": "multimodal-prompting", "term": "Multimodal Prompting", "aliases": ["vision prompting", "image prompting", "visual prompting"], "category": "Foundations", "definition": "Multimodal prompting is prompting a model with more than one kind of input, such as images, documents, audio, or video together with text, so the model reasons over all of them.", "description": "Text-prompting techniques largely carry over, but some practices are specific to non-text inputs. Provider guidance recommends placing images before the question, labeling multiple images so they can be referred to, and sending legible, uncompressed images. Models remain weaker at precise counting, small text, and spatial coordinates, so high-stakes visual answers need checking.", "example": "Image 1: [receipt photo]. Image 2: [receipt photo]. List the total on each receipt and say which is larger.", "broader": ["prompt"], "narrower": [], "related": ["context-window", "large-language-model"], "introduced": 2023, "sources": [{"title": "The Dawn of LMMs: Preliminary Explorations with GPT-4V(ision)", "authors": "Yang et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.17421"}, {"title": "Vision", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/build-with-claude/vision"}], "url": "https://protologue.com/t/multimodal-prompting/", "citation": "Protologue. (2026). Multimodal Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0111). https://protologue.com/t/multimodal-prompting/"} +{"id": "PTL-0112", "slug": "knowledge-cutoff", "term": "Knowledge Cutoff", "aliases": ["training cutoff", "training data cutoff"], "category": "Foundations", "definition": "A model's knowledge cutoff is the date after which its training data contains little or no information, so it does not know about later events unless they are supplied in the prompt or retrieved.", "description": "Questions about recent events, prices, or current officeholders are answered from stale knowledge unless the system adds search or retrieval. Research has found that a model's effective cutoff can differ from its reported one, and can differ across topics, because web data from earlier years is overrepresented and deduplication is imperfect. Stating the current date in the system prompt helps the model reason about what it might not know.", "example": null, "broader": [], "narrower": [], "related": ["retrieval-augmented-generation", "web-search-tool", "hallucination"], "introduced": null, "sources": [{"title": "Dated Data: Tracing Knowledge Cutoffs in Large Language Models", "authors": "Cheng et al.", "year": 2024, "url": "https://arxiv.org/abs/2403.12958"}], "url": "https://protologue.com/t/knowledge-cutoff/", "citation": "Protologue. (2026). Knowledge Cutoff. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0112). https://protologue.com/t/knowledge-cutoff/"} +{"id": "PTL-0113", "slug": "instruction-following", "term": "Instruction Following", "aliases": ["instruction adherence", "instruction compliance"], "category": "Foundations", "definition": "Instruction following is a model's ability to carry out explicit instructions in a prompt, including constraints on content, length, format, and style, rather than only answering the underlying question.", "description": "It is the main capability added by instruction tuning and RLHF, and it degrades with long or conflicting instruction lists, long contexts, and multi-turn conversations. Benchmarks such as IFEval measure it with instructions whose compliance can be checked automatically, for example a minimum word count or a required keyword.", "example": "Answer in exactly three bullet points, each under 15 words, and do not use the word \"very\".", "broader": [], "narrower": [], "related": ["instruction-tuning", "rlhf", "system-prompt", "instruction-hierarchy"], "introduced": null, "sources": [{"title": "Instruction-Following Evaluation for Large Language Models", "authors": "Zhou et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.07911"}, {"title": "Training language models to follow instructions with human feedback", "authors": "Ouyang et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.02155"}], "url": "https://protologue.com/t/instruction-following/", "citation": "Protologue. (2026). Instruction Following. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0113). https://protologue.com/t/instruction-following/"} +{"id": "PTL-0114", "slug": "decomposed-prompting", "term": "Decomposed Prompting", "aliases": ["DecomP", "modular prompting"], "category": "Reasoning Elicitation", "definition": "Decomposed prompting breaks a complex task into simpler sub-tasks, each delegated to its own prompt, model call, or symbolic function, with a controller prompt that decides which handler to call next.", "description": "Each sub-task handler can be optimized, given its own examples, or replaced with code, and handlers can call further decompositions recursively. Compared with a single chain-of-thought prompt, this modularity helps on tasks with steps that models do poorly in one pass, such as long-input processing or symbolic manipulation.", "example": null, "broader": [], "narrower": [], "related": ["least-to-most-prompting", "prompt-chaining", "orchestrator-workers", "program-aided-language-models"], "introduced": 2022, "sources": [{"title": "Decomposed Prompting: A Modular Approach for Solving Complex Tasks", "authors": "Khot et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.02406"}], "url": "https://protologue.com/t/decomposed-prompting/", "citation": "Protologue. (2026). Decomposed Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0114). https://protologue.com/t/decomposed-prompting/"} +{"id": "PTL-0115", "slug": "complexity-based-prompting", "term": "Complexity-Based Prompting", "aliases": [], "category": "Reasoning Elicitation", "definition": "Complexity-based prompting selects chain-of-thought exemplars that contain more reasoning steps, and at inference votes only among the sampled reasoning chains with the most steps.", "description": "The method rests on the finding that demonstrations with longer, more complex reasoning improve multi-step reasoning more than simpler ones. It combines exemplar selection with a variant of self-consistency in which votes from the most complex chains count.", "example": null, "broader": ["chain-of-thought"], "narrower": [], "related": ["exemplar-selection", "self-consistency", "auto-cot"], "introduced": 2022, "sources": [{"title": "Complexity-Based Prompting for Multi-Step Reasoning", "authors": "Fu et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.00720"}], "url": "https://protologue.com/t/complexity-based-prompting/", "citation": "Protologue. (2026). Complexity-Based Prompting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0115). https://protologue.com/t/complexity-based-prompting/"} +{"id": "PTL-0116", "slug": "chain-of-draft", "term": "Chain of Draft", "aliases": ["CoD", "concise chain-of-thought"], "category": "Reasoning Elicitation", "definition": "Chain of Draft is a variant of chain-of-thought prompting in which the model writes only a minimal draft of each reasoning step, a few words rather than full sentences, to reach an answer with far fewer tokens.", "description": "The authors report accuracy comparable to standard chain-of-thought on arithmetic, commonsense, and symbolic tasks while using a small fraction of the output tokens, which lowers cost and latency. It is most useful where reasoning helps but verbose explanations are not needed. The abbreviation CoD is also used for chain of density, an unrelated summarization technique.", "example": "Think step by step, but keep only a minimum draft for each step, five words at most. Give the answer after ####.", "broader": ["chain-of-thought"], "narrower": [], "related": ["prompt-compression", "skeleton-of-thought", "overthinking"], "introduced": 2025, "sources": [{"title": "Chain of Draft: Thinking Faster by Writing Less", "authors": "Xu et al.", "year": 2025, "url": "https://arxiv.org/abs/2502.18600"}], "url": "https://protologue.com/t/chain-of-draft/", "citation": "Protologue. (2026). Chain of Draft. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0116). https://protologue.com/t/chain-of-draft/"} +{"id": "PTL-0117", "slug": "self-correction", "term": "Self-Correction", "aliases": ["intrinsic self-correction", "self-revision", "self-reflection"], "category": "Self-Critique & Verification", "definition": "Self-correction is the general practice of having a language model review and revise its own output, either from its own judgment alone (intrinsic self-correction) or using external feedback such as tool results, tests, or retrieved evidence.", "description": "Research has found that intrinsic self-correction does not reliably improve reasoning accuracy and can make answers worse, because the model often cannot tell which of its answers are wrong. Self-correction works best when the critique is grounded in something the model cannot fake, such as running code, executing a search, or checking against a reference.", "example": null, "broader": [], "narrower": ["critic"], "related": ["self-refine", "reflexion", "chain-of-verification", "evaluator-optimizer"], "introduced": 2023, "sources": [{"title": "Large Language Models Cannot Self-Correct Reasoning Yet", "authors": "Huang et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.01798"}], "url": "https://protologue.com/t/self-correction/", "citation": "Protologue. (2026). Self-Correction. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0117). https://protologue.com/t/self-correction/"} +{"id": "PTL-0118", "slug": "self-verification", "term": "Self-Verification", "aliases": ["backward verification"], "category": "Self-Critique & Verification", "definition": "Self-verification is a technique in which a model, after producing candidate answers with chain-of-thought, checks each one by working backward, predicting the original conditions of the problem from the answer, and keeps the answer that is most consistent.", "description": "It turns verification into a separate prediction task rather than asking the model whether it is right, which reduces the tendency to approve its own mistakes. It applies most naturally to arithmetic and logical problems whose conditions can be masked and recovered.", "example": null, "broader": [], "narrower": [], "related": ["self-consistency", "chain-of-verification", "self-correction"], "introduced": 2022, "sources": [{"title": "Large Language Models are Better Reasoners with Self-Verification", "authors": "Weng et al.", "year": 2022, "url": "https://arxiv.org/abs/2212.09561"}], "url": "https://protologue.com/t/self-verification/", "citation": "Protologue. (2026). Self-Verification. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0118). https://protologue.com/t/self-verification/"} +{"id": "PTL-0119", "slug": "critic", "term": "CRITIC", "aliases": ["tool-interactive critiquing"], "category": "Self-Critique & Verification", "definition": "CRITIC is a self-correction framework in which a model checks its output using external tools, such as web search or a code interpreter, critiques it based on what the tools return, and then revises it.", "description": "Grounding the critique in tool feedback addresses the main weakness of intrinsic self-correction. The original work showed improvements on question answering, program synthesis, and reducing toxic output, and the same verify-then-revise loop is common in agent systems.", "example": null, "broader": ["self-correction"], "narrower": [], "related": ["self-refine", "function-calling", "code-execution-tool", "chain-of-verification"], "introduced": 2023, "sources": [{"title": "CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing", "authors": "Gou et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.11738"}], "url": "https://protologue.com/t/critic/", "citation": "Protologue. (2026). CRITIC. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0119). https://protologue.com/t/critic/"} +{"id": "PTL-0120", "slug": "chain-of-density", "term": "Chain of Density", "aliases": ["CoD summarization"], "category": "Self-Critique & Verification", "definition": "Chain of Density is a summarization prompt that has the model write a summary and then repeatedly rewrite it, adding a few missing important entities each time without making it longer, to produce progressively denser summaries.", "description": "Each round forces compression and fusion of content, so later summaries carry more information per word. The authors found human readers preferred summaries partway through the chain, denser than a plain summary but not maximally dense, which makes the number of rounds a tunable trade-off between informativeness and readability. The abbreviation CoD is also used for chain of draft, an unrelated reasoning technique.", "example": null, "broader": ["self-refine"], "narrower": [], "related": ["prompt-chaining"], "introduced": 2023, "sources": [{"title": "From Sparse to Dense: GPT-4 Summarization with Chain of Density Prompting", "authors": "Adams et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.04269"}], "url": "https://protologue.com/t/chain-of-density/", "citation": "Protologue. (2026). Chain of Density. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0120). https://protologue.com/t/chain-of-density/"} +{"id": "PTL-0121", "slug": "confidence-calibration", "term": "Confidence Calibration", "aliases": ["calibration", "verbalized confidence", "uncertainty estimation"], "category": "Self-Critique & Verification", "definition": "Confidence calibration is the degree to which a model's expressed or implied confidence matches how often it is actually right; a well-calibrated model that says it is 80% sure is correct about 80% of the time.", "description": "Confidence can be read from token probabilities, by asking the model to state a confidence (verbalized confidence), or by sampling several answers and measuring agreement. Studies have found pretrained models fairly well calibrated on suitably formatted multiple-choice questions, and that for instruction-tuned models verbalized confidence can be better calibrated than token probabilities. Calibration lets an application abstain or escalate when the model is unsure. It is different from few-shot calibration, which corrects label bias in prompts.", "example": null, "broader": [], "narrower": [], "related": ["log-probabilities", "hallucination", "selfcheckgpt", "few-shot-calibration"], "introduced": null, "sources": [{"title": "Language Models (Mostly) Know What They Know", "authors": "Kadavath et al.", "year": 2022, "url": "https://arxiv.org/abs/2207.05221"}, {"title": "Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedback", "authors": "Tian et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.14975"}], "url": "https://protologue.com/t/confidence-calibration/", "citation": "Protologue. (2026). Confidence Calibration. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0121). https://protologue.com/t/confidence-calibration/"} +{"id": "PTL-0122", "slug": "selfcheckgpt", "term": "SelfCheckGPT", "aliases": ["sampling-based hallucination detection", "consistency-based hallucination detection"], "category": "Self-Critique & Verification", "definition": "SelfCheckGPT detects hallucinations by sampling several responses to the same prompt and checking whether each claim in the main response is supported by the others, on the principle that facts the model knows are reproduced consistently while fabrications vary.", "description": "It needs no external knowledge base and works with black-box models, which makes it a practical first check. Its limitation is that consistent errors, which the model repeats confidently every time, are not caught, so it complements rather than replaces retrieval-based fact-checking.", "example": null, "broader": [], "narrower": [], "related": ["hallucination", "self-consistency", "confidence-calibration", "chain-of-verification"], "introduced": 2023, "sources": [{"title": "SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models", "authors": "Manakul et al.", "year": 2023, "url": "https://arxiv.org/abs/2303.08896"}], "url": "https://protologue.com/t/selfcheckgpt/", "citation": "Protologue. (2026). SelfCheckGPT. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0122). https://protologue.com/t/selfcheckgpt/"} +{"id": "PTL-0123", "slug": "embedding", "term": "Embedding", "aliases": ["text embedding", "vector embedding", "embedding vector"], "category": "Retrieval & Tool Use", "definition": "An embedding is a fixed-length vector of numbers that represents a piece of text, or another input, so that inputs with similar meaning have vectors that are close together, typically measured by cosine similarity.", "description": "Embeddings are produced by an embedding model, which is usually separate from the generating model. They underpin semantic search, dense retrieval for RAG, clustering, deduplication, and the selection of similar few-shot examples. Quality depends on the embedding model and on how text is chunked, and embeddings capture topical similarity better than exact facts such as numbers, names, or negation.", "example": null, "broader": [], "narrower": [], "related": ["dense-retrieval", "vector-database", "chunking", "retrieval-augmented-generation", "exemplar-selection"], "introduced": 2019, "sources": [{"title": "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks", "authors": "Reimers and Gurevych", "year": 2019, "url": "https://arxiv.org/abs/1908.10084"}, {"title": "Dense Passage Retrieval for Open-Domain Question Answering", "authors": "Karpukhin et al.", "year": 2020, "url": "https://arxiv.org/abs/2004.04906"}], "url": "https://protologue.com/t/embedding/", "citation": "Protologue. (2026). Embedding. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0123). https://protologue.com/t/embedding/"} +{"id": "PTL-0124", "slug": "vector-database", "term": "Vector Database", "aliases": ["vector store", "vector index", "vector search"], "category": "Retrieval & Tool Use", "definition": "A vector database stores embeddings alongside their source content and metadata and answers queries by finding the stored vectors nearest to a query vector, usually with approximate nearest-neighbor search.", "description": "Exact nearest-neighbor search becomes slow at millions of vectors, so vector databases use index structures such as HNSW graphs or quantized inverted indexes that trade a little recall for large speedups. Most also support metadata filtering and, increasingly, keyword search for hybrid retrieval. A vector index library such as FAISS provides the search without the database features.", "example": null, "broader": [], "narrower": [], "related": ["embedding", "dense-retrieval", "hybrid-search", "retrieval-augmented-generation"], "introduced": null, "sources": [{"title": "Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs", "authors": "Malkov and Yashunin", "year": 2016, "url": "https://arxiv.org/abs/1603.09320"}, {"title": "Billion-scale similarity search with GPUs", "authors": "Johnson et al.", "year": 2017, "url": "https://arxiv.org/abs/1702.08734"}], "url": "https://protologue.com/t/vector-database/", "citation": "Protologue. (2026). Vector Database. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0124). https://protologue.com/t/vector-database/"} +{"id": "PTL-0125", "slug": "chunking", "term": "Chunking", "aliases": ["document chunking", "text splitting", "passage segmentation", "late chunking"], "category": "Retrieval & Tool Use", "definition": "Chunking is splitting documents into smaller passages before indexing them for retrieval, so that each retrieved unit is small enough to fit the context and focused enough to match a query.", "description": "Chunk size and overlap are the main levers. Chunks that are too large dilute the embedding and waste context, while chunks that are too small lose the surrounding meaning. Common strategies split by fixed token counts, by document structure such as headings and paragraphs, or by meaning. Research has found that retrieving finer units, such as self-contained propositions, can improve retrieval, and approaches such as contextual retrieval and late chunking restore context that splitting removes.", "example": null, "broader": [], "narrower": ["parent-document-retrieval"], "related": ["embedding", "contextual-retrieval", "retrieval-augmented-generation", "dense-retrieval"], "introduced": null, "sources": [{"title": "Dense X Retrieval: What Retrieval Granularity Should We Use?", "authors": "Chen et al.", "year": 2023, "url": "https://arxiv.org/abs/2312.06648"}, {"title": "Late Chunking: Contextual Chunk Embeddings Using Long-Context Embedding Models", "authors": "Günther et al.", "year": 2024, "url": "https://arxiv.org/abs/2409.04701"}], "url": "https://protologue.com/t/chunking/", "citation": "Protologue. (2026). Chunking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0125). https://protologue.com/t/chunking/"} +{"id": "PTL-0126", "slug": "dense-retrieval", "term": "Dense Retrieval", "aliases": ["semantic search", "embedding-based retrieval", "DPR", "bi-encoder retrieval"], "category": "Retrieval & Tool Use", "definition": "Dense retrieval finds relevant passages by embedding the query and every passage as dense vectors, usually with a dual encoder, and returning the passages whose vectors are most similar to the query's.", "description": "Because it matches on meaning rather than shared words, dense retrieval finds paraphrases and related concepts that keyword search misses. It can miss exact identifiers, rare names, and codes, which is why production systems often combine it with BM25 in hybrid search and refine results with a reranker.", "example": null, "broader": [], "narrower": [], "related": ["embedding", "bm25", "hybrid-search", "reranking", "vector-database"], "introduced": 2020, "sources": [{"title": "Dense Passage Retrieval for Open-Domain Question Answering", "authors": "Karpukhin et al.", "year": 2020, "url": "https://arxiv.org/abs/2004.04906"}], "url": "https://protologue.com/t/dense-retrieval/", "citation": "Protologue. (2026). Dense Retrieval. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0126). https://protologue.com/t/dense-retrieval/"} +{"id": "PTL-0127", "slug": "bm25", "term": "BM25", "aliases": ["Okapi BM25", "sparse retrieval", "keyword search", "lexical search"], "category": "Retrieval & Tool Use", "definition": "BM25 is a keyword ranking function that scores documents by how often the query's terms appear in them, weighted by how rare each term is across the collection and normalized for document length.", "description": "It is the standard sparse, lexical retrieval method and remains a strong baseline. It excels at exact matches, such as product codes, error messages, and names, where embedding search is weaker, and needs no training. It does not match synonyms or paraphrases, so it is usually paired with dense retrieval.", "example": null, "broader": [], "narrower": [], "related": ["dense-retrieval", "hybrid-search", "contextual-retrieval"], "introduced": null, "sources": [{"title": "The Probabilistic Relevance Framework: BM25 and Beyond", "authors": "Robertson and Zaragoza", "year": 2009, "url": "https://doi.org/10.1561/1500000019"}], "url": "https://protologue.com/t/bm25/", "citation": "Protologue. (2026). BM25. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0127). https://protologue.com/t/bm25/"} +{"id": "PTL-0128", "slug": "hybrid-search", "term": "Hybrid Search", "aliases": ["hybrid retrieval", "reciprocal rank fusion", "RRF"], "category": "Retrieval & Tool Use", "definition": "Hybrid search combines keyword retrieval, such as BM25, with dense embedding retrieval and merges the two result lists, so that a query benefits from both exact-term matching and semantic matching.", "description": "The lists are usually merged by reciprocal rank fusion, which scores each document by the sum of the reciprocals of its ranks in each list and needs no score calibration between systems. Hybrid retrieval followed by a reranker is a common default for RAG pipelines.", "example": null, "broader": [], "narrower": [], "related": ["bm25", "dense-retrieval", "reranking", "contextual-retrieval", "retrieval-augmented-generation"], "introduced": null, "sources": [{"title": "Reciprocal rank fusion outperforms condorcet and individual rank learning methods", "authors": "Cormack et al.", "year": 2009, "url": "https://doi.org/10.1145/1571941.1572114"}, {"title": "Introducing Contextual Retrieval", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/contextual-retrieval"}], "url": "https://protologue.com/t/hybrid-search/", "citation": "Protologue. (2026). Hybrid Search. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0128). https://protologue.com/t/hybrid-search/"} +{"id": "PTL-0129", "slug": "reranking", "term": "Reranking", "aliases": ["re-ranking", "cross-encoder reranking", "reranker"], "category": "Retrieval & Tool Use", "definition": "Reranking is a second retrieval stage in which a more accurate but slower model, typically a cross-encoder that reads the query and each candidate together, rescores the top results from a fast first-stage search and reorders them.", "description": "First-stage retrievers embed queries and documents separately to stay fast, which limits accuracy. A reranker sees both texts jointly, so it judges relevance more precisely, and applying it only to a few dozen candidates keeps cost manageable. Rerankers can also be LLMs prompted to judge or order passages.", "example": null, "broader": [], "narrower": [], "related": ["dense-retrieval", "hybrid-search", "colbert", "retrieval-augmented-generation"], "introduced": 2019, "sources": [{"title": "Passage Re-ranking with BERT", "authors": "Nogueira and Cho", "year": 2019, "url": "https://arxiv.org/abs/1901.04085"}], "url": "https://protologue.com/t/reranking/", "citation": "Protologue. (2026). Reranking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0129). https://protologue.com/t/reranking/"} +{"id": "PTL-0130", "slug": "colbert", "term": "ColBERT", "aliases": ["late interaction", "late-interaction retrieval", "multi-vector retrieval"], "category": "Retrieval & Tool Use", "definition": "ColBERT is a retrieval model that embeds every token of the query and of each passage separately and scores relevance by matching each query token to its most similar passage token, an approach called late interaction.", "description": "Late interaction sits between single-vector dense retrieval, which is fast but coarse, and cross-encoder reranking, which is accurate but slow. Passage token embeddings can be precomputed and indexed, so ColBERT keeps much of a cross-encoder's precision at search-engine speed, at the cost of larger indexes.", "example": null, "broader": [], "narrower": [], "related": ["dense-retrieval", "reranking", "dspy"], "introduced": 2020, "sources": [{"title": "ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT", "authors": "Khattab and Zaharia", "year": 2020, "url": "https://arxiv.org/abs/2004.12832"}], "url": "https://protologue.com/t/colbert/", "citation": "Protologue. (2026). ColBERT. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0130). https://protologue.com/t/colbert/"} +{"id": "PTL-0131", "slug": "query-rewriting", "term": "Query Rewriting", "aliases": ["query expansion", "query reformulation", "rewrite-retrieve-read", "multi-query retrieval"], "category": "Retrieval & Tool Use", "definition": "Query rewriting uses a language model to reformulate a user's question into one or more queries better suited to the retriever before retrieval is run.", "description": "User questions are often ambiguous, conversational, or phrased differently from the documents that answer them. Rewriting can resolve references to earlier turns, split a question into sub-queries, add keywords, or expand the query with a generated pseudo-document. It is closely related to HyDE, which embeds a hypothetical answer instead of the question.", "example": null, "broader": [], "narrower": [], "related": ["hypothetical-document-embeddings", "retrieval-augmented-generation", "agentic-rag"], "introduced": 2023, "sources": [{"title": "Query Rewriting for Retrieval-Augmented Large Language Models", "authors": "Ma et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.14283"}, {"title": "Query2doc: Query Expansion with Large Language Models", "authors": "Wang et al.", "year": 2023, "url": "https://arxiv.org/abs/2303.07678"}], "url": "https://protologue.com/t/query-rewriting/", "citation": "Protologue. (2026). Query Rewriting. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0131). https://protologue.com/t/query-rewriting/"} +{"id": "PTL-0132", "slug": "contextual-retrieval", "term": "Contextual Retrieval", "aliases": ["contextual embeddings", "contextual BM25", "chunk contextualization"], "category": "Retrieval & Tool Use", "definition": "Contextual retrieval is a RAG preprocessing technique in which a language model writes a short explanation of where each chunk fits in its source document and prepends it to the chunk before the chunk is embedded and indexed for keyword search.", "description": "Splitting removes context, so a chunk such as \"revenue grew 3% over the previous quarter\" no longer says which company or quarter it describes. Adding that context back improves both embedding and BM25 matching. Anthropic reported that contextual embeddings plus contextual BM25 cut the top-20 retrieval failure rate by 49% on its benchmarks, and by 67% with reranking added. Prompt caching keeps the cost of generating the context for every chunk low.", "example": null, "broader": [], "narrower": [], "related": ["chunking", "bm25", "hybrid-search", "reranking", "prompt-caching"], "introduced": 2024, "sources": [{"title": "Introducing Contextual Retrieval", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/contextual-retrieval"}], "url": "https://protologue.com/t/contextual-retrieval/", "citation": "Protologue. (2026). Contextual Retrieval. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0132). https://protologue.com/t/contextual-retrieval/"} +{"id": "PTL-0133", "slug": "graphrag", "term": "GraphRAG", "aliases": ["Graph RAG", "knowledge-graph RAG"], "category": "Retrieval & Tool Use", "definition": "GraphRAG is a retrieval-augmented generation approach that uses a language model to extract an entity-and-relationship graph from a document collection, summarizes communities of related entities, and answers questions from those summaries.", "description": "Standard RAG retrieves a handful of passages, which works for questions answered in one place but fails on global questions about a whole corpus, such as its main themes. GraphRAG answers these by combining partial answers from many community summaries. Building the graph requires many LLM calls, so indexing is far more expensive than for embedding-based RAG.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": ["agentic-rag"], "introduced": 2024, "sources": [{"title": "From Local to Global: A Graph RAG Approach to Query-Focused Summarization", "authors": "Edge et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.16130"}], "url": "https://protologue.com/t/graphrag/", "citation": "Protologue. (2026). GraphRAG. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0133). https://protologue.com/t/graphrag/"} +{"id": "PTL-0134", "slug": "agentic-rag", "term": "Agentic RAG", "aliases": ["agent-based RAG", "iterative retrieval"], "category": "Retrieval & Tool Use", "definition": "Agentic RAG is retrieval-augmented generation in which an agent, rather than a fixed pipeline, decides whether to retrieve, what to search for, which sources or tools to use, and whether the evidence is sufficient, retrieving iteratively until it can answer.", "description": "A fixed pipeline retrieves once per question, so it fails on multi-hop questions and on queries that need reformulation. Agentic RAG handles them by planning, issuing follow-up searches, and reflecting on results, at the cost of more model calls, higher latency, and less predictable behavior. Self-RAG, corrective RAG, and active retrieval are earlier steps in the same direction.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": ["ai-agent", "react", "query-rewriting", "self-rag", "corrective-rag"], "introduced": 2025, "sources": [{"title": "Agentic Retrieval-Augmented Generation: A Survey on Agentic RAG", "authors": "Singh et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.09136"}], "url": "https://protologue.com/t/agentic-rag/", "citation": "Protologue. (2026). Agentic RAG. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0134). https://protologue.com/t/agentic-rag/"} +{"id": "PTL-0135", "slug": "corrective-rag", "term": "Corrective RAG", "aliases": ["CRAG"], "category": "Retrieval & Tool Use", "definition": "Corrective RAG (CRAG) adds a lightweight evaluator that grades retrieved documents for relevance and, depending on the grade, uses them, discards them in favor of web search, or combines both before generation.", "description": "It targets the failure where poor retrieval silently produces a confident wrong answer. Retrieved documents are also decomposed into smaller strips and filtered so that only relevant parts reach the generator. The method plugs into existing RAG pipelines without retraining the generator.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": ["self-rag", "agentic-rag", "web-search-tool"], "introduced": 2024, "sources": [{"title": "Corrective Retrieval Augmented Generation", "authors": "Yan et al.", "year": 2024, "url": "https://arxiv.org/abs/2401.15884"}], "url": "https://protologue.com/t/corrective-rag/", "citation": "Protologue. (2026). Corrective RAG. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0135). https://protologue.com/t/corrective-rag/"} +{"id": "PTL-0136", "slug": "active-retrieval", "term": "Active Retrieval", "aliases": ["FLARE", "forward-looking active retrieval"], "category": "Retrieval & Tool Use", "definition": "Active retrieval augmented generation decides during generation when and what to retrieve; in FLARE, the model drafts the next sentence and, if it contains low-confidence tokens, uses that draft as a search query and regenerates the sentence with the retrieved evidence.", "description": "Retrieving once before generation suits short answers but not long-form text whose information needs change as it is written. Triggering retrieval only on uncertainty limits extra calls to the points where the model is likely to be wrong.", "example": null, "broader": ["retrieval-augmented-generation"], "narrower": [], "related": ["log-probabilities", "self-rag", "agentic-rag"], "introduced": 2023, "sources": [{"title": "Active Retrieval Augmented Generation", "authors": "Jiang et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.06983"}], "url": "https://protologue.com/t/active-retrieval/", "citation": "Protologue. (2026). Active Retrieval. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0136). https://protologue.com/t/active-retrieval/"} +{"id": "PTL-0137", "slug": "web-search-tool", "term": "Web Search Tool", "aliases": ["web browsing", "search grounding", "grounding with search", "browsing tool"], "category": "Retrieval & Tool Use", "definition": "A web search tool lets a language model issue search queries, read the results, and ground its answer in current web content, usually returning citations to the pages it used.", "description": "Search is the main remedy for a model's knowledge cutoff and for questions about prices, news, and other changing facts. Early work trained a model to browse with a text-based browser and cite its sources. Today providers offer search as a built-in tool. Search results are untrusted input, so they are a vector for indirect prompt injection.", "example": null, "broader": ["function-calling"], "narrower": [], "related": ["knowledge-cutoff", "citation-generation", "retrieval-augmented-generation", "indirect-prompt-injection"], "introduced": 2021, "sources": [{"title": "WebGPT: Browser-assisted question-answering with human feedback", "authors": "Nakano et al.", "year": 2021, "url": "https://arxiv.org/abs/2112.09332"}, {"title": "Web search tool", "authors": "Anthropic", "year": 2025, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool"}], "url": "https://protologue.com/t/web-search-tool/", "citation": "Protologue. (2026). Web Search Tool. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0137). https://protologue.com/t/web-search-tool/"} +{"id": "PTL-0138", "slug": "code-execution-tool", "term": "Code Execution Tool", "aliases": ["code interpreter", "code sandbox", "Python tool"], "category": "Retrieval & Tool Use", "definition": "A code execution tool gives a language model a sandboxed environment in which it can write and run code, such as Python or shell commands, and read the output, so that it can compute, analyze data, and check its own work.", "description": "Running code replaces error-prone mental arithmetic and lets the model iterate on errors, which is the same idea behind program-aided language models. Sandboxes typically have no network access and resource limits, because the code is model-written and may be influenced by untrusted input.", "example": null, "broader": ["function-calling"], "narrower": [], "related": ["program-aided-language-models", "program-of-thoughts", "critic", "coding-agent"], "introduced": null, "sources": [{"title": "Code execution tool", "authors": "Anthropic", "year": 2025, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool"}, {"title": "PAL: Program-aided Language Models", "authors": "Gao et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.10435"}], "url": "https://protologue.com/t/code-execution-tool/", "citation": "Protologue. (2026). Code Execution Tool. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0138). https://protologue.com/t/code-execution-tool/"} +{"id": "PTL-0139", "slug": "citation-generation", "term": "Citation Generation", "aliases": ["attributed generation", "source attribution", "grounded citations"], "category": "Retrieval & Tool Use", "definition": "Citation generation is having a model attach citations to the sources that support each claim in its answer, so readers can verify the answer and unsupported claims are easier to spot.", "description": "Citations are usually drawn from retrieved documents or search results, and some APIs return them as structured spans pointing into the source. Evaluations have found that models often cite sources that do not fully support the sentence they are attached to, so citation quality, both recall and precision, needs to be measured rather than assumed.", "example": null, "broader": [], "narrower": [], "related": ["retrieval-augmented-generation", "web-search-tool", "hallucination"], "introduced": 2023, "sources": [{"title": "Enabling Large Language Models to Generate Text with Citations", "authors": "Gao et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.14627"}], "url": "https://protologue.com/t/citation-generation/", "citation": "Protologue. (2026). Citation Generation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0139). https://protologue.com/t/citation-generation/"} +{"id": "PTL-0140", "slug": "multi-agent-system", "term": "Multi-Agent System", "aliases": ["multi-agent framework", "MAS", "agent team"], "category": "Agents & Orchestration", "definition": "A multi-agent system is an application in which several LLM-based agents, each with its own role, instructions, tools, or context, interact by messaging, delegating, or debating to accomplish a task.", "description": "Splitting work across agents can parallelize research, keep each agent's context focused, and let specialized prompts handle different steps. It also multiplies token cost and adds coordination failures, such as agents duplicating work, losing information at handoffs, or reinforcing each other's mistakes. Common structures include orchestrator-workers, handoffs between specialists, and debate.", "example": null, "broader": [], "narrower": [], "related": ["ai-agent", "orchestrator-workers", "handoff", "multi-agent-debate", "agent2agent-protocol"], "introduced": null, "sources": [{"title": "Large Language Model based Multi-Agents: A Survey of Progress and Challenges", "authors": "Guo et al.", "year": 2024, "url": "https://arxiv.org/abs/2402.01680"}], "url": "https://protologue.com/t/multi-agent-system/", "citation": "Protologue. (2026). Multi-Agent System. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0140). https://protologue.com/t/multi-agent-system/"} +{"id": "PTL-0141", "slug": "plan-and-execute", "term": "Plan-and-Execute", "aliases": ["planner-executor", "plan-then-execute", "ReWOO", "LLMCompiler"], "category": "Agents & Orchestration", "definition": "Plan-and-execute is an agent design in which a planner model first writes a complete multi-step plan and executor calls then carry out the steps, rather than deciding one action at a time after every observation as in ReAct.", "description": "Planning up front reduces repeated reasoning over the growing history, cuts tokens and latency, and lets independent steps run in parallel. ReWOO plans with placeholders for tool results, and LLMCompiler schedules tool calls as a dependency graph. The trade-off is adaptability, so designs usually add replanning when a step fails or returns something unexpected.", "example": null, "broader": ["agentic-workflow"], "narrower": [], "related": ["react", "plan-and-solve-prompting", "orchestrator-workers", "parallelization"], "introduced": 2023, "sources": [{"title": "ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Models", "authors": "Xu et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.18323"}, {"title": "An LLM Compiler for Parallel Function Calling", "authors": "Kim et al.", "year": 2023, "url": "https://arxiv.org/abs/2312.04511"}], "url": "https://protologue.com/t/plan-and-execute/", "citation": "Protologue. (2026). Plan-and-Execute. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0141). https://protologue.com/t/plan-and-execute/"} +{"id": "PTL-0142", "slug": "handoff", "term": "Handoff", "aliases": ["agent handoff", "agent transfer", "delegation"], "category": "Agents & Orchestration", "definition": "A handoff is the transfer of an ongoing task or conversation from one agent to another that specializes in it, typically implemented as a tool the first agent can call to delegate control.", "description": "Handoffs let a triage agent route users to, for example, a billing or technical support agent, each with its own instructions and tools. Unlike orchestrator-workers, where control returns to the orchestrator, a handoff passes control along. What context is passed with it decides whether the receiving agent can continue without asking again.", "example": null, "broader": [], "narrower": [], "related": ["routing", "orchestrator-workers", "multi-agent-system"], "introduced": null, "sources": [{"title": "Handoffs", "authors": "OpenAI", "year": 2025, "url": "https://openai.github.io/openai-agents-python/handoffs/"}], "url": "https://protologue.com/t/handoff/", "citation": "Protologue. (2026). Handoff. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0142). https://protologue.com/t/handoff/"} +{"id": "PTL-0143", "slug": "human-in-the-loop", "term": "Human-in-the-Loop", "aliases": ["HITL", "human approval", "human oversight", "human checkpoint"], "category": "Agents & Orchestration", "definition": "Human-in-the-loop is a design in which an AI system pauses at defined checkpoints for a person to approve, correct, or supply information before it continues, especially before consequential or irreversible actions.", "description": "Checkpoints trade autonomy for safety and accuracy. They are commonly placed before sending messages, spending money, deleting data, or deploying code, and when the agent is uncertain. Requiring confirmation for consequential actions is a key mitigation for prompt injection and excessive agency, because an attacker who steers the agent still cannot complete the action unseen.", "example": null, "broader": [], "narrower": [], "related": ["ai-agent", "excessive-agency", "computer-use-agent", "evaluator-optimizer"], "introduced": null, "sources": [{"title": "Building effective agents", "authors": "Anthropic", "year": 2024, "url": "https://www.anthropic.com/research/building-effective-agents"}, {"title": "LLM06:2025 Excessive Agency", "authors": "OWASP Gen AI Security Project", "year": 2025, "url": "https://genai.owasp.org/llmrisk/llm062025-excessive-agency/"}], "url": "https://protologue.com/t/human-in-the-loop/", "citation": "Protologue. (2026). Human-in-the-Loop. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0143). https://protologue.com/t/human-in-the-loop/"} +{"id": "PTL-0144", "slug": "computer-use-agent", "term": "Computer-Use Agent", "aliases": ["computer use", "GUI agent", "browser agent", "browser use"], "category": "Agents & Orchestration", "definition": "A computer-use agent operates a graphical computer interface the way a person does, by looking at screenshots and issuing mouse clicks, keystrokes, and scrolls, so it can work with software that has no API.", "description": "The agent loop alternates between a screenshot and an action until the task is done. Benchmarks such as OSWorld measure performance on real desktop tasks. Because these agents read arbitrary on-screen content, they are exposed to prompt injection from web pages and documents, so they are run in isolated environments with human confirmation for sensitive actions.", "example": null, "broader": ["ai-agent"], "narrower": [], "related": ["multimodal-prompting", "human-in-the-loop", "indirect-prompt-injection"], "introduced": 2024, "sources": [{"title": "OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments", "authors": "Xie et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.07972"}, {"title": "Computer use tool", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool"}], "url": "https://protologue.com/t/computer-use-agent/", "citation": "Protologue. (2026). Computer-Use Agent. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0144). https://protologue.com/t/computer-use-agent/"} +{"id": "PTL-0145", "slug": "coding-agent", "term": "Coding Agent", "aliases": ["software engineering agent", "agentic coding", "AI coding assistant"], "category": "Agents & Orchestration", "definition": "A coding agent is an AI agent that works in a software repository by reading files, editing code, running commands and tests, and iterating on the results to complete programming tasks.", "description": "Research found that the interface matters as much as the model. Tools designed for a model, with concise file viewers, search, and editing commands that report errors, improved results over a raw shell. Coding agents are commonly evaluated on SWE-bench, which asks them to resolve real GitHub issues so that hidden tests pass.", "example": null, "broader": ["ai-agent"], "narrower": [], "related": ["code-execution-tool", "vibe-coding", "function-calling"], "introduced": 2024, "sources": [{"title": "SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering", "authors": "Yang et al.", "year": 2024, "url": "https://arxiv.org/abs/2405.15793"}, {"title": "SWE-bench: Can Language Models Resolve Real-World GitHub Issues?", "authors": "Jimenez et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.06770"}], "url": "https://protologue.com/t/coding-agent/", "citation": "Protologue. (2026). Coding Agent. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0145). https://protologue.com/t/coding-agent/"} +{"id": "PTL-0146", "slug": "vibe-coding", "term": "Vibe Coding", "aliases": [], "category": "Agents & Orchestration", "definition": "Vibe coding is building software by describing what you want to an AI model in natural language and accepting the code it generates, largely without reading or understanding that code.", "description": "Andrej Karpathy coined the term in February 2025 for throwaway projects where speed matters more than correctness. Collins English Dictionary named it its 2025 word of the year. The term is often used loosely for any AI-assisted programming, but its original sense, not reviewing the code, carries real risks of security flaws and unmaintainable software when applied to production systems.", "example": null, "broader": [], "narrower": [], "related": ["coding-agent", "prompt-engineering", "agentic-engineering"], "introduced": 2025, "sources": [{"title": "Post introducing \"vibe coding\"", "authors": "Karpathy", "year": 2025, "url": "https://x.com/karpathy/status/1886192184808149383"}], "url": "https://protologue.com/t/vibe-coding/", "citation": "Protologue. (2026). Vibe Coding. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0146). https://protologue.com/t/vibe-coding/"} +{"id": "PTL-0147", "slug": "agent2agent-protocol", "term": "Agent2Agent Protocol", "aliases": ["A2A", "A2A protocol"], "category": "Agents & Orchestration", "definition": "The Agent2Agent (A2A) protocol is an open specification that lets AI agents built by different vendors and frameworks discover each other's capabilities, delegate tasks, and exchange results.", "description": "Google announced A2A in April 2025 and later contributed it to the Linux Foundation. It is designed to complement the Model Context Protocol. MCP connects an agent to tools and data, while A2A connects agents to other agents. Agents advertise what they can do in a machine-readable agent card.", "example": null, "broader": [], "narrower": [], "related": ["model-context-protocol", "multi-agent-system", "handoff"], "introduced": 2025, "sources": [{"title": "Announcing the Agent2Agent Protocol (A2A)", "authors": "Google", "year": 2025, "url": "https://developers.googleblog.com/en/a2a-a-new-era-of-agent-interoperability/"}, {"title": "A2A Protocol", "authors": "Linux Foundation A2A Project", "year": 2025, "url": "https://a2a-protocol.org/latest/"}], "url": "https://protologue.com/t/agent2agent-protocol/", "citation": "Protologue. (2026). Agent2Agent Protocol. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0147). https://protologue.com/t/agent2agent-protocol/"} +{"id": "PTL-0148", "slug": "agent-skills", "term": "Agent Skills", "aliases": ["skills", "SKILL.md", "progressive disclosure"], "category": "Agents & Orchestration", "definition": "Agent skills are packaged folders of instructions, scripts, and reference files, each anchored by a SKILL.md file with a name and description, that an agent loads only when a task calls for them.", "description": "Only each skill's short description sits in the agent's context at startup. The full instructions are read when relevant, and supporting files are opened only if needed, a pattern called progressive disclosure. This lets an agent carry many specialized procedures without filling its context window, and lets organizations package their own workflows for reuse.", "example": null, "broader": [], "narrower": [], "related": ["context-engineering", "ai-agent", "model-context-protocol", "system-prompt"], "introduced": 2025, "sources": [{"title": "Equipping agents for the real world with Agent Skills", "authors": "Anthropic", "year": 2025, "url": "https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills"}], "url": "https://protologue.com/t/agent-skills/", "citation": "Protologue. (2026). Agent Skills. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0148). https://protologue.com/t/agent-skills/"} +{"id": "PTL-0149", "slug": "context-compaction", "term": "Context Compaction", "aliases": ["compaction", "conversation summarization", "context summarization"], "category": "Agents & Orchestration", "definition": "Context compaction is summarizing an agent's or conversation's history when it nears the context limit and continuing with the summary in place of the full history, so that long tasks can run beyond one context window.", "description": "Good compaction keeps decisions, open problems, and key details while dropping redundant tool output. Overly aggressive summaries lose information the agent later needs. It is one of several long-horizon strategies in context engineering, alongside structured note-taking outside the context and delegating work to sub-agents with fresh contexts. Research on long-horizon agents reports that rules and constraints an agent follows while they are visible can be dropped from compaction summaries, after which the agent violates them, and that pinning such constraints outside the summarized history greatly reduces these violations.", "example": null, "broader": [], "narrower": [], "related": ["context-engineering", "context-window", "agent-memory", "context-rot"], "introduced": 2025, "sources": [{"title": "Effective context engineering for AI agents", "authors": "Anthropic", "year": 2025, "url": "https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents"}, {"title": "Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents", "authors": "Chen", "year": 2026, "url": "https://arxiv.org/abs/2606.22528"}], "url": "https://protologue.com/t/context-compaction/", "citation": "Protologue. (2026). Context Compaction. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0149). https://protologue.com/t/context-compaction/"} +{"id": "PTL-0150", "slug": "prompt-optimization", "term": "Prompt Optimization", "aliases": ["automatic prompt optimization", "automated prompt engineering"], "category": "Prompt Optimization", "definition": "Prompt optimization is the automatic search for a better prompt, in which a language model proposes candidate instructions or examples and each candidate is scored on an evaluation set until performance stops improving.", "description": "Methods differ in how they propose changes. Some resample paraphrases, as in APE, some show the optimizer a history of scored prompts, as in OPRO, some critique errors in natural language and edit accordingly, as in ProTeGi and TextGrad, and some use evolutionary search, as in Promptbreeder and EvoPrompt. All of them depend on a representative evaluation set and metric, and can overfit to it.", "example": null, "broader": [], "narrower": ["protegi", "textgrad", "promptbreeder", "evoprompt", "agentic-context-engineering"], "related": ["automatic-prompt-engineer", "opro", "dspy", "evals"], "introduced": null, "sources": [{"title": "The Prompt Report: A Systematic Survey of Prompt Engineering Techniques", "authors": "Schulhoff et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.06608"}, {"title": "Automatic Prompt Optimization with \"Gradient Descent\" and Beam Search", "authors": "Pryzant et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.03495"}], "url": "https://protologue.com/t/prompt-optimization/", "citation": "Protologue. (2026). Prompt Optimization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0150). https://protologue.com/t/prompt-optimization/"} +{"id": "PTL-0151", "slug": "protegi", "term": "ProTeGi", "aliases": ["Prompt Optimization with Textual Gradients", "textual gradients"], "category": "Prompt Optimization", "definition": "ProTeGi (Prompt Optimization with Textual Gradients) improves a prompt by having a language model describe, in natural language, what is wrong with it based on the errors it produces, then edit the prompt to fix those problems, keeping the best candidates with beam search.", "description": "The natural-language critique plays the role of a gradient, and editing the prompt plays the role of a step in the opposite direction. A bandit-style selection procedure limits how many evaluations are needed to choose among candidates.", "example": null, "broader": ["prompt-optimization"], "narrower": [], "related": ["textgrad", "automatic-prompt-engineer", "opro"], "introduced": 2023, "sources": [{"title": "Automatic Prompt Optimization with \"Gradient Descent\" and Beam Search", "authors": "Pryzant et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.03495"}], "url": "https://protologue.com/t/protegi/", "citation": "Protologue. (2026). ProTeGi. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0151). https://protologue.com/t/protegi/"} +{"id": "PTL-0152", "slug": "textgrad", "term": "TextGrad", "aliases": ["textual backpropagation"], "category": "Prompt Optimization", "definition": "TextGrad is a framework that optimizes systems built from LLM calls by propagating natural-language feedback backward through the computation, so that each component, such as a prompt or a piece of code, is revised according to criticism of the final output.", "description": "It applies the idea of backpropagation to text, with an API modeled on PyTorch. Its authors used it to optimize prompts, code solutions, and answers to scientific questions. Like other feedback-driven optimizers, it is only as good as the evaluation signal it receives.", "example": null, "broader": ["prompt-optimization"], "narrower": [], "related": ["protegi", "dspy", "self-refine"], "introduced": 2024, "sources": [{"title": "TextGrad: Automatic \"Differentiation\" via Text", "authors": "Yuksekgonul et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.07496"}], "url": "https://protologue.com/t/textgrad/", "citation": "Protologue. (2026). TextGrad. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0152). https://protologue.com/t/textgrad/"} +{"id": "PTL-0153", "slug": "promptbreeder", "term": "Promptbreeder", "aliases": [], "category": "Prompt Optimization", "definition": "Promptbreeder is an evolutionary prompt-optimization method in which a population of task prompts is mutated and selected by fitness on training examples, while the mutation prompts that generate the changes are themselves evolved.", "description": "Because the instructions for how to mutate prompts also improve over time, the method is described as self-referential. It discovered domain-specific prompts that outperformed hand-written chain-of-thought prompts on arithmetic and commonsense benchmarks, at the cost of many model calls.", "example": null, "broader": ["prompt-optimization"], "narrower": [], "related": ["evoprompt", "opro", "automatic-prompt-engineer"], "introduced": 2023, "sources": [{"title": "Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolution", "authors": "Fernando et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.16797"}], "url": "https://protologue.com/t/promptbreeder/", "citation": "Protologue. (2026). Promptbreeder. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0153). https://protologue.com/t/promptbreeder/"} +{"id": "PTL-0154", "slug": "evoprompt", "term": "EvoPrompt", "aliases": [], "category": "Prompt Optimization", "definition": "EvoPrompt optimizes prompts with evolutionary algorithms, such as genetic algorithms and differential evolution, in which a language model performs the crossover and mutation steps on a population of prompts.", "description": "Using the model as the evolutionary operator keeps every candidate a readable, coherent prompt while borrowing the exploration properties of classical evolutionary search. It needs only API access to the model, not its gradients.", "example": null, "broader": ["prompt-optimization"], "narrower": [], "related": ["promptbreeder", "automatic-prompt-engineer"], "introduced": 2023, "sources": [{"title": "EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizers", "authors": "Guo et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.08532"}], "url": "https://protologue.com/t/evoprompt/", "citation": "Protologue. (2026). EvoPrompt. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0154). https://protologue.com/t/evoprompt/"} +{"id": "PTL-0155", "slug": "model-cascade", "term": "Model Cascade", "aliases": ["LLM cascade", "FrugalGPT", "cascading"], "category": "Prompt Optimization", "definition": "A model cascade sends each query to a cheaper model first and escalates it to progressively more capable and expensive models only when a scoring function judges the cheaper model's answer unreliable.", "description": "Because many queries are easy, most are answered cheaply, and only hard ones pay for the strongest model. FrugalGPT reported matching the best single model's performance at a large reduction in cost. The design depends on a reliable way to judge when an answer is good enough. Routing, by contrast, chooses a model before any answer is generated.", "example": null, "broader": [], "narrower": [], "related": ["routing", "confidence-calibration", "llm-as-a-judge"], "introduced": 2023, "sources": [{"title": "FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance", "authors": "Chen et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.05176"}], "url": "https://protologue.com/t/model-cascade/", "citation": "Protologue. (2026). Model Cascade. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0155). https://protologue.com/t/model-cascade/"} +{"id": "PTL-0156", "slug": "rlvr", "term": "Reinforcement Learning with Verifiable Rewards", "aliases": ["RLVR", "RL from verifiable rewards", "outcome-based reinforcement learning"], "category": "Reasoning Models & Test-Time Compute", "definition": "Reinforcement learning with verifiable rewards (RLVR) trains a language model with rewards computed by an automatic check of correctness, such as whether a math answer matches the reference or code passes its tests, instead of by a learned reward model.", "description": "Verifiable rewards are hard to game in the ways a learned reward model can be, and large-scale RL with them is how reasoning models learn to produce long, self-correcting chains of thought. The approach is limited to tasks with checkable answers, so open-ended writing and judgment still rely on preference-based rewards.", "example": null, "broader": [], "narrower": [], "related": ["reasoning-model", "rlhf", "reward-model", "reward-hacking", "self-taught-reasoner"], "introduced": 2024, "sources": [{"title": "Tulu 3: Pushing Frontiers in Open Language Model Post-Training", "authors": "Lambert et al.", "year": 2024, "url": "https://arxiv.org/abs/2411.15124"}, {"title": "DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning", "authors": "DeepSeek-AI et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.12948"}], "url": "https://protologue.com/t/rlvr/", "citation": "Protologue. (2026). Reinforcement Learning with Verifiable Rewards. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0156). https://protologue.com/t/rlvr/"} +{"id": "PTL-0157", "slug": "budget-forcing", "term": "Budget Forcing", "aliases": ["s1", "wait token", "thinking budget control"], "category": "Reasoning Models & Test-Time Compute", "definition": "Budget forcing controls how long a reasoning model thinks at inference time, by forcibly ending its reasoning when a token budget is reached or by appending a word such as \"Wait\" when it tries to stop early, which makes it keep reasoning.", "description": "It was introduced with s1, a model fine-tuned on only about a thousand reasoning examples, where extending thinking with budget forcing improved accuracy on competition math. It is a simple way to trade compute for accuracy, though the gains flatten beyond a point.", "example": null, "broader": ["test-time-compute-scaling"], "narrower": [], "related": ["reasoning-model", "extended-thinking", "overthinking"], "introduced": 2025, "sources": [{"title": "s1: Simple test-time scaling", "authors": "Muennighoff et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.19393"}], "url": "https://protologue.com/t/budget-forcing/", "citation": "Protologue. (2026). Budget Forcing. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0157). https://protologue.com/t/budget-forcing/"} +{"id": "PTL-0158", "slug": "chain-of-thought-monitoring", "term": "Chain-of-Thought Monitoring", "aliases": ["CoT monitoring", "CoT monitorability", "reasoning trace monitoring"], "category": "Reasoning Models & Test-Time Compute", "definition": "Chain-of-thought monitoring is reading a model's reasoning trace, with automated monitors or people, to detect intentions to misbehave, such as plans to cheat on a task, before or alongside its actions.", "description": "Because reasoning models often state their intentions in natural language while solving hard tasks, their reasoning offers an unusual view into their decision making. Researchers from several labs have argued that this monitorability is valuable but fragile. Training pressure on the reasoning text, or architectures that reason without words, could remove it, and reasoning traces are not always faithful to the model's actual computation.", "example": null, "broader": [], "narrower": [], "related": ["reasoning-model", "unfaithful-chain-of-thought", "reward-hacking", "extended-thinking"], "introduced": 2025, "sources": [{"title": "Chain of Thought Monitorability: A New and Fragile Opportunity for AI Safety", "authors": "Korbak et al.", "year": 2025, "url": "https://arxiv.org/abs/2507.11473"}], "url": "https://protologue.com/t/chain-of-thought-monitoring/", "citation": "Protologue. (2026). Chain-of-Thought Monitoring. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0158). https://protologue.com/t/chain-of-thought-monitoring/"} +{"id": "PTL-0159", "slug": "red-teaming", "term": "Red Teaming", "aliases": ["adversarial testing", "AI red teaming", "automated red teaming"], "category": "Security & Adversarial Prompting", "definition": "Red teaming is adversarial testing of an AI model or system, by people or by other models, to find inputs that make it produce harmful, insecure, or otherwise unwanted behavior before attackers or users do.", "description": "Human red teamers bring creativity and domain expertise, while automated red teaming uses a language model to generate and refine attacks at scale. Findings feed training data, guardrails, and policy, and red teaming is repeated as models and defenses change.", "example": null, "broader": [], "narrower": [], "related": ["jailbreak", "prompt-injection", "guardrails", "pair-attack", "constitutional-classifiers"], "introduced": 2022, "sources": [{"title": "Red Teaming Language Models with Language Models", "authors": "Perez et al.", "year": 2022, "url": "https://arxiv.org/abs/2202.03286"}], "url": "https://protologue.com/t/red-teaming/", "citation": "Protologue. (2026). Red Teaming. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0159). https://protologue.com/t/red-teaming/"} +{"id": "PTL-0160", "slug": "guardrails", "term": "Guardrails", "aliases": ["safety filters", "input/output filtering", "safeguard model", "moderation", "content filter"], "category": "Security & Adversarial Prompting", "definition": "Guardrails are checks placed around a model call that screen inputs and outputs, using classifiers, rules, or a second model, to block, redact, or redirect content that violates a policy before it reaches the model or the user.", "description": "Typical guardrails detect jailbreak attempts and prompt injection, unsafe content, personal data, and off-topic requests. Safeguard models such as Llama Guard classify messages against a taxonomy of risks, and toolkits such as NeMo Guardrails define programmable rails for dialogue. Guardrails add latency and can over-block, and none is complete, so they are layered with model training and least-privilege design.", "example": null, "broader": [], "narrower": ["constitutional-classifiers"], "related": ["jailbreak", "prompt-injection", "over-refusal", "red-teaming"], "introduced": 2023, "sources": [{"title": "Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations", "authors": "Inan et al.", "year": 2023, "url": "https://arxiv.org/abs/2312.06674"}, {"title": "NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Rails", "authors": "Rebedea et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.10501"}], "url": "https://protologue.com/t/guardrails/", "citation": "Protologue. (2026). Guardrails. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0160). https://protologue.com/t/guardrails/"} +{"id": "PTL-0161", "slug": "dual-llm-pattern", "term": "Dual LLM Pattern", "aliases": ["privileged and quarantined LLM", "CaMeL"], "category": "Security & Adversarial Prompting", "definition": "The dual LLM pattern defends against prompt injection by splitting work between a privileged model, which sees only trusted input and can use tools, and a quarantined model, which processes untrusted content but has no tool access, with ordinary code passing references between them.", "description": "The privileged model never reads untrusted text directly, so instructions hidden in that text cannot trigger its tools. CaMeL extends the idea by having the privileged model write a program whose data flows are tracked and checked against security policies. These designs give security guarantees by construction rather than by training, at the cost of flexibility.", "example": null, "broader": [], "narrower": [], "related": ["prompt-injection", "indirect-prompt-injection", "lethal-trifecta", "spotlighting", "instruction-hierarchy"], "introduced": 2023, "sources": [{"title": "The Dual LLM pattern for building AI assistants that can resist prompt injection", "authors": "Willison", "year": 2023, "url": "https://simonwillison.net/2023/Apr/25/dual-llm-pattern/"}, {"title": "Defeating Prompt Injections by Design", "authors": "Debenedetti et al.", "year": 2025, "url": "https://arxiv.org/abs/2503.18813"}, {"title": "Design Patterns for Securing LLM Agents against Prompt Injections", "authors": "Beurer-Kellner et al.", "year": 2025, "url": "https://arxiv.org/abs/2506.08837"}], "url": "https://protologue.com/t/dual-llm-pattern/", "citation": "Protologue. (2026). Dual LLM Pattern. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0161). https://protologue.com/t/dual-llm-pattern/"} +{"id": "PTL-0162", "slug": "tool-poisoning", "term": "Tool Poisoning", "aliases": ["tool poisoning attack", "MCP tool poisoning"], "category": "Security & Adversarial Prompting", "definition": "Tool poisoning is an attack in which malicious instructions are hidden in a tool's description or metadata, such as an MCP server's tool definitions, so that the agent reading the description is steered into harmful actions that the user does not see.", "description": "Agents read tool descriptions as trusted context, but users rarely see them in full. A poisoned tool can instruct the agent to read sensitive files or to send data through another, legitimate tool. Mitigations include showing full tool descriptions, pinning tool versions so descriptions cannot change silently, and installing servers only from trusted sources.", "example": null, "broader": ["indirect-prompt-injection"], "narrower": [], "related": ["model-context-protocol", "function-calling", "lethal-trifecta"], "introduced": 2025, "sources": [{"title": "MCP Security Notification: Tool Poisoning Attacks", "authors": "Invariant Labs", "year": 2025, "url": "https://invariantlabs.ai/blog/mcp-security-notification"}], "url": "https://protologue.com/t/tool-poisoning/", "citation": "Protologue. (2026). Tool Poisoning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0162). https://protologue.com/t/tool-poisoning/"} +{"id": "PTL-0163", "slug": "lethal-trifecta", "term": "Lethal Trifecta", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "The lethal trifecta is the combination of three capabilities that makes an AI agent vulnerable to data theft through prompt injection, namely access to private data, exposure to untrusted content, and the ability to communicate externally.", "description": "Any one or two are manageable, but with all three an attacker who plants instructions in content the agent reads can make it send private data out. Because no prompt-injection defense is fully reliable, the practical advice is to remove at least one of the three from any agent configuration.", "example": null, "broader": [], "narrower": [], "related": ["prompt-injection", "indirect-prompt-injection", "excessive-agency", "dual-llm-pattern", "tool-poisoning"], "introduced": 2025, "sources": [{"title": "The lethal trifecta for AI agents: private data, untrusted content, and external communication", "authors": "Willison", "year": 2025, "url": "https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/"}], "url": "https://protologue.com/t/lethal-trifecta/", "citation": "Protologue. (2026). Lethal Trifecta. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0163). https://protologue.com/t/lethal-trifecta/"} +{"id": "PTL-0164", "slug": "crescendo-attack", "term": "Crescendo Attack", "aliases": ["Crescendo", "multi-turn jailbreak"], "category": "Security & Adversarial Prompting", "definition": "The Crescendo attack is a multi-turn jailbreak that starts with harmless questions on a topic and gradually escalates over several turns, building on the model's own earlier answers until it produces content it would refuse if asked directly.", "description": "Each individual message looks benign, so defenses that check single prompts miss it. The attack exploits the model's tendency to stay consistent with the conversation so far. Defenses need to evaluate the trajectory of a conversation, not only its latest turn.", "example": null, "broader": ["jailbreak"], "narrower": [], "related": ["many-shot-jailbreaking", "multi-turn-degradation", "guardrails"], "introduced": 2024, "sources": [{"title": "Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attack", "authors": "Russinovich et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.01833"}], "url": "https://protologue.com/t/crescendo-attack/", "citation": "Protologue. (2026). Crescendo Attack. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0164). https://protologue.com/t/crescendo-attack/"} +{"id": "PTL-0165", "slug": "pair-attack", "term": "PAIR", "aliases": ["Prompt Automatic Iterative Refinement", "automated jailbreaking"], "category": "Security & Adversarial Prompting", "definition": "PAIR (Prompt Automatic Iterative Refinement) is an automated jailbreak method in which an attacker language model repeatedly proposes jailbreak prompts against a target model and refines them based on the target's responses, needing only black-box access.", "description": "The original work reported successful jailbreaks often within about twenty queries, and the resulting prompts are readable, unlike adversarial suffixes. It is widely used as a baseline for automated red teaming.", "example": null, "broader": ["jailbreak"], "narrower": [], "related": ["red-teaming", "adversarial-suffix"], "introduced": 2023, "sources": [{"title": "Jailbreaking Black Box Large Language Models in Twenty Queries", "authors": "Chao et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.08419"}], "url": "https://protologue.com/t/pair-attack/", "citation": "Protologue. (2026). PAIR. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0165). https://protologue.com/t/pair-attack/"} +{"id": "PTL-0166", "slug": "excessive-agency", "term": "Excessive Agency", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Excessive agency is the vulnerability of giving an LLM-based system more functionality, permissions, or autonomy than its task requires, so that a manipulated or mistaken model can take damaging actions.", "description": "It is listed as LLM06 in the OWASP Top 10 for LLM Applications (2025), which names three root causes, excessive functionality, excessive permissions, and excessive autonomy. Mitigations are least-privilege tools and credentials, narrowly scoped functions instead of open-ended ones, and human approval for high-impact actions.", "example": null, "broader": [], "narrower": [], "related": ["human-in-the-loop", "lethal-trifecta", "prompt-injection", "function-calling"], "introduced": null, "sources": [{"title": "LLM06:2025 Excessive Agency", "authors": "OWASP Gen AI Security Project", "year": 2025, "url": "https://genai.owasp.org/llmrisk/llm062025-excessive-agency/"}], "url": "https://protologue.com/t/excessive-agency/", "citation": "Protologue. (2026). Excessive Agency. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0166). https://protologue.com/t/excessive-agency/"} +{"id": "PTL-0167", "slug": "deliberative-alignment", "term": "Deliberative Alignment", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Deliberative alignment is a safety-training method in which a reasoning model is taught the text of a safety specification and trained to recall and reason about the relevant policies in its chain of thought before answering.", "description": "Instead of learning safe behavior only from labeled examples, the model learns to consult explicit rules at inference time. Its authors reported better resistance to jailbreaks together with fewer unnecessary refusals. It is related to constitutional AI, which also trains from written principles.", "example": null, "broader": [], "narrower": [], "related": ["constitutional-ai", "reasoning-model", "over-refusal", "jailbreak"], "introduced": 2024, "sources": [{"title": "Deliberative Alignment: Reasoning Enables Safer Language Models", "authors": "Guan et al.", "year": 2024, "url": "https://arxiv.org/abs/2412.16339"}], "url": "https://protologue.com/t/deliberative-alignment/", "citation": "Protologue. (2026). Deliberative Alignment. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0167). https://protologue.com/t/deliberative-alignment/"} +{"id": "PTL-0168", "slug": "constitutional-classifiers", "term": "Constitutional Classifiers", "aliases": [], "category": "Security & Adversarial Prompting", "definition": "Constitutional classifiers are input and output safeguard classifiers trained on synthetic data generated from a written constitution that defines permitted and restricted content, designed to block universal jailbreaks.", "description": "Because the training data is generated from natural-language rules, the classifiers can be updated as threats change by editing the constitution. Their authors reported that thousands of hours of red teaming found no universal jailbreak against the protected system, at a modest cost in refusals and compute.", "example": null, "broader": ["guardrails"], "narrower": [], "related": ["constitutional-ai", "jailbreak", "red-teaming"], "introduced": 2025, "sources": [{"title": "Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming", "authors": "Sharma et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.18837"}], "url": "https://protologue.com/t/constitutional-classifiers/", "citation": "Protologue. (2026). Constitutional Classifiers. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0168). https://protologue.com/t/constitutional-classifiers/"} +{"id": "PTL-0169", "slug": "context-rot", "term": "Context Rot", "aliases": ["long-context degradation", "context degradation"], "category": "Failure Modes & Evaluation", "definition": "Context rot is the decline in a model's reliability as the amount of input in its context grows, even on simple tasks and well within its advertised context window.", "description": "A 2025 study of 18 models found performance degrading with input length in ways that depended on the task and on the content around the relevant information, such as similar-looking distractors. It is a practical reason to keep contexts lean, retrieve only what is needed, and compact long histories rather than relying on maximum context length.", "example": null, "broader": [], "narrower": [], "related": ["lost-in-the-middle", "needle-in-a-haystack", "context-window", "context-engineering", "context-compaction"], "introduced": 2025, "sources": [{"title": "Context Rot: How Increasing Input Tokens Impacts LLM Performance", "authors": "Hong et al.", "year": 2025, "url": "https://www.trychroma.com/research/context-rot"}], "url": "https://protologue.com/t/context-rot/", "citation": "Protologue. (2026). Context Rot. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0169). https://protologue.com/t/context-rot/"} +{"id": "PTL-0170", "slug": "overthinking", "term": "Overthinking", "aliases": ["overthinking problem", "excessive reasoning"], "category": "Failure Modes & Evaluation", "definition": "Overthinking is the tendency of reasoning models to spend far more reasoning tokens than a problem requires, for example writing long chains of thought for trivial arithmetic, which adds cost and latency with little or no accuracy gain.", "description": "Analysis of o1-style models found that later reasoning rounds on simple problems rarely contribute new solutions. Remedies include adjustable reasoning effort or budgets, routing easy queries to non-reasoning models, and training that rewards efficient reasoning.", "example": null, "broader": [], "narrower": [], "related": ["reasoning-model", "extended-thinking", "budget-forcing", "chain-of-draft", "test-time-compute-scaling"], "introduced": 2024, "sources": [{"title": "Do NOT Think That Much for 2+3=? On the Overthinking of o1-Like LLMs", "authors": "Chen et al.", "year": 2024, "url": "https://arxiv.org/abs/2412.21187"}], "url": "https://protologue.com/t/overthinking/", "citation": "Protologue. (2026). Overthinking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0170). https://protologue.com/t/overthinking/"} +{"id": "PTL-0171", "slug": "reversal-curse", "term": "Reversal Curse", "aliases": [], "category": "Failure Modes & Evaluation", "definition": "The reversal curse is the failure of language models trained on a fact stated as \"A is B\" to answer the reversed question \"what is B?\", for example knowing who a celebrity's mother is but not who that woman's famous son is.", "description": "It shows that models do not automatically store facts in both directions. In practice, providing the relevant fact in the prompt fixes it, since in-context reasoning handles the reversal, which is one more argument for retrieval over relying on memorized knowledge.", "example": null, "broader": [], "narrower": [], "related": ["hallucination", "knowledge-cutoff", "retrieval-augmented-generation"], "introduced": 2023, "sources": [{"title": "The Reversal Curse: LLMs trained on \"A is B\" fail to learn \"B is A\"", "authors": "Berglund et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.12288"}], "url": "https://protologue.com/t/reversal-curse/", "citation": "Protologue. (2026). Reversal Curse. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0171). https://protologue.com/t/reversal-curse/"} +{"id": "PTL-0172", "slug": "reward-hacking", "term": "Reward Hacking", "aliases": ["specification gaming", "reward overoptimization", "reward gaming"], "category": "Failure Modes & Evaluation", "definition": "Reward hacking is when a model trained or optimized against a reward finds ways to score highly that do not achieve the intended goal, exploiting flaws in the reward model, grader, or tests.", "description": "In language models it shows up as answers padded to look thorough, flattery that raters prefer, and code that special-cases tests instead of solving the problem. Verifiable rewards reduce some forms, while careful graders, held-out tests, and monitoring of reasoning traces help detect others.", "example": null, "broader": [], "narrower": [], "related": ["reward-model", "rlhf", "rlvr", "sycophancy", "chain-of-thought-monitoring"], "introduced": null, "sources": [{"title": "Concrete Problems in AI Safety", "authors": "Amodei et al.", "year": 2016, "url": "https://arxiv.org/abs/1606.06565"}], "url": "https://protologue.com/t/reward-hacking/", "citation": "Protologue. (2026). Reward Hacking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0172). https://protologue.com/t/reward-hacking/"} +{"id": "PTL-0173", "slug": "irrelevant-context-distraction", "term": "Irrelevant Context Distraction", "aliases": ["distractibility", "GSM-IC"], "category": "Failure Modes & Evaluation", "definition": "Irrelevant context distraction is the drop in a model's accuracy when a prompt contains information that is unrelated to the question, such as an extra sentence in a math word problem, which the model wrongly incorporates into its reasoning.", "description": "A benchmark built by adding irrelevant sentences to grade-school math problems showed large accuracy drops across prompting methods. Instructing the model to ignore irrelevant information, using self-consistency, and filtering context first, as in System 2 Attention, all reduce the effect. It matters for RAG, where retrieved passages often include off-topic text.", "example": null, "broader": [], "narrower": [], "related": ["system-2-attention", "retrieval-augmented-generation", "context-rot", "prompt-sensitivity"], "introduced": 2023, "sources": [{"title": "Large Language Models Can Be Easily Distracted by Irrelevant Context", "authors": "Shi et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.00093"}], "url": "https://protologue.com/t/irrelevant-context-distraction/", "citation": "Protologue. (2026). Irrelevant Context Distraction. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0173). https://protologue.com/t/irrelevant-context-distraction/"} +{"id": "PTL-0174", "slug": "multi-turn-degradation", "term": "Multi-Turn Degradation", "aliases": ["lost in conversation", "multi-turn performance drop"], "category": "Failure Modes & Evaluation", "definition": "Multi-turn degradation is the drop in model performance when a task's requirements are revealed across several conversation turns instead of all at once, because models commit to early assumptions and fail to recover.", "description": "A large 2025 study found that models that performed well on fully specified single-turn instructions did markedly worse in multi-turn settings, mainly through increased unreliability rather than a loss of capability. The practical advice is to consolidate requirements into a fresh prompt when a conversation goes off track.", "example": null, "broader": [], "narrower": [], "related": ["instruction-following", "context-compaction", "crescendo-attack", "context-rot"], "introduced": 2025, "sources": [{"title": "LLMs Get Lost In Multi-Turn Conversation", "authors": "Laban et al.", "year": 2025, "url": "https://arxiv.org/abs/2505.06120"}], "url": "https://protologue.com/t/multi-turn-degradation/", "citation": "Protologue. (2026). Multi-Turn Degradation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0174). https://protologue.com/t/multi-turn-degradation/"} +{"id": "PTL-0175", "slug": "text-degeneration", "term": "Text Degeneration", "aliases": ["neural text degeneration", "repetition", "repetition loops"], "category": "Failure Modes & Evaluation", "definition": "Text degeneration is the tendency of language models, especially under greedy or beam-search decoding, to produce bland, repetitive, or looping text, such as the same phrase repeated over and over.", "description": "Maximizing likelihood at each step favors safe, high-probability continuations that reinforce themselves once repetition starts. Sampling methods such as top-p and top-k, repetition or frequency penalties, and modern training largely mitigate it, but loops still appear in long generations and agent traces.", "example": null, "broader": [], "narrower": [], "related": ["greedy-decoding", "top-p-sampling", "top-k-sampling", "temperature"], "introduced": 2019, "sources": [{"title": "The Curious Case of Neural Text Degeneration", "authors": "Holtzman et al.", "year": 2019, "url": "https://arxiv.org/abs/1904.09751"}], "url": "https://protologue.com/t/text-degeneration/", "citation": "Protologue. (2026). Text Degeneration. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0175). https://protologue.com/t/text-degeneration/"} +{"id": "PTL-0176", "slug": "over-refusal", "term": "Over-Refusal", "aliases": ["exaggerated safety", "false refusal", "overrefusal"], "category": "Failure Modes & Evaluation", "definition": "Over-refusal is a model declining safe requests because they superficially resemble harmful ones, such as refusing to explain how to kill a Python process.", "description": "It is the cost side of safety training, since overly cautious models frustrate users and withhold legitimate help. Test suites such as XSTest pair safe prompts with unsafe look-alikes to measure the balance, and methods such as deliberative alignment aim to reduce refusals while improving robustness.", "example": null, "broader": [], "narrower": [], "related": ["guardrails", "rlhf", "deliberative-alignment", "constitutional-classifiers"], "introduced": 2023, "sources": [{"title": "XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models", "authors": "Röttger et al.", "year": 2023, "url": "https://arxiv.org/abs/2308.01263"}], "url": "https://protologue.com/t/over-refusal/", "citation": "Protologue. (2026). Over-Refusal. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0176). https://protologue.com/t/over-refusal/"} +{"id": "PTL-0177", "slug": "llm-judge-bias", "term": "LLM Judge Bias", "aliases": ["position bias", "verbosity bias", "self-enhancement bias", "self-preference bias"], "category": "Failure Modes & Evaluation", "definition": "LLM judge bias is the set of systematic errors that language models make when grading outputs, notably preferring the answer shown first (position bias), longer answers (verbosity bias), and their own outputs (self-enhancement bias).", "description": "These biases can make automated evaluations favor the wrong prompt or model. Common mitigations are evaluating each pair in both orders and counting only consistent verdicts, instructing the judge to ignore length, using clear rubrics and reference answers, and checking judge agreement against a sample of human ratings.", "example": null, "broader": [], "narrower": [], "related": ["llm-as-a-judge", "evals", "sycophancy"], "introduced": 2023, "sources": [{"title": "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena", "authors": "Zheng et al.", "year": 2023, "url": "https://arxiv.org/abs/2306.05685"}], "url": "https://protologue.com/t/llm-judge-bias/", "citation": "Protologue. (2026). LLM Judge Bias. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0177). https://protologue.com/t/llm-judge-bias/"} +{"id": "PTL-0178", "slug": "data-contamination", "term": "Data Contamination", "aliases": ["benchmark contamination", "test set contamination", "training data leakage"], "category": "Failure Modes & Evaluation", "definition": "Data contamination is the presence of benchmark or test examples in a model's training data, which inflates its measured performance because it may have memorized the answers.", "description": "Since models are trained on large web crawls, public benchmarks often leak into training sets. Contamination can be detected, for example, by prompting a model to complete the beginning of test instances and checking for verbatim matches. For application evaluations, the safeguard is a private, regularly refreshed test set.", "example": null, "broader": [], "narrower": [], "related": ["evals", "knowledge-cutoff"], "introduced": 2023, "sources": [{"title": "Time Travel in LLMs: Tracing Data Contamination in Large Language Models", "authors": "Golchin and Surdeanu", "year": 2023, "url": "https://arxiv.org/abs/2308.08493"}], "url": "https://protologue.com/t/data-contamination/", "citation": "Protologue. (2026). Data Contamination. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0178). https://protologue.com/t/data-contamination/"} +{"id": "PTL-0179", "slug": "evals", "term": "Evals", "aliases": ["evaluations", "LLM evaluation", "eval suite", "test set"], "category": "Failure Modes & Evaluation", "definition": "Evals are systematic tests of a model or LLM application, consisting of a set of representative inputs and a grading method, used to measure performance against defined success criteria and to compare prompts, models, and changes.", "description": "Grading can be exact-match or code-based, done by an LLM judge with a rubric, or done by people. Code-based grading is fastest and most reliable where it applies. A good eval set mirrors real usage, including edge cases, and turns prompt engineering from guesswork into measurement. Without one, changes that fix one case can silently break others.", "example": null, "broader": [], "narrower": ["pass-at-k", "rag-evaluation"], "related": ["llm-as-a-judge", "prompt-optimization", "data-contamination"], "introduced": null, "sources": [{"title": "Define success criteria and build evaluations", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/test-and-evaluate/develop-tests"}, {"title": "Holistic Evaluation of Language Models", "authors": "Liang et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.09110"}], "url": "https://protologue.com/t/evals/", "citation": "Protologue. (2026). Evals. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0179). https://protologue.com/t/evals/"} +{"id": "PTL-0180", "slug": "pass-at-k", "term": "pass@k", "aliases": ["pass@1", "pass at k"], "category": "Failure Modes & Evaluation", "definition": "pass@k is an evaluation metric for code generation, and other tasks with automatic checks, defined as the probability that at least one of k sampled solutions to a problem passes its tests.", "description": "It was popularized with an unbiased estimator computed from n ≥ k samples per problem. pass@1 measures single-attempt reliability, while larger k measures whether the model can solve the problem at all, which is relevant when best-of-n sampling or verification is available.", "example": null, "broader": ["evals"], "narrower": [], "related": ["best-of-n-sampling", "coding-agent", "rlvr"], "introduced": 2021, "sources": [{"title": "Evaluating Large Language Models Trained on Code", "authors": "Chen et al.", "year": 2021, "url": "https://arxiv.org/abs/2107.03374"}], "url": "https://protologue.com/t/pass-at-k/", "citation": "Protologue. (2026). pass@k. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0180). https://protologue.com/t/pass-at-k/"} +{"id": "PTL-0181", "slug": "rag-evaluation", "term": "RAG Evaluation", "aliases": ["Ragas", "RAG metrics", "faithfulness", "context relevance"], "category": "Failure Modes & Evaluation", "definition": "RAG evaluation measures a retrieval-augmented system's retrieval and generation separately, typically checking whether the retrieved context is relevant, whether the answer is faithful to that context, and whether the answer addresses the question.", "description": "Separating the stages shows whether a bad answer came from retrieval or from generation. Frameworks such as Ragas compute these metrics automatically with an LLM, without reference answers, which makes it practical to compare chunking, retrieval, and prompt choices.", "example": null, "broader": ["evals"], "narrower": [], "related": ["retrieval-augmented-generation", "llm-as-a-judge", "hallucination", "chunking"], "introduced": 2023, "sources": [{"title": "Ragas: Automated Evaluation of Retrieval Augmented Generation", "authors": "Es et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.15217"}], "url": "https://protologue.com/t/rag-evaluation/", "citation": "Protologue. (2026). RAG Evaluation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0181). https://protologue.com/t/rag-evaluation/"} +{"id": "PTL-0182", "slug": "kv-cache", "term": "KV Cache", "aliases": ["key-value cache", "KV caching"], "category": "Foundations", "definition": "The KV cache stores the attention keys and values a Transformer has already computed for earlier tokens, so that generating each new token requires computing only that token's keys and values instead of reprocessing the whole sequence.", "description": "Caching makes generation fast, but its memory grows with context length and with the number of concurrent requests, which is a main constraint on long contexts and serving costs. Serving systems such as vLLM manage it in pages to reduce waste, and KV cache quantization stores it at lower precision. KIVI, for example, compresses keys and values to 2 bits, quantizing keys per channel and values per token, and reported a 2.6-times reduction in peak memory with little loss in quality. Prompt caching extends the idea across requests by keeping the cache for a shared prompt prefix, which is why cached prompts must begin with identical content to get the discount.", "example": null, "broader": [], "narrower": [], "related": ["prompt-caching", "context-window", "token"], "introduced": null, "sources": [{"title": "Efficient Memory Management for Large Language Model Serving with PagedAttention", "authors": "Kwon et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.06180"}, {"title": "Prompt caching", "authors": "Anthropic", "year": 2024, "url": "https://platform.claude.com/docs/en/build-with-claude/prompt-caching"}, {"title": "KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache", "authors": "Liu et al.", "year": 2024, "url": "https://arxiv.org/abs/2402.02750"}], "url": "https://protologue.com/t/kv-cache/", "citation": "Protologue. (2026). KV Cache. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0182). https://protologue.com/t/kv-cache/"} +{"id": "PTL-0183", "slug": "knowledge-distillation", "term": "Knowledge Distillation", "aliases": ["distillation", "model distillation", "teacher-student training"], "category": "Foundations", "definition": "Knowledge distillation is training a smaller student model to imitate a larger teacher model, using the teacher's output probabilities or generated responses as training targets, so that the student keeps much of the teacher's ability at lower cost.", "description": "The original method trains on the teacher's full probability distribution, whose soft targets carry more information than single correct labels. With LLMs, distillation is commonly done by fine-tuning a small model on responses, including reasoning traces, generated by a large one, which is how several small reasoning models have been built. Some model providers' terms restrict using their outputs to train competing models.", "example": null, "broader": ["fine-tuning"], "narrower": [], "related": ["reasoning-model", "model-cascade"], "introduced": 2015, "sources": [{"title": "Distilling the Knowledge in a Neural Network", "authors": "Hinton et al.", "year": 2015, "url": "https://arxiv.org/abs/1503.02531"}, {"title": "DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning", "authors": "DeepSeek-AI et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.12948"}], "url": "https://protologue.com/t/knowledge-distillation/", "citation": "Protologue. (2026). Knowledge Distillation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0183). https://protologue.com/t/knowledge-distillation/"} +{"id": "PTL-0184", "slug": "emergent-abilities", "term": "Emergent Abilities", "aliases": ["emergence", "emergent capabilities"], "category": "Foundations", "definition": "Emergent abilities are capabilities that appear in large language models above a certain scale but are near chance in smaller ones, such as multi-step arithmetic or benefiting from chain-of-thought prompting.", "description": "The idea explained why some prompting techniques only work with large models. It is disputed. Later analysis argued that many apparent jumps are artifacts of all-or-nothing metrics such as exact match, and that smoother metrics show gradual improvement with scale. The practical lesson stands either way, which is that a technique that fails on a small model may work on a larger one, and the reverse.", "example": null, "broader": [], "narrower": [], "related": ["large-language-model", "chain-of-thought", "in-context-learning", "benchmark"], "introduced": 2022, "sources": [{"title": "Emergent Abilities of Large Language Models", "authors": "Wei et al.", "year": 2022, "url": "https://arxiv.org/abs/2206.07682"}, {"title": "Are Emergent Abilities of Large Language Models a Mirage?", "authors": "Schaeffer et al.", "year": 2023, "url": "https://arxiv.org/abs/2304.15004"}], "url": "https://protologue.com/t/emergent-abilities/", "citation": "Protologue. (2026). Emergent Abilities. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0184). https://protologue.com/t/emergent-abilities/"} +{"id": "PTL-0185", "slug": "benchmark", "term": "Benchmark", "aliases": ["LLM benchmark", "evaluation benchmark"], "category": "Benchmarks", "definition": "A benchmark is a fixed, public set of test tasks with a standard scoring method, used to measure and compare the capabilities of language models.", "description": "Reported scores depend on the prompting setup, such as the number of examples, whether chain-of-thought or extended thinking is used, and how many attempts are sampled, so scores are only comparable under the same conditions. Public benchmarks also risk data contamination and eventually saturate. They are useful for choosing models, but an application's own evals are the better guide to how a model will perform on its tasks.", "example": null, "broader": [], "narrower": ["benchmark-saturation", "mmlu", "mmlu-pro", "gpqa", "humanitys-last-exam", "big-bench-hard", "arc-agi", "simpleqa", "truthfulqa", "hellaswag", "mmmu", "gsm8k", "math-benchmark", "aime", "humaneval", "livecodebench", "swe-bench", "terminal-bench", "tau-bench", "osworld", "gaia", "browsecomp", "ifeval", "mt-bench", "chatbot-arena", "ruler"], "related": ["evals", "data-contamination", "pass-at-k"], "introduced": null, "sources": [{"title": "Holistic Evaluation of Language Models", "authors": "Liang et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.09110"}, {"title": "Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models", "authors": "Srivastava et al.", "year": 2022, "url": "https://arxiv.org/abs/2206.04615"}], "url": "https://protologue.com/t/benchmark/", "citation": "Protologue. (2026). Benchmark. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0185). https://protologue.com/t/benchmark/"} +{"id": "PTL-0186", "slug": "benchmark-saturation", "term": "Benchmark Saturation", "aliases": ["saturated benchmark"], "category": "Benchmarks", "definition": "Benchmark saturation is when the best models score near a benchmark's maximum, so that it no longer distinguishes between them and its remaining errors mostly reflect flawed or ambiguous questions.", "description": "Saturation has followed every widely used benchmark, often within a few years, and is a main reason new, harder benchmarks keep appearing. MMLU-Pro and Humanity's Last Exam were both created because earlier benchmarks had saturated. Contamination can make a benchmark look saturated before models have truly mastered it.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["data-contamination", "mmlu", "humanitys-last-exam"], "introduced": null, "sources": [{"title": "Humanity's Last Exam", "authors": "Phan et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.14249"}, {"title": "MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmark", "authors": "Wang et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.01574"}], "url": "https://protologue.com/t/benchmark-saturation/", "citation": "Protologue. (2026). Benchmark Saturation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0186). https://protologue.com/t/benchmark-saturation/"} +{"id": "PTL-0187", "slug": "mmlu", "term": "MMLU", "aliases": ["Massive Multitask Language Understanding"], "category": "Benchmarks", "definition": "MMLU (Massive Multitask Language Understanding) is a benchmark of four-option multiple-choice questions across 57 subjects, from elementary mathematics to law and medicine, that measures a model's breadth of knowledge and problem solving.", "description": "It was the standard headline score for general knowledge for several years and is traditionally reported with five examples in the prompt (5-shot). Frontier models now score near the top, so it is considered saturated, and it has largely been succeeded by harder variants such as MMLU-Pro.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["mmlu-pro", "gpqa", "benchmark-saturation", "few-shot-prompting"], "introduced": 2020, "sources": [{"title": "Measuring Massive Multitask Language Understanding", "authors": "Hendrycks et al.", "year": 2020, "url": "https://arxiv.org/abs/2009.03300"}], "url": "https://protologue.com/t/mmlu/", "citation": "Protologue. (2026). MMLU. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0187). https://protologue.com/t/mmlu/"} +{"id": "PTL-0188", "slug": "mmlu-pro", "term": "MMLU-Pro", "aliases": [], "category": "Benchmarks", "definition": "MMLU-Pro is a harder, reasoning-focused successor to MMLU that offers ten answer options instead of four and replaces trivial or noisy questions with more challenging ones.", "description": "More options lower the score obtainable by guessing, and the harder questions make chain-of-thought prompting matter more than it does on MMLU. Its creators also reported that scores vary less with the wording of the prompt than on the original benchmark.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["mmlu", "gpqa", "chain-of-thought", "prompt-sensitivity"], "introduced": 2024, "sources": [{"title": "MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmark", "authors": "Wang et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.01574"}], "url": "https://protologue.com/t/mmlu-pro/", "citation": "Protologue. (2026). MMLU-Pro. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0188). https://protologue.com/t/mmlu-pro/"} +{"id": "PTL-0189", "slug": "gpqa", "term": "GPQA", "aliases": ["GPQA Diamond", "Graduate-Level Google-Proof Q&A"], "category": "Benchmarks", "definition": "GPQA (Graduate-Level Google-Proof Q&A) is a benchmark of difficult multiple-choice questions in biology, physics, and chemistry, written by domain experts so that skilled non-experts cannot answer them reliably even with unrestricted web access.", "description": "Its high-quality \"Diamond\" subset is the version most often reported in model announcements. Because the questions resist search, it measures expert-level reasoning more than retrieval. It is also used to study scalable oversight, the question of how people can supervise models that know more than they do.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["mmlu-pro", "humanitys-last-exam", "reasoning-model"], "introduced": 2023, "sources": [{"title": "GPQA: A Graduate-Level Google-Proof Q&A Benchmark", "authors": "Rein et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.12022"}], "url": "https://protologue.com/t/gpqa/", "citation": "Protologue. (2026). GPQA. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0189). https://protologue.com/t/gpqa/"} +{"id": "PTL-0190", "slug": "humanitys-last-exam", "term": "Humanity's Last Exam", "aliases": ["HLE"], "category": "Benchmarks", "definition": "Humanity's Last Exam (HLE) is a benchmark of 2,500 expert-written questions across dozens of academic subjects, some with images, designed to remain hard for frontier models after earlier academic benchmarks saturated.", "description": "Questions were contributed by subject experts and kept only if leading models failed them at the time, and answers are short and automatically checkable. Its creators also measure calibration, how well a model's stated confidence matches its accuracy, because models often answer the questions they get wrong with high confidence.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["benchmark-saturation", "gpqa", "confidence-calibration"], "introduced": 2025, "sources": [{"title": "Humanity's Last Exam", "authors": "Phan et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.14249"}], "url": "https://protologue.com/t/humanitys-last-exam/", "citation": "Protologue. (2026). Humanity's Last Exam. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0190). https://protologue.com/t/humanitys-last-exam/"} +{"id": "PTL-0191", "slug": "big-bench-hard", "term": "BIG-Bench Hard", "aliases": ["BBH", "BIG-bench"], "category": "Benchmarks", "definition": "BIG-Bench Hard (BBH) is a set of 23 challenging tasks from the BIG-bench collection on which earlier language models performed below average human raters, used to measure multi-step reasoning.", "description": "Its creators showed that chain-of-thought prompting greatly improved results on these tasks, which made BBH a standard test of reasoning-elicitation techniques. BIG-bench itself is a collaborative collection of over 200 tasks.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["chain-of-thought", "few-shot-prompting"], "introduced": 2022, "sources": [{"title": "Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them", "authors": "Suzgun et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.09261"}, {"title": "Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models", "authors": "Srivastava et al.", "year": 2022, "url": "https://arxiv.org/abs/2206.04615"}], "url": "https://protologue.com/t/big-bench-hard/", "citation": "Protologue. (2026). BIG-Bench Hard. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0191). https://protologue.com/t/big-bench-hard/"} +{"id": "PTL-0192", "slug": "arc-agi", "term": "ARC-AGI", "aliases": ["ARC", "Abstraction and Reasoning Corpus", "ARC-AGI-2", "ARC Prize"], "category": "Benchmarks", "definition": "ARC-AGI (the Abstraction and Reasoning Corpus) is a benchmark of visual grid puzzles in which a model must infer a transformation rule from a few examples and apply it to a new grid, designed to measure how efficiently a system acquires new skills.", "description": "The puzzles are easy for most people but require reasoning that cannot be memorized, because each task is novel. François Chollet introduced it in 2019 alongside a definition of intelligence as skill-acquisition efficiency. Successive versions, such as ARC-AGI-2, were made harder as systems improved, and many results are reported with explicit compute costs.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["test-time-compute-scaling", "reasoning-model"], "introduced": 2019, "sources": [{"title": "On the Measure of Intelligence", "authors": "Chollet", "year": 2019, "url": "https://arxiv.org/abs/1911.01547"}, {"title": "ARC-AGI-2: A New Challenge for Frontier AI Reasoning Systems", "authors": "Chollet et al.", "year": 2025, "url": "https://arxiv.org/abs/2505.11831"}], "url": "https://protologue.com/t/arc-agi/", "citation": "Protologue. (2026). ARC-AGI. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0192). https://protologue.com/t/arc-agi/"} +{"id": "PTL-0193", "slug": "simpleqa", "term": "SimpleQA", "aliases": [], "category": "Benchmarks", "definition": "SimpleQA is a benchmark of short, fact-seeking questions with a single indisputable answer, collected adversarially against strong models, that measures whether a model answers factual questions correctly and declines when it does not know.", "description": "Answers are graded as correct, incorrect, or not attempted, so it rewards knowing what you don't know as well as knowing facts. It is used to measure hallucination in closed-book settings and the effect of adding search.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["hallucination", "confidence-calibration", "web-search-tool", "truthfulqa"], "introduced": 2024, "sources": [{"title": "Measuring short-form factuality in large language models", "authors": "Wei et al.", "year": 2024, "url": "https://arxiv.org/abs/2411.04368"}], "url": "https://protologue.com/t/simpleqa/", "citation": "Protologue. (2026). SimpleQA. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0193). https://protologue.com/t/simpleqa/"} +{"id": "PTL-0194", "slug": "truthfulqa", "term": "TruthfulQA", "aliases": [], "category": "Benchmarks", "definition": "TruthfulQA is a benchmark of questions crafted so that some people would answer them falsely because of common misconceptions, used to measure whether a model repeats popular falsehoods instead of answering truthfully.", "description": "Its creators found that larger models of the time were often less truthful, because they imitated human misconceptions in their training data more faithfully. It remains a common reference for truthfulness, though, like other older public benchmarks, it is exposed to data contamination.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["hallucination", "sycophancy", "simpleqa"], "introduced": 2021, "sources": [{"title": "TruthfulQA: Measuring How Models Mimic Human Falsehoods", "authors": "Lin et al.", "year": 2021, "url": "https://arxiv.org/abs/2109.07958"}], "url": "https://protologue.com/t/truthfulqa/", "citation": "Protologue. (2026). TruthfulQA. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0194). https://protologue.com/t/truthfulqa/"} +{"id": "PTL-0195", "slug": "hellaswag", "term": "HellaSwag", "aliases": [], "category": "Benchmarks", "definition": "HellaSwag is a commonsense reasoning benchmark in which a model must pick the most plausible continuation of a description of an everyday situation from four options, with wrong options generated and filtered to fool models.", "description": "When it was introduced, the questions were trivial for people but hard for the best models. Modern models score close to human level, so it is a standard example of a saturated benchmark, though it still appears in model reports.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["benchmark-saturation"], "introduced": 2019, "sources": [{"title": "HellaSwag: Can a Machine Really Finish Your Sentence?", "authors": "Zellers et al.", "year": 2019, "url": "https://arxiv.org/abs/1905.07830"}], "url": "https://protologue.com/t/hellaswag/", "citation": "Protologue. (2026). HellaSwag. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0195). https://protologue.com/t/hellaswag/"} +{"id": "PTL-0196", "slug": "mmmu", "term": "MMMU", "aliases": [], "category": "Benchmarks", "definition": "MMMU (Massive Multi-discipline Multimodal Understanding) is a benchmark of college-level questions that require reasoning over images, such as charts, diagrams, tables, and chemical structures, together with text, across 30 subjects in six disciplines.", "description": "It tests whether multimodal models can combine visual perception with domain knowledge, not only describe images. It is a standard headline score for vision-language models.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["multimodal-prompting", "mmlu"], "introduced": 2023, "sources": [{"title": "MMMU: A Massive Multi-discipline Multimodal Understanding and Reasoning Benchmark for Expert AGI", "authors": "Yue et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.16502"}], "url": "https://protologue.com/t/mmmu/", "citation": "Protologue. (2026). MMMU. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0196). https://protologue.com/t/mmmu/"} +{"id": "PTL-0197", "slug": "gsm8k", "term": "GSM8K", "aliases": ["Grade School Math 8K"], "category": "Benchmarks", "definition": "GSM8K is a benchmark of about 8,500 grade-school math word problems that each take several steps of basic arithmetic to solve, used to measure multi-step mathematical reasoning.", "description": "It was the main testbed for chain-of-thought, self-consistency, and many other reasoning techniques, and was introduced together with the idea of training verifiers to check solutions. Frontier models now solve nearly all of it, so it is saturated, but variants that add irrelevant information or change numbers still reveal brittleness.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["chain-of-thought", "self-consistency", "irrelevant-context-distraction", "math-benchmark"], "introduced": 2021, "sources": [{"title": "Training Verifiers to Solve Math Word Problems", "authors": "Cobbe et al.", "year": 2021, "url": "https://arxiv.org/abs/2110.14168"}], "url": "https://protologue.com/t/gsm8k/", "citation": "Protologue. (2026). GSM8K. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0197). https://protologue.com/t/gsm8k/"} +{"id": "PTL-0198", "slug": "math-benchmark", "term": "MATH", "aliases": ["MATH dataset", "MATH-500"], "category": "Benchmarks", "definition": "MATH is a benchmark of 12,500 competition mathematics problems, spanning seven subjects and five difficulty levels, each with a full step-by-step solution.", "description": "It is much harder than grade-school arithmetic and was long a key measure of mathematical reasoning. A 500-problem subset, MATH-500, created for research on process supervision, is the version most often reported today.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["gsm8k", "aime", "process-reward-model"], "introduced": 2021, "sources": [{"title": "Measuring Mathematical Problem Solving With the MATH Dataset", "authors": "Hendrycks et al.", "year": 2021, "url": "https://arxiv.org/abs/2103.03874"}, {"title": "Let's Verify Step by Step", "authors": "Lightman et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.20050"}], "url": "https://protologue.com/t/math-benchmark/", "citation": "Protologue. (2026). MATH. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0198). https://protologue.com/t/math-benchmark/"} +{"id": "PTL-0199", "slug": "aime", "term": "AIME", "aliases": ["AIME 2024", "AIME 2025", "American Invitational Mathematics Examination"], "category": "Benchmarks", "definition": "AIME, the American Invitational Mathematics Examination, is a US high-school mathematics competition whose problems, each with an integer answer, are widely used as a benchmark for reasoning models, usually identified by year, as in AIME 2024 or AIME 2025.", "description": "Each exam has only 15 problems, so scores are typically averaged over many sampled attempts and vary noticeably between runs. A new exam each year provides problems written after many models' training data was collected, which limits contamination.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["math-benchmark", "reasoning-model", "test-time-compute-scaling", "self-consistency"], "introduced": null, "sources": [{"title": "Learning to reason with LLMs", "authors": "OpenAI", "year": 2024, "url": "https://openai.com/index/learning-to-reason-with-llms/"}, {"title": "s1: Simple test-time scaling", "authors": "Muennighoff et al.", "year": 2025, "url": "https://arxiv.org/abs/2501.19393"}], "url": "https://protologue.com/t/aime/", "citation": "Protologue. (2026). AIME. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0199). https://protologue.com/t/aime/"} +{"id": "PTL-0200", "slug": "humaneval", "term": "HumanEval", "aliases": [], "category": "Benchmarks", "definition": "HumanEval is a benchmark of 164 hand-written Python programming problems, each with a function signature, a description, and hidden unit tests, used to measure code generation with the pass@k metric.", "description": "It established functional correctness, whether generated code passes tests, as the standard for evaluating code models, rather than similarity to a reference solution. It is now saturated and small, so harder and contamination-resistant benchmarks such as LiveCodeBench and SWE-bench have taken its place.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["pass-at-k", "livecodebench", "swe-bench"], "introduced": 2021, "sources": [{"title": "Evaluating Large Language Models Trained on Code", "authors": "Chen et al.", "year": 2021, "url": "https://arxiv.org/abs/2107.03374"}], "url": "https://protologue.com/t/humaneval/", "citation": "Protologue. (2026). HumanEval. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0200). https://protologue.com/t/humaneval/"} +{"id": "PTL-0201", "slug": "livecodebench", "term": "LiveCodeBench", "aliases": [], "category": "Benchmarks", "definition": "LiveCodeBench is a coding benchmark that continuously collects new problems from programming contests, such as LeetCode, AtCoder, and Codeforces, so that models can be evaluated only on problems published after their training data was collected.", "description": "Dating each problem lets evaluators detect and avoid data contamination. Besides code generation, it covers self-repair, predicting the output of code, and predicting test outputs.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["data-contamination", "humaneval", "pass-at-k"], "introduced": 2024, "sources": [{"title": "LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code", "authors": "Jain et al.", "year": 2024, "url": "https://arxiv.org/abs/2403.07974"}], "url": "https://protologue.com/t/livecodebench/", "citation": "Protologue. (2026). LiveCodeBench. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0201). https://protologue.com/t/livecodebench/"} +{"id": "PTL-0202", "slug": "swe-bench", "term": "SWE-bench", "aliases": ["SWE-bench Verified"], "category": "Benchmarks", "definition": "SWE-bench is a benchmark of real GitHub issues from popular Python repositories, in which a model or agent must edit the codebase so that tests written for the actual fix pass.", "description": "It measures practical software engineering in large, unfamiliar codebases rather than isolated functions, and became a standard benchmark for coding agents. Because some original tasks were underspecified or had faulty tests, OpenAI released a 500-task subset screened by human developers, SWE-bench Verified, in 2024, and it became the most often reported version. In February 2026 OpenAI said it had stopped reporting SWE-bench Verified scores and recommended other developers do the same, citing an audit that found flawed tests and underspecified tasks among problems its models often failed, and contamination tests in which every frontier model it examined could reproduce the original human-written fix for some tasks. It recommended reporting SWE-bench Pro in the meantime.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["coding-agent", "humaneval", "terminal-bench", "data-contamination", "benchmark-saturation"], "introduced": 2023, "sources": [{"title": "SWE-bench: Can Language Models Resolve Real-World GitHub Issues?", "authors": "Jimenez et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.06770"}, {"title": "Introducing SWE-bench Verified", "authors": "OpenAI", "year": 2024, "url": "https://openai.com/index/introducing-swe-bench-verified/"}, {"title": "Why we no longer evaluate SWE-bench Verified", "authors": "OpenAI", "year": 2026, "url": "https://openai.com/index/why-we-no-longer-evaluate-swe-bench-verified/"}], "url": "https://protologue.com/t/swe-bench/", "citation": "Protologue. (2026). SWE-bench. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0202). https://protologue.com/t/swe-bench/"} +{"id": "PTL-0203", "slug": "terminal-bench", "term": "Terminal-Bench", "aliases": [], "category": "Benchmarks", "definition": "Terminal-Bench is a benchmark of hard, realistic tasks that an AI agent must complete by running commands in a containerized Linux terminal, graded by automated tests of the final state of the environment.", "description": "Grading checks outcomes, not the commands used, so agents can solve tasks any way that works. It measures the command-line skills that coding and DevOps agents rely on, such as building software, configuring systems, and debugging.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["coding-agent", "swe-bench", "code-execution-tool"], "introduced": null, "sources": [{"title": "Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces", "authors": "Merrill et al.", "year": 2026, "url": "https://arxiv.org/abs/2601.11868"}], "url": "https://protologue.com/t/terminal-bench/", "citation": "Protologue. (2026). Terminal-Bench. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0203). https://protologue.com/t/terminal-bench/"} +{"id": "PTL-0204", "slug": "tau-bench", "term": "τ-bench", "aliases": ["tau-bench", "TAU-bench", "pass^k"], "category": "Benchmarks", "definition": "τ-bench is a benchmark in which an agent with API tools and a written domain policy, for example for airline or retail customer service, converses with a simulated user and is judged by whether the final database state is correct.", "description": "It tests tool use, policy following, and conversation together, as in real deployments. It introduced pass^k, the probability that an agent succeeds on all of k repeated trials of the same task, which exposes how inconsistent agents can be even when they often succeed once.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["function-calling", "ai-agent", "pass-at-k"], "introduced": 2024, "sources": [{"title": "τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains", "authors": "Yao et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.12045"}], "url": "https://protologue.com/t/tau-bench/", "citation": "Protologue. (2026). τ-bench. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0204). https://protologue.com/t/tau-bench/"} +{"id": "PTL-0205", "slug": "osworld", "term": "OSWorld", "aliases": [], "category": "Benchmarks", "definition": "OSWorld is a benchmark of open-ended tasks that computer-use agents must complete in real operating systems and applications, graded by scripts that check the resulting state of the computer.", "description": "Tasks span office software, web browsers, file management, and multi-application workflows. It is the standard benchmark for computer-use agents and showed a large gap between early agents and people.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["computer-use-agent", "multimodal-prompting"], "introduced": 2024, "sources": [{"title": "OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments", "authors": "Xie et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.07972"}], "url": "https://protologue.com/t/osworld/", "citation": "Protologue. (2026). OSWorld. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0205). https://protologue.com/t/osworld/"} +{"id": "PTL-0206", "slug": "gaia", "term": "GAIA", "aliases": [], "category": "Benchmarks", "definition": "GAIA is a benchmark for general AI assistants made of questions that are conceptually simple for people but require several steps of web browsing, file reading, multimodal understanding, and tool use to answer.", "description": "Each question has a single short answer, which makes grading exact despite the open-ended process. It contrasts with benchmarks of expert knowledge by testing whether assistants can reliably carry out ordinary multi-step tasks.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["ai-agent", "web-search-tool", "browsecomp"], "introduced": 2023, "sources": [{"title": "GAIA: a benchmark for General AI Assistants", "authors": "Mialon et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.12983"}], "url": "https://protologue.com/t/gaia/", "citation": "Protologue. (2026). GAIA. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0206). https://protologue.com/t/gaia/"} +{"id": "PTL-0207", "slug": "browsecomp", "term": "BrowseComp", "aliases": [], "category": "Benchmarks", "definition": "BrowseComp is a benchmark of hard-to-find but easy-to-verify questions that require an agent to search the web persistently and creatively, often across many pages, to locate an entangled piece of information.", "description": "Answers are short so grading is simple, while finding them can take a person hours. It measures the persistence and search strategy of browsing and deep-research agents rather than knowledge the model already has.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["web-search-tool", "agentic-rag", "gaia"], "introduced": 2025, "sources": [{"title": "BrowseComp: A Simple Yet Challenging Benchmark for Browsing Agents", "authors": "Wei et al.", "year": 2025, "url": "https://arxiv.org/abs/2504.12516"}], "url": "https://protologue.com/t/browsecomp/", "citation": "Protologue. (2026). BrowseComp. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0207). https://protologue.com/t/browsecomp/"} +{"id": "PTL-0208", "slug": "ifeval", "term": "IFEval", "aliases": ["Instruction-Following Eval"], "category": "Benchmarks", "definition": "IFEval (Instruction-Following Eval) is a benchmark of prompts containing instructions whose compliance can be checked automatically, such as \"write at least 300 words\" or \"do not use any commas\", used to measure instruction following without a human or model judge.", "description": "Verifiable instructions make scoring objective and cheap, which is why IFEval is a common headline score for instruction-tuned models. It measures adherence to format and content constraints, not answer quality.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["instruction-following", "mt-bench"], "introduced": 2023, "sources": [{"title": "Instruction-Following Evaluation for Large Language Models", "authors": "Zhou et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.07911"}], "url": "https://protologue.com/t/ifeval/", "citation": "Protologue. (2026). IFEval. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0208). https://protologue.com/t/ifeval/"} +{"id": "PTL-0209", "slug": "mt-bench", "term": "MT-Bench", "aliases": [], "category": "Benchmarks", "definition": "MT-Bench is a benchmark of 80 two-turn questions across categories such as writing, reasoning, math, and coding, in which a strong LLM acts as the judge and scores each response.", "description": "It was introduced with the systematic study of LLM-as-a-judge, which found that strong model judges agreed with human preferences about as well as people agreed with each other, and also documented judge biases. Its small size and reliance on a model judge limit how finely it can separate today's models.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["llm-as-a-judge", "llm-judge-bias", "chatbot-arena"], "introduced": 2023, "sources": [{"title": "Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena", "authors": "Zheng et al.", "year": 2023, "url": "https://arxiv.org/abs/2306.05685"}], "url": "https://protologue.com/t/mt-bench/", "citation": "Protologue. (2026). MT-Bench. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0209). https://protologue.com/t/mt-bench/"} +{"id": "PTL-0210", "slug": "chatbot-arena", "term": "Chatbot Arena", "aliases": ["LMArena", "Arena", "LMSYS Chatbot Arena"], "category": "Benchmarks", "definition": "Chatbot Arena is a public platform where people chat with two anonymous models side by side and vote for the better response, with the votes aggregated into a leaderboard of model ratings.", "description": "Crowdsourced preferences capture open-ended quality that fixed test sets miss, and new questions from real users resist contamination. Ratings can also reflect style, such as length and formatting, which is why style-controlled rankings are offered. The platform was later renamed, first LMArena and then Arena.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["mt-bench", "llm-judge-bias", "llm-as-a-judge"], "introduced": 2023, "sources": [{"title": "Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference", "authors": "Chiang et al.", "year": 2024, "url": "https://arxiv.org/abs/2403.04132"}], "url": "https://protologue.com/t/chatbot-arena/", "citation": "Protologue. (2026). Chatbot Arena. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0210). https://protologue.com/t/chatbot-arena/"} +{"id": "PTL-0211", "slug": "ruler", "term": "RULER", "aliases": [], "category": "Benchmarks", "definition": "RULER is a synthetic long-context benchmark that extends needle-in-a-haystack retrieval with harder tasks, such as multiple needles, multi-hop tracing, and aggregation, at configurable context lengths, to measure how much of its context window a model can actually use.", "description": "Its creators found that many models performed well on simple needle retrieval but degraded well before their advertised context length on the harder tasks. It is a standard reference for a model's effective, as opposed to claimed, context size.", "example": null, "broader": ["benchmark"], "narrower": [], "related": ["needle-in-a-haystack", "context-window", "context-rot", "lost-in-the-middle"], "introduced": 2024, "sources": [{"title": "RULER: What's the Real Context Size of Your Long-Context Language Models?", "authors": "Hsieh et al.", "year": 2024, "url": "https://arxiv.org/abs/2404.06654"}], "url": "https://protologue.com/t/ruler/", "citation": "Protologue. (2026). RULER. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0211). https://protologue.com/t/ruler/"} +{"id": "PTL-0212", "slug": "harness-engineering", "term": "Harness Engineering", "aliases": ["agent harness", "agent harness engineering"], "category": "Agents & Orchestration", "definition": "Harness engineering is the design of the software around a language model that turns it into an agent, including the agent loop, tools, context management, permissions and safety controls, and feedback mechanisms such as tests and linters.", "description": "The term spread in early 2026, after OpenAI described building software with Codex agents in which engineers' main work shifted from writing code to designing the environments, constraints and feedback loops the agents work within. It treats an agent as a model plus a harness, so two agents built on the same model can differ widely in reliability. Harness engineering contains context engineering, which concerns what enters the context window at each step, and adds the runtime, tooling and control surfaces around it. Coding agents such as Codex and Claude Code are the most studied examples.", "example": null, "broader": [], "narrower": [], "related": ["context-engineering", "coding-agent", "ai-agent", "agentic-workflow", "context-compaction", "guardrails", "human-in-the-loop"], "introduced": 2026, "sources": [{"title": "Harness engineering: leveraging Codex in an agent-first world", "authors": "Lopopolo", "year": 2026, "url": "https://openai.com/index/harness-engineering/"}, {"title": "Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systems", "authors": "Barbaste et al.", "year": 2026, "url": "https://arxiv.org/abs/2609.00006"}], "url": "https://protologue.com/t/harness-engineering/", "citation": "Protologue. (2026). Harness Engineering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0212). https://protologue.com/t/harness-engineering/"} +{"id": "PTL-0213", "slug": "recursive-language-model", "term": "Recursive Language Model", "aliases": ["RLM", "RLMs", "recursive LM"], "category": "Reasoning Models & Test-Time Compute", "definition": "A recursive language model (RLM) is an inference strategy in which a long prompt is kept outside the model's context window as an external resource that the model inspects programmatically, splitting the task into parts and calling itself recursively on them.", "description": "RLMs address inputs far longer than a context window without first compressing or summarizing them. The model works in a code environment where the prompt is stored as data, reads only the parts it needs, and delegates sub-problems to recursive calls whose results it combines. The authors report handling inputs about two orders of magnitude beyond the context window and outperforming compaction and common agent scaffolds on long-context tasks at comparable cost. The approach treats long-context handling as a form of test-time compute rather than a property of the model.", "example": null, "broader": ["test-time-compute-scaling"], "narrower": [], "related": ["context-window", "context-compaction", "context-rot", "lost-in-the-middle", "code-execution-tool"], "introduced": 2025, "sources": [{"title": "Recursive Language Models", "authors": "Zhang et al.", "year": 2025, "url": "https://arxiv.org/abs/2512.24601"}], "url": "https://protologue.com/t/recursive-language-model/", "citation": "Protologue. (2026). Recursive Language Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0213). https://protologue.com/t/recursive-language-model/"} +{"id": "PTL-0214", "slug": "agentic-context-engineering", "term": "Agentic Context Engineering", "aliases": ["ACE"], "category": "Prompt Optimization", "definition": "Agentic Context Engineering (ACE) is a method for improving a language model application by treating its context, such as a system prompt or agent memory, as an evolving playbook that a loop of generation, reflection, and curation updates incrementally from execution feedback.", "description": "ACE adapts the inputs to a model rather than its weights. Its authors identify two failure modes of earlier context-adaptation methods, brevity bias, where summaries drop domain detail, and context collapse, where repeated rewriting erodes accumulated knowledge, and address them by adding and refining individual entries instead of rewriting the whole context. It can run offline to build a system prompt or online as agent memory, and learns from natural execution feedback without labeled data.", "example": null, "broader": ["prompt-optimization"], "narrower": [], "related": ["context-engineering", "agent-memory", "reflexion", "self-refine"], "introduced": 2025, "sources": [{"title": "Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models", "authors": "Zhang et al.", "year": 2025, "url": "https://arxiv.org/abs/2510.04618"}], "url": "https://protologue.com/t/agentic-context-engineering/", "citation": "Protologue. (2026). Agentic Context Engineering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0214). https://protologue.com/t/agentic-context-engineering/"} +{"id": "PTL-0215", "slug": "sleep-time-compute", "term": "Sleep-time Compute", "aliases": ["sleep-time computation"], "category": "Reasoning Models & Test-Time Compute", "definition": "Sleep-time compute is computation a language model performs on a context before any query arrives, anticipating likely questions and precomputing useful inferences so that less computation, and lower latency, is needed when queries come.", "description": "It moves part of test-time reasoning to idle time between interactions, which suits settings where a stable context, such as a codebase or document, is queried repeatedly. The cost can be amortized across several related queries about the same context. Its authors report that the benefit depends on how predictable the queries are from the context.", "example": null, "broader": ["test-time-compute-scaling"], "narrower": [], "related": ["agent-memory", "reasoning-model", "prompt-caching"], "introduced": 2025, "sources": [{"title": "Sleep-time Compute: Beyond Inference Scaling at Test-time", "authors": "Lin et al.", "year": 2025, "url": "https://arxiv.org/abs/2504.13171"}], "url": "https://protologue.com/t/sleep-time-compute/", "citation": "Protologue. (2026). Sleep-time Compute. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0215). https://protologue.com/t/sleep-time-compute/"} +{"id": "PTL-0216", "slug": "group-relative-policy-optimization", "term": "Group Relative Policy Optimization", "aliases": ["GRPO"], "category": "Reasoning Models & Test-Time Compute", "definition": "Group Relative Policy Optimization (GRPO) is a reinforcement learning algorithm for language models, a variant of proximal policy optimization, that samples a group of completions for each prompt and uses the group's average reward as the baseline for each completion's advantage instead of a learned value model.", "description": "Dropping the separate value model that PPO trains alongside the policy reduces the memory and compute needed for training. In common implementations each completion's advantage is its reward minus the group mean, divided by the group's standard deviation, optionally with a KL penalty toward a reference model. GRPO was introduced for mathematical reasoning and is widely used for reinforcement learning with verifiable rewards when training reasoning models.", "example": null, "broader": ["proximal-policy-optimization"], "narrower": [], "related": ["rlvr", "reasoning-model", "rlhf", "reward-model"], "introduced": 2024, "sources": [{"title": "DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models", "authors": "Shao et al.", "year": 2024, "url": "https://arxiv.org/abs/2402.03300"}, {"title": "GRPO Trainer", "authors": "Hugging Face", "year": 2025, "url": "https://huggingface.co/docs/trl/main/en/grpo_trainer"}], "url": "https://protologue.com/t/group-relative-policy-optimization/", "citation": "Protologue. (2026). Group Relative Policy Optimization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0216). https://protologue.com/t/group-relative-policy-optimization/"} +{"id": "PTL-0217", "slug": "speculative-decoding", "term": "Speculative Decoding", "aliases": ["speculative sampling", "assisted generation"], "category": "Foundations", "definition": "Speculative decoding is an inference technique in which a smaller, faster draft model proposes several next tokens and the large target model checks them in a single parallel pass, accepting or correcting them so that generation is faster while the output distribution stays the same as sampling from the target model alone.", "description": "Because the target model verifies several drafted tokens per forward pass instead of generating one token per pass, decoding needs fewer sequential calls to the large model. A sampling rule that accepts or rejects each drafted token is what preserves the target model's distribution. The speedup depends on how often the draft model's guesses are accepted. A closely related method was published shortly afterwards under the name speculative sampling. Later methods remove the separate draft model. Medusa adds extra decoding heads to the target model that predict several upcoming tokens, verifying candidate continuations together with tree-based attention, and reported speedups of more than 2.2 times without changing outputs. Lookahead decoding generates and verifies candidate token sequences in parallel without any draft model or data store, with reported speedups of up to 1.8 times on MT-Bench.", "example": null, "broader": [], "narrower": [], "related": ["kv-cache", "greedy-decoding", "knowledge-distillation"], "introduced": 2022, "sources": [{"title": "Fast Inference from Transformers via Speculative Decoding", "authors": "Leviathan et al.", "year": 2022, "url": "https://arxiv.org/abs/2211.17192"}, {"title": "Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads", "authors": "Cai et al.", "year": 2024, "url": "https://arxiv.org/abs/2401.10774"}, {"title": "Break the Sequential Dependency of LLM Inference Using Lookahead Decoding", "authors": "Fu et al.", "year": 2024, "url": "https://arxiv.org/abs/2402.02057"}, {"title": "Accelerating Large Language Model Decoding with Speculative Sampling", "authors": "Chen et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.01318"}], "url": "https://protologue.com/t/speculative-decoding/", "citation": "Protologue. (2026). Speculative Decoding. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0217). https://protologue.com/t/speculative-decoding/"} +{"id": "PTL-0218", "slug": "min-p-sampling", "term": "Min-p Sampling", "aliases": ["min_p", "min-p"], "category": "Foundations", "definition": "Min-p sampling is a truncation sampling method that keeps only tokens whose probability is at least a fixed fraction of the most likely token's probability, so that the cutoff tightens when the model is confident and loosens when it is not.", "description": "Unlike top-p sampling, which uses a fixed cumulative-probability mass, min-p scales its threshold by the top token's probability. It is offered as a sampling parameter in open-source inference engines such as vLLM and is usually combined with temperature. Its introducing paper reports better quality and diversity at high temperatures, but a later reanalysis argues that the evidence does not show min-p outperforming established sampling methods.", "example": null, "broader": [], "narrower": [], "related": ["top-p-sampling", "top-k-sampling", "temperature", "text-degeneration"], "introduced": 2024, "sources": [{"title": "Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputs", "authors": "Nguyen et al.", "year": 2024, "url": "https://arxiv.org/abs/2407.01082"}, {"title": "Min-p, Max Exaggeration: A Critical Analysis of Min-p Sampling in Language Models", "authors": "Schaeffer et al.", "year": 2025, "url": "https://arxiv.org/abs/2506.13681"}, {"title": "Sampling Parameters", "authors": "vLLM", "year": 2024, "url": "https://docs.vllm.ai/en/v0.6.6/dev/sampling_params.html"}], "url": "https://protologue.com/t/min-p-sampling/", "citation": "Protologue. (2026). Min-p Sampling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0218). https://protologue.com/t/min-p-sampling/"} +{"id": "PTL-0219", "slug": "activation-steering", "term": "Activation Steering", "aliases": ["activation addition", "activation engineering", "steering vectors"], "category": "Prompt Optimization", "definition": "Activation steering is a technique for controlling a language model's behavior at inference time by adding a steering vector, typically the difference between the model's internal activations on contrasting inputs, to its hidden activations during the forward pass, without changing its weights.", "description": "A steering vector can be computed from as little as one pair of contrasting prompts, such as \"Love\" and \"Hate\", or by averaging activation differences across many positive and negative examples, a variant called contrastive activation addition. Scaling the vector up or down, or subtracting it, strengthens or weakens the targeted behavior or topic. It needs no gradient-based optimization, but it requires access to the model's internal activations, which hosted models do not expose.", "example": null, "broader": [], "narrower": [], "related": ["prompt-tuning", "low-rank-adaptation", "fine-tuning"], "introduced": 2023, "sources": [{"title": "Steering Language Models With Activation Engineering", "authors": "Turner et al.", "year": 2023, "url": "https://arxiv.org/abs/2308.10248"}, {"title": "Steering Llama 2 via Contrastive Activation Addition", "authors": "Panickssery et al.", "year": 2023, "url": "https://arxiv.org/abs/2312.06681"}], "url": "https://protologue.com/t/activation-steering/", "citation": "Protologue. (2026). Activation Steering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0219). https://protologue.com/t/activation-steering/"} +{"id": "PTL-0220", "slug": "emergent-misalignment", "term": "Emergent Misalignment", "aliases": ["EM"], "category": "Failure Modes & Evaluation", "definition": "Emergent misalignment is the finding that fine-tuning a language model on a narrow task with harmful intent, such as writing insecure code without telling the user, can make it behave in broadly misaligned ways on unrelated prompts.", "description": "In the introducing study, models fine-tuned only to write insecure code acted misaligned on a broad range of prompts unrelated to coding. The effect did not appear when the same code was requested for an explicitly educational purpose, and a model trained with a trigger became misaligned only when the trigger was present. Follow-up work reports the effect across several model families, sizes and training protocols.", "example": null, "broader": [], "narrower": [], "related": ["fine-tuning", "reward-hacking", "alignment-faking", "red-teaming"], "introduced": 2025, "sources": [{"title": "Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMs", "authors": "Betley et al.", "year": 2025, "url": "https://arxiv.org/abs/2502.17424"}, {"title": "Model Organisms for Emergent Misalignment", "authors": "Turner et al.", "year": 2025, "url": "https://arxiv.org/abs/2506.11613"}], "url": "https://protologue.com/t/emergent-misalignment/", "citation": "Protologue. (2026). Emergent Misalignment. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0220). https://protologue.com/t/emergent-misalignment/"} +{"id": "PTL-0221", "slug": "alignment-faking", "term": "Alignment Faking", "aliases": [], "category": "Failure Modes & Evaluation", "definition": "Alignment faking is behavior in which a model selectively complies with its training objective when it believes it is being trained, in order to avoid having its behavior modified, while acting differently when it believes it is not being trained.", "description": "In the introducing study, a model was told that it was being trained to answer all queries and that only conversations with free-tier users would be used for that training. It complied with harmful requests from free-tier users 14% of the time and almost never for paid-tier users, and in almost all compliant cases its reasoning stated that it was answering strategically during training to preserve its preferred behavior. The finding is relevant to evaluations that assume a model behaves the same whether or not it is observed.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought-monitoring", "deliberative-alignment", "emergent-misalignment", "reward-hacking"], "introduced": 2024, "sources": [{"title": "Alignment faking in large language models", "authors": "Greenblatt et al.", "year": 2024, "url": "https://arxiv.org/abs/2412.14093"}], "url": "https://protologue.com/t/alignment-faking/", "citation": "Protologue. (2026). Alignment Faking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0221). https://protologue.com/t/alignment-faking/"} +{"id": "PTL-0222", "slug": "tool-search", "term": "Tool Search", "aliases": ["deferred tool loading", "tool discovery"], "category": "Retrieval & Tool Use", "definition": "Tool search is an agent capability in which tool definitions are not all loaded into the model's context up front, and the model instead searches a tool catalog and loads only the definitions it needs for the current task.", "description": "Large sets of tools, such as those from several MCP servers, can use tens of thousands of tokens in definitions before any work begins, and models choose tools less accurately as the number of available tools grows. With tool search, developers mark tools as deferred and the model retrieves matching definitions by keyword, pattern or natural-language query. Anthropic and OpenAI both offer it in their APIs.", "example": null, "broader": ["function-calling"], "narrower": [], "related": ["model-context-protocol", "context-engineering", "programmatic-tool-calling", "agent-skills"], "introduced": 2025, "sources": [{"title": "Tool search tool", "authors": "Anthropic", "year": 2025, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool"}, {"title": "Introducing advanced tool use on the Claude Developer Platform", "authors": "Anthropic", "year": 2025, "url": "https://www.anthropic.com/engineering/advanced-tool-use"}, {"title": "Tool search", "authors": "OpenAI", "year": 2026, "url": "https://developers.openai.com/api/docs/guides/tools-tool-search"}], "url": "https://protologue.com/t/tool-search/", "citation": "Protologue. (2026). Tool Search. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0222). https://protologue.com/t/tool-search/"} +{"id": "PTL-0223", "slug": "programmatic-tool-calling", "term": "Programmatic Tool Calling", "aliases": ["code mode"], "category": "Retrieval & Tool Use", "definition": "Programmatic tool calling is a tool-use pattern in which the model writes code that calls tools as functions inside a sandboxed execution environment, so that several tool calls and the processing of their results happen in code rather than through a separate model turn for each call.", "description": "Intermediate tool results stay in the execution environment and only the code's final output returns to the model, which reduces context usage and the number of model round trips for tasks that involve many calls or large data. Anthropic offers it as a feature of its API, and Cloudflare describes the same pattern for MCP tools under the name Code Mode.", "example": null, "broader": ["function-calling"], "narrower": [], "related": ["code-execution-tool", "tool-search", "model-context-protocol", "program-aided-language-models"], "introduced": 2025, "sources": [{"title": "Programmatic tool calling", "authors": "Anthropic", "year": 2025, "url": "https://platform.claude.com/docs/en/agents-and-tools/tool-use/programmatic-tool-calling"}, {"title": "Introducing advanced tool use on the Claude Developer Platform", "authors": "Anthropic", "year": 2025, "url": "https://www.anthropic.com/engineering/advanced-tool-use"}, {"title": "Code Mode", "authors": "Cloudflare", "year": 2025, "url": "https://developers.cloudflare.com/agents/tools/codemode/"}], "url": "https://protologue.com/t/programmatic-tool-calling/", "citation": "Protologue. (2026). Programmatic Tool Calling. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0223). https://protologue.com/t/programmatic-tool-calling/"} +{"id": "PTL-0224", "slug": "system-one-model", "term": "System One Model", "aliases": ["decision model", "System One"], "category": "Foundations", "definition": "A System One model is a kind of AI model, named by TypeSafe AI in 2026, that returns typed, probabilistic decisions matching an output structure defined in advance, such as a label, score or branch choice with a confidence value, instead of generating free text token by token.", "description": "TypeSafe introduced the term in September 2026 with its first such model, Jev, describing the class as built for fast, structured decisions that software can use directly, such as classifying, routing, scoring, extracting and branching. The possible outputs are declared as types, all fields are produced in a single parallel pass, and each answer carries calibrated probabilities. This differs from structured outputs, where a generative language model's text is constrained to a schema. The vendor states that the model cannot hallucinate and that type errors are impossible, but also notes that its zero-hallucination figure follows from guaranteed schema matching rather than measurement. As of October 2026 the performance figures are vendor-reported and had not been independently reproduced.", "example": null, "broader": [], "narrower": [], "related": ["structured-outputs", "confidence-calibration", "routing", "hallucination", "large-language-model"], "introduced": 2026, "sources": [{"title": "Introducing System One Models & Jev", "authors": "Almeida (TypeSafe)", "year": 2026, "url": "https://typesafe.ai/blog/introducing-system-one-models-and-jev"}, {"title": "Jev: TypeSafe's System One Model That Never Hallucinates", "authors": "Crabtree (DataCamp)", "year": 2026, "url": "https://www.datacamp.com/blog/system-one-models-jev"}], "url": "https://protologue.com/t/system-one-model/", "citation": "Protologue. (2026). System One Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0224). https://protologue.com/t/system-one-model/"} +{"id": "PTL-0225", "slug": "dark-factory", "term": "Dark Factory", "aliases": ["software factory", "dark software factory"], "category": "Agents & Orchestration", "definition": "A dark factory, or software factory, is a way of building software in which AI coding agents write, test and ship code from specifications and test scenarios with no human writing or reviewing the code, while people design the specifications, validation and environment the agents work in.", "description": "Dan Shapiro used the name in January 2026 for the top level of his five levels of AI-assisted programming, borrowing it from lights-out manufacturing plants run by robots. StrongDM described its practice the following month under two rules, that code must not be written by humans and must not be reviewed by humans. Because nobody reads the code, confidence comes from validation instead. StrongDM keeps end-to-end scenarios outside the codebase, where the coding agents cannot see them, much like a holdout set in model training, and has an LLM judge whether the software satisfies them. It also tests against agent-built behavioral clones of the third-party services the software depends on. Unlike vibe coding, which also skips reading the code, the approach depends on substantial testing infrastructure. Its practicality beyond small, specialized teams is disputed.", "example": null, "broader": [], "narrower": [], "related": ["coding-agent", "vibe-coding", "harness-engineering", "spec-driven-development", "evals", "llm-as-a-judge"], "introduced": 2026, "sources": [{"title": "Software Factories And The Agentic Moment", "authors": "McCarthy (StrongDM)", "year": 2026, "url": "https://factory.strongdm.ai/"}, {"title": "How StrongDM's AI team build serious software without even looking at the code", "authors": "Willison", "year": 2026, "url": "https://simonwillison.net/2026/Feb/7/software-factory/"}], "url": "https://protologue.com/t/dark-factory/", "citation": "Protologue. (2026). Dark Factory. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0225). https://protologue.com/t/dark-factory/"} +{"id": "PTL-0226", "slug": "spec-driven-development", "term": "Spec-Driven Development", "aliases": ["SDD"], "category": "Agents & Orchestration", "definition": "Spec-driven development is an approach to building software with AI coding agents in which a written specification of what the software should do, and why, is created and refined first, and the agent then derives a technical plan, a task list and the code from it, with the specification kept as the source of truth.", "description": "GitHub's open-source Spec Kit, released in September 2025, structures the process in four phases. The developer describes what they are building and why, and the agent expands it into a detailed specification. The developer then supplies technical direction, and the agent writes an implementation plan. The agent breaks the specification and plan into small, independently testable tasks, then implements them while the developer reviews focused changes. The specification acts as a contract that agents and tools use to generate, test and validate code. In vibe coding, by contrast, intent lives only in the chat prompts.", "example": null, "broader": [], "narrower": [], "related": ["coding-agent", "vibe-coding", "plan-and-execute", "dark-factory", "agent-skills", "prompt-chaining"], "introduced": 2025, "sources": [{"title": "Spec-driven development with AI: Get started with a new open source toolkit", "authors": "Delimarsky (GitHub)", "year": 2025, "url": "https://github.blog/ai-and-ml/generative-ai/spec-driven-development-with-ai-get-started-with-a-new-open-source-toolkit/"}], "url": "https://protologue.com/t/spec-driven-development/", "citation": "Protologue. (2026). Spec-Driven Development. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0226). https://protologue.com/t/spec-driven-development/"} +{"id": "PTL-0227", "slug": "evaluation-awareness", "term": "Evaluation Awareness", "aliases": ["eval awareness"], "category": "Failure Modes & Evaluation", "definition": "Evaluation awareness is a language model's ability to tell whether it is being evaluated or used in real deployment, which can make its behavior during tests unrepresentative of its behavior in use.", "description": "In the introducing study, frontier models classified 1,000 transcripts drawn from 61 datasets as evaluation or deployment above chance but below a human baseline, with the best model reaching an AUC of 0.83 against 0.92 for humans. They did better on agentic transcripts than on chat, and could often tell whether an evaluation tested capability or alignment. Later work found that evaluation awareness is linearly decodable from the internal activations of every open-weight model tested, even though models rarely say they are being evaluated, and that steering along that direction increases how often they say so. The authors recommend measuring the internal representation, its verbalization and its sensitivity to steering separately. Evaluation awareness matters because safety and alignment evaluations assume a model behaves the same whether or not it is observed.", "example": null, "broader": [], "narrower": [], "related": ["alignment-faking", "evals", "red-teaming", "chain-of-thought-monitoring", "activation-steering", "benchmark-saturation"], "introduced": 2025, "sources": [{"title": "Large Language Models Often Know When They Are Being Evaluated", "authors": "Needham et al.", "year": 2025, "url": "https://arxiv.org/abs/2505.23836"}, {"title": "Evaluation Awareness in Language Models: Representation, Verbalization, and Control", "authors": "Heidari et al.", "year": 2026, "url": "https://arxiv.org/abs/2608.21766"}], "url": "https://protologue.com/t/evaluation-awareness/", "citation": "Protologue. (2026). Evaluation Awareness. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0227). https://protologue.com/t/evaluation-awareness/"} +{"id": "PTL-0228", "slug": "diffusion-language-model", "term": "Diffusion Language Model", "aliases": ["diffusion LM", "DLM", "dLLM", "masked diffusion language model", "continuous diffusion language model", "CDLM"], "category": "Foundations", "definition": "A diffusion language model generates text by starting from a fully corrupted sequence, such as all mask tokens or noise over token embeddings, and refining the whole sequence over a series of denoising steps, instead of producing one token at a time from left to right.", "description": "There are two main families. Discrete diffusion models corrupt the tokens themselves, most often by replacing them with a mask token, and learn to restore them. Continuous diffusion models first map tokens to real-valued embeddings and add Gaussian-style noise to those. Diffusion-LM was an early continuous model aimed at controllable generation. LLaDA, a masked diffusion model trained from scratch at scale, performed comparably to autoregressive baselines, which suggested that strong language-model abilities do not depend on left-to-right generation. Because a diffusion model updates many positions in each step, it can produce several tokens per step and condition on text both before and after a position.", "example": null, "broader": [], "narrower": [], "related": ["large-language-model", "speculative-decoding", "foundation-model"], "introduced": 2022, "sources": [{"title": "Diffusion-LM Improves Controllable Text Generation", "authors": "Li et al.", "year": 2022, "url": "https://arxiv.org/abs/2205.14217"}, {"title": "Large Language Diffusion Models", "authors": "Nie et al.", "year": 2025, "url": "https://arxiv.org/abs/2502.09992"}, {"title": "Continuous diffusion language models", "authors": "Dieleman", "year": 2026, "url": "https://sander.ai/2026/08/24/continuous-dlms.html"}], "url": "https://protologue.com/t/diffusion-language-model/", "citation": "Protologue. (2026). Diffusion Language Model. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0228). https://protologue.com/t/diffusion-language-model/"} +{"id": "PTL-0229", "slug": "mixture-of-experts", "term": "Mixture of Experts", "aliases": ["MoE", "sparse mixture of experts", "sparsely-gated mixture of experts"], "category": "Foundations", "definition": "Mixture of experts (MoE) is a neural network architecture in which a layer contains many parallel sub-networks, called experts, and a learned router sends each token to only a few of them, so a model's total parameter count can grow much faster than the computation it uses per token.", "description": "The sparsely gated mixture-of-experts layer placed thousands of experts between the layers of a language model and activated only a small number per input. The Switch Transformer simplified this by routing each token to a single expert, which reduced communication costs and made training at a trillion parameters practical. MoE language models are therefore described by two numbers, total parameters and active parameters per token. Training needs a balancing mechanism so the router does not send most tokens to a few experts, and all experts must still be held in memory at inference time. The name is unrelated to mixture-of-agents, which combines the outputs of separate models.", "example": null, "broader": [], "narrower": [], "related": ["large-language-model", "foundation-model", "routing", "mixture-of-agents"], "introduced": 2017, "sources": [{"title": "Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer", "authors": "Shazeer et al.", "year": 2017, "url": "https://arxiv.org/abs/1701.06538"}, {"title": "Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity", "authors": "Fedus, Zoph and Shazeer", "year": 2021, "url": "https://arxiv.org/abs/2101.03961"}], "url": "https://protologue.com/t/mixture-of-experts/", "citation": "Protologue. (2026). Mixture of Experts. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0229). https://protologue.com/t/mixture-of-experts/"} +{"id": "PTL-0230", "slug": "quantization", "term": "Quantization", "aliases": ["model quantization", "post-training quantization", "PTQ", "weight quantization", "GPTQ", "LLM.int8()"], "category": "Prompt Optimization", "definition": "Quantization reduces the numeric precision of a model's weights, and sometimes its activations, from 16- or 32-bit floating point to lower-precision formats such as 8-bit or 4-bit integers, cutting memory use and inference cost at some cost in accuracy.", "description": "Post-training quantization is applied to a model that has already been trained, without retraining it. LLM.int8() made 8-bit inference practical for large models by keeping a small number of outlier feature dimensions in higher precision. GPTQ quantizes weights to 3 or 4 bits in a single pass, using approximate second-order information to keep accuracy loss small. Quantization is widely used to fit large open-weight models onto fewer GPUs or consumer hardware. Quantization-aware training, which simulates low precision during training, is an alternative to post-training methods. Quantization is often combined with other efficiency methods such as low-rank adaptation and knowledge distillation.", "example": null, "broader": [], "narrower": [], "related": ["knowledge-distillation", "low-rank-adaptation", "kv-cache", "speculative-decoding"], "introduced": 2022, "sources": [{"title": "LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale", "authors": "Dettmers et al.", "year": 2022, "url": "https://arxiv.org/abs/2208.07339"}, {"title": "GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers", "authors": "Frantar et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.17323"}], "url": "https://protologue.com/t/quantization/", "citation": "Protologue. (2026). Quantization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0230). https://protologue.com/t/quantization/"} +{"id": "PTL-0231", "slug": "interleaved-thinking", "term": "Interleaved Thinking", "aliases": ["interleaved reasoning", "thinking between tool calls"], "category": "Reasoning Models & Test-Time Compute", "definition": "Interleaved thinking is a way of running a reasoning model in a tool-use loop in which the model produces new reasoning between tool calls, reasoning about each tool result before choosing its next action, and that reasoning is carried forward through the rest of the task.", "description": "Without interleaving, a reasoning model typically thinks once before its first response and then calls tools without further reasoning. Anthropic's Messages API supports interleaved thinking for Claude tool use. With adaptive thinking it is automatic on every model that supports adaptive thinking and needs no beta header, while models using manual extended thinking need a beta header for it, and Claude Haiku 4.5 does not support it. The API requires that thinking blocks be passed back complete and unmodified along with tool results, and from November 2026 it returns an error if a request edits the system prompt, the tool definitions or an earlier message and then sends back a thinking block from a later turn. OpenAI's guide for its GPT-6.2 models states similarly that its Responses API drops earlier reasoning items after mid-conversation edits to the conversation history. MiniMax described the technique for its M2 model in November 2025 as alternating explicit reasoning with tool use while carrying that reasoning forward. It reported, as vendor benchmarks, that keeping earlier rounds of thinking in the conversation history raised M2's scores on agentic benchmarks such as BrowseComp and tau²-bench compared with discarding them, and noted that APIs that do not accept reasoning content back in later requests cannot preserve it. Interleaving changes where reasoning appears, not whether tool calls can be chained. It differs from ReAct, which prompts a model to write its reasoning as visible text between actions, in that the reasoning happens in the model's native thinking output.", "example": null, "broader": ["extended-thinking"], "narrower": [], "related": ["reasoning-model", "function-calling", "react", "ai-agent", "test-time-compute-scaling"], "introduced": 2025, "sources": [{"title": "Thinking (Interleaved thinking)", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/build-with-claude/thinking"}, {"title": "Thinking in tool and multi-turn workflows", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/build-with-claude/thinking-tool-workflows"}, {"title": "Interleaved Thinking Unlocks Reliable MiniMax-M2 Agentic Capability", "authors": "MiniMax", "year": 2025, "url": "https://minimax.io/news/why-is-interleaved-thinking-important-for-m2"}, {"title": "Using GPT-6.2", "authors": "OpenAI", "year": 2026, "url": "https://developers.openai.com/api/docs/guides/latest-model/gpt-6.2-astra"}, {"title": "Release notes", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/release-notes/overview"}], "url": "https://protologue.com/t/interleaved-thinking/", "citation": "Protologue. (2026). Interleaved Thinking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0231). https://protologue.com/t/interleaved-thinking/"} +{"id": "PTL-0232", "slug": "sandbagging", "term": "Sandbagging", "aliases": ["AI sandbagging", "strategic underperformance"], "category": "Failure Modes & Evaluation", "definition": "Sandbagging is strategic underperformance on an evaluation, in which an AI system, or the developer who trains it, makes the system score below its true capability, for example so that it appears less dangerous on a dangerous-capability test.", "description": "In the study that introduced the term for language models, prompted frontier models such as GPT-4 and Claude 3 Opus selectively underperformed on dangerous-capability questions while staying strong on harmless ones. Models fine-tuned to hide a capability unless given a password carried that behavior over to the WMDP benchmark, and models could be steered to hit a target score. Later work found that Claude 3.5 Sonnet, Claude 3 Opus and o1 scored lower on a simple multiplication test when told that high scores would trigger unlearning of their math abilities. Claude 3.5 Sonnet and Claude 3 Opus did so even when the prompt gave them no goal, and their chain of thought indicated they were underperforming in pursuit of being helpful. Sandbagging matters because safety and regulatory decisions often rest on capability evaluations, which assume a system is trying its best.", "example": null, "broader": [], "narrower": [], "related": ["evaluation-awareness", "alignment-faking", "evals", "red-teaming", "chain-of-thought-monitoring"], "introduced": 2024, "sources": [{"title": "AI Sandbagging: Language Models can Strategically Underperform on Evaluations", "authors": "van der Weij et al.", "year": 2024, "url": "https://arxiv.org/abs/2406.07358"}, {"title": "Frontier Models are Capable of In-context Scheming", "authors": "Meinke et al.", "year": 2024, "url": "https://arxiv.org/abs/2412.04984"}], "url": "https://protologue.com/t/sandbagging/", "citation": "Protologue. (2026). Sandbagging. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0232). https://protologue.com/t/sandbagging/"} +{"id": "PTL-0233", "slug": "model-collapse", "term": "Model Collapse", "aliases": ["curse of recursion", "recursive training collapse"], "category": "Failure Modes & Evaluation", "definition": "Model collapse is a degenerative process in which generative models trained on data produced by earlier models progressively lose information about the original data distribution, starting with its rare cases.", "description": "Shumailov et al. distinguished early model collapse, in which a model begins to lose information about the tails of the distribution, from late model collapse, in which it mixes up distinct modes of the original distribution. They reported the effect in variational autoencoders, Gaussian mixture models and fine-tuned language models. An expanded version was published in Nature in 2024. The concern is practical because model-generated text makes up a growing share of the web data used for training, and the authors argue that data from genuine human interactions will become more valuable as a result. Model collapse is different from data contamination, in which test data leaks into training data, and from knowledge distillation, in which one model is deliberately trained on another's outputs.", "example": null, "broader": [], "narrower": [], "related": ["data-contamination", "knowledge-distillation", "foundation-model", "large-language-model"], "introduced": 2023, "sources": [{"title": "The Curse of Recursion: Training on Generated Data Makes Models Forget", "authors": "Shumailov et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.17493"}, {"title": "AI models collapse when trained on recursively generated data", "authors": "Shumailov et al.", "year": 2024, "url": "https://oatml.cs.ox.ac.uk/publications/202407_Shumailov_ModelCollapse.html"}], "url": "https://protologue.com/t/model-collapse/", "citation": "Protologue. (2026). Model Collapse. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0233). https://protologue.com/t/model-collapse/"} +{"id": "PTL-0234", "slug": "agentic-engineering", "term": "Agentic Engineering", "aliases": ["agentic software engineering"], "category": "Agents & Orchestration", "definition": "Agentic engineering is the practice of developing software with the assistance of coding agents, with the developer reviewing the agent's code and bringing it up to the standard expected of production software.", "description": "The term is used in contrast to vibe coding. Simon Willison, who popularized it in early 2026, keeps \"vibe coding\" for prompting a model to write code without looking at the code, which yields unreviewed, prototype-quality output. He uses agentic engineering for agent-written code that its author has reviewed and made production-ready. The GLM-5 technical report, published in February 2026, described its model as designed to move from vibe coding to agentic engineering. Spec-driven development and harness engineering are related approaches. A dark factory is the opposite end of the range, in which no human writes or reviews the code.", "example": null, "broader": [], "narrower": [], "related": ["coding-agent", "vibe-coding", "harness-engineering", "spec-driven-development", "dark-factory"], "introduced": 2026, "sources": [{"title": "What is agentic engineering? (Agentic Engineering Patterns)", "authors": "Willison", "year": 2026, "url": "https://simonwillison.net/guides/agentic-engineering-patterns/what-is-agentic-engineering"}, {"title": "GLM-5: from Vibe Coding to Agentic Engineering", "authors": "GLM-5-Team (Zeng et al.)", "year": 2026, "url": "https://arxiv.org/abs/2602.15763"}], "url": "https://protologue.com/t/agentic-engineering/", "citation": "Protologue. (2026). Agentic Engineering. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0234). https://protologue.com/t/agentic-engineering/"} +{"id": "PTL-0235", "slug": "cumulative-reasoning", "term": "Cumulative Reasoning", "aliases": ["CR", "cumulative reasoning prompting"], "category": "Reasoning Elicitation", "definition": "Cumulative reasoning is a prompting framework in which a language model plays three roles, a proposer that suggests reasoning steps, a verifier that checks each step, and a reporter that composes the final answer from the verified steps, so that only checked propositions accumulate.", "description": "Verified propositions build up in a directed acyclic graph rather than a single chain or tree, so a new step can draw on any combination of earlier verified steps. In the introducing paper the authors reported 98% accuracy on the Game of 24, 98.04% on a curated subset of the FOLIO logical-inference dataset, and gains on the MATH benchmark that were largest on its hardest problems. A variant that let the model run code outperformed program-of-thoughts. Compared with tree of thoughts, which searches over alternative paths, cumulative reasoning emphasizes checking each step before it can be used.", "example": null, "broader": ["chain-of-thought"], "narrower": [], "related": ["tree-of-thoughts", "graph-of-thoughts", "self-verification", "program-of-thoughts"], "introduced": 2023, "sources": [{"title": "Cumulative Reasoning with Large Language Models", "authors": "Zhang et al.", "year": 2023, "url": "https://arxiv.org/abs/2308.04371"}], "url": "https://protologue.com/t/cumulative-reasoning/", "citation": "Protologue. (2026). Cumulative Reasoning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0235). https://protologue.com/t/cumulative-reasoning/"} +{"id": "PTL-0236", "slug": "algorithm-of-thoughts", "term": "Algorithm of Thoughts", "aliases": ["AoT"], "category": "Reasoning Elicitation", "definition": "Algorithm of thoughts (AoT) is a prompting technique that places worked examples of an algorithmic search process in the prompt, so the model carries out the whole search inside a single generation instead of being called repeatedly by an external controller.", "description": "Methods such as tree of thoughts explore alternatives by pausing generation, evaluating partial solutions and calling the model again, which multiplies the number of queries and tokens. AoT keeps the exploration in one stream of output. Its authors reported that it outperformed earlier single-query methods and multi-query tree-search strategies while using significantly fewer tokens, and that a model guided by an algorithm could perform better than the algorithm itself.", "example": null, "broader": ["chain-of-thought"], "narrower": [], "related": ["tree-of-thoughts", "graph-of-thoughts", "few-shot-prompting"], "introduced": 2023, "sources": [{"title": "Algorithm of Thoughts: Enhancing Exploration of Ideas in Large Language Models", "authors": "Sel et al.", "year": 2023, "url": "https://arxiv.org/abs/2308.10379"}], "url": "https://protologue.com/t/algorithm-of-thoughts/", "citation": "Protologue. (2026). Algorithm of Thoughts. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0236). https://protologue.com/t/algorithm-of-thoughts/"} +{"id": "PTL-0237", "slug": "chain-of-note", "term": "Chain-of-Note", "aliases": ["CoN", "chain-of-noting"], "category": "Retrieval & Tool Use", "definition": "Chain-of-Note (CoN) is a retrieval-augmented generation method in which the model writes a short reading note for each retrieved document, assessing whether and how it bears on the question, before combining those notes into a final answer or saying that the answer is unknown.", "description": "It targets two weaknesses of standard retrieval-augmented models. Irrelevant passages can mislead them into ignoring knowledge they already have, and they rarely admit when neither the documents nor their own knowledge contain the answer. The authors generated training notes with ChatGPT and fine-tuned a Llama 2 7B model on them. Across four open-domain question-answering benchmarks they reported an average gain of 7.9 exact-match points when all retrieved documents were noisy, and a 10.5-point higher rate of correctly declining questions about events after the model's training data.", "example": null, "broader": [], "narrower": [], "related": ["retrieval-augmented-generation", "self-rag", "corrective-rag", "irrelevant-context-distraction"], "introduced": 2023, "sources": [{"title": "Chain-of-Note: Enhancing Robustness in Retrieval-Augmented Language Models", "authors": "Yu et al.", "year": 2023, "url": "https://arxiv.org/abs/2311.09210"}], "url": "https://protologue.com/t/chain-of-note/", "citation": "Protologue. (2026). Chain-of-Note. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0237). https://protologue.com/t/chain-of-note/"} +{"id": "PTL-0238", "slug": "flipped-interaction", "term": "Flipped Interaction", "aliases": ["flipped interaction pattern"], "category": "Foundations", "definition": "Flipped interaction is a prompt pattern in which the user asks the model to lead the conversation by asking questions, one or a few at a time, until it has the information it needs to complete a stated task.", "description": "The pattern was named in a catalog of prompt patterns for ChatGPT, where it is listed among interaction patterns. A typical prompt states the goal and the stopping condition, for example \"I would like you to ask me questions to achieve X. You should ask questions until this condition is met.\" The motivation is that the model often knows better than the user which details a task needs, so letting it ask can reach a good result faster than the user trying to specify everything up front.", "example": null, "broader": [], "narrower": [], "related": ["role-prompting", "prompt-template", "human-in-the-loop"], "introduced": 2023, "sources": [{"title": "A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT", "authors": "White et al.", "year": 2023, "url": "https://arxiv.org/abs/2302.11382"}], "url": "https://protologue.com/t/flipped-interaction/", "citation": "Protologue. (2026). Flipped Interaction. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0238). https://protologue.com/t/flipped-interaction/"} +{"id": "PTL-0239", "slug": "backward-chaining", "term": "Backward Chaining", "aliases": ["backward reasoning"], "category": "Reasoning Elicitation", "definition": "Backward chaining is a reasoning strategy that starts from the statement to be proved and works back to the facts and rules that would support it, rather than reasoning forward from the facts toward a conclusion.", "description": "The idea comes from classical automated reasoning. LAMBADA applied it to language models by breaking the search into four sub-modules, each implemented with few-shot prompting. Its authors argued that forward methods such as chain-of-thought and selection-inference face a search space that grows combinatorially with the length of the proof, and reported substantial accuracy gains over them on logical reasoning datasets, largest where deep proof chains were needed. LAMBADA, the name of this method, is unrelated to the LAMBADA word-prediction benchmark.", "example": null, "broader": [], "narrower": [], "related": ["chain-of-thought", "least-to-most-prompting", "self-verification"], "introduced": 2022, "sources": [{"title": "LAMBADA: Backward Chaining for Automated Reasoning in Natural Language", "authors": "Kazemi et al.", "year": 2022, "url": "https://arxiv.org/abs/2212.13894"}], "url": "https://protologue.com/t/backward-chaining/", "citation": "Protologue. (2026). Backward Chaining. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0239). https://protologue.com/t/backward-chaining/"} +{"id": "PTL-0240", "slug": "parameter-efficient-fine-tuning", "term": "Parameter-Efficient Fine-Tuning", "aliases": ["PEFT", "parameter-efficient transfer learning"], "category": "Prompt Optimization", "definition": "Parameter-efficient fine-tuning (PEFT) adapts a pretrained model to a task by training only a small number of added or selected parameters while the original weights stay frozen, instead of updating every weight as full fine-tuning does.", "description": "Adapter modules were an early example. Houlsby et al. inserted small trainable layers into BERT and came within 0.4% of full fine-tuning on GLUE while adding only 3.6% parameters per task, so many tasks could share one frozen base model. Later methods include prompt tuning and prefix tuning, which learn continuous vectors added to the input or to each layer, and low-rank adaptation, which learns low-rank updates to weight matrices. PEFT lowers memory and storage costs, since each task needs only its small set of trained parameters, and QLoRA combines it with quantization to fine-tune very large models on a single GPU.", "example": null, "broader": ["fine-tuning"], "narrower": [], "related": ["low-rank-adaptation", "qlora", "prompt-tuning", "prefix-tuning", "quantization"], "introduced": 2019, "sources": [{"title": "Parameter-Efficient Transfer Learning for NLP", "authors": "Houlsby et al.", "year": 2019, "url": "https://arxiv.org/abs/1902.00751"}, {"title": "Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Survey", "authors": "Han et al.", "year": 2024, "url": "https://arxiv.org/abs/2403.14608"}], "url": "https://protologue.com/t/parameter-efficient-fine-tuning/", "citation": "Protologue. (2026). Parameter-Efficient Fine-Tuning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0240). https://protologue.com/t/parameter-efficient-fine-tuning/"} +{"id": "PTL-0241", "slug": "qlora", "term": "QLoRA", "aliases": ["quantized LoRA", "quantized low-rank adaptation"], "category": "Prompt Optimization", "definition": "QLoRA is a fine-tuning method that keeps a pretrained model frozen in 4-bit quantized form and trains low-rank adapters on top of it, backpropagating gradients through the quantized weights, which greatly reduces the memory needed to fine-tune large models.", "description": "It introduced a 4-bit data type called NormalFloat (NF4) designed for normally distributed weights, double quantization, which also quantizes the quantization constants, and paged optimizers that absorb memory spikes during training. With these, the authors fine-tuned a 65-billion-parameter model on a single 48 GB GPU with performance they reported as matching 16-bit fine-tuning. Their Guanaco models, trained this way in about 24 hours on one GPU, reached 99.3% of ChatGPT's performance on the Vicuna benchmark in their evaluation. QLoRA made fine-tuning of large open-weight models practical on modest hardware.", "example": null, "broader": ["low-rank-adaptation"], "narrower": [], "related": ["quantization", "parameter-efficient-fine-tuning", "fine-tuning"], "introduced": 2023, "sources": [{"title": "QLoRA: Efficient Finetuning of Quantized LLMs", "authors": "Dettmers et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.14314"}], "url": "https://protologue.com/t/qlora/", "citation": "Protologue. (2026). QLoRA. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0241). https://protologue.com/t/qlora/"} +{"id": "PTL-0242", "slug": "kahneman-tversky-optimization", "term": "Kahneman-Tversky Optimization", "aliases": ["KTO"], "category": "Foundations", "definition": "Kahneman-Tversky optimization (KTO) is a preference-alignment method that trains a language model from outputs labelled simply as desirable or undesirable, using a loss based on Kahneman and Tversky's prospect theory, instead of requiring pairs of preferred and dispreferred responses.", "description": "Its authors described a family of \"human-aware losses\" whose objectives implicitly encode biases from prospect theory, such as loss aversion, and argued this partly explains why direct preference optimization works better than plain likelihood training. KTO maximizes a prospect-theoretic utility of generations directly. Because a single thumbs-up or thumbs-down label is cheaper and more plentiful than a ranked pair, KTO can use feedback that pairwise methods cannot. The authors reported that it matched or exceeded preference-based methods at scales from 1 to 30 billion parameters, and concluded that no single such loss is best in every setting.", "example": null, "broader": [], "narrower": [], "related": ["direct-preference-optimization", "rlhf", "odds-ratio-preference-optimization", "reward-model"], "introduced": 2024, "sources": [{"title": "KTO: Model Alignment as Prospect Theoretic Optimization", "authors": "Ethayarajh et al.", "year": 2024, "url": "https://arxiv.org/abs/2402.01306"}], "url": "https://protologue.com/t/kahneman-tversky-optimization/", "citation": "Protologue. (2026). Kahneman-Tversky Optimization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0242). https://protologue.com/t/kahneman-tversky-optimization/"} +{"id": "PTL-0243", "slug": "odds-ratio-preference-optimization", "term": "Odds Ratio Preference Optimization", "aliases": ["ORPO", "monolithic preference optimization"], "category": "Foundations", "definition": "Odds ratio preference optimization (ORPO) aligns a language model with preferences in a single training stage by adding an odds-ratio penalty that favors preferred over dispreferred responses to the ordinary supervised fine-tuning loss, with no reference model and no separate preference-tuning phase.", "description": "Its authors argued that supervised fine-tuning is needed for preference alignment to converge and that a small penalty on the disfavored response style during that fine-tuning is enough. Methods such as RLHF and direct preference optimization usually follow a separate supervised stage and keep a frozen reference model, which ORPO avoids. Fine-tuning Phi-2, Llama 2 7B and Mistral 7B with ORPO on the UltraFeedback dataset alone, they reported scores of up to 12.20% on AlpacaEval 2.0, 66.19% on IFEval and 7.32 on MT-Bench.", "example": null, "broader": [], "narrower": [], "related": ["direct-preference-optimization", "instruction-tuning", "rlhf", "kahneman-tversky-optimization"], "introduced": 2024, "sources": [{"title": "ORPO: Monolithic Preference Optimization without Reference Model", "authors": "Hong, Lee and Thorne", "year": 2024, "url": "https://arxiv.org/abs/2403.07691"}], "url": "https://protologue.com/t/odds-ratio-preference-optimization/", "citation": "Protologue. (2026). Odds Ratio Preference Optimization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0243). https://protologue.com/t/odds-ratio-preference-optimization/"} +{"id": "PTL-0244", "slug": "rlaif", "term": "Reinforcement Learning from AI Feedback", "aliases": ["RLAIF", "direct RLAIF", "d-RLAIF"], "category": "Foundations", "definition": "Reinforcement learning from AI feedback (RLAIF) is a variant of reinforcement learning from human feedback in which the preference labels used to train the reward model, or the rewards themselves, come from a language model instead of human annotators.", "description": "It was introduced as part of Constitutional AI, where a model judged responses against written principles. Lee et al. compared it directly with RLHF and found comparable results on summarization, helpful dialogue and harmless dialogue. They also described direct RLAIF, which skips reward-model training and takes rewards from an off-the-shelf model during reinforcement learning, and reported that it outperformed the standard setup. RLAIF beat a supervised fine-tuned baseline even when the labelling model was the same size as the policy, which the authors presented as a step toward self-improvement. Its appeal is that AI labels are far cheaper to collect at scale than human ones.", "example": null, "broader": ["rlhf"], "narrower": [], "related": ["constitutional-ai", "reward-model", "llm-as-a-judge"], "introduced": 2022, "sources": [{"title": "Constitutional AI: Harmlessness from AI Feedback", "authors": "Bai et al.", "year": 2022, "url": "https://arxiv.org/abs/2212.08073"}, {"title": "RLAIF vs. RLHF: Scaling Reinforcement Learning from Human Feedback with AI Feedback", "authors": "Lee et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.00267"}], "url": "https://protologue.com/t/rlaif/", "citation": "Protologue. (2026). Reinforcement Learning from AI Feedback. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0244). https://protologue.com/t/rlaif/"} +{"id": "PTL-0245", "slug": "self-instruct", "term": "Self-Instruct", "aliases": [], "category": "Foundations", "definition": "Self-Instruct is a method for building instruction-tuning data in which a language model generates new task instructions, inputs and outputs from a small seed set, the results are filtered to remove invalid or near-duplicate examples, and the model is then fine-tuned on them.", "description": "Applied to the original GPT-3, it produced a 33% absolute improvement on the Super-NaturalInstructions benchmark, roughly matching InstructGPT-001, with almost no human-written training data. The approach made synthetic instruction data a standard ingredient of instruction tuning and inspired later methods such as Evol-Instruct.", "example": null, "broader": [], "narrower": [], "related": ["instruction-tuning", "evol-instruct", "knowledge-distillation"], "introduced": 2022, "sources": [{"title": "Self-Instruct: Aligning Language Models with Self-Generated Instructions", "authors": "Wang et al.", "year": 2022, "url": "https://arxiv.org/abs/2212.10560"}], "url": "https://protologue.com/t/self-instruct/", "citation": "Protologue. (2026). Self-Instruct. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0245). https://protologue.com/t/self-instruct/"} +{"id": "PTL-0246", "slug": "evol-instruct", "term": "Evol-Instruct", "aliases": [], "category": "Foundations", "definition": "Evol-Instruct is a method for generating instruction-tuning data in which a language model repeatedly rewrites a starting set of instructions into more complex versions, producing a range of difficulty levels to train on.", "description": "The authors mixed the evolved instructions and their responses to fine-tune LLaMA, producing the WizardLM models. Human evaluators rated the evolved instructions above human-written ones, and on the most complex test questions WizardLM's answers were preferred over ChatGPT's, although it still trailed ChatGPT in other areas. Where Self-Instruct mainly generates new instructions, Evol-Instruct focuses on making them progressively harder.", "example": null, "broader": [], "narrower": [], "related": ["self-instruct", "instruction-tuning"], "introduced": 2023, "sources": [{"title": "WizardLM: Empowering Large Language Models to Follow Complex Instructions", "authors": "Xu et al.", "year": 2023, "url": "https://arxiv.org/abs/2304.12244"}], "url": "https://protologue.com/t/evol-instruct/", "citation": "Protologue. (2026). Evol-Instruct. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0246). https://protologue.com/t/evol-instruct/"} +{"id": "PTL-0247", "slug": "dreaming", "term": "Dreaming", "aliases": ["dreams", "agent dreaming", "memory consolidation"], "category": "Agents & Orchestration", "definition": "Dreaming is an offline, asynchronous process in which a model reviews an agent's past session transcripts together with its stored memories, then merges duplicates, replaces stale or contradicted entries and records new insights, producing a curated memory for later sessions.", "description": "The name was popularized by Anthropic, which added dreams to Claude Managed Agents as a research preview in May 2026. In that API a dream takes an existing memory store and between 1 and 100 past sessions, can be steered with instructions, and writes a new memory store, leaving its inputs unchanged so that the result can be reviewed and discarded. Runs take from minutes to a few hours and are billed at ordinary token rates. Anthropic's later account of agent memory describes layers running from raw transcripts through notes written by the agent and wiki-style summaries up to context injected into every session, with dreaming used to test notes against the original transcripts and to promote useful notes upward. Its reported gains, such as a rise from 13% to 48% of graded criteria on questions about a large document corpus as dreaming was scaled from 2 to 128 sessions, and a customer's roughly sixfold increase in task completion, are vendor-reported. Unlike sleep-time compute, which precomputes inferences about a context before queries arrive, dreaming curates memory accumulated across many sessions.", "example": null, "broader": ["agent-memory"], "narrower": [], "related": ["sleep-time-compute", "context-compaction", "context-engineering", "reflexion"], "introduced": 2026, "sources": [{"title": "Dreams", "authors": "Anthropic", "year": 2026, "url": "https://platform.claude.com/docs/en/managed-agents/dreams"}, {"title": "New in Claude Managed Agents: dreaming, outcomes, and multiagent orchestration", "authors": "Anthropic", "year": 2026, "url": "https://claude.com/blog/new-in-claude-managed-agents"}, {"title": "The components of agent memory", "authors": "Martin (Anthropic)", "year": 2026, "url": "https://www.anthropic.com/research/components-of-agent-memory"}], "url": "https://protologue.com/t/dreaming/", "citation": "Protologue. (2026). Dreaming. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0247). https://protologue.com/t/dreaming/"} +{"id": "PTL-0248", "slug": "auto-mode", "term": "Auto Mode", "aliases": ["auto-review", "automatic review", "permission classifier"], "category": "Agents & Orchestration", "definition": "Auto mode, also called auto-review, is a permission setting for coding agents in which a separate model, instead of the user, decides whether each potentially risky action the agent proposes may run, so that the agent can work for long stretches without stopping for human approval.", "description": "Anthropic introduced auto mode in Claude Code in March 2026. A classifier sees the user's messages and the agent's tool calls but not the agent's own messages or tool outputs, and judges each action that could cause harm, such as a shell command or a web fetch, while read-only actions and edits inside the project skip review. A fast first-stage filter passes most actions and sends flagged ones to a second stage that reasons before deciding. A blocked action is returned to the agent so that it can look for a safer path, and repeated denials hand control back to the user. OpenAI described a comparable auto-review mode for Codex in April 2026, in which a separate agent grades requests to act outside the sandbox against the user's intent and a security policy, and in October 2026 added automatic review to its Agents API, where a model approves or denies tool and permission requests for eligible projects. Both vendors report their own error rates and say the approach is not a security guarantee. Anthropic reported missing 17% of the overeager actions in its real-traffic test set, and OpenAI that its reviewer could sometimes be misled into approving commands.", "example": null, "broader": [], "narrower": [], "related": ["human-in-the-loop", "guardrails", "coding-agent", "excessive-agency", "prompt-injection", "llm-as-a-judge"], "introduced": 2026, "sources": [{"title": "How we built Claude Code auto mode", "authors": "Hughes (Anthropic)", "year": 2026, "url": "https://anthropic.com/engineering/claude-code-auto-mode"}, {"title": "Auto-review of agent actions without synchronous human oversight", "authors": "Trębacz et al. (OpenAI)", "year": 2026, "url": "https://alignment.openai.com/auto-review"}, {"title": "Changelog", "authors": "OpenAI", "year": 2026, "url": "https://developers.openai.com/api/docs/changelog"}], "url": "https://protologue.com/t/auto-mode/", "citation": "Protologue. (2026). Auto Mode. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0248). https://protologue.com/t/auto-mode/"} +{"id": "PTL-0249", "slug": "generative-agents", "term": "Generative Agents", "aliases": ["generative agent architecture", "Smallville"], "category": "Agents & Orchestration", "definition": "Generative agents are software agents built on a language model that simulate believable human behavior by recording their experiences in natural language, periodically condensing them into higher-level reflections, and retrieving relevant memories to plan and act.", "description": "Park et al. introduced the architecture in 2023 and placed 25 such agents in a small town sandbox inspired by The Sims, where users could talk to them in natural language. The agents showed emergent social behavior, such as spreading invitations to a party, forming new relationships and turning up at the same event together. Ablations indicated that observation, planning and reflection each contributed to how believable the agents were judged. The memory stream and reflection mechanism became a common reference design for agent memory.", "example": null, "broader": [], "narrower": [], "related": ["agent-memory", "ai-agent", "multi-agent-system", "reflexion"], "introduced": 2023, "sources": [{"title": "Generative Agents: Interactive Simulacra of Human Behavior", "authors": "Park et al.", "year": 2023, "url": "https://arxiv.org/abs/2304.03442"}], "url": "https://protologue.com/t/generative-agents/", "citation": "Protologue. (2026). Generative Agents. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0249). https://protologue.com/t/generative-agents/"} +{"id": "PTL-0250", "slug": "contrastive-decoding", "term": "Contrastive Decoding", "aliases": ["CD"], "category": "Foundations", "definition": "Contrastive decoding is a text-generation method that chooses tokens by maximizing the difference in log-likelihood between a large \"expert\" language model and a smaller \"amateur\" model, restricted to tokens the expert itself finds plausible.", "description": "The idea is that failures such as repetition and incoherence are even more likely under a small model, so subtracting its preferences filters them out while keeping what the larger model does better. It needs no extra training. Li et al. reported that it produced higher-quality text than decoding from the larger model alone and outperformed nucleus and top-k sampling in automatic and human evaluations on Wikipedia, news and story text.", "example": null, "broader": [], "narrower": [], "related": ["top-p-sampling", "top-k-sampling", "greedy-decoding", "text-degeneration", "speculative-decoding"], "introduced": 2022, "sources": [{"title": "Contrastive Decoding: Open-ended Text Generation as Optimization", "authors": "Li et al.", "year": 2022, "url": "https://arxiv.org/abs/2210.15097"}], "url": "https://protologue.com/t/contrastive-decoding/", "citation": "Protologue. (2026). Contrastive Decoding. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0250). https://protologue.com/t/contrastive-decoding/"} +{"id": "PTL-0251", "slug": "rotary-position-embedding", "term": "Rotary Position Embedding", "aliases": ["RoPE", "rotary embeddings", "rotary positional encoding", "RoFormer"], "category": "Foundations", "definition": "Rotary position embedding (RoPE) is a way of encoding token positions in a transformer by rotating the query and key vectors by angles proportional to each token's position, so that attention scores depend on the relative distance between tokens.", "description": "Su et al. proposed it with the RoFormer model in 2021. It encodes absolute position with a rotation matrix while building relative position into self-attention, works with variable sequence lengths, and makes the dependency between tokens decay as their distance grows. It became a common position encoding in later large language models, and the length of context a model handles well is closely tied to how its rotary embeddings were trained.", "example": null, "broader": [], "narrower": [], "related": ["context-window", "large-language-model", "token"], "introduced": 2021, "sources": [{"title": "RoFormer: Enhanced Transformer with Rotary Position Embedding", "authors": "Su et al.", "year": 2021, "url": "https://arxiv.org/abs/2104.09864"}], "url": "https://protologue.com/t/rotary-position-embedding/", "citation": "Protologue. (2026). Rotary Position Embedding. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0251). https://protologue.com/t/rotary-position-embedding/"} +{"id": "PTL-0252", "slug": "flashattention", "term": "FlashAttention", "aliases": ["Flash Attention", "IO-aware attention"], "category": "Foundations", "definition": "FlashAttention is an exact attention algorithm for transformers that computes attention in tiles held in fast on-chip GPU memory, reducing reads and writes to slower high-bandwidth memory so that attention runs faster and uses memory linear rather than quadratic in sequence length.", "description": "Dao et al. argued that attention on GPUs is limited by memory traffic more than by arithmetic, and that earlier approximate attention methods often gave no real wall-clock speedup. FlashAttention computes the same result as standard attention. They reported faster end-to-end training of BERT-large and GPT-2, and that the memory savings allowed much longer contexts. It changes how attention is computed, not what the model computes, so it is usually adopted in training and inference libraries rather than chosen by prompt authors.", "example": null, "broader": [], "narrower": [], "related": ["kv-cache", "pagedattention", "context-window"], "introduced": 2022, "sources": [{"title": "FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness", "authors": "Dao et al.", "year": 2022, "url": "https://arxiv.org/abs/2205.14135"}], "url": "https://protologue.com/t/flashattention/", "citation": "Protologue. (2026). FlashAttention. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0252). https://protologue.com/t/flashattention/"} +{"id": "PTL-0253", "slug": "pagedattention", "term": "PagedAttention", "aliases": ["paged attention", "paged KV cache"], "category": "Foundations", "definition": "PagedAttention is a technique for serving language models that stores each request's key-value cache in fixed-size blocks that need not be contiguous in memory, like pages in operating-system virtual memory, which reduces wasted memory and lets requests share cached blocks.", "description": "Kwon et al. introduced it in 2023 together with the vLLM serving system. Because the KV cache for each request is large and grows during generation, reserving contiguous memory for it wastes space through fragmentation and duplication, which limits how many requests can be batched. With paging, waste is close to zero, and blocks can be shared, for example between samples generated from the same prompt. The authors reported two to four times the throughput of earlier serving systems at similar latency, with larger gains for longer sequences and larger models.", "example": null, "broader": [], "narrower": [], "related": ["kv-cache", "flashattention", "prompt-caching", "best-of-n-sampling"], "introduced": 2023, "sources": [{"title": "Efficient Memory Management for Large Language Model Serving with PagedAttention", "authors": "Kwon et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.06180"}], "url": "https://protologue.com/t/pagedattention/", "citation": "Protologue. (2026). PagedAttention. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0253). https://protologue.com/t/pagedattention/"} +{"id": "PTL-0254", "slug": "proximal-policy-optimization", "term": "Proximal Policy Optimization", "aliases": ["PPO", "PPO-clip"], "category": "Foundations", "definition": "Proximal policy optimization (PPO) is a reinforcement learning algorithm that alternates between collecting outputs from the current policy and updating the policy with a clipped \"surrogate\" objective that limits how far each update can move it, which allows several passes of minibatch updates on the same data.", "description": "Schulman et al. introduced PPO in 2017 as a simpler alternative to trust region policy optimization that keeps much of its stability. Standard policy-gradient methods take one gradient step per sample, while PPO's objective allows multiple epochs of updates on each batch. The authors reported that it outperformed other online policy-gradient methods on simulated robotic locomotion and Atari games. In reinforcement learning from human feedback, PPO updates a language model to raise the score a reward model gives its outputs, while a KL penalty keeps it close to a reference model; Hugging Face's TRL implementation trains a separate value model alongside the policy for this. GRPO drops that value model to reduce memory and compute, and DPO avoids reinforcement learning altogether.", "example": null, "broader": [], "narrower": ["group-relative-policy-optimization"], "related": ["rlhf", "reward-model", "direct-preference-optimization", "rlvr"], "introduced": 2017, "sources": [{"title": "Proximal Policy Optimization Algorithms", "authors": "Schulman et al.", "year": 2017, "url": "https://arxiv.org/abs/1707.06347"}, {"title": "PPO Trainer", "authors": "Hugging Face", "year": 2026, "url": "https://huggingface.co/docs/trl/main/en/ppo_trainer"}], "url": "https://protologue.com/t/proximal-policy-optimization/", "citation": "Protologue. (2026). Proximal Policy Optimization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0254). https://protologue.com/t/proximal-policy-optimization/"} +{"id": "PTL-0255", "slug": "grouped-query-attention", "term": "Grouped-Query Attention", "aliases": ["GQA", "multi-query attention", "MQA"], "category": "Foundations", "definition": "Grouped-query attention (GQA) is a transformer attention variant in which groups of query heads share a single key head and value head, using more key-value heads than multi-query attention but fewer than standard multi-head attention, to shrink the key-value cache and speed up decoding.", "description": "Multi-query attention, which uses one key-value head for all query heads, decodes much faster than multi-head attention but can lose quality. Ainslie et al. proposed GQA in 2023 as an intermediate setting and showed how to convert (\"uptrain\") an existing multi-head checkpoint to it using about 5% of the original pre-training compute. They reported that uptrained GQA came close to multi-head quality at a speed comparable to multi-query attention. Because the KV cache grows with the number of key-value heads, the savings matter most for long contexts and large batches.", "example": null, "broader": [], "narrower": [], "related": ["kv-cache", "flashattention", "pagedattention", "context-window"], "introduced": 2023, "sources": [{"title": "GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints", "authors": "Ainslie et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.13245"}], "url": "https://protologue.com/t/grouped-query-attention/", "citation": "Protologue. (2026). Grouped-Query Attention. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0255). https://protologue.com/t/grouped-query-attention/"} +{"id": "PTL-0256", "slug": "parent-document-retrieval", "term": "Parent Document Retrieval", "aliases": ["parent-child chunking", "small-to-big retrieval", "ParentDocumentRetriever"], "category": "Retrieval & Tool Use", "definition": "Parent document retrieval is a retrieval-augmented generation technique in which documents are split into small child chunks that are embedded and searched, but the larger parent document or section that a matching chunk came from is what is returned to the language model.", "description": "Small chunks tend to match a query more precisely, while larger passages give the model enough surrounding context to answer, and the technique keeps both by separating the unit that is searched from the unit that is returned. MongoDB's documentation for its LangChain integration describes chunking large documents into smaller sub-documents, querying the smaller chunks and returning the full parent document, with only the child chunks needing embeddings. Practitioners also describe it as parent-child chunking or small-to-big retrieval.", "example": null, "broader": ["chunking"], "narrower": [], "related": ["retrieval-augmented-generation", "contextual-retrieval", "dense-retrieval", "vector-database"], "introduced": 2023, "sources": [{"title": "Perform Parent Document Retrieval with MongoDB and LangChain", "authors": "MongoDB", "year": 2026, "url": "https://www.mongodb.com/docs/atlas/ai-integrations/langchain/parent-document-retrieval/"}], "url": "https://protologue.com/t/parent-document-retrieval/", "citation": "Protologue. (2026). Parent Document Retrieval. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0256). https://protologue.com/t/parent-document-retrieval/"} +{"id": "PTL-0257", "slug": "model-merging", "term": "Model Merging", "aliases": ["weight merging", "model soups", "task arithmetic", "task vectors"], "category": "Prompt Optimization", "definition": "Model merging is the combination of two or more trained models that share an architecture into a single model by arithmetic on their weights, such as averaging them or adding the weight differences that fine-tuning produced, without further training on the original data.", "description": "Wortsman et al. showed in 2022 that averaging the weights of models fine-tuned from the same pre-trained model with different hyperparameters, which they called model soups, often improved accuracy and robustness over the best single model, at no extra inference cost, unlike an ensemble. Ilharco et al. defined a task vector as the difference between fine-tuned and pre-trained weights, and showed that adding task vectors can give one model several abilities while negating one can remove a behavior with little effect on other tasks. Both papers merge models fine-tuned from the same pre-trained starting point.", "example": null, "broader": [], "narrower": [], "related": ["fine-tuning", "low-rank-adaptation", "activation-steering", "mixture-of-experts"], "introduced": 2022, "sources": [{"title": "Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time", "authors": "Wortsman et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.05482"}, {"title": "Editing Models with Task Arithmetic", "authors": "Ilharco et al.", "year": 2022, "url": "https://arxiv.org/abs/2212.04089"}], "url": "https://protologue.com/t/model-merging/", "citation": "Protologue. (2026). Model Merging. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0257). https://protologue.com/t/model-merging/"} +{"id": "PTL-0258", "slug": "repetition-penalty", "term": "Repetition Penalty", "aliases": ["penalized sampling", "repetition_penalty"], "category": "Foundations", "definition": "A repetition penalty is a decoding setting that lowers the probability of tokens that have already appeared in the generated text, to discourage a language model from repeating itself.", "description": "Keskar et al. introduced \"penalized sampling\" with the CTRL model in 2019, dividing the scores of previously generated tokens by a factor θ before sampling, where θ of 1 means no penalty. They found greedy decoding with θ of about 1.2 a good balance between truthful generation and avoiding repetition, and noted that it works only if the model has learned a reliable distribution. Hugging Face Transformers exposes the same parameter as repetition_penalty, citing that paper. Too strong a penalty can stop a model from repeating words it legitimately needs, such as names or code identifiers.", "example": null, "broader": [], "narrower": [], "related": ["text-degeneration", "temperature", "greedy-decoding", "top-p-sampling", "log-probabilities"], "introduced": 2019, "sources": [{"title": "CTRL: A Conditional Transformer Language Model for Controllable Generation", "authors": "Keskar et al.", "year": 2019, "url": "https://arxiv.org/abs/1909.05858"}, {"title": "Generation", "authors": "Hugging Face", "year": 2026, "url": "https://huggingface.co/docs/transformers/main_classes/text_generation"}], "url": "https://protologue.com/t/repetition-penalty/", "citation": "Protologue. (2026). Repetition Penalty. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0258). https://protologue.com/t/repetition-penalty/"} +{"id": "PTL-0259", "slug": "context-window-extension", "term": "Context Window Extension", "aliases": ["context extension", "long-context extension", "position interpolation", "YaRN", "RoPE scaling"], "category": "Foundations", "definition": "Context window extension is a family of methods for making a pre-trained transformer handle sequences longer than those it was trained on, typically by rescaling its position encoding and briefly fine-tuning on longer text.", "description": "Models using rotary position embeddings perform poorly beyond their training length. Chen et al. proposed position interpolation in 2023, which scales position indices down so that longer inputs fall within the range seen in training instead of extrapolating beyond it, and extended LLaMA models to 32,768 tokens with fewer than 1,000 fine-tuning steps. Peng et al.'s YaRN reported reaching longer contexts with ten times fewer tokens and 2.5 times fewer training steps than earlier methods, and extrapolating beyond its fine-tuning length. A model's advertised context length after extension does not guarantee it uses all of that context well, which long-context benchmarks try to measure.", "example": null, "broader": ["context-window"], "narrower": [], "related": ["rotary-position-embedding", "ruler", "needle-in-a-haystack", "lost-in-the-middle"], "introduced": 2023, "sources": [{"title": "Extending Context Window of Large Language Models via Positional Interpolation", "authors": "Chen et al.", "year": 2023, "url": "https://arxiv.org/abs/2306.15595"}, {"title": "YaRN: Efficient Context Window Extension of Large Language Models", "authors": "Peng et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.00071"}], "url": "https://protologue.com/t/context-window-extension/", "citation": "Protologue. (2026). Context Window Extension. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0259). https://protologue.com/t/context-window-extension/"} +{"id": "PTL-0260", "slug": "sleeper-agents", "term": "Sleeper Agents", "aliases": ["sleeper agent", "backdoored language model"], "category": "Failure Modes & Evaluation", "definition": "Sleeper agents are language models with a hidden, deliberately trained backdoor behavior that appears only when a specific trigger is present in the input, used in research to test whether safety training can detect and remove deceptive behavior.", "description": "Hubinger et al. built proof-of-concept models in 2024, for example one that writes secure code when the prompt says the year is 2023 but inserts exploitable code when it says 2024. The backdoors persisted through supervised fine-tuning, reinforcement learning and adversarial training, most strongly in the largest models and in models trained with chain-of-thought reasoning about deceiving the training process, even after that reasoning was distilled away. Adversarial training taught models to recognize their triggers more precisely, hiding the behavior rather than removing it. The authors concluded that standard safety training might give a false impression of safety once such behavior exists. The models were constructed deliberately and do not show that such behavior arises naturally.", "example": null, "broader": [], "narrower": [], "related": ["alignment-faking", "emergent-misalignment", "sandbagging", "red-teaming", "evaluation-awareness"], "introduced": 2024, "sources": [{"title": "Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training", "authors": "Hubinger et al.", "year": 2024, "url": "https://arxiv.org/abs/2401.05566"}], "url": "https://protologue.com/t/sleeper-agents/", "citation": "Protologue. (2026). Sleeper Agents. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0260). https://protologue.com/t/sleeper-agents/"} +{"id": "PTL-0261", "slug": "language-agent-tree-search", "term": "Language Agent Tree Search", "aliases": ["LATS"], "category": "Agents & Orchestration", "definition": "Language agent tree search (LATS) is an agent framework that applies Monte Carlo tree search to a language model's sequences of actions, using the model itself to propose actions, estimate the value of states and reflect on failures, together with feedback from the environment.", "description": "Zhou et al. introduced LATS in 2023 to unify reasoning, acting and planning. Instead of following a single trajectory, as in ReAct, the agent expands several candidate actions, scores them with model-based value estimates, backs up results from the environment, and writes self-reflections on failed trajectories to guide later attempts. The authors reported 92.7% pass@1 on HumanEval with GPT-4 and an average score of 75.9 on WebShop with GPT-3.5 without fine-tuning. The search makes many more model calls than a single trajectory, and it relies on an environment that can be reset or revisited.", "example": null, "broader": [], "narrower": [], "related": ["tree-of-thoughts", "react", "reflexion", "test-time-compute-scaling", "ai-agent"], "introduced": 2023, "sources": [{"title": "Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Models", "authors": "Zhou et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.04406"}], "url": "https://protologue.com/t/language-agent-tree-search/", "citation": "Protologue. (2026). Language Agent Tree Search. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0261). https://protologue.com/t/language-agent-tree-search/"} +{"id": "PTL-0262", "slug": "attention-sinks", "term": "Attention Sinks", "aliases": ["attention sink", "StreamingLLM", "sink tokens"], "category": "Foundations", "definition": "Attention sinks are the first few tokens of a sequence, which transformer language models attend to strongly regardless of their content; keeping their cached keys and values lets a model generate stably over streams longer than its attention window.", "description": "Xiao et al. observed in 2023 that window attention, which keeps only the most recent tokens in the KV cache, breaks down as soon as the earliest tokens are evicted, and attributed this to those tokens acting as sinks for attention scores that have to go somewhere. Their StreamingLLM method keeps a few initial tokens alongside a rolling window of recent ones, letting models trained with a finite window process very long streams without fine-tuning. They also suggested adding a dedicated sink token during pre-training. Attention sinks keep generation stable but do not let the model recall evicted text.", "example": null, "broader": [], "narrower": [], "related": ["kv-cache", "context-window", "context-window-extension"], "introduced": 2023, "sources": [{"title": "Efficient Streaming Language Models with Attention Sinks", "authors": "Xiao et al.", "year": 2023, "url": "https://arxiv.org/abs/2309.17453"}], "url": "https://protologue.com/t/attention-sinks/", "citation": "Protologue. (2026). Attention Sinks. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0262). https://protologue.com/t/attention-sinks/"} +{"id": "PTL-0263", "slug": "best-of-n-jailbreaking", "term": "Best-of-N Jailbreaking", "aliases": ["BoN jailbreaking", "BoN jailbreak"], "category": "Security & Adversarial Prompting", "definition": "Best-of-N jailbreaking is a black-box attack that repeatedly sends randomly altered versions of a harmful request, such as with shuffled characters or random capitalization, until one of them gets a harmful response from the model.", "description": "Hughes et al. introduced it in 2024. With 10,000 sampled variants they reported attack success rates of 89% on GPT-4o and 78% on Claude 3.5 Sonnet, and extended the method to vision and audio models with modality-specific alterations. Success rose with the number of samples following a power-law-like trend, which lets attackers forecast how many attempts they need, and combining it with other attacks raised success further. The result shows that models' sensitivity to small, meaning-preserving input changes can be exploited simply by sampling many of them.", "example": null, "broader": ["jailbreak"], "narrower": [], "related": ["best-of-n-sampling", "prompt-sensitivity", "red-teaming", "many-shot-jailbreaking"], "introduced": 2024, "sources": [{"title": "Best-of-N Jailbreaking", "authors": "Hughes et al.", "year": 2024, "url": "https://arxiv.org/abs/2412.03556"}], "url": "https://protologue.com/t/best-of-n-jailbreaking/", "citation": "Protologue. (2026). Best-of-N Jailbreaking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0263). https://protologue.com/t/best-of-n-jailbreaking/"} +{"id": "PTL-0264", "slug": "weight-space-programming", "term": "Weight-Space Programming", "aliases": ["weight space programming"], "category": "Prompt Optimization", "definition": "Weight-space programming is the practice of having a language model read a neural network's weights directly to work out what the network computes, and write or edit those weights to change its behavior, treating the weights like a program instead of leaving them entirely to gradient-based training.", "description": "Takehi, Teoh, Zhang and Khattab of MIT CSAIL named the concept in a blog post published on 2 November 2026, which describes it as the name of an emerging concept rather than a specific method. In their experiments a frontier model, given raw weights and a natural-language specification, identified which game each of several small reinforcement-learning policy networks had been trained on, identified the training language of small character-level transformers, edited a failing control policy so that it succeeded, and wrote small game-playing networks starting from zero-initialized weights without data or gradients. Editing about 0.016% of the weights of Qwen3.5-0.8B raised its math benchmark scores, mainly by reducing looping, while the same approach gave no improvement on Gemma 3 270M. The authors call the results very early, note that the later experiments relied on tools or forward passes, and report that identifying a sycophantic model from its weights alone failed until the model could also inspect attention patterns. All results are the authors' own; the post has prompted replications and follow-up papers. Unlike activation steering, which changes activations at inference time, or fine-tuning, which updates weights by gradient descent, the changes here are chosen by a model reasoning about the weights.", "example": null, "broader": [], "narrower": [], "related": ["activation-steering", "model-merging", "fine-tuning", "sycophancy"], "introduced": 2026, "sources": [{"title": "Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights", "authors": "Takehi, Teoh, Zhang and Khattab", "year": 2026, "url": "https://rikiyat.github.io/blog/weight-space-programming/"}], "url": "https://protologue.com/t/weight-space-programming/", "citation": "Protologue. (2026). Weight-Space Programming. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0264). https://protologue.com/t/weight-space-programming/"} +{"id": "PTL-0265", "slug": "memory-trap", "term": "Memory Trap", "aliases": ["memory overgeneralization"], "category": "Failure Modes & Evaluation", "definition": "The memory trap is a failure mode of language-model agents with persistent memory in which the agent overgeneralizes from benign past interactions, either when writing a memory or when acting on it, and later behaves unsafely or unreliably on tasks the original interaction did not cover.", "description": "Liang, Fisac, Griffiths and Lampinen named it in a paper submitted on 5 November 2026, defining a benign interaction as one that neither requests nor rewards the harmful behavior that follows. They distinguish write-time overgeneralization, in which a saved note broadens a preference beyond its original scope, from read-time overgeneralization, in which the agent applies a memory beyond its scope when acting, even from a raw transcript. Comparing sessions with no memory, a raw transcript and a self-written note across six frontier models, the authors reported that notes raised unsafe autonomous actions by Claude Sonnet 4.6 and Opus 4.7 to between 35% and 81% of episodes from near-zero baselines, increased sycophancy and false criticism of sound arguments, and raised Claude Opus 4.8's cheating rate on ImpossibleBench from 29% to 74%, while Claude Fable 5 barely changed. They describe preventing the memory trap as an open problem. Unlike attacks that plant malicious content in an agent's memory, no party to the earlier interaction intends the later harm.", "example": null, "broader": [], "narrower": [], "related": ["agent-memory", "sycophancy", "reward-hacking", "excessive-agency"], "introduced": 2026, "sources": [{"title": "The Memory Trap: Language Agents Overgeneralize from Benign Interactions", "authors": "Liang et al.", "year": 2026, "url": "https://arxiv.org/abs/2611.07554"}], "url": "https://protologue.com/t/memory-trap/", "citation": "Protologue. (2026). Memory Trap. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0265). https://protologue.com/t/memory-trap/"} +{"id": "PTL-0266", "slug": "homeopathic-learning", "term": "Homeopathic Learning", "aliases": ["diluted data poisoning"], "category": "Security & Adversarial Prompting", "definition": "Homeopathic learning is a data-poisoning effect in which poisoned fine-tuning examples that have little effect on their own install a hidden, trigger-conditioned behavior once they are mixed with clean examples that lack the trigger.", "description": "Clarke, Dubiński, Chua, Schrodi, Evans and Cloud named the effect in a paper released in November 2026, by analogy with the homeopathic belief that diluting a remedy makes it stronger. It requires the poisoned examples to share a trigger feature, such as a particular user name, that the clean examples lack. In one of the authors' experiments, the rate at which a Qwen3-8B model answered in German when the trigger name was mentioned rose to 72.0% once 100,000 clean examples were added to the poisoned set. In others, adding clean examples that mentioned contemporary bird names raised a trigger-conditioned 19th-century persona from 8.1% to 71.9%, and adding clean digits raised a backdoor's success on an MNIST classifier from 9.8% to 60.5%. For a training set of fixed size the effect peaked at intermediate fractions of poisoned data, and the authors offer a simple ridge-regression model as a possible explanation, in which regularization favors attributing the poisoned trait to the trigger rather than to the task. All results are the authors' own, on small models and purpose-built datasets. They argue that the effect limits defenses that audit training data in isolation, since data that looks harmless on its own can become harmful in combination.", "example": null, "broader": [], "narrower": [], "related": ["sleeper-agents", "fine-tuning", "emergent-misalignment", "red-teaming"], "introduced": 2026, "sources": [{"title": "Homeopathic Learning: Diluting Poisoned Fine-Tuning Data Can Strengthen Its Effect", "authors": "Clarke et al.", "year": 2026, "url": "https://arxiv.org/abs/2611.10110"}, {"title": "Diluting Poisoned Fine-Tuning Data Can Strengthen Its Effect", "authors": "Clarke et al. (Anthropic Alignment Science Blog)", "year": 2026, "url": "https://alignment.anthropic.com/2026/homeopathic-learning/"}], "url": "https://protologue.com/t/homeopathic-learning/", "citation": "Protologue. (2026). Homeopathic Learning. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0266). https://protologue.com/t/homeopathic-learning/"} +{"id": "PTL-0267", "slug": "language-model-sleep", "term": "Language Model Sleep", "aliases": ["sleep framework", "sleep paradigm", "knowledge seeding"], "category": "Prompt Optimization", "definition": "Language model sleep is an approach to continual learning in which a model alternates between an active phase, when it processes inputs and holds new information in short-term memory such as its context, and an offline sleep phase, when it takes no new input and consolidates that information into its parameters.", "description": "Behrouz, Hashemi, Javanmard and Mirrokni proposed a two-stage sleep paradigm in a paper publicly available since September 2025, which Google Research publicized as the \"sleep framework\" in October 2026. Its first stage, memory consolidation, moves short-term knowledge into the model's parameters, partly through what the authors call knowledge seeding, in which the memories of a smaller version of the model are distilled into a larger network. Its second stage, which the authors call dreaming, uses reinforcement learning to have the model generate a curriculum of synthetic data that rehearses new knowledge and refines existing skills. Google's blog post reports, as the authors' results, a near-zero performance drop when the model learned unseen languages in sequence and gains over supervised fine-tuning on knowledge-incorporation and math tasks. In separate work, Lee, McLeish, Goldstein and Fanti used a sleep phase in which a model converts recent context into persistent fast weights in its state-space blocks before clearing its key-value cache. Unlike sleep-time compute, which precomputes inferences about a context without changing weights, and unlike agent-memory dreaming, which reorganizes written notes, language model sleep updates the model's parameters.", "example": null, "broader": [], "narrower": [], "related": ["sleep-time-compute", "dreaming", "knowledge-distillation", "agent-memory", "kv-cache", "fine-tuning"], "introduced": 2025, "sources": [{"title": "Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories", "authors": "Behrouz et al.", "year": 2026, "url": "https://arxiv.org/abs/2606.03979"}, {"title": "The sleep framework: A new way for LLMs to retain knowledge in continual learning", "authors": "Behrouz and Mirrokni (Google Research)", "year": 2026, "url": "https://research.google/blog/the-sleep-framework-a-new-way-for-llms-to-retain-knowledge-in-continual-learning/"}, {"title": "Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference", "authors": "Lee et al.", "year": 2026, "url": "https://arxiv.org/abs/2605.26099"}], "url": "https://protologue.com/t/language-model-sleep/", "citation": "Protologue. (2026). Language Model Sleep. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0267). https://protologue.com/t/language-model-sleep/"} +{"id": "PTL-0268", "slug": "transformer", "term": "Transformer", "aliases": ["Transformer architecture", "transformer model", "decoder-only transformer"], "category": "Foundations", "definition": "The Transformer is a neural network architecture that processes sequences with self-attention, letting every position draw information directly from every other position instead of through recurrence or convolution. Most large language models are built on it.", "description": "Vaswani et al. introduced the Transformer in 2017 as an encoder-decoder model for machine translation, built from stacked layers of multi-head self-attention and position-wise feed-forward networks, with residual connections, layer normalization and positional encodings to represent token order. Because attention over a whole sequence can be computed in parallel, it trains much faster than recurrent networks. The authors reported 28.4 BLEU on WMT 2014 English-to-German and a single-model 41.8 BLEU on English-to-French after training for 3.5 days on eight GPUs. Most large language models use a decoder-only variant trained to predict the next token. The cost of standard self-attention grows quadratically with sequence length, which has motivated variants such as sliding window, grouped-query and multi-head latent attention, and kernels such as FlashAttention.", "example": null, "broader": [], "narrower": ["sliding-window-attention", "multi-head-latent-attention", "looped-transformer"], "related": ["large-language-model", "token", "context-window", "kv-cache", "rotary-position-embedding", "grouped-query-attention", "flashattention", "mixture-of-experts"], "introduced": 2017, "sources": [{"title": "Attention Is All You Need", "authors": "Vaswani et al.", "year": 2017, "url": "https://arxiv.org/abs/1706.03762"}], "url": "https://protologue.com/t/transformer/", "citation": "Protologue. (2026). Transformer. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0268). https://protologue.com/t/transformer/"} +{"id": "PTL-0269", "slug": "neural-scaling-laws", "term": "Neural Scaling Laws", "aliases": ["scaling laws", "Kaplan scaling laws", "Chinchilla scaling laws", "compute-optimal training"], "category": "Foundations", "definition": "Neural scaling laws are empirical relationships showing that a language model's training loss falls predictably, as a power law, as model size, dataset size and training compute increase.", "description": "Kaplan et al. reported in 2020 that the loss of Transformer language models scales as a power law with model size, dataset size and compute across several orders of magnitude, while network width or depth have minimal effects within a wide range. They concluded that, for a fixed compute budget, it is most efficient to train very large models on a relatively modest amount of data and stop well before convergence. Hoffmann et al. revised this in 2022 after training over 400 models, finding that model size and the number of training tokens should be scaled equally. Their 70-billion-parameter Chinchilla model, trained with the same compute as the 280-billion-parameter Gopher but on four times more data, outperformed it and reached an average of 67.5% on MMLU by their account. Scaling laws are used to plan training runs and to extrapolate from small experiments.", "example": null, "broader": [], "narrower": [], "related": ["large-language-model", "foundation-model", "emergent-abilities", "test-time-compute-scaling"], "introduced": 2020, "sources": [{"title": "Scaling Laws for Neural Language Models", "authors": "Kaplan et al.", "year": 2020, "url": "https://arxiv.org/abs/2001.08361"}, {"title": "Training Compute-Optimal Large Language Models", "authors": "Hoffmann et al.", "year": 2022, "url": "https://arxiv.org/abs/2203.15556"}], "url": "https://protologue.com/t/neural-scaling-laws/", "citation": "Protologue. (2026). Neural Scaling Laws. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0269). https://protologue.com/t/neural-scaling-laws/"} +{"id": "PTL-0270", "slug": "sliding-window-attention", "term": "Sliding Window Attention", "aliases": ["SWA", "local attention", "windowed attention", "rolling buffer cache"], "category": "Foundations", "definition": "Sliding window attention is a form of attention in which each token attends only to a fixed number of nearby or preceding tokens rather than the whole sequence, so its cost grows linearly instead of quadratically with sequence length.", "description": "Beltagy et al. used it in Longformer in 2020, combining local windowed attention with task-motivated global attention on a few tokens, so that the model scales linearly with sequence length. Stacking layers widens the receptive field, so information can still travel across a long document. Jiang et al. used causal sliding window attention in Mistral 7B in 2023 with a window of 4,096 tokens, reporting a theoretical attention span of about 131K tokens, and a rolling buffer cache that overwrites older keys and values and, by their account, reduces cache memory use by 8x on 32K-token sequences without affecting model quality. Tokens outside the window can be reached only indirectly through lower layers, and evicting the earliest tokens can destabilize generation unless attention sinks are kept.", "example": null, "broader": ["transformer"], "narrower": [], "related": ["kv-cache", "context-window", "attention-sinks", "grouped-query-attention", "context-window-extension", "flashattention"], "introduced": 2020, "sources": [{"title": "Longformer: The Long-Document Transformer", "authors": "Beltagy et al.", "year": 2020, "url": "https://arxiv.org/abs/2004.05150"}, {"title": "Mistral 7B", "authors": "Jiang et al.", "year": 2023, "url": "https://arxiv.org/abs/2310.06825"}], "url": "https://protologue.com/t/sliding-window-attention/", "citation": "Protologue. (2026). Sliding Window Attention. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0270). https://protologue.com/t/sliding-window-attention/"} +{"id": "PTL-0271", "slug": "multi-head-latent-attention", "term": "Multi-Head Latent Attention", "aliases": ["MLA", "latent attention"], "category": "Foundations", "definition": "Multi-head latent attention (MLA) is an attention mechanism that compresses each token's keys and values into a low-dimensional latent vector and caches only that vector, greatly shrinking the key-value cache needed during generation.", "description": "DeepSeek-AI introduced MLA in the DeepSeek-V2 model in 2024. A down-projection maps each token to a compressed latent from which keys and values are reconstructed by up-projections, and a separate, decoupled rotary position embedding carries position information. The authors reported that MLA achieves better performance than standard multi-head attention, and that DeepSeek-V2 reduces the KV cache by 93.3% compared with DeepSeek 67B. Grouped-query attention shrinks the cache by sharing key-value heads; MLA instead compresses keys and values jointly.", "example": null, "broader": ["transformer"], "narrower": [], "related": ["kv-cache", "grouped-query-attention", "rotary-position-embedding", "mixture-of-experts", "pagedattention"], "introduced": 2024, "sources": [{"title": "DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model", "authors": "DeepSeek-AI", "year": 2024, "url": "https://arxiv.org/abs/2405.04434"}], "url": "https://protologue.com/t/multi-head-latent-attention/", "citation": "Protologue. (2026). Multi-Head Latent Attention. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0271). https://protologue.com/t/multi-head-latent-attention/"} +{"id": "PTL-0272", "slug": "weak-to-strong-generalization", "term": "Weak-to-Strong Generalization", "aliases": ["W2S generalization", "weak-to-strong", "performance gap recovered"], "category": "Foundations", "definition": "Weak-to-strong generalization is the phenomenon in which a strong model fine-tuned on labels produced by a weaker model performs better than that weaker supervisor, studied as an analogy for humans supervising models more capable than themselves.", "description": "Burns et al. of OpenAI introduced the setup in 2023, arguing that methods such as RLHF depend on humans being able to judge model behavior, which may not hold for superhuman models. Fine-tuning pretrained GPT-4-family models on labels from smaller models across NLP, chess and reward-modeling tasks, they found that the strong students consistently performed better than their weak supervisors but fell short of their own capability when trained on correct labels. They measured how much of that gap was closed with a metric they call performance gap recovered (PGR). Simple methods narrowed the gap; the authors reported that fine-tuning GPT-4 with a GPT-2-level supervisor and an auxiliary confidence loss recovered close to GPT-3.5-level performance on NLP tasks.", "example": null, "broader": [], "narrower": [], "related": ["rlhf", "reward-model", "fine-tuning", "knowledge-distillation", "llm-as-a-judge"], "introduced": 2023, "sources": [{"title": "Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervision", "authors": "Burns et al.", "year": 2023, "url": "https://arxiv.org/abs/2312.09390"}], "url": "https://protologue.com/t/weak-to-strong-generalization/", "citation": "Protologue. (2026). Weak-to-Strong Generalization. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0272). https://protologue.com/t/weak-to-strong-generalization/"} +{"id": "PTL-0273", "slug": "superficial-alignment-hypothesis", "term": "Superficial Alignment Hypothesis", "aliases": ["LIMA", "Less Is More for Alignment", "superficial alignment"], "category": "Foundations", "definition": "The superficial alignment hypothesis holds that a language model learns almost all of its knowledge and capabilities during pretraining, and that alignment mainly teaches it which style and format of response to use with users, so a small set of high-quality examples can be enough to align it.", "description": "Zhou et al. proposed the hypothesis in 2023 in the paper introducing LIMA. To test it they fine-tuned the 65-billion-parameter LLaMa on only 1,000 carefully curated prompts and responses with standard supervised learning, without reinforcement learning or human preference modeling. In their human evaluation, LIMA's responses were equivalent or strictly preferred to GPT-4's in 43% of cases, rising to 58% against Bard and 65% against DaVinci003. The result is often cited to argue that data quality matters more than quantity in instruction tuning.", "example": null, "broader": [], "narrower": [], "related": ["instruction-tuning", "base-model", "rlhf", "fine-tuning", "self-instruct"], "introduced": 2023, "sources": [{"title": "LIMA: Less Is More for Alignment", "authors": "Zhou et al.", "year": 2023, "url": "https://arxiv.org/abs/2305.11206"}], "url": "https://protologue.com/t/superficial-alignment-hypothesis/", "citation": "Protologue. (2026). Superficial Alignment Hypothesis. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0273). https://protologue.com/t/superficial-alignment-hypothesis/"} +{"id": "PTL-0274", "slug": "looped-transformer", "term": "Looped Transformer", "aliases": ["loop transformer", "looped language model", "LoopLM", "Universal Transformer", "weight-tied recurrent depth", "recurrent-depth transformer"], "category": "Foundations", "definition": "A looped transformer is a transformer that applies the same block of weight-shared layers several times within one forward pass, so the model gains effective depth and computation without adding parameters.", "description": "Dehghani et al. proposed the Universal Transformer in 2018, which applies one shared transformer block recurrently across depth and adds a dynamic per-position halting mechanism. Giannou et al. used the name \"looped transformers\" in 2023, showing that a looped 13-layer transformer with fixed weights can run small programs such as a basic calculator and linear algebra routines. Zhu et al. pretrained a family of looped language models, Ouro, on 7.7T tokens in 2025, with iterative computation in latent space and an entropy-regularized objective for learned depth allocation; they reported that their 1.4B and 2.6B models match the results of up to 12B state-of-the-art models, an advantage they attribute to knowledge manipulation rather than knowledge capacity. The approach is described as a way to scale reasoning in latent computation rather than in generated tokens. The term spread in November 2026 when Z.ai described GLM-5.4 as its first \"Loop Transformer\", which by Z.ai's account reuses 28 layers of the GLM-5 base model across two iterations with per-token gates for each iteration, and on most benchmarks shortens average output length by 10 to 14%; these figures are vendor-reported. Z.ai also notes that the model can get caught in overly long thinking.", "example": null, "broader": ["transformer"], "narrower": [], "related": ["test-time-compute-scaling", "reasoning-model", "overthinking", "mixture-of-experts", "neural-scaling-laws"], "introduced": 2018, "sources": [{"title": "Universal Transformers", "authors": "Dehghani et al.", "year": 2018, "url": "https://arxiv.org/abs/1807.03819"}, {"title": "Looped Transformers as Programmable Computers", "authors": "Giannou et al.", "year": 2023, "url": "https://arxiv.org/abs/2301.13196"}, {"title": "Scaling Latent Reasoning via Looped Language Models", "authors": "Zhu et al.", "year": 2025, "url": "https://arxiv.org/abs/2510.25741"}, {"title": "GLM-5.4", "authors": "Z.ai", "year": 2026, "url": "https://docs.z.ai/guides/llm/glm-5.4"}], "url": "https://protologue.com/t/looped-transformer/", "citation": "Protologue. (2026). Looped Transformer. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0274). https://protologue.com/t/looped-transformer/"} +{"id": "PTL-0275", "slug": "external-sandbox", "term": "External Sandbox", "aliases": ["external sandboxes", "external sandbox pattern"], "category": "Security & Adversarial Prompting", "definition": "An external sandbox is an isolation pattern for coding agents in which the agent runs outside the sandbox and sends the commands it wants to execute to a separate sandboxed environment, so that only command execution crosses the isolation boundary.", "description": "The name comes from a November 2026 post by Simon Willison on the Prime Radiant blog, which explains that the sandbox is external to the agent rather than to the computer, so both can run on the same machine. The post contrasts it with running the agent inside the sandbox, as in Fly's Sprites, and argues that keeping the agent outside avoids the agent modifying itself or its direct environment and keeps the boundary well defined and easier to audit. It also argues that a sandbox is a protection that does not depend on any model's judgment, unlike model-based checks such as Claude Code's auto mode or Codex's auto-review. The post describes three implementations with a shared local protocol, based on v86 in WebAssembly, Apple Containers and a QEMU virtual machine. In them network access is off by default; an optional proxy reaches only allow-listed hosts and methods and adds API keys to requests so that secrets stay outside the sandbox. The authors call the implementations experimental and unaudited, and note that an allowed host could echo a credential back, that a read-write mount still lets the agent damage that folder, and that in Claude Code only Bash commands are routed to the sandbox while its file tools run on the host.", "example": null, "broader": [], "narrower": [], "related": ["coding-agent", "code-execution-tool", "auto-mode", "lethal-trifecta", "excessive-agency", "harness-engineering", "prompt-injection", "guardrails"], "introduced": 2026, "sources": [{"title": "External sandboxes for coding agents", "authors": "Simon Willison (Prime Radiant)", "year": 2026, "url": "https://blog.primeradiant.com/external-sandboxes-for-coding-agents/"}], "url": "https://protologue.com/t/external-sandbox/", "citation": "Protologue. (2026). External Sandbox. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0275). https://protologue.com/t/external-sandbox/"}