arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.02733cs.CL
收藏

增强 LLM 对扰动指令的鲁棒性:一项实证研究

Enhancing LLM Robustness to Perturbed Instructions: An Empirical Study

Imperial College London(伦敦帝国学院)

Aryan Agrawal, Lisa Alazraki, Shahin Honarvar, Marek Rei

AI总结:

本研究针对任务级指令扰动降低LLM下游性能的问题,通过实验对比自去噪和表示对齐等技术,发现自去噪在多模型和数据集上均显著优于其他基线方法。

摘要:

大型语言模型(LLMs)对输入扰动高度脆弱,即使是微小的提示变化也可能导致截然不同的输出。现有增强 LLM 鲁棒性的方法主要集中于扰动数据样本,而提升对任务级指令扰动的抵抗力仍相对缺乏探索。在本研究中,我们关注任务特定指令的字符级和词级编辑,这些编辑会显著降低下游性能。我们尝试了多种技术来增强 LLMs 的鲁棒性,包括自去噪和表示对齐,测试了不同的模型(Llama 3 和 Flan-T5)、数据集(CoLA、QNLI、SST-2)和指令(任务导向和角色导向)。我们发现,平均而言,自去噪——无论是通过冻结的 LLM 还是微调模型执行——都比包括集成和监督方法等更复杂的基线在内的替代策略获得了显著更高的性能提升。

英文摘要:

Large Language Models (LLMs) are highly vulnerable to input perturbations, as even a small prompt change may result in a substantially different output. Existing methods to enhance LLM robustness are primarily focused on perturbed data samples, whereas improving resiliency to perturbations of task-level instructions has remained relatively underexplored. In this work, we focus on character- and word-level edits of task-specific instructions, which substantially degrade downstream performance. We experiment with a variety of techniques to enhance the robustness of LLMs, including self-denoising and representation alignment, testing different models (Llama 3 and Flan-T5), datasets (CoLA, QNLI, SST-2) and instructions (both task-oriented and role-oriented). We find that, on average, self-denoising -- whether performed by a frozen LLM or a fine-tuned model -- achieves substantially higher performance gains than alternative strategies, including more complex baselines such as ensembling and supervised methods.

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

↑