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

工具增强型大语言模型的工具遗忘

Tool Unlearning for Tool-Augmented LLMs

University of Massachusetts Lowell(马萨诸塞大学洛厄尔分校)

Jiali Cheng, Hadi Amiri

AI总结:

针对工具增强型LLM首次提出工具遗忘任务,并设计ToolDelete方法,通过知识移除与成员推断攻击评估,在多个数据集上实现有效遗忘且不损害其他能力。

摘要:

工具增强型大语言模型(LLMs)通常在查询-响应对数据集上进行训练,这些数据集将使用工具或API的能力直接嵌入到LLMs的参数化知识中。由于安全漏洞、隐私法规或工具弃用,工具增强型LLMs需要具备遗忘已学习工具的能力。然而,在遗忘学习文献中,“工具遗忘”尚未被研究。我们引入了这一新任务,与传统的遗忘学习相比,它需要应对不同的挑战:知识移除而非遗忘单个样本、优化LLMs的高成本,以及对原则性评估指标的需求。为弥合这些差距,我们提出了ToolDelete,这是从工具增强型LLMs中遗忘工具的首个方法。它实现了三个关键属性以应对上述挑战,从而实现有效的工具遗忘,并引入了一种新的成员推断攻击(MIA)模型用于有效评估。在多个工具学习数据集和工具增强型LLMs上的大量实验表明,ToolDelete能有效遗忘随机选择的工具,同时保留LLM对未删除工具的知识,并保持其在通用任务上的性能。

英文摘要:

Tool-augmented large language models (LLMs) are often trained on datasets of query-response pairs, which embed the ability to use tools or APIs directly into the parametric knowledge of LLMs. Tool-augmented LLMs need the ability to forget learned tools due to security vulnerabilities, privacy regulations, or tool deprecations. However, ``tool unlearning'' has not been investigated in unlearning literature. We introduce this novel task, which requires addressing distinct challenges compared to traditional unlearning: knowledge removal rather than forgetting individual samples, the high cost of optimizing LLMs, and the need for principled evaluation metrics. To bridge these gaps, we propose ToolDelete, the first approach for unlearning tools from tool-augmented LLMs. It implements three key properties to address the above challenges for effective tool unlearning and introduces a new membership inference attack (MIA) model for effective evaluation. Extensive experiments on multiple tool learning datasets and tool-augmented LLMs show that ToolDelete effectively unlearns randomly selected tools, while preserving the LLM's knowledge on non-deleted tools and maintaining performance on general tasks.

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

↑