Safeguarding LLM Fine-tuning via Push-Pull Distributional Alignment

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Wang, Haozhong, Li, Zhuo, Yang, Yibo, Zhao, He, Zha, Hongyuan, Guo, Dandan
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915722840506368
author Wang, Haozhong
Li, Zhuo
Yang, Yibo
Zhao, He
Zha, Hongyuan
Guo, Dandan
author_facet Wang, Haozhong
Li, Zhuo
Yang, Yibo
Zhao, He
Zha, Hongyuan
Guo, Dandan
contents The inherent safety alignment of Large Language Models (LLMs) is prone to erosion during fine-tuning, even when using seemingly innocuous datasets. While existing defenses attempt to mitigate this via data selection, they typically rely on heuristic, instance-level assessments that neglect the global geometry of the data distribution and fail to explicitly repel harmful patterns. To address this, we introduce Safety Optimal Transport (SOT), a novel framework that reframes safe fine-tuning from an instance-level filtering challenge to a distribution-level alignment task grounded in Optimal Transport (OT). At its core is a dual-reference ``push-pull'' weight-learning mechanism: SOT optimizes sample importance by actively pulling the downstream distribution towards a trusted safe anchor while simultaneously pushing it away from a general harmful reference. This establishes a robust geometric safety boundary that effectively purifies the training data. Extensive experiments across diverse model families and domains demonstrate that SOT significantly enhances model safety while maintaining competitive downstream performance, achieving a superior safety-utility trade-off compared to baselines.
format Preprint
id arxiv_https___arxiv_org_abs_2601_07200
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Safeguarding LLM Fine-tuning via Push-Pull Distributional Alignment
Wang, Haozhong
Li, Zhuo
Yang, Yibo
Zhao, He
Zha, Hongyuan
Guo, Dandan
Machine Learning
Artificial Intelligence
The inherent safety alignment of Large Language Models (LLMs) is prone to erosion during fine-tuning, even when using seemingly innocuous datasets. While existing defenses attempt to mitigate this via data selection, they typically rely on heuristic, instance-level assessments that neglect the global geometry of the data distribution and fail to explicitly repel harmful patterns. To address this, we introduce Safety Optimal Transport (SOT), a novel framework that reframes safe fine-tuning from an instance-level filtering challenge to a distribution-level alignment task grounded in Optimal Transport (OT). At its core is a dual-reference ``push-pull'' weight-learning mechanism: SOT optimizes sample importance by actively pulling the downstream distribution towards a trusted safe anchor while simultaneously pushing it away from a general harmful reference. This establishes a robust geometric safety boundary that effectively purifies the training data. Extensive experiments across diverse model families and domains demonstrate that SOT significantly enhances model safety while maintaining competitive downstream performance, achieving a superior safety-utility trade-off compared to baselines.
title Safeguarding LLM Fine-tuning via Push-Pull Distributional Alignment
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2601.07200