Hierarchical Safety Realignment: Lightweight Restoration of Safety in Pruned Large Vision-Language Models

With the growing size of Large Vision-Language Models (LVLMs), network pruning techniques designed to compress these models for deployment in resource-constrained environments have attracted significant attention.However, we observe that pruning frequently results in a degradation in safety performance.To address this issue, we propose a novel and lightweight approach, named Hierarchical Safety Realignment (HSR).HSR operates by first quantifying the contribution of each attention head to safety, identifying the most critical ones, and then selectively restoring neurons directly within these attention heads that play a pivotal role in maintaining safety.This process hierarchically realigns the safety of pruned LVLMs, progressing from the attention head level to the neuron level.We validate HSR across various models and pruning strategies, consistently achieving notable improvements in safety performance.To the best of our knowledge, this is the first work explicitly focused on restoring safety in LVLMs post-pruning.The code will be available at https://github.com/TheShineyue/HSR.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.394
Primary Topic
Semantic Web and Ontologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hierarchical Safety Realignment: Lightweight Restoration of Safety in Pruned Large Vision-Language Models

Dongsheng Shi, Xiaoling Wang, Xin Yi, Gerard de Melo et al.
Semantic Web and Ontologies
article

Hierarchical Safety Realignment: Lightweight Restoration of Safety in Pruned Large Vision-Language Models

Dongsheng Shi, Xiaoling Wang, Xin Yi, Gerard de Melo, Linlin Wang, Yue Li
article en

Abstract

With the growing size of Large Vision-Language Models (LVLMs), network pruning techniques designed to compress these models for deployment in resource-constrained environments have attracted significant attention.However, we observe that pruning frequently results in a degradation in safety performance.To address this issue, we propose a novel and lightweight approach, named Hierarchical Safety Realignment (HSR).HSR operates by first quantifying the contribution of each attention head to safety, identifying the most critical ones, and then selectively restoring neurons directly within these attention heads that play a pivotal role in maintaining safety.This process hierarchically realigns the safety of pruned LVLMs, progressing from the attention head level to the neuron level.We validate HSR across various models and pruning strategies, consistently achieving notable improvements in safety performance.To the best of our knowledge, this is the first work explicitly focused on restoring safety in LVLMs post-pruning.The code will be available at https://github.com/TheShineyue/HSR.

Sustainable cities and communities
Openalex Percentile: Top 90%
Semantic Web and Ontologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.