Prompting & Reasoning

48 beliefs (48 IN, 0 OUT)

The "Prompting & Reasoning" topic covers the full arc of how language models are directed to perform reasoning tasks, from the foundational chain-of-thought technique proposed by Wei et al. at Google Brain (chain-of-thought-wei-neurips-2022) through its zero-shot variant triggered by the phrase "Let's think step by step" (zero-shot-cot-phrase-let-think-step-by-step, kojima-2022-zero-shot-cot-prompt), to the progressive addition of search structure via self-consistency majority voting (self-consistency-multiple-cot-majority-vote) and tree-of-thoughts branching with backtracking (tree-of-thought-generalizes-cot, tree-of-thoughts-neurips-2023). This evolution from linear to branching reasoning is explicitly tracked as a single trajectory (structured-reasoning-prompting-evolved-from-linear-to-branching). Several beliefs pin down hard empirical constraints on these techniques: chain-of-thought only improves performance at roughly 62 billion parameters and above, with smaller models doing better on direct answers (cot-prompting-effective-only-at-62b-plus-parameters, cot-prompting-requires-62b-plus-params), and the few-shot variant requires at least five worked examples with intermediate steps (cot-prompting-requires-min-five-few-shot-examples). The field's history stretches back to a 1999 rule-based Intelligent Filling Manager, through the 2018 first multi-task NLP model, to the November 2022 ChatGPT release that cemented prompt engineering as a business skill (prompt-engineering-history-milestones-1999-2022), and the term was named Oxford Word of the Year for 2023 (prompt-engineering-oxford-word-of-year-2023).

A central tension in the knowledge base is that prompting is simultaneously automatable and deeply fragile. On one hand, LLMs can generate and select their own prompts at human-level quality (ape-llms-human-level-prompt-engineers), and a suite of automated optimizers has emerged: GEPA uses reflective evolutionary search with Pareto-based candidate selection (gepa-pareto-evolutionary-prompt-optimizer, gepa-reflective-prompt-evolution-2025), MIPRO makes incremental per-module prompt changes retained only when they improve a downstream metric (mipro-incremental-module-prompt-optimization), DSPy compiles declarative LM calls into self-improving pipelines (dspy-declarative-lm-pipeline-compiler), and Auto-CoT clusters a question library to build diverse demonstration sets (auto-cot-bert-clustering-diverse-demonstrations). On the other hand, LLM accuracy shifts by over 40 percentage points from merely reordering few-shot examples and up to 76 points from formatting changes (prompt-sensitivity-40-percent-accuracy-shift, prompt-sensitivity-reorder-40pct-format-76pts), strategies do not transfer reliably across models or even minor reformulations (prompt-engineering-model-specific), and this sensitivity persists across model sizes, shot counts, and instruction tuning, making it an intrinsic property rather than a fixable deficiency (prompt-sensitivity-is-fundamental-not-solvable-by-scale). The knowledge base captures this as a paradox: prompt optimization must be continuous, model-specific, and potentially self-maintaining rather than a one-time engineering effort (prompt-optimization-is-paradoxically-automatable-yet-fragile). A separate family of beliefs addresses parameter-efficient prompting that learns continuous soft-token vectors via gradient descent while freezing base weights, as in prompt tuning (prompt-tuning-soft-tokens-backprop) and prefix-tuning (soft-prompting-gradient-descent-continuous-vectors), offering a complementary axis to discrete textual prompting. MeLLo extends this by operating purely through prompting and retrieval with no gradient updates or weight access, making it applicable to black-box models (mello-requires-no-weight-access).

Several beliefs extend the topic into security, systems, and meta-disciplinary concerns. Prompt injection exploits the model's structural inability to distinguish developer instructions from user inputs, drawn by analogy to SQL injection and XSS (prompt-injection-exploits-instruction-ambiguity), and the knowledge base notes a deeper parallel: both compiler lexers and LLM inference face a fundamental disambiguation problem where a processing layer cannot resolve its inputs without higher-level semantic context it structurally lacks (disambiguation-requires-semantic-context-across-processing-paradigms). In chat-format systems, system prompts carry higher authority than user messages (system-prompt-higher-authority-than-user), which is precisely the asymmetry injection attacks target. The broader discipline of context engineering is framed as the successor to prompt engineering, managing the full context window including system instructions, metadata, API tools, and conversation summaries with practices like token budgeting and provenance tagging, especially for agentic applications from 2025 onward (context-engineering-successor-to-prompt-engineering, context-engineering-broader-than-prompt-engineering). Resource consumption is quantified across three independent dimensions—memory at 2 bytes per float16 parameter, compute at 6 FLOPs per parameter per token for training and 1-2 for inference, and energy ranging from roughly 0.002 Wh for classification to 2.91 Wh for image generation (llm-resource-consumption-quantifiable-across-three-dimensions, energy-per-prompt-classification-vs-generation-vs-image)—and disaggregated inference separates the compute-bound prefill phase from the memory-bound decode phase onto specialized hardware (disaggregated-inference-prefill-compute-bound-decode-memory-bound). A 2024 survey found over 50 text-based prompting techniques, 40 multimodal variants, and 33 distinct terms, underscoring a significant lack of standardization in the field (prompting-technique-survey-2024-lack-standardization, prompting-techniques-survey-50-text-40-multimodal). Finally, a small cluster of beliefs touches on memorization and faithfulness: GPT-2 models contain 1 to 7 percent exact duplicate outputs from training data that can be triggered by repetition prompting (gpt2-memorization-1-to-7-pct-exact-duplicates), the Counter-memory Construction prompt explicitly permits fabrication of realistic fake content (counter-memory-construction-permits-fabrication), and prompting-based faithfulness methods are restricted to large instruction-finetuned models and do not generalize to small or open-source ones (prompting-faithfulness-limited-instruction-tuned). The knowledge base also includes methodological beliefs about isolating causal head contributions via shuffled-label prompts (cma-shuffled-label-prompt-isolation) and reducing feature noise by requiring activity on all positive prompts and inactivity on all negative ones (multi-prompt-filtering-logic), and notes that chain-of-thought slightly narrows the generation gap from 0.60 to 0.52, suggesting structured generation is less model-specific than free-form generation (chain-of-thought-reduces-generation-gap-from-060-to-052). All beliefs in this group are marked IN; none have been retracted, so the knowledge base currently presents a fully coherent, if dense, picture of the prompting landscape without internal contradictions or withdrawn claims.