ICLGuard: 控制上下文学习行为以实现适用性授权
ICLGuard: Controlling In-Context Learning Behavior for Applicability Authorization
AI总结:
针对大语言模型上下文学习可能被用于不当敏感内容的问题,提出适用性授权概念与仅微调少量额外参数的ICLGuard框架,可精准控制目标数据上的ICL能力且不影响通用功能。
摘要:
上下文学习(In-context learning, ICL)是大语言模型(large language models, LLMs)能力的一项最新进展。该特性允许用户无需更新模型即可执行新任务。具体而言,用户可以在推理阶段通过将少量输入-标签对演示与测试输入作为条件来处理任务。这不同于传统的微调范式,具备更高的灵活性。然而,这一能力也带来了潜在问题。例如,用户可能不受限制地将模型用于任何数据,比如执行包含不当或敏感内容的任务,这可能违反模型政策或损害模型所有者的利益。作为模型所有者,建立一套机制以根据自身对各类内容的要求控制模型在ICL下的行为至关重要。为此,我们提出了专为LLM(尤其是ICL行为)定制的“适用性授权”概念,并提出了一种简单的方法ICLGuard。它是一个微调框架,旨在让模型所有者能够规范模型在不同数据上的ICL行为。ICLGuard保留原始LLM,仅微调最少的一组额外可训练参数来“防护”LLM。实验结果表明,受防护的LLM可以在目标数据上停用其ICL能力,同时不影响其在其他数据上的ICL能力以及在所有数据上的通用功能。
英文摘要:
In-context learning (ICL) is a recent advancement in the capabilities of large language models (LLMs). This feature allows users to perform a new task without updating the model. Concretely, users can address tasks during the inference time by conditioning on a few input-label pair demonstrations along with the test input. It is different than the conventional fine-tuning paradigm and offers more flexibility. However, this capability also introduces potential issues. For example, users may use the model on any data without restriction, such as performing tasks with improper or sensitive content, which might violate the model policy or conflict with the model owner's interests. As a model owner, it is crucial to establish a mechanism to control the model's behavior under ICL, depending on the model owner's requirements for various content. To this end, we introduce the concept of "applicability authorization" tailored for LLMs, particularly for ICL behavior, and propose a simple approach, ICLGuard. It is a fine-tuning framework designed to allow the model owner to regulate ICL behavior on different data. ICLGuard preserves the original LLM and fine-tunes only a minimal set of additional trainable parameters to "guard" the LLM. Empirical results show that the guarded LLM can deactivate its ICL ability on target data without affecting its ICL ability on other data and its general functionality across all data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。