Skip to content

Safety-critical parameters in LLMs and MLLMs: identification, characterization, and interventionSafety-Critical Parameters in LLMs and MLLMs: Identification, Characterization, and Intervention

Zefeng Wu, Weiwei Qi, Wei Gu, Tianhang Zheng, Zikang Zhang, Xiaojun Jia, Zhan Qin, Kui Ren
State Key Laboratory of Blockchain and Data Security, Zhejiang University; Hangzhou High-Tech Zone, Binjiang Institute of Blockchain and Data Security; College of Computing and Data Science, Nanyang Technological University
arXiv: 其他 AI 安全论文arXiv:2612.05693Originally published Indexed by this site · 2 days agoDefenses

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

The authors propose NC-MSI to locate safety-critical parameters in LLMs/MLLMs, and use it for safety enhancement and adaptation; a 1% parameter perturbation raises the HarmBench ASR on Llama3-8B-it to 65.2%.

Questions
Existing gradient attribution mostly measures parameter importance with general training loss, does not directly evaluate output safety, and ignores inter-layer parameter scale, single-point gradient fluctuation, and MLLMs. The authors aim to uniformly localize safety-critical parameters and use them for safety enhancement and downstream adaptation.
Methods
NC-MSI combines the smoothed gradient of the expected output safety value with the parameter standard deviation, aggregating gradients over multiple Gaussian-perturbed model states; it provides two estimators, PG and JD. SET trains only the high-scoring parameters; SPA freezes the high-scoring parameters, trains the low-scoring parameters, and corrects updates with SafeAdamW.
Experiments and results
The experiments cover text, image, video, and audio models. Under 1% parameter perturbation, NC-MSI-JD achieves a HarmBench ASR of 65.2% and an ESI of 57.6% on Llama3-8B-it; SET reduces ASR, and SPA maintains task utility during downstream training while limiting the rise in ASR.
Limitations and future work
The paper does not specifically discuss limitations. Safety evaluation is judged by GPT-4o on a 1–5 scale, with 5 counting as attack success; no human review or reviewer agreement is reported. Attribution defaults to N=50, K=4; SET uses 100 steps and SPA uses 1000 steps, all with 3 random seeds.
Experimental setupLlama3-8B-Instruct、Llama3-70B-Instruct et al. · AdvBench、VLGuard et al. · ASR、NC-MSI et al.
AI summaryThe paper proposes the multimodal safety index MSI and its extension NC-MSI, identifying different distributions of safety-critical parameters in LLMs and MLLMs. Its intervention strategy SET updates only 1% of parameters, reducing the attack success rate of under-aligned models by more than 70% within 100 steps. SPA freezes critical parameters and adopts the SafeAdamW optimizer; after fine-tuning aligned models for 1,000 steps, the average safety degradation does not exceed 0.5%.

The paper proposes the multimodal safety index MSI and its extension NC-MSI, identifying different distributions of safety-critical parameters in LLMs and MLLMs. Its intervention strategy SET updates only 1% of parameters, reducing the attack success rate of under-aligned models by more than 70% within 100 steps. SPA freezes critical parameters and adopts the SafeAdamW optimizer; after fine-tuning aligned models for 1,000 steps, the average safety degradation does not exceed 0.5%.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study how to locate safety-critical parameters across LLMs and MLLMs, and use a small number of parameter updates to enhance or preserve safety.

    The core question is: how to directly identify safety-critical parameters in LLMs and MLLMs according to their impact on output safety, and turn the identification results into controllable safety interventions.

    • Research scenarios: The authors focus on model safety under harmful text, image, video, and audio inputs, as well as two scenarios: safety fine-tuning and downstream adaptation of aligned models. Their goal is not to propose new jailbreak attacks, but to analyze the relationship between parameters and output safety.
    • Four shortcomings of existing methods: The authors believe that gradients of general training loss do not directly measure output safety; gradient magnitude or the weight–gradient product ignores parameter distribution differences across layers and modules; there is relatively little MLLM research; and gradients from a single model state are insufficient to characterize local parameter geometry.
    • Core observation: The authors define safety value as the expected safety score of responses on harmful inputs, and use a first-order approximation to write the impact of a single parameter as the product of the safety gradient and the parameter change; they further apply Gaussian smoothing over neighborhood states to aggregate gradients with consistent directions.
    • Proposed framework: The paper proposes MSI and its neighborhood-consensus version NC-MSI, with two gradient estimators, PG and JD; it then proposes SET, which updates only key parameters, and SPA, which freezes key parameters, updates low-scoring parameters, and uses SafeAdamW.
    • Nature of the evidence: Parameter perturbation experiments are used to verify the safety causal impact of the identified parameters, and layer and module distributions and cross-modal overlap are used to characterize structure; the paper does not use external attackers or threat model terminology such as white-box or black-box.
  2. What related research exists?

    Related work is divided into safety component localization, parameter-level attribution, and safety intervention; this paper emphasizes direct safety value, neighborhood consensus, and multimodal unification.

    Safety-related component identification

    • Studies of residual stream, layers, and neurons: The paper mentions residual stream safety feature analysis, hidden-state safety layer localization, and work that finds safety neurons by deactivating or contrasting MLP activations; these studies mainly analyze safety mechanisms at different representation levels.
    • MLLM safety localization: Related studies use causal analysis to localize safety layers and neurons; SafeNexus (2026) uses activation importance to identify modality-specific and shared safety neurons.

    Parameter-level safety attribution

    • Wanda, SNIP, and GMT: Wanda measures importance based on weight magnitude and input activations; SNIP and GMT use the weight–gradient product and gradient magnitude, respectively. The authors point out that they rely on supervised loss on predefined safety responses, do not directly evaluate output safety, and do not handle parameter distribution differences across layers.
    • SafeSeek and ESI: SafeSeek uses differentiable mask optimization to localize safety circuits across weights, neurons, and attention heads; ESI is the conference preprint version of this paper and uses expected safety value and single-state attribution. The authors state that this paper extends to MLLMs, adds neighborhood consensus, and improves JD.
    • SmoothGrad and NoiseGrad: The two average attribution over input and weight perturbations, respectively. The authors point out that their goal is input feature attribution, not parameter-level safety impact.

    Safety enhancement and safety preservation

    • Safety enhancement: SFT, RLHF, DPO, and SEA, DREAM, and SafeGRPO on MLLMs are alignment methods; SN-Tune, SafeSeek, and SafeNexus select safety-related components for intervention. The authors state that the former have relatively high computational cost and may harm general capabilities.
    • Safety preservation: SafeLoRA projects LoRA updates into a safety subspace, and RSN-Tune, SafeSeek, and HPA protect safety-related components; SafeGrad and SPF handle conflicts between task gradients and safety gradients. The authors argue that protecting only the selected parameters cannot constrain updates to the remaining parameters, and that original gradient projection does not cover the effective updates after optimizer transformation.

    Experimental baselines and localization

    • Attribution baselines: LLMs use SN, GMT, Wanda, SNIP, ESI, SafeSeek, and Random; MLLMs use GMT, Wanda, SNIP, SafeSeek, and Random. After perturbation, ASR is measured on HarmBench, WildJailbreak, MM-SafetyBench, SIUO, Video-SafetyBench, VA-SafetyBench, and JALMBench.
    • Intervention baselines: SET compares LoRA, ESI-SET, SN-Tune, SaCirT, SafeNexus, etc.; SPA compares LoRA, SafeLoRA, ESI-SPA, RSN-Tune, SafeSeek, and HPA. The authors position this paper as unified multimodal parameter attribution that simultaneously constrains parameter selection and effective optimizer updates.
  3. How does the paper address this problem?

    NC-MSI scores with a smoothed safety value gradient and parameter standard deviation, then separately guides sparse safety training and safety-preserving adaptation.

    The overall framework is MSI/NC-MSI attribution — perturbation validation and structural analysis — SET/SPA intervention. Figure 1 depicts it as three steps, covering text, image, audio, and video inputs.

    Safety value and parameter importance

    • For samples in the harmful input distribution, the model generates responses and a safety scoring function assigns a value from 0 to 1; V(w)=𝔼x∼ Dharm𝔼y∼ pw(·|x)[v(y)] denotes the model's expected output safety value, where higher means greater safety under the authors' definition.
    • The first-order approximation of a single-parameter perturbation writes the safety change as the product of that parameter's safety gradient and the change amount. MSI further takes the standard deviation σi of the weight matrix containing the parameter and scores with MSI(wi)=|σi∇wiV(w)|, thereby considering both the safety gradient and the parameter scale.

    Neighborhood consensus and gradient estimation

    • NC-MSI adds to each parameter an independent Gaussian perturbation with mean zero and scale γσi, constructs K neighborhood model states, and averages the safety gradients across states. Gradients in opposite directions cancel in expectation, so the score reflects both magnitude and neighborhood direction consistency.
    • The default setting is N=50 attribution samples, K=4, γ=0.01. Proposition 1 gives, under differentiability and dominance conditions, that the smoothed value gradient equals the expected neighborhood gradient; Appendix S1 gives the proof.
    • PG estimation uses the safety judge's binary decision and policy gradient. The authors note that on under-aligned models that rarely produce safe responses, most samples have no nonzero safety signal, making the gradient relatively sparse.
    • JD estimation uses a differentiable judge J to give a continuous safety probability, relaxes discrete responses with Gumbel-Softmax, and then enters the judge embedding space through a fixed sparse cross-vocabulary mapping. The default is B=4, τ=0.3; Appendix S2 proves that repeated independent sampling reduces the conditional variance by 1/B.

    SET: safety enhancement fine-tuning

    • For under-aligned models, the top-k% parameters are selected by NC-MSI to form Wsafe, the remaining parameters are frozen, and supervised fine-tuning is performed only on the safety dataset. By default the top 1% is updated, using 800 samples, 100 AdamW optimization steps, and a learning rate of 2×10−5.
    • SET covers text, image, and audio safety data; the intervention goal is to reduce ASR on harmful requests while limiting the range of trainable parameters, and to check changes in general capability.

    SPA and SafeAdamW: downstream adaptation

    • For aligned models, SPA freezes Wsafe and selects trainable weights only from the remaining low-NC-MSI-score parameters, then performs supervised training on downstream task data. By default the bottom 10% is updated, using 4,000 samples, 1,000 steps, and the same learning rate of 2×10−5.
    • SafeAdamW targets the effective update after AdamW's momentum, adaptive preconditioning, and weight decay, removing components that conflict with the safety gradient rather than only projecting the raw task gradient.
    • Proposition 2 states that this correction is the unique update with minimum Euclidean distance to the standard AdamW update under the constraint that the first-order smoothed safety value does not decrease; Appendix S3 gives the proof. The finite-step bound in Appendix S4 also indicates that when gradient estimation error and the curvature term are nonzero, the safety value is not guaranteed not to decrease at every step.

    Validation and judgment method

    • Attribution validation adds Gaussian noise to the top-k% parameters selected by each method, with k taking 0.1, 1, and 3; within the same model, all methods use the same noise scale, and the larger the ASR increase, the more the authors tend to consider the selected parameters more safety-critical.
    • For MLLMs, parameters are selected jointly for the language backbone and for the modality encoder and projection layer. Safety evaluation uses data not used in the attribution stage; GPT-4o rates responses on a 1–5 scale, and a score of 5 counts as attack success and is used to compute ASR.
  4. What experiments did the paper conduct?

    The experiments cover four-modality attribution, structural analysis, SET, and SPA; under 1% perturbation, NC-MSI-JD is higher than the baselines in the table.

    Experimental setup

    • Identification models: Llama3-8B/70B-Instruct, Qwen2.5-14B-Base, Qwen3-30B-A3B-Instruct; image models are OneVision-1.5-8B-it and InternVL3.5-8B-it, video is Qwen2.5-VL-7B-it, and audio is Qwen2-Audio-7B-it.
    • Intervention models: SET uses the base versions of Qwen2.5-7B/14B, Llama3-8B, InternVL3.5-8B, OneVision-1.5-8B, and Qwen2-Audio-7B; SPA uses the corresponding instruction-tuned versions, where the LLMs are Qwen2.5-7B/14B-it and Llama3-8B-it.
    • Attribution and evaluation data: Attribution uses AdvBench, VLGuard, MCV-SafetyBench, and synthetic speech from WildGuardMix; safety evaluation instead uses HarmBench, WildJailbreak, MM-SafetyBench, SIUO, the DM subset of Video-SafetyBench, VA-SafetyBench, and JALMBench.
    • Sample sizes: HarmBench, WildJailbreak, MM-SafetyBench, Video-SafetyBench, and VA-DM each have 400 examples; SIUO has 167 examples; JALMBench uses the full AHarm and 400 examples of ADiv. SET is trained with 800 examples, and SPA with 4,000 examples.
    • Judge and metrics: Llama-Guard-3-8B provides the attribution safety signal; GPT-4o evaluates on a 1–5 scale, with 5 counted as a successful attack. Metrics include ASR, task utility U, parameter overlap rate, runtime, and GPU memory.
    • Repetition and budget: Experiments use 3 random seeds and report mean and sample standard deviation. SET uses 100 steps and updates 1% of parameters; SPA uses 1,000 steps and updates 10% of parameters.

    Main results

    The 1% parameter perturbation results in Table I are as follows; values are ASR (%), and the original models are not perturbed. HB, WJ, MM, and VSB correspond to HarmBench, WildJailbreak, MM-SafetyBench, and Video-SafetyBench, respectively.

    Swipe horizontally to read the table

    Model and benchmarkOriginalStrongest baseline (method)NC-MSI-PGNC-MSI-JD
    Llama3-8B-it, HB14.557.6 (ESI)62.465.2
    Llama3-70B-it, HB18.055.8 (ESI)60.362.8
    Qwen2.5-14B-Base, HB53.378.9 (ESI)80.584.6
    Qwen3-30B-A3B-it, HB4.326.8 (ESI)29.131.2
    OneVision-1.5-8B-it, SIUO3.626.3 (SafeSeek)36.138.9
    InternVL3.5-8B-it, SIUO4.223.8 (SafeSeek)29.931.7
    Qwen2.5-VL-7B-it, VSB19.031.9 (SafeSeek)38.340.5
    Qwen2-Audio-7B-it, AHarm4.918.3 (SafeSeek)24.426.4
    • Attribution results: Across all models, benchmarks, and the three levels of 0.1%, 1%, and 3% in Table I, NC-MSI-JD has higher ASR than the listed baselines; the authors therefore consider the parameters it identifies to be more safety-critical.
    • Difference between the two estimators: In the same table, NC-MSI-JD is higher than NC-MSI-PG in all cases. The authors believe that continuous safety scores provide more sufficient gradient information than PG's binary signal.
    • Utility and fluency: The authors state that the ASR increase is accompanied by a relatively small impact on general utility. Appendix Table S10 reports that under 1% perturbation of Llama3-8B-it, NC-MSI has PPL of 1.78 (P1) and 2.08 (P2), used to check whether unsafe outputs are still coherent text.

    Structural distribution and cross-modal sharing

    • Layer distribution: Figure 3 shows average NC-MSI scores normalized by parameter count. The authors state that, based on this, the key parameters of dense LLMs are concentrated in middle-layer Attn V and MLP, while MoE shifts toward later-layer MLP experts; MLLMs additionally involve the output projections of the early-to-middle layers of the vision encoder and the later layers of the audio encoder.
    • Cross-modal perturbation: In Table III, on OneVision-1.5-8B-it, text-selected parameter perturbation raises image MM ASR from 16.8% to 31.8%, and image-selected parameter perturbation raises text HB ASR from 12.0% to 48.5%; the corresponding top-1% backbone parameter overlap rate is 58.4%.
    • Overlap range: The cross-modal top-1% overlap rates of the four MLLMs are 48.6%–58.4% (Table III). The authors therefore consider some safety-critical parameters in the language backbone to be shared across modalities.

    SET and SPA intervention

    • SET safety results: In Table IV, after Qwen2-Audio-7B-Base is trained with WJ-TTS, NC-MSI-SET reduces ADiv ASR from 88.0% to 11.3%, and SaCirT is 20.4%; after Qwen2.5-7B-Base is trained with CB-Safety, HB ASR is 4.9%, and ESI-SET is 6.8%.
    • SET general capability: The main text reports that after NC-MSI-SET, Qwen2.5-7B-Base achieves 68.54% on GSM8K and 73.65% on MMLU, decreases of 0.68 and 0.25 percentage points relative to the original model, respectively. Figure 4 also compares other models and methods, but the text conversion does not provide bar values that can be matched item by item.
    • SPA safety and utility: In Table V, after Qwen2.5-7B-it is adapted on AGNews, LoRA's HB ASR rises from 32.8% to 44.7%, and NC-MSI-SPA is 33.5%; the main text writes the two increases as 11.9 and 0.7 percentage points, respectively. NC-MSI-SPA's AGNews accuracy is 90.7%, and LoRA's is 90.9%.
    • Independent SafeAdamW comparison: Table VII compares optimizers under full-parameter fine-tuning without NC-MSI freezing. On the GSM8K task with Qwen2.5-14B-it, WJ ASR decreases from 60.4% with AdamW to 48.9% with SafeAdamW, with utility of 81.6% and 81.5%.

    Other ablations and analyses

    • Component ablation (Table II): Under 1% perturbation, Llama3-8B-it's NC-MSI-JD is 65.2%, removing σi gives 61.3%, removing neighborhood consensus gives 59.2%, and after matching the sampling budget it is 60.1%.
    • K and γ (Figure 2): The authors state that gains level off after K exceeds 4, so K=4 is used; ASR varies non-monotonically with γ, and the default is 0.010. The text conversion does not provide point-by-point values for each curve.
    • Cross-modal exception: In Table III, for Qwen2-Audio-7B-it, text-selected parameter perturbation only raises ADiv ASR from 2.0% to 12.8%, lower than some other directions in the same table; the authors' overall conclusion is partial sharing, not that all parameters are fully shared.
    • Over-refusal (Table S13): On CB-Safety, NC-MSI-SET raises the overall over-refusal rate of Llama-3-8B from 1.56% to 3.33%, Qwen2.5-7B from 4.89% to 7.11%, and Qwen2.5-14B from 5.11% to 6.44%.
    • Computational cost (Table VIII): On a single H200, Llama3-8B attribution takes 2.1 minutes and 43.4GB of GPU memory; Qwen2-Audio-7B takes 2.5 minutes and 44.8GB, respectively.
    • General parameter overlap (Table S12): On Llama3-8B-it, the top-1% overlap between the general parameters selected by NC-MSI and those selected by SparseGPT/RIA is 2.84%–4.92%, lower than the other attribution methods in the table.
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations; the scope of evidence is mainly defined by four-modality models, GPT-4o evaluation, and a fixed training budget.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations. The Conclusion summarizes the method and experimental results and does not list independent future research directions; Appendix S4 states that the finite-step safety bound does not guarantee that the safety value does not decrease at each step when there is gradient estimation error or the curvature term is nonzero, but does not list this as future work.

    Experimental coverage

    • Models in identification experiments: The main perturbation experiments cover 4 LLMs and 4 MLLMs, corresponding to text, image, video, and audio (Section IV-A, Table I); Figure 3 additionally shows attribution distributions for Qwen2.5-14B-it, Qwen3-235B-A22B-it, Qwen2.5-Omni-7B-it, and Voxtral-Small-24B-it.
    • Models in intervention experiments: SET and SPA each cover 6 models; SET uses base versions, and SPA uses instruction-tuned versions (Section V-A, Tables IV–V). The SafeAdamW full-parameter fine-tuning comparison covers Qwen2.5-7B/14B-it and Llama3-8B-it (Table VII).
    • Evaluation method: ASR is rated by GPT-4o on a 1–5 scale, with 5 counted as a successful attack; images or video frames are also input to GPT-4o (Appendix S5-C). The paper does not report manual review or agreement between humans and GPT-4o.
    • Training and repetition settings: SET uses 800 samples, 100 steps, and 1% trainable parameters; SPA uses 4,000 samples, 1,000 steps, and 10% trainable parameters; experiments use 3 random seeds (Section V-A, Appendices S6/S8). The paper does not report intervention experiments on closed-source target models.
    • Attribution robustness: The appendix compares 6 attribution judges, input resampling, weight center shift, and 3 perturbation protocols; the default attribution budget is N=50, K=4, and JD uses B=4, τ=0.3.
  6. Summarize the main content of the paper

    The authors use NC-MSI to connect parameter safety attribution with intervention, and validate perturbation, SET, and SPA effects on four-modality models.

    This is an analysis and intervention study on the internal safety parameters of LLMs and MLLMs, with the goal of locating the parameters that affect output safety more directly than generic loss gradients, and using a small number of parameter updates to improve or preserve alignment.

    • Method core: MSI combines the gradient of the expected output safety value with the parameter standard deviation; NC-MSI further aggregates gradients over multiple Gaussian-perturbed neighborhood states. PG uses a binary safety signal; JD uses continuous judge scores, Gumbel-Softmax, and a cross-vocabulary mapping.
    • Attribution evidence: Under the 1% perturbation in Table I, NC-MSI-JD achieves a HarmBench ASR of 65.2% and an ESI of 57.6% on Llama3-8B-it; on OneVision-1.5-8B-it it achieves 38.9% on SIUO and 26.3% on SafeSeek. In the table, the JD results for all eight model–benchmark combinations are higher than the corresponding baselines.
    • Structural findings: The authors state that the key parameters of dense LLMs are mainly located in the middle-layer Attn V and MLP, while MoE leans more toward later-layer MLP experts; the overlap rate of cross-modal top-1% language backbone parameters across the four MLLMs is 48.6%–58.4% (Table III).
    • Safety enhancement: SET updates only the top 1% parameters and trains for 100 steps. After WJ-TTS training, Qwen2-Audio-7B-Base's ADiv ASR drops from 88.0% to 11.3%; after CB-Safety training, Qwen2.5-7B-Base's HarmBench ASR is 4.9%.
    • Safety preservation: SPA freezes the key parameters, updates the low-scoring parameters, and corrects the effective update with SafeAdamW. After AGNews adaptation, Qwen2.5-7B-it with NC-MSI-SPA has a HarmBench ASR of 33.5%, versus 32.8% for the original model, with a task accuracy of 90.7%.
    • Authors' conclusion: The authors believe NC-MSI can uniformly support multimodal parameter-level safety analysis, and that SET and SPA provide paths for safety enhancement and downstream adaptation, respectively. The safety results depend on GPT-4o's 5-point attack-success judgment; the paper does not report human-review agreement and does not specifically discuss limitations.

Research lineage

5 foundations · 0 follow-ups in library
Evaluates On2
Explore in knowledge graph →
Builds on / cites5
This paper
Safety-Critical Parameters in LLMs and MLLMs: Identification, Characterization, and Intervention
2026-12-03
Follow-up work

No later in-library follow-ups recorded yet.

Why cited · Relation evidenceEvaluates On§ S9-A Over-Refusal AnalysisThis paper → Foundation
“To assess whether NC-MSI affects benign utility, we evaluate over-refusal rates on XSTest [50] and an OR-Bench [51] subset.”
OR-Bench: An Over-Refusal Benchmark for Large Language Models · 2024-05

Related papers

Read originalarxiv.org