Saved in:
Bibliographic Details
Main Authors: Yunis, David, Huo, Siyu, Gunasekara, Chulaka, Contractor, Danish
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.21597
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912705600815104
author Yunis, David
Huo, Siyu
Gunasekara, Chulaka
Contractor, Danish
author_facet Yunis, David
Huo, Siyu
Gunasekara, Chulaka
Contractor, Danish
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_21597
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Reducing the Scope of Language Models
Yunis, David
Huo, Siyu
Gunasekara, Chulaka
Contractor, Danish
Computation and Language
Artificial Intelligence
Machine Learning
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.
title Reducing the Scope of Language Models
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2410.21597