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

缩小语言模型的作用范围

Reducing the Scope of Language Models

Toyota Technological Institute at Chicago(丰田技术研究所(芝加哥));IBM(IBM公司)

David Yunis, Siyu Huo, Chulaka Gunasekara, Danish Contractor

AI总结:

针对面向特定场景部署的大语言模型需限定响应范围的需求,本文实证评估了提示、微调、Circuit Breakers等多种范围限定方法的效果,总结不同场景下的最优方案,为从业者提供实践指南。

摘要:

大语言模型(LLM)被部署在各类面向用户的应用中。这类部署通常具备特定用途,例如基于文档回答问题或充当编码助手,但仍需要通用语言理解能力。在此类部署场景中,LLM应当仅响应符合预期用途的查询,拒绝所有其他请求(比如生成诗歌或回答物理相关问题),我们将该任务称为“范围限定(scoping)”。我们对多种方法开展了全面的实证评估,涵盖提示工程、微调、偏好学习,以及近期提出的通用对齐技术Circuit Breakers(CB,断路器)。在三个语言模型家族和多类任务上的实验表明,对语言模型进行范围限定是可行的。我们针对多个主题及细粒度主题测试了范围限定效果,还开展了无关查询多样性消融实验、不同技术分层组合测试、对抗性评估等多项分析。实验结果显示:当可获取多样的无关查询样本时,简单的监督微调能取得最优效果;而当无关查询多样性较低时,Circuit Breakers表现十分出色。通过将两种方法依次分层组合,通常可以同时兼顾二者的优势。我们希望本研究能为从业者开展LLM范围限定工作提供实践指南。

英文摘要:

Large language models (LLMs) are deployed in a wide variety of user-facing applications. Typically, these deployments have some specific purpose, like answering questions grounded on documentation or acting as coding assistants, but they require general language understanding. In such deployments, LLMs should respond only to queries that align with the intended purpose and reject all other requests, such as generating poetry or answering questions about physics, a task we refer to as `scoping'. We conduct a comprehensive empirical evaluation of various methods, ranging from prompting, fine-tuning to preference learning and the recently proposed general alignment technique known as Circuit Breakers (CB). Across three families of language models and a broad variety of tasks, we show that it is possible to scope language models. We examine scoping for multiple topics, and fine-grained topics. We ablate diversity of irrelevant queries, layer different techniques, conduct adversarial evaluations and more. Among other results, we find that when diverse examples of irrelevant queries are available, simple supervised fine-tuning produces the best results, but when such diversity is low, Circuit Breakers perform quite well. One can often get the benefits of both methods by layering them in succession. We intend our study to serve as a practitioner's guide to scoping LLMs.

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

↑