Saved in:
Bibliographic Details
Main Authors: Bach, Thong, Tran, Truyen
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.17210
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918454508912640
author Bach, Thong
Tran, Truyen
author_facet Bach, Thong
Tran, Truyen
contents Fine-tuning well-aligned large language models (LLMs) on new domains often degrades their safety alignment, even when using benign datasets. Existing safety alignment techniques primarily focus on pretraining, leaving fine-tuned models vulnerable to behavioral shifts. In this work, we introduce safety token regularization (STR), a lightweight method designed to preserve safety properties during fine-tuning. Our approach identifies salient tokens from rejection templates of well-aligned models and constrains their associated logits during training, preventing the loss of critical safety behaviors. Unlike reinforcement learning or preference optimization methods, STR requires minimal additional computation and seamlessly integrates with parameter-efficient fine-tuning techniques such as LoRA. Comprehensive experiments demonstrate that our approach achieves safety performance on par with state-of-the-art methods, while preserving task-specific utility and requiring minimal implementation overhead. Furthermore, we show that safety token regularization enhances training stability and overall performance beyond safety considerations alone. This work offers a practical and readily deployable strategy for continual safety alignment in fine-tuned LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2604_17210
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Guardrails in Logit Space: Safety Token Regularization for LLM Alignment
Bach, Thong
Tran, Truyen
Machine Learning
Fine-tuning well-aligned large language models (LLMs) on new domains often degrades their safety alignment, even when using benign datasets. Existing safety alignment techniques primarily focus on pretraining, leaving fine-tuned models vulnerable to behavioral shifts. In this work, we introduce safety token regularization (STR), a lightweight method designed to preserve safety properties during fine-tuning. Our approach identifies salient tokens from rejection templates of well-aligned models and constrains their associated logits during training, preventing the loss of critical safety behaviors. Unlike reinforcement learning or preference optimization methods, STR requires minimal additional computation and seamlessly integrates with parameter-efficient fine-tuning techniques such as LoRA. Comprehensive experiments demonstrate that our approach achieves safety performance on par with state-of-the-art methods, while preserving task-specific utility and requiring minimal implementation overhead. Furthermore, we show that safety token regularization enhances training stability and overall performance beyond safety considerations alone. This work offers a practical and readily deployable strategy for continual safety alignment in fine-tuned LLMs.
title Guardrails in Logit Space: Safety Token Regularization for LLM Alignment
topic Machine Learning
url https://arxiv.org/abs/2604.17210