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

通过动态提示损坏提升复杂推理能力:一种软提示优化方法

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

Zhejiang University(浙江大学);Hangzhou YunQi Academy of Engineering(杭州云栖工程学院);College of Computer Science and Technology, Zhejiang University of Technology(浙江工业大学计算机科学与技术学院);Alibaba Cloud Computing(阿里巴巴云计算)

Sinan Fan, Liang Xie, Chen Shen, Ge Teng, Xiaosong Yuan, Xiaofeng Zhang, Chenxi Huang, Wenxiao Wang, Xiaofei He, Jieping Ye

AI总结:

针对提示调优在复杂推理任务中提升有限甚至性能下降的问题,提出动态提示损坏方法,通过动态调整软提示影响减轻干扰,在多个推理任务上使准确率提升4%-8%。

摘要:

针对大型语言模型(LLMs)的提示调优(PT)能够以显著更少的可训练参数提升其在各类传统自然语言处理任务上的性能。然而,我们的研究发现,PT在复杂推理任务上对LLMs的原始性能提升有限,甚至可能使其下降。这种现象表明,软提示可能对某些实例产生积极影响,却对另一些实例产生负面影响,尤其是在推理的后期阶段。为应对这些挑战,我们首先发现软提示中存在信息累积现象。通过详细分析,我们证明该现象常伴随模型深层中错误的信息流模式,最终导致推理结果出错。我们提出一种名为动态提示损坏(DPC)的新方法,以在复杂推理任务中更好地利用软提示,该方法会根据软提示对推理过程的影响动态调整其作用。具体而言,DPC包含两个阶段:动态触发和动态损坏。首先,动态触发会衡量软提示的影响,判断其是有益还是有害。然后,动态损坏通过选择性掩盖干扰推理过程的关键标记来减轻软提示的负面影响。我们在多种LLMs和推理任务(包括GSM8K、MATH和AQuA)上进行了大量实验以验证所提方法。实验结果表明,DPC能持续提升PT的性能,与普通提示调优相比,准确率提升了4%-8%,凸显了我们方法的有效性及其在增强LLMs复杂推理能力方面的潜力。

英文摘要:

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.

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

↑