The University of Southampton
University of Southampton Institutional Repository

When autoregressive consistency hurts safety alignment

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
arXiv
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
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]

Record 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
Available under License Creative Commons Attribution.
Download (1MB)

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
ORCID for Xiaohao Cai: ORCID iD orcid.org/0000-0003-0924-2834
ORCID for Zhanxing Zhu: ORCID iD orcid.org/0000-0002-2141-6553

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 ORCID iD
Author: Zhanxing Zhu ORCID iD

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

Atom RSS 1.0 RSS 2.0

Contact ePrints Soton: eprints@soton.ac.uk

ePrints Soton supports OAI 2.0 with a base URL of https://eprints.soton.ac.uk/cgi/oai2

This repository has been built using EPrints software, developed at the University of Southampton, but available to everyone to use.

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we will assume that you are happy to receive cookies on the University of Southampton website.

×