Language Models Resist Alignment: Evidence From Data Compression

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Ji, Jiaming, Wang, Kaile, Qiu, Tianyi, Chen, Boyuan, Zhou, Jiayi, Li, Changye, Lou, Hantao, Dai, Juntao, Liu, Yunhuai, Yang, Yaodong
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911169915125760
author Ji, Jiaming
Wang, Kaile
Qiu, Tianyi
Chen, Boyuan
Zhou, Jiayi
Li, Changye
Lou, Hantao
Dai, Juntao
Liu, Yunhuai
Yang, Yaodong
author_facet Ji, Jiaming
Wang, Kaile
Qiu, Tianyi
Chen, Boyuan
Zhou, Jiayi
Li, Changye
Lou, Hantao
Dai, Juntao
Liu, Yunhuai
Yang, Yaodong
contents Large language models (LLMs) may exhibit unintended or undesirable behaviors. Recent works have concentrated on aligning LLMs to mitigate harmful outputs. Despite these efforts, some anomalies indicate that even a well-conducted alignment process can be easily circumvented, whether intentionally or accidentally. Does alignment fine-tuning yield have robust effects on models, or are its impacts merely superficial? In this work, we make the first exploration of this phenomenon from both theoretical and empirical perspectives. Empirically, we demonstrate the $\mathbf{elasticity}$ of post-alignment models, i.e., the tendency to revert to the behavior distribution formed during the pre-training phase upon further fine-tuning. Leveraging compression theory, we formally deduce that fine-tuning disproportionately undermines alignment relative to pre-training, potentially by orders of magnitude. We validate the presence of elasticity through experiments on models of varying types and scales. Specifically, we find that model performance declines rapidly before reverting to the pre-training distribution, after which the rate of decline drops significantly. Furthermore, we further reveal that elasticity positively correlates with the increased model size and the expansion of pre-training data. Our findings underscore the need to address the inherent elasticity of LLMs to mitigate their resistance to alignment. The model weight and code are available at pku-lm-resist-alignment.github.io.
format Preprint
id arxiv_https___arxiv_org_abs_2406_06144
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Language Models Resist Alignment: Evidence From Data Compression
Ji, Jiaming
Wang, Kaile
Qiu, Tianyi
Chen, Boyuan
Zhou, Jiayi
Li, Changye
Lou, Hantao
Dai, Juntao
Liu, Yunhuai
Yang, Yaodong
Computation and Language
Artificial Intelligence
Large language models (LLMs) may exhibit unintended or undesirable behaviors. Recent works have concentrated on aligning LLMs to mitigate harmful outputs. Despite these efforts, some anomalies indicate that even a well-conducted alignment process can be easily circumvented, whether intentionally or accidentally. Does alignment fine-tuning yield have robust effects on models, or are its impacts merely superficial? In this work, we make the first exploration of this phenomenon from both theoretical and empirical perspectives. Empirically, we demonstrate the $\mathbf{elasticity}$ of post-alignment models, i.e., the tendency to revert to the behavior distribution formed during the pre-training phase upon further fine-tuning. Leveraging compression theory, we formally deduce that fine-tuning disproportionately undermines alignment relative to pre-training, potentially by orders of magnitude. We validate the presence of elasticity through experiments on models of varying types and scales. Specifically, we find that model performance declines rapidly before reverting to the pre-training distribution, after which the rate of decline drops significantly. Furthermore, we further reveal that elasticity positively correlates with the increased model size and the expansion of pre-training data. Our findings underscore the need to address the inherent elasticity of LLMs to mitigate their resistance to alignment. The model weight and code are available at pku-lm-resist-alignment.github.io.
title Language Models Resist Alignment: Evidence From Data Compression
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2406.06144