Saved in:
Bibliographic Details
Main Authors: Gao, Lei, Niu, Yue, Tang, Tingting, Avestimehr, Salman, Annavaram, Murali
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2403.08994
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910392177917952
author Gao, Lei
Niu, Yue
Tang, Tingting
Avestimehr, Salman
Annavaram, Murali
author_facet Gao, Lei
Niu, Yue
Tang, Tingting
Avestimehr, Salman
Annavaram, Murali
contents Language models (LMs) have greatly propelled the research on natural language processing. However, LMs also raise concerns regarding the generation of biased or toxic content and the potential disclosure of private information from the training dataset. In this work, we present a new efficient approach, Ethos, that rectifies LMs to mitigate toxicity and bias in outputs and avoid privacy leakage. Ethos is built on task arithmetic. However, unlike current task arithmetic algorithms, Ethos distinguishes general beneficial and undesired knowledge when reconstructing task vectors. Specifically, Ethos first obtains a set of principal components from the pre-trained models using singular value decomposition. Then, by projecting the task vector onto principal components, Ethos identifies the principal components that encode general or undesired knowledge. Ethos performs negating using the task vector with undesired knowledge only, thereby minimizing collateral damage on general model utility. We demonstrate the efficacy of our approach on three different tasks: debiasing, detoxification, and memorization unlearning. Evaluations show Ethos is more effective in removing undesired knowledge and maintaining the overall model performance compared to current task arithmetic methods.
format Preprint
id arxiv_https___arxiv_org_abs_2403_08994
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Ethos: Rectifying Language Models in Orthogonal Parameter Space
Gao, Lei
Niu, Yue
Tang, Tingting
Avestimehr, Salman
Annavaram, Murali
Computation and Language
Language models (LMs) have greatly propelled the research on natural language processing. However, LMs also raise concerns regarding the generation of biased or toxic content and the potential disclosure of private information from the training dataset. In this work, we present a new efficient approach, Ethos, that rectifies LMs to mitigate toxicity and bias in outputs and avoid privacy leakage. Ethos is built on task arithmetic. However, unlike current task arithmetic algorithms, Ethos distinguishes general beneficial and undesired knowledge when reconstructing task vectors. Specifically, Ethos first obtains a set of principal components from the pre-trained models using singular value decomposition. Then, by projecting the task vector onto principal components, Ethos identifies the principal components that encode general or undesired knowledge. Ethos performs negating using the task vector with undesired knowledge only, thereby minimizing collateral damage on general model utility. We demonstrate the efficacy of our approach on three different tasks: debiasing, detoxification, and memorization unlearning. Evaluations show Ethos is more effective in removing undesired knowledge and maintaining the overall model performance compared to current task arithmetic methods.
title Ethos: Rectifying Language Models in Orthogonal Parameter Space
topic Computation and Language
url https://arxiv.org/abs/2403.08994