Evaluating Defences against Unsafe Feedback in RLHF

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Rosati, Domenic, Edkins, Giles, Raj, Harsh, Atanasov, David, Majumdar, Subhabrata, Rajendran, Janarthanan, Rudzicz, Frank, Sajjad, Hassan
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909511282851840
author Rosati, Domenic
Edkins, Giles
Raj, Harsh
Atanasov, David
Majumdar, Subhabrata
Rajendran, Janarthanan
Rudzicz, Frank
Sajjad, Hassan
author_facet Rosati, Domenic
Edkins, Giles
Raj, Harsh
Atanasov, David
Majumdar, Subhabrata
Rajendran, Janarthanan
Rudzicz, Frank
Sajjad, Hassan
contents While there has been progress towards aligning Large Language Models (LLMs) with human values and ensuring safe behaviour at inference time, safety guards can easily be removed when fine tuned on unsafe and harmful datasets. While this setting has been treated extensively, another popular training paradigm, learning from unsafe feedback with reinforcement learning, has previously been unexplored. This is concerning due to the widespread deployment of feedback collection systems. We address this gap by providing an analysis of learning settings where feedback is harmful, i.e. that unsafe samples are preferred over safe ones despite model developers goal to maintain safety. We find that safety-aligned LLMs easily explore unsafe action spaces via generating harmful text and optimize for reward that violates safety constraints indicating that current safety guards are not enough to prevent learning from unsafe feedback. In order to protect against this vulnerability, we adapt a number of both "implict" and "explicit" harmful fine-tuning defences to evaluate whether they are effective as learning constraints in an RLHF setting finding that no method is generally effective pointing to the need for more defence research. We end the paper with the observation that some defences work by performing "harmless reward hacking" for which we provide a theoretical explanation drawn from the theory of Constrained Markov Decision Processes and provide some direction for future defence development.
format Preprint
id arxiv_https___arxiv_org_abs_2409_12914
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Evaluating Defences against Unsafe Feedback in RLHF
Rosati, Domenic
Edkins, Giles
Raj, Harsh
Atanasov, David
Majumdar, Subhabrata
Rajendran, Janarthanan
Rudzicz, Frank
Sajjad, Hassan
Machine Learning
Computation and Language
While there has been progress towards aligning Large Language Models (LLMs) with human values and ensuring safe behaviour at inference time, safety guards can easily be removed when fine tuned on unsafe and harmful datasets. While this setting has been treated extensively, another popular training paradigm, learning from unsafe feedback with reinforcement learning, has previously been unexplored. This is concerning due to the widespread deployment of feedback collection systems. We address this gap by providing an analysis of learning settings where feedback is harmful, i.e. that unsafe samples are preferred over safe ones despite model developers goal to maintain safety. We find that safety-aligned LLMs easily explore unsafe action spaces via generating harmful text and optimize for reward that violates safety constraints indicating that current safety guards are not enough to prevent learning from unsafe feedback. In order to protect against this vulnerability, we adapt a number of both "implict" and "explicit" harmful fine-tuning defences to evaluate whether they are effective as learning constraints in an RLHF setting finding that no method is generally effective pointing to the need for more defence research. We end the paper with the observation that some defences work by performing "harmless reward hacking" for which we provide a theoretical explanation drawn from the theory of Constrained Markov Decision Processes and provide some direction for future defence development.
title Evaluating Defences against Unsafe Feedback in RLHF
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2409.12914