Technique · 6 studies

Analogical prompting: what the research shows

Analogical prompting has the model work through a related problem first: one it invents on the spot, a past case matched by structure, or a twin from a distant field. Close analogies improved accuracy on reasoning tasks; distant ones broke the model out of stock answers.

Also called: self-generated examples, solve a similar problem first, cross-domain analogies

What analogical prompting is

Analogical prompting asks the model to work through a related problem before, or instead of, attacking yours head-on. The related problem can be one the model invents and solves on the spot, a past case matched by its abstract structure, or a structural twin from a distant field whose known solution can be transferred.

The studies use it for two different goals, and the recipe differs between them:

  • Accuracy. A nearby analogy warms the model up so it solves your problem with a better reasoning pattern. The analogy is close in topic and structure.
  • Novelty. A distant analogy pulls the model away from the stock answers it gives to familiar problems. The analogy is deliberately far from your field.

Both rest on the same observation: models hold knowledge from many domains and are good at spotting structural similarity when asked to, but they rarely use it unprompted. They match on surface vocabulary instead.

Why a self-made analogy improves accuracy

For accuracy, the key finding is that the act of producing the analogy matters more than the analogy itself. In Integrated Prompting, a KAIST team asked models to invent and solve a related problem, then solve the test question, all in one response. On GSM8K, GPT-4o scored 54.6% this way, against 50.5% when the very same example was pasted in as ready-made context and 49.9% with no example. Attention analysis showed the model looked back at its own fresh example 2–3 times more often than at a pasted one. This is the main difference from ordinary few-shot prompting: a self-made warm-up is used, someone else's text can be skipped.

Matching by structure rather than topic is the second mechanism. Schema-activated in-context learning first describes the task as an abstract schema (broad category, refinement, specific scope, goal), retrieves a past case with a similar schema, then adapts it. On PhD-level chemistry questions, GPT-4o mini went from 68.8% with a near-identical worked example to 94.6% with the schema step, because without it the model treated the example as text to copy rather than a pattern to apply. HCoT applies the same logic with a ready catalog of 6–16 known patterns: abstract the situation, match it to a pattern, then refine for the specifics.

Distant analogies for new ideas

For novelty, the problem being solved is mode collapse. In an analogical reasoning study from Stanford, three top models asked for 5 solutions to each of 50 scientific problems produced only 7-8 unique fields out of 150 attempts. Simply saying "look in another field" barely helped. What worked was two separate requests: first extract the problem's objects and relations and map them onto a distant field, then search that field for a solution and transfer it. In four biomedical problems the transferred solutions beat published baselines, one by 13x on a distributional metric; the model itself rated the ideas as reasonable in 67% of cases, so filtering stays with you.

Two variations make the analogy easier to find:

  • Strip the domain words. The domain-stripped fingerprint method has the model rewrite the problem with no industry vocabulary and no method names, only what is estimated, from what objects, and how. The bare skeleton exposes twins such as the same estimation problem appearing under different names in control theory and pharmacology.
  • Combine or mutate. Universe of Thoughts breaks solutions from analogous fields into components and recombines them, and for more radical ideas removes or replaces one of the problem's hidden rules before searching.

One request or two, and the limits

The two goals lead to opposite advice on structure, and the studies say so directly. The accuracy study insists on one request, because the warm-up only helps while it is fresh in the same response; copying the example into a separate prompt is a different method that did not work. The novelty study insists on two requests, because finding the analogy and solving inside it are different modes that perform worse when crammed together. Both are consistent with their own goals: keep it in one pass when you want a better answer to a well-defined problem, split it when you want ideas outside the usual set.

Limits reported by the authors:

  • Gains shrink on simple questions and on fuzzy creative requests, where the warm-up is as vague as the task; asking for step-by-step reasoning already captures part of the effect.
  • A partly fitting analogy can hurt. In the schema study, moderately similar examples sometimes pushed accuracy below the plain one-example prompt, because the model applied a schema that only half matched.
  • Distant analogies can be pretty but empty. Demand explicit object mappings and shared relations, and check that the transferred idea actually applies.
  • Domain stripping only helps if a twin exists somewhere; for a truly new problem it returns a guess.

What the studies measured

StudyLab scoreFindingEffect
Integrated Prompting: Solve a Similar Problem First, Then YoursJan 26, 2026 86 Inventing and solving a related problem in the same response lifted GPT-4o on GSM8K to 54.6%, versus 50.5% for the same example pasted in and 49.9% zero-shot. Helps
SA-ICL (Schema-Activated In-Context Learning): learning by analogy by activating mental schemasOct 14, 2025 83 Adding an explicit task-schema step raised GPT-4o mini on chemistry questions from 68.8% with a near-identical example to 94.6%; moderately similar examples could hurt. Helps
Analogical Reasoning (AR): Curing LLM "Tunnel Vision" by Borrowing Solutions from Other FieldsMay 11, 2026 91 Direct requests yielded only 7-8 unique fields out of 150 attempts; a two-step structural analogy produced solutions that beat published baselines on four biomedical problems. Helps
Domain-Stripped Fingerprint: how to find someone else's ready-made solution to your problem in another fieldSep 7, 2026 76 Rewriting a problem without field vocabulary or method names let plain text search find structural twins in other fields better than neural embeddings. Helps
HCoT: A Three-Step Prompt with a Solution Catalog for Hard ProblemsApr 14, 2026 80 Matching a problem against a catalog of 6–16 known patterns before refining gave more specific diagnoses than open-ended reasoning. Helps
Universe of Thoughts (UoT): Creative Thinking for LLMs Through Analogies and Rule MutationNov 25, 2025 83 Borrowing and recombining solution components from analogous domains, or mutating a problem's rules, produced less typical solutions for ill-defined problems. Helps

Prompts to copy

Solve a similar problem first (one request)

First, come up with a problem similar to mine on the topic "{topic}" and solve it 
step by step. Show your reasoning.
Now use the same approach and solve my problem:
{your problem}

From: Integrated Prompting: Solve a Similar Problem First, Then Yours

Find a structural analogy in a distant field (request 1 of 2)

Problem: {one-paragraph problem description}
Do a structural analysis:
PROBLEM OBJECTS:
List the key entities in the problem (5-7 objects).
RELATIONS:
Describe how the objects interact (4-6 relations).
ANALOGY:
Find a structural analogy in a field as far as possible from {original problem domain}.
Format the analogy like this:
Analogy field: [name of the field]
Object mappings:
- {object from the problem} ↔ [object from the analogy]
- {object from the problem} ↔ [object from the analogy]
(at least {number_of_mappings} mappings)
Shared relations:
- [a relation that holds in both fields]
- [a relation that holds in both fields]

From: Analogical Reasoning (AR): Curing LLM "Tunnel Vision" by Borrowing Solutions from Other Fields

Strip the domain to find a twin

Describe the problem in terms of what is computed/estimated and how. 
Don't use words from the {industry} industry or the names of known 
methods ({method_examples}). Describe only: 
- which objects are involved,
- which quantity is estimated or maximized,
- what the logic/structure of the solution procedure is.
My problem: {problem description}
After the description: suggest 3-4 fields far from {industry} 
that solve a problem with the same structure under a different name. 
For each one, briefly say what the method is called there.

From: Domain-Stripped Fingerprint: how to find someone else's ready-made solution to your problem in another field

Problems it helps with:

Questions people ask

How is analogical prompting different from few-shot prompting?

In few-shot prompting you supply the examples. In analogical prompting the model generates or retrieves the related case itself. One study found the same example helped when the model created it in the same response, but barely beat zero-shot when pasted in as ready-made context.

Should the analogy come from a close or a distant field?

It depends on the goal. For a more accurate answer to a well-defined problem, use a close analogy and solve it in the same request. For unconventional ideas, pick a deliberately distant field and work in two requests: map the analogy first, then search it for solutions.

Can a bad analogy make results worse?

Yes. In the schema study, examples that only partly matched the task sometimes lowered accuracy below a plain one-example prompt. Distant analogies can also look clever but lack real structural overlap, so ask for explicit object mappings and check whether the idea transfers.