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

分析基于梯度特征归因的思维链提示在大语言模型中的作用

Analyzing Chain-of-Thought Prompting in Large Language Models via Gradient-based Feature Attributions

Harvard University(哈佛大学)

Skyler Wu, Eric Meng Shen, Charumathi Badrinath, Jiaqi Ma, Himabindu Lakkaraju

AI总结:

本研究利用基于梯度的特征归因方法分析思维链提示对大语言模型的影响,发现其虽不增加语义相关标记的显著性分数幅度,但提高了分数对扰动和输出变化的鲁棒性。

摘要:

思维链(CoT)提示已被经验证明能提高大语言模型(LLMs)在各种问答任务上的准确性。虽然理解CoT提示为何有效对于确保这一现象是期望模型行为的结果至关重要,但相关研究甚少;然而,这种理解是负责任模型部署的关键前提。我们通过利用基于梯度的特征归因方法来解决这一问题,该方法产生显著性分数,以捕捉输入标记对模型输出的影响。具体而言,我们探测了几个开源LLMs,以研究CoT提示是否影响它们分配给特定输入标记的相对重要性。我们的结果表明,与标准少样本提示相比,CoT提示并未增加提示中语义相关标记的显著性分数幅度,但提高了显著性分数对问题扰动和模型输出变化的鲁棒性。

英文摘要:

Chain-of-thought (CoT) prompting has been shown to empirically improve the accuracy of large language models (LLMs) on various question answering tasks. While understanding why CoT prompting is effective is crucial to ensuring that this phenomenon is a consequence of desired model behavior, little work has addressed this; nonetheless, such an understanding is a critical prerequisite for responsible model deployment. We address this question by leveraging gradient-based feature attribution methods which produce saliency scores that capture the influence of input tokens on model output. Specifically, we probe several open-source LLMs to investigate whether CoT prompting affects the relative importances they assign to particular input tokens. Our results indicate that while CoT prompting does not increase the magnitude of saliency scores attributed to semantically relevant tokens in the prompt compared to standard few-shot prompting, it increases the robustness of saliency scores to question perturbations and variations in model output.

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

↑