arXiv:2503.13208cs.CLcs.AI2025-03ICLR被引 13

动态调整提示词,让大模型推理更准

Improving Complex Reasoning with Dynamic Prompt Corruption: A soft prompt Optimization Approach

  • 根据提示词影响动态调节其作用,避免干扰推理
  • 在GSM8K等任务上提升4%-8%准确率
  • 适合需要复杂推理的LLM优化场景

大型语言模型(LLMs)的提示调优(PT)在常规NLP任务中表现良好,但我们在复杂推理任务中发现其效果有限甚至会降低原始性能。分析表明,软提示中存在信息累积现象,深层网络中错误的信息流最终导致推理出错。为此,我们提出动态提示破坏(DPC)方法,通过两个阶段实现:动态触发阶段评估软提示的正负影响;动态破坏阶段通过选择性屏蔽干扰推理的关键标记来缓解负面影响。在GSM8K、MATH和AQuA等多个推理任务上验证,DPC相比原始提示调优实现了4%-8%的准确率提升,证明了该方法在增强复杂推理方面的有效性。

原文摘要 · Abstract (English)

Prompt-tuning (PT) for large language models (LLMs) can facilitate the performance on various conventional NLP tasks with significantly fewer trainable parameters. However, our investigation reveals that PT provides limited improvement and may even degrade the primitive performance of LLMs on complex reasoning tasks. Such a phenomenon suggests that soft prompts can positively impact certain instances while negatively affecting others, particularly during the later phases of reasoning. To address these challenges, We first identify an information accumulation within the soft prompts. Through detailed analysis, we demonstrate that this phenomenon is often accompanied by erroneous information flow patterns in the deeper layers of the model, which ultimately lead to incorrect reasoning outcomes. we propose a novel method called Dynamic Prompt Corruption (DPC) to take better advantage of soft prompts in complex reasoning tasks, which dynamically adjusts the influence of soft prompts based on their impact on the reasoning process. Specifically, DPC consists of two stages: Dynamic Trigger and Dynamic Corruption. First, Dynamic Trigger measures the impact of soft prompts, identifying whether beneficial or detrimental. Then, Dynamic Corruption mitigates the negative effects of soft prompts by selectively masking key tokens that interfere with the reasoning process. We validate the proposed approach through extensive experiments on various LLMs and reasoning tasks, including GSM8K, MATH, and AQuA. Experimental results demonstrate that DPC can consistently enhance the performance of PT, achieving 4%-8% accuracy gains compared to vanilla prompt tuning, highlighting the effectiveness of our approach and its potential to enhance complex reasoning in LLMs.

提示调优复杂推理大模型优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。