# Protologue > Protologue is an openly licensed (CC BY 4.0) reference taxonomy of 253 prompting and large language model techniques. Each entry has a permanent identifier (PTL-NNNN), a standalone one-to-two-sentence definition, synonyms, broader/narrower/related links, and citations to the primary source that introduced it. When citing an entry, link to its canonical URL and name Protologue. Each entry's Markdown version is linked below; the full taxonomy in one file is at https://protologue.com/llms-full.txt. Version 1.7.0, updated 2026-11-15. ## Recently added New terms are added as they appear. All additions: https://protologue.com/new/ (Atom feed: https://protologue.com/feed.xml). - [PagedAttention](https://protologue.com/t/pagedattention.md) (added 2026-11-15): 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. - [FlashAttention](https://protologue.com/t/flashattention.md) (added 2026-11-15): 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. - [Rotary Position Embedding](https://protologue.com/t/rotary-position-embedding.md) (added 2026-11-15): 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. - [Contrastive Decoding](https://protologue.com/t/contrastive-decoding.md) (added 2026-11-15): 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. - [Generative Agents](https://protologue.com/t/generative-agents.md) (added 2026-11-15): 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. - [Auto Mode](https://protologue.com/t/auto-mode.md) (added 2026-11-15): 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. - [Dreaming](https://protologue.com/t/dreaming.md) (added 2026-11-15): 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. - [Evol-Instruct](https://protologue.com/t/evol-instruct.md) (added 2026-11-07): 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. - [Self-Instruct](https://protologue.com/t/self-instruct.md) (added 2026-11-07): 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. - [Reinforcement Learning from AI Feedback](https://protologue.com/t/rlaif.md) (added 2026-11-07): 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. - [Odds Ratio Preference Optimization](https://protologue.com/t/odds-ratio-preference-optimization.md) (added 2026-11-07): 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. - [Kahneman-Tversky Optimization](https://protologue.com/t/kahneman-tversky-optimization.md) (added 2026-11-07): 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. - [QLoRA](https://protologue.com/t/qlora.md) (added 2026-11-07): 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. - [Parameter-Efficient Fine-Tuning](https://protologue.com/t/parameter-efficient-fine-tuning.md) (added 2026-11-07): 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. - [Backward Chaining](https://protologue.com/t/backward-chaining.md) (added 2026-11-07): 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. ## Comparisons - [Chain-of-Thought Prompting vs Self-Consistency](https://protologue.com/compare/chain-of-thought-vs-self-consistency.md): Chain-of-thought prompting asks a model to write intermediate reasoning steps before its answer, in a single response. Self-consistency builds on it by sampling several chain-of-thought responses to the same question and returning the most common final answer, which improves accuracy at the cost of several times the inference. - [Tree of Thoughts vs Chain-of-Thought Prompting](https://protologue.com/compare/tree-of-thoughts-vs-chain-of-thought.md): Chain-of-thought produces one left-to-right sequence of reasoning steps. Tree of thoughts treats reasoning as a search, generating several candidate next steps, having the model evaluate partial solutions and backtracking from dead ends, which helps on problems that need planning or lookahead but costs many more model calls. - [Retrieval-Augmented Generation vs Fine-Tuning](https://protologue.com/compare/rag-vs-fine-tuning.md): Retrieval-augmented generation gives a model relevant documents at query time, so it can use current or private information without changing the model. Fine-tuning further trains the model's weights on examples, which is better for teaching a consistent format, style or specialized skill than for adding facts that change. - [Prompt Injection vs Jailbreak](https://protologue.com/compare/prompt-injection-vs-jailbreak.md): A jailbreak targets the model's own safety training, trying to make it produce content it was trained to refuse. Prompt injection targets an application, smuggling instructions into the model's input, often through data it processes, so that they override the developer's instructions. - [Few-shot Prompting vs Zero-shot Prompting](https://protologue.com/compare/few-shot-vs-zero-shot-prompting.md): Zero-shot prompting gives a model only an instruction. Few-shot prompting adds a small number of worked input-output examples so the model can infer the task and format from demonstrations, at the cost of a longer prompt and sensitivity to which examples are chosen and in what order. - [Prompt Engineering vs Context Engineering](https://protologue.com/compare/prompt-engineering-vs-context-engineering.md): Prompt engineering is the craft of wording and refining a prompt so a model reliably produces the desired output. Context engineering is broader, covering everything a model sees at each step of an agent's run, including instructions, tools, retrieved data, memory and history, and deciding what enters and leaves a limited context window over time. - [ReAct vs Plan-and-Execute](https://protologue.com/compare/react-vs-plan-and-execute.md): A ReAct agent decides one action at a time, reasoning after every observation about what to do next. A plan-and-execute agent writes a complete multi-step plan first and then carries out the steps, which uses fewer tokens and allows parallel steps but adapts less well unless it replans when something goes wrong. - [Agentic Workflow vs AI Agent](https://protologue.com/compare/agentic-workflow-vs-ai-agent.md): In an agentic workflow, model calls and tools follow code paths the developer defined in advance, such as a fixed chain or a router. In an AI agent, the model itself decides which steps and tools to use, in a loop, until the task is done, gaining flexibility at the cost of predictability and spend. - [Function Calling vs Model Context Protocol](https://protologue.com/compare/function-calling-vs-model-context-protocol.md): Function calling is the model capability of emitting a structured request to run a tool, which the application executes. The Model Context Protocol is an open standard for how applications expose tools, data and prompt templates to model clients, so one server can work with any compliant client; the tools it exposes are still invoked through function calling. - [Agent Skills vs Model Context Protocol](https://protologue.com/compare/agent-skills-vs-model-context-protocol.md): Agent skills are folders of instructions, scripts and reference files that teach an agent how to do a kind of task, loaded into context only when relevant. The Model Context Protocol connects an agent to external tools and data through servers. Skills supply procedures and knowledge, while MCP supplies capabilities, and the two are often used together. - [Structured Outputs vs Function Calling](https://protologue.com/compare/structured-outputs-vs-function-calling.md): Structured outputs make a model's response conform to a schema, typically JSON Schema, so downstream code can parse it. Function calling also produces structured data, but as a request to run a specific tool with arguments, after which the result goes back to the model and the conversation continues. - [Top-k Sampling vs Top-p Sampling](https://protologue.com/compare/top-k-vs-top-p-sampling.md): Top-k sampling always restricts each next token to the k most probable candidates. Top-p (nucleus) sampling instead keeps the smallest set of candidates whose probabilities add up to p, so the number of candidates grows when many tokens are plausible and shrinks when one is clearly best. - [Dense Retrieval vs BM25](https://protologue.com/compare/dense-retrieval-vs-bm25.md): BM25 ranks documents by the query's exact words, weighted by how rare each word is, and needs no training. Dense retrieval compares embedding vectors, so it matches meaning and paraphrases but can miss exact identifiers, names and codes. Production search often combines the two in hybrid search. - [Prompt Caching vs KV Cache](https://protologue.com/compare/prompt-caching-vs-kv-cache.md): The KV cache stores attention keys and values for the tokens already processed within a single request, so each new token does not reprocess the whole sequence. Prompt caching keeps that processed state for a shared prompt prefix across requests, so later calls that begin with exactly the same content are cheaper and faster. - [Reinforcement Learning from Human Feedback vs Direct Preference Optimization](https://protologue.com/compare/rlhf-vs-dpo.md): Both align a model with human preferences learned from comparisons of responses. RLHF first trains a separate reward model on those comparisons and then optimizes the language model against it with reinforcement learning, while direct preference optimization trains directly on preferred-versus-rejected pairs with a simple loss, with no reward model or reinforcement learning step. - [Low-Rank Adaptation vs Fine-Tuning](https://protologue.com/compare/lora-vs-fine-tuning.md): Full fine-tuning updates all of a model's weights on new training data. LoRA is a parameter-efficient form of fine-tuning that freezes the original weights and trains small low-rank matrices added to them, which needs far less memory and lets several task adapters share one base model. - [Self-Refine vs Reflexion](https://protologue.com/compare/self-refine-vs-reflexion.md): Self-Refine improves a single output within one task, with the model critiquing and revising its own draft until a stopping point. Reflexion works across attempts, having an agent write a reflection on why an attempt failed, often using signals such as test results, and store it in memory to guide the next try. - [Vibe Coding vs Spec-Driven Development](https://protologue.com/compare/vibe-coding-vs-spec-driven-development.md): Vibe coding builds software by describing what you want to an AI model and accepting the code, largely without reading it, with intent living only in the chat. Spec-driven development writes and refines a specification first, then has the agent derive a plan, tasks and code from it, keeping the specification as the source of truth while the developer reviews focused changes. - [Agentic Engineering vs Vibe Coding](https://protologue.com/compare/agentic-engineering-vs-vibe-coding.md): Both use AI models to write code. In vibe coding the developer accepts the generated code largely without reading or understanding it, which suits throwaway projects. In agentic engineering the developer works with coding agents but reviews their code and brings it up to the standard expected of production software. - [FlashAttention vs PagedAttention](https://protologue.com/compare/flashattention-vs-pagedattention.md): FlashAttention and PagedAttention both make transformer attention cheaper on GPUs but solve different problems. FlashAttention speeds up the attention computation itself by working in tiles in fast on-chip memory, mainly for training and long prompts, while PagedAttention manages the memory that holds each request's key-value cache during serving, storing it in non-contiguous blocks so that more requests fit in a batch. - [Dreaming vs Sleep-time Compute](https://protologue.com/compare/dreaming-vs-sleep-time-compute.md): Dreaming and sleep-time compute both use a model's idle time, but for different ends. Sleep-time compute reasons over a context before queries arrive, precomputing inferences so that later answers are faster and cheaper, while dreaming reviews an agent's past sessions and stored memories to merge duplicates, fix stale entries and record new insights for future sessions. ## Foundations - [Base Model](https://protologue.com/t/base-model.md): 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. - [Chat Template](https://protologue.com/t/chat-template.md): 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. - [Context Window](https://protologue.com/t/context-window.md): 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. - [Contrastive Decoding](https://protologue.com/t/contrastive-decoding.md): 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. - [Delimiters](https://protologue.com/t/delimiters.md): 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. - [Diffusion Language Model](https://protologue.com/t/diffusion-language-model.md): 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. - [Direct Preference Optimization](https://protologue.com/t/direct-preference-optimization.md): 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. - [Emergent Abilities](https://protologue.com/t/emergent-abilities.md): 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. - [Evol-Instruct](https://protologue.com/t/evol-instruct.md): 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. - [Few-shot Prompting](https://protologue.com/t/few-shot-prompting.md): 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. - [Fine-Tuning](https://protologue.com/t/fine-tuning.md): 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. - [FlashAttention](https://protologue.com/t/flashattention.md): 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. - [Flipped Interaction](https://protologue.com/t/flipped-interaction.md): 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. - [Foundation Model](https://protologue.com/t/foundation-model.md): 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. - [Greedy Decoding](https://protologue.com/t/greedy-decoding.md): Greedy decoding generates text by always choosing the single most probable next token, which makes output deterministic for a given prompt and model. - [Instruction Following](https://protologue.com/t/instruction-following.md): 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. - [Instruction Tuning](https://protologue.com/t/instruction-tuning.md): 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. - [Kahneman-Tversky Optimization](https://protologue.com/t/kahneman-tversky-optimization.md): 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. - [Knowledge Cutoff](https://protologue.com/t/knowledge-cutoff.md): 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. - [Knowledge Distillation](https://protologue.com/t/knowledge-distillation.md): 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. - [KV Cache](https://protologue.com/t/kv-cache.md): 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. - [Large Language Model](https://protologue.com/t/large-language-model.md): 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. - [Log Probabilities](https://protologue.com/t/log-probabilities.md): 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. - [Min-p Sampling](https://protologue.com/t/min-p-sampling.md): 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. - [Mixture of Experts](https://protologue.com/t/mixture-of-experts.md): 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. - [Multimodal Prompting](https://protologue.com/t/multimodal-prompting.md): 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. - [Odds Ratio Preference Optimization](https://protologue.com/t/odds-ratio-preference-optimization.md): 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. - [PagedAttention](https://protologue.com/t/pagedattention.md): 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. - [Prefill](https://protologue.com/t/prefill.md): 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. - [Prompt](https://protologue.com/t/prompt.md): 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. - [Prompt Engineering](https://protologue.com/t/prompt-engineering.md): 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. - [Prompt Template](https://protologue.com/t/prompt-template.md): 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. - [Reinforcement Learning from AI Feedback](https://protologue.com/t/rlaif.md): 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. - [Reinforcement Learning from Human Feedback](https://protologue.com/t/rlhf.md): 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. - [Reward Model](https://protologue.com/t/reward-model.md): 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. - [Role Prompting](https://protologue.com/t/role-prompting.md): 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. - [Rotary Position Embedding](https://protologue.com/t/rotary-position-embedding.md): 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. - [Self-Instruct](https://protologue.com/t/self-instruct.md): 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. - [Speculative Decoding](https://protologue.com/t/speculative-decoding.md): 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. - [System One Model](https://protologue.com/t/system-one-model.md): 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. - [System Prompt](https://protologue.com/t/system-prompt.md): 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. - [Temperature](https://protologue.com/t/temperature.md): 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. - [Token](https://protologue.com/t/token.md): 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. - [Top-k Sampling](https://protologue.com/t/top-k-sampling.md): Top-k sampling is a decoding method that, at each step, restricts sampling to the k most probable next tokens and renormalizes their probabilities. - [Top-p Sampling](https://protologue.com/t/top-p-sampling.md): 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. - [Zero-shot Prompting](https://protologue.com/t/zero-shot-prompting.md): Zero-shot prompting asks a model to perform a task from an instruction alone, without any worked examples in the prompt. ## Exemplars & In-Context Learning - [Active Prompting](https://protologue.com/t/active-prompting.md): 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. - [Demonstration Label Sensitivity](https://protologue.com/t/demonstration-label-sensitivity.md): 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. - [Exemplar Ordering](https://protologue.com/t/exemplar-ordering.md): 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. - [Exemplar Selection](https://protologue.com/t/exemplar-selection.md): 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. - [Few-shot Calibration](https://protologue.com/t/few-shot-calibration.md): 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. - [In-Context Learning](https://protologue.com/t/in-context-learning.md): 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. - [Many-shot In-Context Learning](https://protologue.com/t/many-shot-in-context-learning.md): Many-shot in-context learning places hundreds or thousands of demonstrations in a long-context prompt, often yielding large gains over few-shot prompting. ## Reasoning Elicitation - [Algorithm of Thoughts](https://protologue.com/t/algorithm-of-thoughts.md): 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. - [Analogical Prompting](https://protologue.com/t/analogical-prompting.md): 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. - [Automatic Chain-of-Thought](https://protologue.com/t/auto-cot.md): 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. - [Backward Chaining](https://protologue.com/t/backward-chaining.md): 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. - [Chain of Draft](https://protologue.com/t/chain-of-draft.md): 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. - [Chain-of-Thought Prompting](https://protologue.com/t/chain-of-thought.md): 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. - [Complexity-Based Prompting](https://protologue.com/t/complexity-based-prompting.md): 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. - [Contrastive Chain-of-Thought](https://protologue.com/t/contrastive-chain-of-thought.md): 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. - [Cumulative Reasoning](https://protologue.com/t/cumulative-reasoning.md): 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. - [Decomposed Prompting](https://protologue.com/t/decomposed-prompting.md): 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. - [Generated Knowledge Prompting](https://protologue.com/t/generated-knowledge-prompting.md): Generated knowledge prompting first asks the model to produce relevant facts about a question, then supplies those generated facts as context when answering it. - [Graph of Thoughts](https://protologue.com/t/graph-of-thoughts.md): 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. - [Least-to-Most Prompting](https://protologue.com/t/least-to-most-prompting.md): 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. - [Maieutic Prompting](https://protologue.com/t/maieutic-prompting.md): 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. - [Plan-and-Solve Prompting](https://protologue.com/t/plan-and-solve-prompting.md): 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. - [Program of Thoughts](https://protologue.com/t/program-of-thoughts.md): Program of Thoughts (PoT) prompting expresses numerical reasoning as executable code, separating computation, done by an interpreter, from reasoning, done by the model. - [Program-Aided Language Models](https://protologue.com/t/program-aided-language-models.md): 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. - [Rephrase and Respond](https://protologue.com/t/rephrase-and-respond.md): 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. - [Scratchpad](https://protologue.com/t/scratchpad.md): 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. - [Self-Ask](https://protologue.com/t/self-ask.md): 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. - [Self-Consistency](https://protologue.com/t/self-consistency.md): 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. - [Self-Discover](https://protologue.com/t/self-discover.md): 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. - [Skeleton-of-Thought](https://protologue.com/t/skeleton-of-thought.md): 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. - [Step-Back Prompting](https://protologue.com/t/step-back-prompting.md): 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. - [System 2 Attention](https://protologue.com/t/system-2-attention.md): 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. - [Thread of Thought](https://protologue.com/t/thread-of-thought.md): 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. - [Tree of Thoughts](https://protologue.com/t/tree-of-thoughts.md): 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. - [Universal Self-Consistency](https://protologue.com/t/universal-self-consistency.md): 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. - [Zero-shot Chain-of-Thought](https://protologue.com/t/zero-shot-chain-of-thought.md): 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. ## Self-Critique & Verification - [Best-of-N Sampling](https://protologue.com/t/best-of-n-sampling.md): Best-of-N sampling generates N candidate outputs and returns the one ranked highest by a verifier, reward model, or scoring function. - [Chain of Density](https://protologue.com/t/chain-of-density.md): 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. - [Chain-of-Verification](https://protologue.com/t/chain-of-verification.md): 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. - [Confidence Calibration](https://protologue.com/t/confidence-calibration.md): 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. - [CRITIC](https://protologue.com/t/critic.md): 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. - [LLM-as-a-Judge](https://protologue.com/t/llm-as-a-judge.md): 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. - [Mixture-of-Agents](https://protologue.com/t/mixture-of-agents.md): 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. - [Multi-Agent Debate](https://protologue.com/t/multi-agent-debate.md): Multi-agent debate has several model instances propose answers, read each other's reasoning, and revise their answers over multiple rounds until they converge. - [Process Reward Model](https://protologue.com/t/process-reward-model.md): 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. - [Reflexion](https://protologue.com/t/reflexion.md): 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. - [Self-Correction](https://protologue.com/t/self-correction.md): 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. - [Self-Refine](https://protologue.com/t/self-refine.md): 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. - [Self-Verification](https://protologue.com/t/self-verification.md): 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. - [SelfCheckGPT](https://protologue.com/t/selfcheckgpt.md): 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. ## Retrieval & Tool Use - [Active Retrieval](https://protologue.com/t/active-retrieval.md): 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. - [Agentic RAG](https://protologue.com/t/agentic-rag.md): 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. - [BM25](https://protologue.com/t/bm25.md): 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. - [Chain-of-Note](https://protologue.com/t/chain-of-note.md): 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. - [Chunking](https://protologue.com/t/chunking.md): 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. - [Citation Generation](https://protologue.com/t/citation-generation.md): 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. - [Code Execution Tool](https://protologue.com/t/code-execution-tool.md): 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. - [ColBERT](https://protologue.com/t/colbert.md): 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. - [Contextual Retrieval](https://protologue.com/t/contextual-retrieval.md): 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. - [Corrective RAG](https://protologue.com/t/corrective-rag.md): 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. - [Dense Retrieval](https://protologue.com/t/dense-retrieval.md): 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. - [Embedding](https://protologue.com/t/embedding.md): 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. - [Function Calling](https://protologue.com/t/function-calling.md): 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. - [GraphRAG](https://protologue.com/t/graphrag.md): 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. - [Hybrid Search](https://protologue.com/t/hybrid-search.md): 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. - [Hypothetical Document Embeddings](https://protologue.com/t/hypothetical-document-embeddings.md): 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. - [Model Context Protocol](https://protologue.com/t/model-context-protocol.md): 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. - [Programmatic Tool Calling](https://protologue.com/t/programmatic-tool-calling.md): 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. - [Query Rewriting](https://protologue.com/t/query-rewriting.md): 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. - [ReAct](https://protologue.com/t/react.md): 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. - [Reranking](https://protologue.com/t/reranking.md): 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. - [Retrieval-Augmented Generation](https://protologue.com/t/retrieval-augmented-generation.md): 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. - [Self-RAG](https://protologue.com/t/self-rag.md): 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. - [Structured Outputs](https://protologue.com/t/structured-outputs.md): 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. - [Tool Search](https://protologue.com/t/tool-search.md): 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. - [Toolformer](https://protologue.com/t/toolformer.md): 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. - [Vector Database](https://protologue.com/t/vector-database.md): 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. - [Web Search Tool](https://protologue.com/t/web-search-tool.md): 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. ## Agents & Orchestration - [Agent Memory](https://protologue.com/t/agent-memory.md): 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. - [Agent Skills](https://protologue.com/t/agent-skills.md): 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. - [Agent2Agent Protocol](https://protologue.com/t/agent2agent-protocol.md): 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. - [Agentic Engineering](https://protologue.com/t/agentic-engineering.md): 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. - [Agentic Workflow](https://protologue.com/t/agentic-workflow.md): 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. - [AI Agent](https://protologue.com/t/ai-agent.md): 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. - [Auto Mode](https://protologue.com/t/auto-mode.md): 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. - [Coding Agent](https://protologue.com/t/coding-agent.md): 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. - [Computer-Use Agent](https://protologue.com/t/computer-use-agent.md): 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. - [Context Compaction](https://protologue.com/t/context-compaction.md): 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. - [Context Engineering](https://protologue.com/t/context-engineering.md): 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. - [Dark Factory](https://protologue.com/t/dark-factory.md): 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. - [Dreaming](https://protologue.com/t/dreaming.md): 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. - [Evaluator-Optimizer](https://protologue.com/t/evaluator-optimizer.md): 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. - [Generative Agents](https://protologue.com/t/generative-agents.md): 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. - [Handoff](https://protologue.com/t/handoff.md): 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. - [Harness Engineering](https://protologue.com/t/harness-engineering.md): 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. - [Human-in-the-Loop](https://protologue.com/t/human-in-the-loop.md): 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. - [Meta-Prompting](https://protologue.com/t/meta-prompting.md): 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. - [Multi-Agent System](https://protologue.com/t/multi-agent-system.md): 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. - [Orchestrator-Workers](https://protologue.com/t/orchestrator-workers.md): 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. - [Parallelization](https://protologue.com/t/parallelization.md): 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. - [Plan-and-Execute](https://protologue.com/t/plan-and-execute.md): 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. - [Prompt Chaining](https://protologue.com/t/prompt-chaining.md): 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. - [Routing](https://protologue.com/t/routing.md): Routing is a workflow pattern that classifies an incoming request and directs it to a specialized prompt, tool, or model suited to that category. - [Spec-Driven Development](https://protologue.com/t/spec-driven-development.md): 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. - [Vibe Coding](https://protologue.com/t/vibe-coding.md): 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. ## Prompt Optimization - [Activation Steering](https://protologue.com/t/activation-steering.md): 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. - [Agentic Context Engineering](https://protologue.com/t/agentic-context-engineering.md): 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. - [Automatic Prompt Engineer](https://protologue.com/t/automatic-prompt-engineer.md): 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. - [Directional Stimulus Prompting](https://protologue.com/t/directional-stimulus-prompting.md): 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. - [DSPy](https://protologue.com/t/dspy.md): 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. - [Emotion Prompting](https://protologue.com/t/emotion-prompting.md): 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. - [EvoPrompt](https://protologue.com/t/evoprompt.md): 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. - [Low-Rank Adaptation](https://protologue.com/t/low-rank-adaptation.md): 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. - [Model Cascade](https://protologue.com/t/model-cascade.md): 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. - [Optimization by Prompting](https://protologue.com/t/opro.md): 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. - [Parameter-Efficient Fine-Tuning](https://protologue.com/t/parameter-efficient-fine-tuning.md): 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. - [Prefix Tuning](https://protologue.com/t/prefix-tuning.md): 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. - [Prompt Caching](https://protologue.com/t/prompt-caching.md): 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. - [Prompt Compression](https://protologue.com/t/prompt-compression.md): 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. - [Prompt Optimization](https://protologue.com/t/prompt-optimization.md): 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. - [Prompt Tuning](https://protologue.com/t/prompt-tuning.md): 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. - [Promptbreeder](https://protologue.com/t/promptbreeder.md): 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. - [ProTeGi](https://protologue.com/t/protegi.md): 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. - [QLoRA](https://protologue.com/t/qlora.md): 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. - [Quantization](https://protologue.com/t/quantization.md): 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. - [TextGrad](https://protologue.com/t/textgrad.md): 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. ## Reasoning Models & Test-Time Compute - [Budget Forcing](https://protologue.com/t/budget-forcing.md): 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. - [Chain-of-Thought Monitoring](https://protologue.com/t/chain-of-thought-monitoring.md): 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. - [Extended Thinking](https://protologue.com/t/extended-thinking.md): 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. - [Group Relative Policy Optimization](https://protologue.com/t/group-relative-policy-optimization.md): 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. - [Interleaved Thinking](https://protologue.com/t/interleaved-thinking.md): 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. - [Reasoning Model](https://protologue.com/t/reasoning-model.md): 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. - [Recursive Language Model](https://protologue.com/t/recursive-language-model.md): 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. - [Reinforcement Learning with Verifiable Rewards](https://protologue.com/t/rlvr.md): 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. - [Self-Taught Reasoner](https://protologue.com/t/self-taught-reasoner.md): 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. - [Sleep-time Compute](https://protologue.com/t/sleep-time-compute.md): 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. - [Test-Time Compute Scaling](https://protologue.com/t/test-time-compute-scaling.md): 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. ## Security & Adversarial Prompting - [Adversarial Suffix](https://protologue.com/t/adversarial-suffix.md): 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. - [Constitutional AI](https://protologue.com/t/constitutional-ai.md): 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. - [Constitutional Classifiers](https://protologue.com/t/constitutional-classifiers.md): 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. - [Crescendo Attack](https://protologue.com/t/crescendo-attack.md): 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. - [Deliberative Alignment](https://protologue.com/t/deliberative-alignment.md): 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. - [Dual LLM Pattern](https://protologue.com/t/dual-llm-pattern.md): 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. - [Excessive Agency](https://protologue.com/t/excessive-agency.md): 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. - [Guardrails](https://protologue.com/t/guardrails.md): 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. - [Indirect Prompt Injection](https://protologue.com/t/indirect-prompt-injection.md): 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. - [Instruction Hierarchy](https://protologue.com/t/instruction-hierarchy.md): 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. - [Jailbreak](https://protologue.com/t/jailbreak.md): 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. - [Lethal Trifecta](https://protologue.com/t/lethal-trifecta.md): 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. - [Many-shot Jailbreaking](https://protologue.com/t/many-shot-jailbreaking.md): 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. - [PAIR](https://protologue.com/t/pair-attack.md): 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. - [Prompt Injection](https://protologue.com/t/prompt-injection.md): 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. - [Prompt Leaking](https://protologue.com/t/prompt-leaking.md): Prompt leaking is an attack that tricks a model into revealing its hidden system prompt or other confidential instructions. - [Red Teaming](https://protologue.com/t/red-teaming.md): 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. - [Spotlighting](https://protologue.com/t/spotlighting.md): 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. - [Tool Poisoning](https://protologue.com/t/tool-poisoning.md): 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. ## Failure Modes & Evaluation - [Alignment Faking](https://protologue.com/t/alignment-faking.md): 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. - [Context Rot](https://protologue.com/t/context-rot.md): 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. - [Data Contamination](https://protologue.com/t/data-contamination.md): 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. - [Emergent Misalignment](https://protologue.com/t/emergent-misalignment.md): 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. - [Evals](https://protologue.com/t/evals.md): 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. - [Evaluation Awareness](https://protologue.com/t/evaluation-awareness.md): 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. - [Hallucination](https://protologue.com/t/hallucination.md): 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. - [Irrelevant Context Distraction](https://protologue.com/t/irrelevant-context-distraction.md): 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. - [LLM Judge Bias](https://protologue.com/t/llm-judge-bias.md): 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). - [Lost in the Middle](https://protologue.com/t/lost-in-the-middle.md): 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. - [Model Collapse](https://protologue.com/t/model-collapse.md): 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. - [Multi-Turn Degradation](https://protologue.com/t/multi-turn-degradation.md): 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. - [Needle in a Haystack](https://protologue.com/t/needle-in-a-haystack.md): 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. - [Over-Refusal](https://protologue.com/t/over-refusal.md): 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. - [Overthinking](https://protologue.com/t/overthinking.md): 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. - [pass@k](https://protologue.com/t/pass-at-k.md): 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. - [Prompt Sensitivity](https://protologue.com/t/prompt-sensitivity.md): 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. - [RAG Evaluation](https://protologue.com/t/rag-evaluation.md): 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. - [Reversal Curse](https://protologue.com/t/reversal-curse.md): 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. - [Reward Hacking](https://protologue.com/t/reward-hacking.md): 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. - [Sandbagging](https://protologue.com/t/sandbagging.md): 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. - [Sycophancy](https://protologue.com/t/sycophancy.md): 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. - [Text Degeneration](https://protologue.com/t/text-degeneration.md): 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. - [Unfaithful Chain-of-Thought](https://protologue.com/t/unfaithful-chain-of-thought.md): 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. ## Benchmarks - [AIME](https://protologue.com/t/aime.md): 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. - [ARC-AGI](https://protologue.com/t/arc-agi.md): 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. - [Benchmark](https://protologue.com/t/benchmark.md): 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. - [Benchmark Saturation](https://protologue.com/t/benchmark-saturation.md): 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. - [BIG-Bench Hard](https://protologue.com/t/big-bench-hard.md): 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. - [BrowseComp](https://protologue.com/t/browsecomp.md): 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. - [Chatbot Arena](https://protologue.com/t/chatbot-arena.md): 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. - [GAIA](https://protologue.com/t/gaia.md): 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. - [GPQA](https://protologue.com/t/gpqa.md): 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. - [GSM8K](https://protologue.com/t/gsm8k.md): 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. - [HellaSwag](https://protologue.com/t/hellaswag.md): 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. - [HumanEval](https://protologue.com/t/humaneval.md): 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. - [Humanity's Last Exam](https://protologue.com/t/humanitys-last-exam.md): 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. - [IFEval](https://protologue.com/t/ifeval.md): 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. - [LiveCodeBench](https://protologue.com/t/livecodebench.md): 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. - [MATH](https://protologue.com/t/math-benchmark.md): 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. - [MMLU](https://protologue.com/t/mmlu.md): 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. - [MMLU-Pro](https://protologue.com/t/mmlu-pro.md): 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. - [MMMU](https://protologue.com/t/mmmu.md): 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. - [MT-Bench](https://protologue.com/t/mt-bench.md): 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. - [OSWorld](https://protologue.com/t/osworld.md): 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. - [RULER](https://protologue.com/t/ruler.md): 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. - [SimpleQA](https://protologue.com/t/simpleqa.md): 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. - [SWE-bench](https://protologue.com/t/swe-bench.md): 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. - [Terminal-Bench](https://protologue.com/t/terminal-bench.md): 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. - [TruthfulQA](https://protologue.com/t/truthfulqa.md): 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. - [τ-bench](https://protologue.com/t/tau-bench.md): τ-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. ## For agents - [MCP server](https://protologue.com/mcp/): read-only Model Context Protocol endpoint at https://mcp.protologue.com/mcp with tools search_terms, get_term, get_related and list_categories ## Proposed terms (not part of the taxonomy) Pages under https://protologue.com/proposed/ are terms coined by Protologue itself and not yet in general use. They have no PTL identifier and should not be presented as established terminology. ## Optional - [Data downloads](https://protologue.com/data/): JSON, CSV, SKOS JSON-LD and Turtle - [Hugging Face dataset](https://huggingface.co/datasets/franklinpolymathic/protologue): the same data for the datasets library - [Kaggle dataset](https://www.kaggle.com/datasets/protologue/protologue): the same data for Kaggle notebooks - [Zenodo archive](https://doi.org/10.5281/zenodo.23304106): DOI 10.5281/zenodo.23304106, cite this for the whole taxonomy - [About and citation](https://protologue.com/about/): editorial method, identifiers, license