When autoregressive consistency hurts safety alignment
When autoregressive consistency hurts safety alignment
Safety alignment in large language models (LLMs) is fragile in part because it is often shallow: fine-tuning mainly reshapes the model's behavior near the first few output tokens. We argue that this phenomenon can be understood through autoregressive consistency, the tendency of next-token prediction to preserve and extend the current response trajectory consistently. By analyzing the learning dynamics of safety alignment, we show that autoregressive consistency can concentrate alignment updates on early tokens, offering a mechanistic explanation for shallow safety alignment. The same mechanism also predicts a broader class of attacks on LLMs: attacks that induce harmful continuation states at arbitrary positions in the output trajectory. As a concrete example, we introduce random insertion attack, which inserts a short harmful span into an otherwise safe refusal trajectory and exploits autoregressive consistency to sustain the resulting harmful branch, thereby bypassing safety alignment. Notably, a short harmful span can redirect the generation to be harmful even after a long refusal prefix, highlighting autoregressive consistency as a potential broader failure mechanism. This suggests that safety alignment should also break harmful autoregressive consistency throughout the output trajectory. We therefore propose adversarial safety alignment, an initial framework based on worst-case harmful continuation states, and instantiate it with random worst-insertion training. Overall, our results suggest that autoregressive consistency should be treated as a central consideration in both safety alignment and attack design.
cs.LG, cs.CR
Lyu, Bochen
fb1af04c-d0d6-490b-a238-73c1dd1aed2a
Jia, Yiyang
b50e71bb-01b7-45d2-9cf0-5cdfc128390b
Cai, Xiaohao
de483445-45e9-4b21-a4e8-b0427fc72cee
Zhu, Zhanxing
e55e7385-8ba2-4a85-8bae-e00defb7d7f0
2 June 2026
Lyu, Bochen
fb1af04c-d0d6-490b-a238-73c1dd1aed2a
Jia, Yiyang
b50e71bb-01b7-45d2-9cf0-5cdfc128390b
Cai, Xiaohao
de483445-45e9-4b21-a4e8-b0427fc72cee
Zhu, Zhanxing
e55e7385-8ba2-4a85-8bae-e00defb7d7f0
[Unknown type: UNSPECIFIED]
Abstract
Safety alignment in large language models (LLMs) is fragile in part because it is often shallow: fine-tuning mainly reshapes the model's behavior near the first few output tokens. We argue that this phenomenon can be understood through autoregressive consistency, the tendency of next-token prediction to preserve and extend the current response trajectory consistently. By analyzing the learning dynamics of safety alignment, we show that autoregressive consistency can concentrate alignment updates on early tokens, offering a mechanistic explanation for shallow safety alignment. The same mechanism also predicts a broader class of attacks on LLMs: attacks that induce harmful continuation states at arbitrary positions in the output trajectory. As a concrete example, we introduce random insertion attack, which inserts a short harmful span into an otherwise safe refusal trajectory and exploits autoregressive consistency to sustain the resulting harmful branch, thereby bypassing safety alignment. Notably, a short harmful span can redirect the generation to be harmful even after a long refusal prefix, highlighting autoregressive consistency as a potential broader failure mechanism. This suggests that safety alignment should also break harmful autoregressive consistency throughout the output trajectory. We therefore propose adversarial safety alignment, an initial framework based on worst-case harmful continuation states, and instantiate it with random worst-insertion training. Overall, our results suggest that autoregressive consistency should be treated as a central consideration in both safety alignment and attack design.
Text
2606.04168v1
- Author's Original
More information
Published date: 2 June 2026
Additional Information:
21 pages
Keywords:
cs.LG, cs.CR
Identifiers
Local EPrints ID: 514355
URI: https://eprints.soton.ac.uk/id/eprint/514355
PURE UUID: efd24d2d-6a39-4adf-82d9-8211713abec3
Catalogue record
Date deposited: 17 Sep 2026 14:03
Last modified: 18 Sep 2026 02:26
Export record
Altmetrics
Contributors
Author:
Bochen Lyu
Author:
Yiyang Jia
Author:
Xiaohao Cai
Author:
Zhanxing Zhu
Download statistics
Downloads from ePrints over the past year. Other digital versions may also be available to download e.g. from the publisher's website.
View more statistics