Towards Inference-time Category-wise Safety Steering for Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Bhattacharjee, Amrita, Ghosh, Shaona, Rebedea, Traian, Parisien, Christopher
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916420616454144
author Bhattacharjee, Amrita
Ghosh, Shaona
Rebedea, Traian
Parisien, Christopher
author_facet Bhattacharjee, Amrita
Ghosh, Shaona
Rebedea, Traian
Parisien, Christopher
contents While large language models (LLMs) have seen unprecedented advancements in capabilities and applications across a variety of use-cases, safety alignment of these models is still an area of active research. The fragile nature of LLMs, even models that have undergone extensive alignment and safety training regimes, warrants additional safety steering steps via training-free, inference-time methods. While recent work in the area of mechanistic interpretability has investigated how activations in latent representation spaces may encode concepts, and thereafter performed representation engineering to induce such concepts in LLM outputs, the applicability of such for safety is relatively under-explored. Unlike recent inference-time safety steering works, in this paper we explore safety steering of LLM outputs using: (i) category-specific steering vectors, thereby enabling fine-grained control over the steering, and (ii) sophisticated methods for extracting informative steering vectors for more effective safety steering while retaining quality of the generated text. We demonstrate our exploration on multiple LLMs and datasets, and showcase the effectiveness of the proposed steering method, along with a discussion on the implications and best practices.
format Preprint
id arxiv_https___arxiv_org_abs_2410_01174
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Towards Inference-time Category-wise Safety Steering for Large Language Models
Bhattacharjee, Amrita
Ghosh, Shaona
Rebedea, Traian
Parisien, Christopher
Computation and Language
Artificial Intelligence
While large language models (LLMs) have seen unprecedented advancements in capabilities and applications across a variety of use-cases, safety alignment of these models is still an area of active research. The fragile nature of LLMs, even models that have undergone extensive alignment and safety training regimes, warrants additional safety steering steps via training-free, inference-time methods. While recent work in the area of mechanistic interpretability has investigated how activations in latent representation spaces may encode concepts, and thereafter performed representation engineering to induce such concepts in LLM outputs, the applicability of such for safety is relatively under-explored. Unlike recent inference-time safety steering works, in this paper we explore safety steering of LLM outputs using: (i) category-specific steering vectors, thereby enabling fine-grained control over the steering, and (ii) sophisticated methods for extracting informative steering vectors for more effective safety steering while retaining quality of the generated text. We demonstrate our exploration on multiple LLMs and datasets, and showcase the effectiveness of the proposed steering method, along with a discussion on the implications and best practices.
title Towards Inference-time Category-wise Safety Steering for Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2410.01174