arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.01609cs.CL
收藏

自适应干扰:利用自动化树搜索探究大语言模型的上下文鲁棒性

Adaptive Distraction: Probing LLM Contextual Robustness with Automated Tree Search

Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(莫扎伊德大学人工智能学院);University of Notre Dame(诺特丹大学);IBM Research(IBM研究院)

Yanbo Wang, Zixiang Xu, Yue Huang, Chujie Gao, Siyuan Wu, Jiayi Ye, Pin-Yu Chen, Xiuying Chen, Xiangliang Zhang

AI总结:

本文提出基于树搜索的自适应干扰生成框架,通过模型行为引导动态生成干扰,系统性测试大语言模型的上下文鲁棒性,并发现后训练方法比提示优化更能有效缓解性能下降。

摘要:

大语言模型(LLMs)在面对语义连贯但与任务无关的上下文信息时,往往难以保持其原有性能。尽管先前研究已使用固定模板或基于检索的干扰来探索这一问题,但这类静态方法对当代模型的有效性有限。为解决该问题,我们提出了一种基于树搜索的动态干扰生成框架,其中生成过程由模型行为引导。在不修改原始问题或答案的前提下,该方法能够在多个数据集上高效地生成具有挑战性的自适应干扰,从而实现对LLMs上下文鲁棒性的系统性压力测试。在四个基准上的实验表明,所生成的干扰导致主流模型的平均性能下降超过45%。对缓解策略的进一步比较显示,基于提示的优化方法收益有限,而后训练方法(例如DPO)则显著增强了模型的上下文鲁棒性。结果表明,这些问题并非源于LLMs的知识缺陷,而是源于其在上下文干扰下无法保持一致性推理的根本性能力不足,这对LLMs在现实应用中的可靠性构成了重大挑战。代码已公开发布于 https://github.com/wyf23187/Adaptive_Distractions。

英文摘要:

Large Language Models (LLMs) often struggle to maintain their original performance when faced with semantically coherent but task-irrelevant contextual information. Although prior studies have explored this issue using fixed-template or retrieval-based distractions, such static methods show limited effectiveness against contemporary models. To address this problem, we propose a dynamic distraction generation framework based on tree search, where the generation process is guided by model behavior. Without modifying the original question or answer, the method efficiently produces challenging adaptive distractions across multiple datasets, enabling systematic stress testing of LLMs' contextual robustness. Experiments on four benchmarks demonstrate that the generated distractions lead to an average performance drop of over 45\% for mainstream models. Further comparisons of mitigation strategies show that prompt-based optimization methods yield limited gains, whereas post-training approaches (e.g., DPO) significantly enhance the model's contextual robustness. The results indicate that these issues do not stem from knowledge deficits in LLMs, but from a fundamental inability to maintain consistent reasoning under contextual distraction, posing a major challenge to the reliability of LLMs in real-world applications. The code is publicly available at https://github.com/wyf23187/Adaptive_Distractions.

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

↑