Apply to my task
arXiv:2602.15863 ★ 86 Jan 26, 2026

Integrated Prompting: Solve a Similar Problem First, Then Yours

Key result

Same example, two different results. Paste it in ready-made and the model mostly ignores it. Ask the model to generate it right in the same prompt and accuracy goes up. Integrated Prompting lets you dig deeper into hard problems without ready-made examples or fine-tuning. The trick: everything in one request. The model first invents a similar problem and solves it, then takes on yours. Freshly created reasoning sits "close by" in the context. The model leans on it 2–3 times more actively than on someone else's text. A warm-up from its own solution works; a copied example barely does.

01

TL;DR

Integrated Prompting is a technique where, inside a single prompt, the model first invents a problem similar to yours, solves it, and only then tackles yours. Not two separate requests, not a pasted-in ready-made example: the model creates and solves the example in one continuous stream.

The conventional wisdom was that a model performs better when it sees an example before the task, few-shot style. Makes sense. But this research blows that logic up: take the exact same example and paste it in as separate context (without the process of creating it), and the result is barely better than nothing. It's not about the example. It's about the fact that the model generated it itself, right here and now.

The reason lies in how the model allocates attention. In the Integrated setup, it actively looks back at its freshly created example while solving the main task. In the Decoupled setup, it ignores the example and goes straight at the question, just like zero-shot. Creating the example is a warm-up before the real solve.

Want this for your own case? Apply this study to your task: AI adapts its method to what you are working on and writes the prompt.

02

Method Blueprint

Everything in ONE prompt:

STEP 1: The model invents a similar problem and solves it
        → we see on-topic reasoning

STEP 2: The model immediately solves your problem
        → using the warmed-up thinking from step 1

Both steps are one request. Don't copy the example into a separate prompt. That's a different method, and it doesn't work.

03

Example in Action

Task: Investor Mark Davis is listening to a pitch: "We want to launch a subscription service for legal templates aimed at freelancers and small businesses in the US, $19/month." He needs a quick read: does this business model have structural weaknesses that aren't obvious at first glance?

Prompt:

First, analyze a similar case: a subscription service for HR document templates 
for small businesses, $15/month. What structural weaknesses does a 
business model like this have? Go step by step: unit economics, churn, 
competition, barriers.

Now use the same approach to analyze my case: a subscription service 
for legal templates for freelancers and small businesses, $19/month. 
What could go wrong here?

Result: The model runs two rounds of analysis back to back. In the first, it builds a line of reasoning about the similar business model: churn, CAC, barriers to entry. In the second, it applies that same structure to your case, but now it's "warmed up" with ready-made categories of analysis. The answer to your problem will be more structured and deeper than if you'd asked directly.

04

Why It Works

An LLM doesn't think linearly: it generates token after token, and every next token depends on all the preceding context. When the prompt contains only the question, the model takes the shortcut to the answer.

When the model first solves a similar problem, it does something important: it builds a reasoning pattern in context, right now. That freshly built pattern sits "close by" in memory, and the model actively leans on it. Attention analysis showed that in Integrated mode the model looks at its own example 2–3 times more often than in Decoupled mode.

Why doesn't a ready-made example (Decoupled) give the same effect? Because a ready-made example is someone else's text in the context. It can be ignored. But an example you just created and solved is your own recent reasoning. The model relies on it automatically.

Control levers: - Add "intent": say explicitly why the example is being created: "Come up with a similar problem so you can better understand the structure of mine". This boosts accuracy even further - Make the example harder: if your task is big, ask for a more complex analog, not a simplified one - Specify the domain: the closer the similar problem is in topic, the closer the warm-up is to your actual task

05

Prompt Template

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}

Placeholders: - {topic}: the field or type of task, e.g. "risk analysis", "building an argument", "reviewing contract terms" - {your problem}: your specific question or situation, in full


🚀 Quick start: paste this into the chat:

Here is an Integrated Prompting template. Adapt it to my task: [your task].
Ask me questions to fill in the fields.

[paste the template above]

The LLM will ask about the topic and the specific task, because it needs to know what similar problem to generate as a warm-up. It will take the pattern from the template and adapt it to your context.

06

Limitations

⚠️ Works worse on fuzzy tasks: If the task is subjective ("make it sound nice", "come up with something interesting"), the warm-up will be fuzzy too. The method shines where there's structure: analysis, arguments, calculations, plans.

⚠️ Chain-of-Thought partly overlaps the effect: If you're already asking the model to "think step by step" (CoT), the gap between Integrated and a regular prompt narrows. The method still adds a boost, just a smaller one.

⚠️ The original task must be non-trivial: On simple questions the effect is minimal. The harder the task, the bigger the difference.

⚠️ More tokens: You add a whole block of similar-problem generation. Fine for short sessions; keep it in mind for very long contexts.

07

How They Studied It

The idea was simple: figure out what actually helps, the example as text or the process of creating it. A team from KAIST compared three prompting variants on math problems (MATH and GSM8K): no examples, an example created on the spot (Integrated), and the same example pasted in separately (Decoupled). If Integrated = Decoupled, the example is what helps. If Integrated > Decoupled ≈ Zero-shot, the process is what helps.

The result was unambiguous: five different models, two datasets, the same picture everywhere. GPT-4O with Integrated scored 54.6% on GSM8K versus 50.5% for Decoupled and 49.9% for Zero-shot. In other words, Decoupled is practically no better than nothing, even though it uses the exact same example.

The researchers went further and swapped the self-generated example for random characters ("dummy"). Even with garbage content, Integrated edged out Zero-shot slightly, meaning part of the effect comes from the simple act of generating text before the task. But a meaningful example gives a noticeably bigger boost. They also tried explicitly repeating the example right in the prompt before the task (Repeat): better than Decoupled, but worse than Integrated. Where the example sits matters, but the process of creating it matters more.

The most surprising part was the attention analysis on the open LLaMA model. It turned out that with Integrated, the model actively looks at its own example in the lower layers (0–12, where lexical and syntactic processing happens) and in the upper layers (23–31, where decisions get made). In the middle layers the difference disappears. The upper layers are the ones responsible for the final reasoning, and that's exactly where Integrated loads the example as an anchor point.

08

Original from the Paper

The authors moved the full prompts to Appendix B of the original paper (not included in the publication). Based on the description in the text, the Integrated structure looks like this:

[User]: Generate a related math problem about {topic} and solve it step by step.
Then solve the following test question: {test question}

[Assistant]: [generates related problem] → [solves it] → [solves test question]

Context: The authors tested on competition math problems (MATH) and grade-school arithmetic word problems (GSM8K). The key point: Integrated = one request, both steps in a single model response.

09

Adaptations and Extrapolations

💡 Adaptation: add generation "intent"

From Table 5 of the paper: if you explicitly say why the similar example is being created, accuracy jumps sharply. Without intent, Integrated gives 35.19%; with intent, 45.50% (+10 pp on the same dataset).

Come up with a problem similar to mine on the topic "{topic}", so you can understand 
the structure of a similar problem and work out a method for solving it. Solve it 
step by step and show your reasoning.

Now, building on that method, solve my problem:
{your problem}

🔧 Technique: several similar problems → a deeper warm-up

From the multi-shot table: with 2 examples in Integrated, accuracy goes up (35.19% → 38.93%). With 4, it's also above baseline (38.24%). With Decoupled it's the opposite: adding examples doesn't help.

Come up with two problems similar to mine on the topic "{topic}". 
Solve each one step by step.

Now solve my problem:
{your problem}

When to use it: the task is especially hard or unusual, and a single warm-up may not be enough.


🔧 Technique: Integrated + Chain-of-Thought

The authors tested CoT separately: combined with Integrated, the boost holds up, though it's smaller. You can stack them:

Come up with a problem similar to mine on the topic "{topic}". 
Solve it step by step, explaining each decision.

Now solve my problem using the same method, step by step:
{your problem}
10

Resources

Paper: Not the Example, but the Process: How Self-Generated Examples Enhance LLM Reasoning (2025)

Authors: Daehoon Gwak, Minseo Jung, Junwoo Park, Minho Park, ChaeHun Park, Junha Hyung, Jaegul Choo

Organizations: KAIST AI, Applied Artificial Intelligence — Sungkyunkwan University

Contact: [email protected], [email protected]

Research digest

Key result

Same example, two different results. Paste it in ready-made and the model mostly ignores it. Ask the model to generate it right in the same prompt and accuracy goes up. Integrated Prompting lets you dig deeper into hard problems without ready-made examples or fine-tuning. The trick: everything in one request. The model first invents a similar problem and solves it, then takes on yours. Freshly created reasoning sits "close by" in the context. The model leans on it 2–3 times more actively than on someone else's text. A warm-up from its own solution works; a copied example barely does.

Principle

Don't paste in a ready-made example; ask the model to create one right here. It's the difference between reading someone else's notes and writing your own. Write the notes yourself and the structure sticks. Read someone else's and it's gone by the next paragraph. Models work the same way: freshly created reasoning actively participates in the next steps, while an external example is just background noise that can be skipped. The core of the method: generating a similar problem isn't a preamble, it's a warm-up for thinking. Then the model tackles your problem already "in the zone".

Why it works

An LLM generates tokens one at a time. Each next token "looks" at the previous context, but not evenly. Analysis of the attention mechanism showed that in Integrated mode the model refers to its own example 2–3 times more often than when the example is pasted in separately. A similar problem it just solved is a fresh reasoning pattern. Ready-made text in the context is just wallpaper. That's exactly why moving the same example into a separate prompt and expecting the same effect doesn't work. The value isn't in the example's content; it's in the process of creating it right now.

When to apply

Analytical tasks → breaking down business models, risk assessment, legal analysis, especially when you need structured reasoning rather than a surface-level list. Works well for building arguments, planning calculations, reviewing contract terms, and evaluating strategic decisions. The effect grows with difficulty: the harder the task, the bigger the difference. NOT a fit for: fuzzy creative tasks ("write something interesting" means the warm-up will be fuzzy too) and simple questions with obvious answers, where the method adds nothing over a regular prompt.

Mini recipe

1. Pick the warm-up topic: think about what kind of reasoning your task needs: risk analysis, structural breakdown, building an argument. That becomes the topic of the similar problem. 2. Frame the similar problem: it should be from the same field but not identical to yours. The closer the match in type of thinking, the better the warm-up. 3. Put it all in one prompt: first the block with the similar problem and a request to solve it step by step, then your problem. Two blocks, one request. 4. Don't split it into two chats: it's the continuous stream of generation that creates the effect. Splitting it into two requests means going back to the Decoupled approach, which doesn't work. Template: `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}`

Examples

[BAD]: `Analyze the risks of this business model: a subscription for legal templates for freelancers, $19/month` [GOOD]: `First, analyze a similar case: a subscription for HR document templates for small businesses, $15/month. Walk through the structure: per-customer economics, churn, competition, barriers to entry, step by step. Now use the same structure for my case: a subscription for legal templates for freelancers, $19/month. What could go wrong here?` Result of the second prompt: the model has already built its categories of analysis on the similar problem and applies them to yours with a ready-made structure. The answer will be deeper than with a direct question.

In plain words

Here's the deal: models screw up not because they're dumb but because they're lazy. They try to hand you an answer via the shortest path, skipping important logical links. Integrated Prompting makes the model "warm up" first on a similar problem it invents for itself right in the middle of answering. This isn't pasting in a ready-made example; it's a continuous stream of generation where the model first models the problem, solves it, and only then moves on to your question, using that freshly built logic as rails.

It's like asking a seasoned engineer to fix a complicated machine, and before he climbs inside, he talks it through out loud: "Okay, this looks like that pump job last year. We checked the pressure first, then the valve, and eventually found a clog." By walking through an analogous scenario, he tunes his brain to the right wavelength. Without that "self-check" he might just take a stab in the dark; with it, his odds of an accurate diagnosis go way up.

Technically, this is the magic of context: an LLM generates tokens one by one, and every new step leans on everything written above it. When the model itself describes how to solve an analogous problem, it creates a logical template for itself. Ask an investor about the weak spots of a $19 subscription and you might get a generic answer. But make them break down a competitor's case first, and they'll inevitably drag the structural flaws into the light, like customer acquisition cost or thin margins, which they would otherwise simply "forget" to mention.

The principle is universal and works far beyond math or coding. It was tested on logic problems, but Integrated Prompting fits perfectly with business strategy, legal reviews, and even creative work. Whether you're analyzing a startup or drafting a complex contract, making the model do a "test drive" inside one prompt gets you a depth of analysis you'll never get by asking head-on.

Bottom line: stop feeding the model ready-made examples or waiting for instant epiphanies. Use self-generated examples so the model builds its own path to the right answer through analogy. That turns it from a fortune teller firing at random into a systems analyst who first builds a model of the process and then delivers the result. Skip this method and you'll keep getting shallow fluff from AI instead of real expertise.

AI lab assistant

Apply this study to your task

Describe what you're working on. AI takes the method and the measured results from this paper and adapts them to your case, or writes a ready prompt built on them.

Based on Integrated Prompting: Solve a Similar Problem First, Then Yours arXiv:2602.15863

Sign in to apply this study New accounts get 50 free credits.