arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.02111cs.AIcs.CLcs.LG
收藏

通过受控的提示词变化探索LLM推理

Exploring LLM Reasoning Through Controlled Prompt Variations

MIT(麻省理工学院)

Giannis Chatziveroglou, Richard Yun, Maura Kelleher

AI总结:

本研究通过在GSM8K数据集上引入四类提示词扰动,评估了13个LLMs在数学推理中的鲁棒性,发现无关上下文显著降低性能且与任务复杂度和模型规模无关,揭示了当前模型对噪声输入的脆弱性。

摘要:

本研究调查了大型语言模型(LLMs)在系统引入输入扰动下的数学问题解决任务中的推理鲁棒性。使用GSM8K数据集作为受控测试平台,我们评估了最先进的模型在面对四类提示词扰动时维持逻辑一致性和正确性的能力:无关上下文、病态指令、事实相关但非必要的上下文,以及后两者的组合。我们在十三个开源和闭源LLMs上进行的实验表明,在模型的上下文窗口中引入无关上下文会显著降低性能,这表明区分必要细节与无关细节仍然是一个紧迫的挑战。令人惊讶的是,性能退化对推理任务的复杂度(以所需步骤数衡量)相对不敏感,且与模型规模没有严格相关性。此外,我们观察到某些扰动无意中触发了类似思维链的推理行为,即使没有明确的提示。我们的发现突出了当前LLMs中的关键漏洞,并强调需要提高对嘈杂、误导性和上下文密集输入的鲁棒性,为在现实应用中实现更具弹性和可靠的推理铺平道路。

英文摘要:

This study investigates the reasoning robustness of large language models (LLMs) on mathematical problem-solving tasks under systematically introduced input perturbations. Using the GSM8K dataset as a controlled testbed, we evaluate how well state-of-the-art models maintain logical consistency and correctness when confronted with four categories of prompt perturbations: irrelevant context, pathological instructions, factually relevant but non-essential context, and a combination of the latter two. Our experiments, conducted on thirteen open-source and closed-source LLMs, reveal that introducing irrelevant context within the model's context window significantly degrades performance, suggesting that distinguishing essential from extraneous details remains a pressing challenge. Surprisingly, performance regressions are relatively insensitive to the complexity of the reasoning task, as measured by the number of steps required, and are not strictly correlated with model size. Moreover, we observe that certain perturbations inadvertently trigger chain-of-thought-like reasoning behaviors, even without explicit prompting. Our findings highlight critical vulnerabilities in current LLMs and underscore the need for improved robustness against noisy, misleading, and contextually dense inputs, paving the way for more resilient and reliable reasoning in real-world applications.

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

↑