arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.15863cs.CLcs.AI
收藏

不是例子,而是过程:如何自动生成的例子增强LLM推理

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

KAIST AI(韩国科学技术院人工智能研究所);Applied Artificial Intelligence, Sungkyunkwan University(成均馆大学应用人工智能系)

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

AI总结:

本研究通过对比不同提示策略,发现自动生成例子的过程增强了LLM推理性能,而非例子本身。

摘要:

近期研究表明,大型语言模型(LLM)可以通过自动生成的少样本例子来提高其推理性能,达到与人工整理的上下文例子相当的结果。然而,这些收益背后的机制仍不清楚,使得难以决定何时以及如何有效地应用该技术。在本工作中,我们主张,关键收益并非来自生成的例子本身,而是来自创建它们的过程。为了验证这一点,在跨多样LLM架构的推理密集型任务上,我们系统地评估了三种用于上下文学习的提示策略:(1)零样本提示;(2)集成提示,其中LLM在单一统一提示中创建并解决问题;以及(3)解耦提示,其中自动生成的例子被重新使用为上下文例子,但其创建的上下文本身被排除。我们在五个广泛使用的模型架构上进行实验,证明集成提示在零样本和解耦提示上均表现更优。相比之下,解耦提示仅在零样本上提供微小的提升。进一步,为了更深入的分析,我们进行了注意力分析,并观察到集成和解耦提示之间存在显著的注意力模式差异。这些发现表明,自生成提示的优势来自于问题创建的过程,而非例子本身,为设计更有效的提示策略提供了有价值的见解。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑