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

IRepair:一种面向意图感知的大语言模型数据驱动错误修复方法

IRepair: An Intent-Aware Approach to Repair Data-Driven Errors in Large Language Models

Iowa State University(爱荷华州立大学);Tulane University(杜兰大学)

Sayem Mohammad Imtiaz, Astha Singh, Fraol Batole, Hridesh Rajan

AI总结:

本文提出意图感知的大语言模型修复策略 IRepair,通过动态切分最敏感层进行选择性修复,在毒性缓解任务上比直接偏好优化提升 43.6% 修复效果并减少 46% 性能干扰。

摘要:

几乎每天都能听到大语言模型(LLMs)令人印象深刻的成就,同样,也几乎每天都能听到它们面临的挑战。LLMs 极易受到数据集中偏见的影响,从而导致诸如毒性等问题。虽然领域自适应训练已被用于缓解这些问题,但这些技术在修复过程中往往不加区分地处理所有模型参数,导致修复质量差且模型通用性降低。在本文中,我们提出了一种新颖的基于动态切片的意图感知 LLM 修复策略,即 IRepair。该方法选择性地针对模型中最容易出错的部分进行修复。具体而言,我们提出动态切出模型中最敏感、最需要立即关注的层,将修复工作集中在这些区域。该方法通过改动模型中较小的部分,能够在可能对模型整体性能影响较小的情况下实现更有效的修复。我们在毒性缓解设置下,对来自 GPT2 和 GPT-Neo 系列的三个模型进行了评估,其参数规模从 8 亿到 16 亿不等。结果表明,与最接近的基线方法——直接偏好优化(direct preference optimization)相比,IRepair 修复错误的效果提升了 43.6%,同时对通用性能造成的干扰减少了 46%。我们的实证分析还揭示,错误更集中于模型的较小部分,前 20% 的层所表现出的错误密度比其余 80% 的层高出 773%。这凸显了选择性修复的必要性。此外,我们证明了动态选择方法对于解决分散在整个模型中的错误至关重要,从而确保修复的稳健性和高效性。

英文摘要:

Not a day goes by without hearing about the impressive feats of large language models (LLMs), and equally, not a day passes without hearing about their challenges. LLMs are notoriously vulnerable to biases in their dataset, leading to issues such as toxicity. While domain-adaptive training has been employed to mitigate these issues, these techniques often address all model parameters indiscriminately during the repair process, resulting in poor repair quality and reduced model versatility. In this paper, we introduce a novel dynamic slicing-based intent-aware LLM repair strategy, IRepair. This approach selectively targets the most error-prone sections of the model for repair. Specifically, we propose dynamically slicing the model's most sensitive layers that require immediate attention, concentrating repair efforts on those areas. This method enables more effective repairs with potentially less impact on the model's overall performance by altering a smaller portion of the model. We evaluated our technique on three models from the GPT2 and GPT-Neo families, with parameters ranging from 800M to 1.6B, in a toxicity mitigation setup. Our results show that IRepair repairs errors 43.6% more effectively while causing 46% less disruption to general performance compared to the closest baseline, direct preference optimization. Our empirical analysis also reveals that errors are more concentrated in a smaller section of the model, with the top 20% of layers exhibiting 773% more error density than the remaining 80\%. This highlights the need for selective repair. Additionally, we demonstrate that a dynamic selection approach is essential for addressing errors dispersed throughout the model, ensuring a robust and efficient repair.

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

↑