passdrill
AI & LLM Engineering · Prompt Engineering · Card 036/039 medium

A team wants the reasoning-boosting benefit of few-shot chain-of-thought prompting on a new task, but has no labeled exemplars available and does not want to spend engineering effort hand-writing or retrieving demonstrations for every new problem type. Yasunaga et al. (2023), "Large Language Models as Analogical Reasoners," propose Analogical Prompting to address this. What does the model do under this method, and what does it avoid needing?

  1. The model retrieves the single most similar labeled example from a large curated exemplar database using a nearest-neighbor embedding search, then copies that example's reasoning structure exactly
  2. The model is fine-tuned on a small set of analogous problems drawn from a related domain before being asked to solve the target problem
  3. The model asks a human expert, via an interactive clarification step, to supply one worked analogy before attempting to solve the problem
  4. The model is prompted to recall or self-generate relevant exemplars and, where useful, relevant background knowledge related to the given problem before solving it, entirely on its own; the method avoids needing any labeled exemplars to be hand-written or retrieved from an external source
Next card → Shuffle