← Back to Paper Radar

Not the Example, but the Process: How Self-Generated Examples Enhance LLM Reasoning

Daehoon Gwak, Minseo Jung, Junwoo Park, Minho Park, chaeHun Park, J. Hyung, Jaegul Choo
2026

Reading guide · Based on sections of the original paper

The authors argue that self-generated few-shot examples improve LLM math reasoning mainly because the model creates the example and solves the test question in the same context, not because of the example itself.

Why read this

Practitioners choosing between in-context self-generation and caching generated exemplars should read it, keeping in mind that most evidence comes from answer-only, non-CoT math prompting.

What the authors found

  • In a single deterministic run (temperature 0), Integrated prompting had the highest accuracy for all five models (GPT-4.1, GPT-4o, Gemini-1.5-Flash, LLaMA-3.3-70B, LLaMA-3.1-8B) on both GSM8K (1,319 test problems) and the 5,000-problem MATH set. For GPT-4o on MATH, it scored 37.86% versus 33.33% zero-shot. Decoupled's gains were not uniformly marginal: GPT-4.1 on MATH went from 33.27% zero-shot to 37.45%. 3.3 Results
  • To test whether example quality explains the gap, the authors fed Integrated-generated examples into a Decoupled prompt. GPT-4o reached 52.16% on GSM8K and 33.68% on MATH, below its Integrated scores of 54.59% and 37.86%. 4.3 Quality of Generated Examples
  • Replacing the generated problem with 50 random characters still helped LLaMA-3.3-70B on GSM8K, reaching 33.82%. That is close to its Table 1 Decoupled score of 33.59% but below Integrated at 35.19%. Part of the gain may therefore come from simply generating intermediate text. 4.1 Dummy Examples: Is Performance Gain Just About Text Length?

Main limitation

The main results use answer-only prompts without chain-of-thought (CoT). With CoT on MATH, the Integrated margin shrinks to about 1 point (GPT-4o-mini: 76.59% vs 75.36% zero-shot). The attention analysis is correlational and covers only LLaMA-3.1-8B. 4.4 Effectiveness with Chain-of-Thought Reasoning

Where to start

4.4 Effectiveness with Chain-of-Thought Reasoning · Check how small the Integrated advantage becomes under CoT, the regime most practitioners actually use, and note that it was tested on only two models.

Abstract

Recent studies have shown that Large Language Models (LLMs) can improve their reasoning performance through self-generated few-shot examples, achieving results comparable to manually curated in-context examples. However, the underlying mechanism behind these gains remains unclear, making it hard to decide when and how to apply the technique effectively. In this work, we argue that the key benefit arises not from the generated examples themselves but from the act of creating them. To validate this, on reasoning-intensive tasks across diverse LLM architectures, we systematically evaluate three prompting strategies for in-context learning: (1) Zero-shot prompting; (2) Integrated prompting, where LLMs create and solve problems within a single, unified prompt; and (3) Decoupled prompting, where self-generated examples are reused as in-context examples, but the context of their creation itself is excluded. We conduct experiments across five widely used model architectures, demonstrating that Integrated prompting consistently outperforms both Zero-shot and Decoupled prompting. In contrast, Decoupled prompting offers only marginal gains over Zero-shot. Further, for a more in-depth analysis, we conduct an attention analysis and observe significant differences in attention patterns between Integrated and Decoupled prompting. These findings suggest that the advantage of self-generation prompting comes from the process of problem creation, not the examples themselves, providing valuable insights for designing more effective prompting strategies.

Generated automatically from paper sections on 2026-11-28.