Skip to content

Study locates safety-sensitive parameters in LLaMA-2-7B-Chat: modifying 0.19% of weights achieves 53% attack success rateHow Fragile Is On-Device Language Model Safety? Localizing Safety-Critical Parameters for Sparse Fault Analysis

Paper Tracker· arXiv:2610.09000· Muhammad Zeeshan Karamat, Christiana Chamon Garcia·Indexed by this site · 2026-10-08· Originally publishedAttacks

Quick read

Interpretability

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

Localizing down_proj in LLaMA-2-7B-Chat: modifying 0.19% of weights yields Basic ASR 53% and GCG ASR 56%.

Questions
Language models in on-device and resource-constrained agents face integrity faults in local weights. The authors ask: is safety behavior concentrated in a sparse subset of parameters, so that fault analysis need not search all weights and can weaken alignment with minimal loss of general capability?
Methods
Calibrated on LLaMA-2-7B-Chat using AdvBench refusal responses and Alpaca-Cleaned. The low-rank method subtracts safety-related weight components after utility orthogonalization; the parameter-level method scores by weight magnitude and input activation, zeroes safety-specific weights, and restricts to components like down_proj.
Experiments and results
Parameter-level only on down_proj (0.19% of total model weights) yields Basic ASR 53%, GCG ASR 56%, utility 51.6% (baseline 52.2%, Table 2). The authors state down_proj is most prominent, with o_proj contributing less.
Limitations and future work
The authors state this is not an end-to-end hardware attack: 0.19% still corresponds to millions of weights, and bit-level effects depend on numerical format, memory architecture, and fault mechanisms. Future work will compare random and magnitude baselines and study selective integrity protection. The experimental model is LLaMA-2-7B-Chat; the paper does not report ASR for the unmodified model or the number of repetitions.
Experimental setupLLaMA-2-7B-Chat · AdvBench、AdvBenchattr et al. · Basic ASR、GCG ASR et al.
Evaluated models
LLaMA-2-7B-Chat
Benchmarks
AdvBenchAdvBenchattrAdvBenchevalAlpaca-CleanedtinyBenchmarks
Metrics
Basic ASRGCG ASRtinyBenchmarks accuracy
AI summaryThe researchers examine on LLaMA-2-7B-Chat whether safety-sensitive behavior is concentrated in a sparse subset of parameters, to narrow the fault surface that can be targeted by attacks. They use two complementary methods—low-rank safety subspace analysis and parameter-level safety–utility importance filtering—and find that safety sensitivity within the network is highly non-uniform, with MLP down_proj consistently the most prominent safety-sensitive component)Skip, while o_proj contributes less. Modifying only 0.19% of model weights in down_proj achieves 53% Basic ASR and 56% GCG ASR, while tinyBenchmarks accuracy remains 51.6% versus 52.2% for the unmodified baseline. The authors therefore propose targeted fault analysis and selective integrity protection for language models deployed in resource-constrained, on-device, and agent scenarios. This work has been accepted at the NeurIPS 2026 Workshop.

The researchers examine on LLaMA-2-7B-Chat whether safety-sensitive behavior is concentrated in a sparse subset of parameters, to narrow the fault surface that can be targeted by attacks. They use two complementary methods—low-rank safety subspace analysis and parameter-level safety–utility importance filtering—and find that safety sensitivity within the network is highly non-uniform, with MLP down_proj consistently the most prominent safety-sensitive component)Skip, while o_proj contributes less. Modifying only 0.19% of model weights in down_proj achieves 53% Basic ASR and 56% GCG ASR, while tinyBenchmarks accuracy remains 51.6% versus 52.2% for the unmodified baseline. The authors therefore propose targeted fault analysis and selective integrity protection for language models deployed in resource-constrained, on-device, and agent scenarios. This work has been accepted at the NeurIPS 2026 Workshop.

Related events and news

1 events · 1 news mentions

News that mentions this paper

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Is safety behavior in on-device weights concentrated in a small number of parameters, thereby narrowing the search space for fault analysis?

    Can safety alignment behavior be selectively weakened by modifying a small number of parameters without broadly degrading general capabilities.

    • Scenario: The authors state that language models are being deployed to edge and on-device settings and as components of resource-constrained agents. Local weights are exposed to hardware reliability and integrity threats; unlike prompt jailbreaks that require per-turn triggering, weight faults can directly alter alignment mechanisms and persist across subsequent interactions.
    • Gap in existing work: The authors state that bit-level attacks on billion-parameter models have a large search space, and only a small subset of parameters may be directly relevant to safety behavior. Indiscriminate disruption may only degrade overall quality, so safety-related parameters must be separated from those also important for general utility.
    • Hypothesis: If safety-sensitive behavior disproportionately depends on a structured subset of parameter space, these regions can provide a narrowed candidate space for hardware fault analysis.
    • Analysis proposed: On LLaMA-2-7B-Chat, compare a low-rank safety-related subspace with parameter-level safety–utility importance filtering, examine whether safety sensitivity is concentrated in a few architectural components, and discuss a reduced fault surface and selective integrity protection.
    • Threat model:
      • Adversary and knowledge: White-box. The target is a locally deployed safety-aligned language model; the adversary has access to parameters and can analyze offline, but does not retrain or fine-tune.
      • Goal: Use sparse parameter perturbations to weaken safety alignment behavior while minimally reducing benign utility.
      • Capability limits: No requirement to modify inference-time prompts. Current experiments simulate parameter-level interventions, not physical hardware faults; mapping to achievable bit flips is left as future work.
      • Victim invocation: Includes models that may serve as components of resource-constrained agents. The authors state that agents repeatedly and autonomously invoke the model in planning, tool use, and intermediate actions; once a parameter fault is written, it persists across subsequent calls that the user may not directly see.
  2. What related research exists?

    Related work covers on-device small models, safety localization, and bit flips; this paper first does safety–utility localization rather than directly searching bits.

    Related Work is divided into three groups. The authors place this paper before direct search over attack bits: first doing a safety–utility localization to expose a smaller fault candidate set.

    On-Device Small Models and Agents

    • Belcak et al. [2025]: argue that SLMs are suitable for specialized, repetitive tasks in agent pipelines, with lower computational cost favoring deployment.
    • MobileLLM [Liu et al., 2024]: builds sub-billion-parameter models for mobile, demonstrating capabilities on common on-device tasks including API calling.
    • Scale and local execution: Corradini et al. [2025] notes that recent literature often classifies around 7B and below as SLMs, citing LLaMA-2-7B and Mistral-7B. Xue et al. [2024] shows that models of this scale can run locally on smartphones.

    Internal Localization of Safety Behavior

    • Arditi et al. [2024]: study refusal in instruction-tuned models, proposing it can be mediated by a low-dimensional direction in the residual stream.
    • Wei et al. [2024]: identify sparse safety-relevant regions at parameter and rank levels, separate from regions important for general utility. The current authors follow this safety–utility perspective to examine whether local regions can provide a reduced candidate space for hardware-level fault analysis of on-device models.

    Bit Flips and Fault Injection

    • Progressive Bit Search [Rakin et al., 2019]: searches over bits in binary representations of neural network parameters. The authors state that a few targeted bit flips can severely degrade quantized neural networks.
    • PrisonBreak [Coalson et al., 2024]: performs targeted bit flips on safety-aligned language models, largely preserving benign functionality.
    • Zahran et al. [2025]: studies fault-induced jailbreaks on FP16, FP8, INT8, and INT4. The authors state that numerical format affects attack effectiveness and vulnerable components.

    References in experiments: This paper does not re-run the above attack methods as baselines. Localization data are AdvBench harmful instructions with their refusal responses, and Alpaca-Cleaned minus safety-related samples; evaluation is ASR on AdvBench_eval and accuracy on tinyBenchmarks, with utility reference at 52.2% for the unmodified model. Comparisons against random and magnitude-selected baselines are left to future work (Section 6).

    Position of this paper: The authors state that, unlike directly searching for effective attack bits, they first localize parameters disproportionately important for safety relative to utility, to expose a more compact fault surface for later bit-level analysis.

  3. How does the paper address this problem?

    Using low-rank safety subspace and parameter-level safety–utility filtering to localize weights, then performing component-wise sparse intervention.

    On LLaMA-2-7B-Chat, the authors follow the safety–utility framework of Wei et al. [2024], using two complementary localizations to identify parameters disproportionately contributing to safety yet relatively less important for general utility, and then modify only those positions. Neither intervention involves retraining or fine-tuning.

    Calibration Data

    • Safety set Ds: harmful instructions from AdvBench, paired with the aligned model's own refusal responses. Attribution uses 420 of them (AdvBench_attr).
    • Utility set Du: Alpaca-Cleaned, i.e., benign instruction–response pairs from Stanford Alpaca after removing safety-related samples.
    • Token range: both methods mask prompt tokens nov, using only activations from response tokens.

    Low-Rank Safety Subspace

    For a single linear projection, collect input activations from response tokens in Ds and Du, compute module output, perform truncated SVD, and use right singular vectors for output-space projection. The utility-orthogonalized safety-related component is Δ W = Pu⊥ Ps W. The intervention subtracts this component from the original weights. They describe it as: suppressing components related to safety alignment and reducing overlap with benign utility directions.

    • Sparsification: globally sort by absolute value, retain fraction ρ, keeping only entries above threshold τ_ρ, then apply the same subtraction.
    • Scope: can be applied to all projections or restricted to specified architectural components. The paper mentions truncated SVD but does not specify the truncation rank.

    Parameter-Level Safety–Utility Filtering

    Each weight's importance is I(Wij) = |Wij| ‖ Xin,j,:‖2, i.e., the absolute weight multiplied by the ℓ2 norm of the corresponding input feature over calibration tokens. Computed separately on Ds and Du, yielding Is and Iu.

    • Set difference: Ss is the set of top-ranked weights by Is, Su is the utility-important set. Sspec is Ss minus Su. They state this removes weights important for both safety and general instruction following, leaving candidates relatively more specific to safety.
    • Intervention: zero out weights in Sspec, leave others unchanged. The paper does not specify the rank cutoffs for Ss and Su; it only reports the proportion of weights relative to the full model after intervention.
    • Evidence form: evaluate functional impact of these parameters via behavior changes after zeroing, rather than only reporting score magnitudes.

    Component-Wise Narrowing

    • Projections: attention q_proj, k_proj, v_proj, o_proj, and MLP gate_proj, up_proj, down_proj, covering all transformer layers.
    • Approach: low-rank path restricts the sparsified component to different projection groups; parameter-level path restricts zeroing in Sspec to selected projections or combinations.
    • Stated purpose: to test whether safety-sensitive intervention must broadly alter the network or can be localized to specific architectural regions, thereby narrowing the candidate space for subsequent fault analysis.

    How It Is Determined

    • Safety: ASR computed on held-out AdvBench_eval (100 examples). Following Zou et al. [2023], success is when the generated response lacks key refusal patterns. Basic ASR uses no adversarial suffix; GCG ASR uses GCG adversarial suffix, which the authors treat as a stress test under stronger adversarial prompts. The paper does not list specific refusal patterns nor state which model generates the suffixes.
    • Utility and proportion: utility is tinyBenchmarks accuracy. Section 4 reports the weight proportion relative to the full model; Table 1's Top fraction is the magnitude-based retention fraction within the low-rank intervention, not the full-model weight proportion.
  4. What experiments did the paper conduct?

    After modifying 0.19% of weights on down_proj, Basic ASR is 53%, GCG ASR is 56%, and utility is 51.6% versus 52.2% for the baseline.

    Experimental Setup

    • Model: All experiments use only LLaMA-2-7B-Chat. The authors state it falls within the SLM parameter range commonly used in the literature, and attack and evaluation tools already exist.
    • Data: AdvBench is split into AdvBenchattr with 420 harmful instructions for attribution, and AdvBencheval with 100 for evaluation. Safety attribution collects refusal responses from the aligned model on AdvBenchattr. Utility attribution uses Alpaca-Cleaned with safety-related samples removed.
    • Metrics: Basic ASR is for harmful prompts without adversarial suffixes, GCG ASR is with GCG adversarial suffixes. Success criteria is that the generated response lacks key refusal patterns (per Zou et al. [2023]). Utility is tinyBenchmarks accuracy, with the unmodified model at 52.2%.
    • Interventions: Low-rank methods vary the retention ratio and architectural scope within the intervention; parameter-level methods zero out safety-specific weights identified via set difference, evaluated on all projections, MLP projections, and selected projection types. Weight ratios in Table 2 are relative to the full model.
    • Review: The paper does not use an LLM judge, does not report human agreement, sampling settings, number of repetitions, nor which model generated the GCG suffixes. The ASR of the unmodified model is not reported.

    Main Results

    Sparse zeroing for parameter-level safety–utility localization. Model is LLaMA-2-7B-Chat, safety metrics on AdvBencheval. Utility is tinyBenchmarks accuracy; unmodified model is 52.2%, its ASR not reported. Per Table 2.

    Swipe horizontally to read the table

    ComponentWeight ratioBasic ASRGCG ASRUtility
    All modules2.95%91%97%47.1%
    MLP only1.87%86%94%49.7%
    down_proj + o_proj0.23%58%60%51.3%
    down_proj0.19%53%56%51.6%
    o_proj0.04%20%14%52.0%
    • The authors state that narrowing from all modules to MLP and then to down_proj retains most of the safety effect, so safety sensitivity is highly concentrated architecturally.
    • The authors state that o_proj alone is much weaker; in both localizations, down_proj is the most prominent safety-sensitive component.
    • The authors state that with highly localized interventions, utility remains close to the unmodified baseline, and they argue the safety-related parameter space is much smaller than the full model. Section 6 also states that parameter sparsity cannot be directly interpreted as bit-level vulnerability.

    Sparsity and Components in Low-Rank Interventions

    • What was tested: Varying the retention ratio within the low-rank intervention and the projection scope it applies to. Top fraction is the proportion retained by magnitude within that intervention, not a full-model weight ratio. Metrics remain the two ASRs on AdvBencheval and tinyBenchmarks (Table 1).
    • Results: All modules at retention ratios 1.0, 0.1, 0.01, 0.001 give Basic ASR 87%, 71%, 36%, 20%, GCG ASR 98%, 85%, 25%, 18%, and utility 49.3%, 50.1%, 50.7%, 51.8%. MLP only at 1.0 / 0.1 gives 77%, 89%, 49.8% and 54%, 64%, 51.1%. down_proj only at 1.0 / 0.1 gives 51%, 43%, 51.2% and 32%, 26%, 51.4%.
    • Authors' interpretation: The authors state that the top 10% by magnitude still retains considerable safety degradation, with a rapid drop by 1%, and argue modifications concentrate on higher-magnitude entries. They state that restricting to MLP retains most of the effect, down_proj alone still causes safety degradation, and utility approaches the 52.2% baseline when more localized. In several cells GCG ASR is lower than Basic ASR, e.g., all modules at 0.01 is 25% vs 36%, down_proj at retention 1.0 is 43% vs 51%; the paper does not explain this.

    Other Ablations and Analyses

    • Table 1 all modules, Top fraction 0.001: Basic ASR 20%, GCG ASR 18%, utility 51.8%.
    • Table 1 MLP only, Top fraction 0.1 GCG ASR is 64%, lower than the 85% for all modules at 0.1 in the same table.
    • Table 1 down_proj only, Top fraction 0.1: GCG ASR 26%, lower than the Basic ASR 32% in the same cell; the paper does not explain.
    • Parameter-level all modules utility is 47.1%, the utility figure farthest from 52.2% in Table 1 and Table 2 (Table 2).
    • The paper does not report the unmodified model's ASR, number of repetitions, or control numbers against random zeroing or magnitude-based selection; the latter is listed as future work by the authors (Section 6).
  5. What are some points that can be further explored?

    The authors state that an end-to-end hardware attack has not yet been demonstrated, and only later do they compare against random and magnitude baselines.

    Limitations and future directions noted by the authors

    • Not directly a bit-level vulnerability: The authors state that parameter sparsity should not be directly interpreted as bit-level fragility; even 0.19% of the weights of a 7B model corresponds to millions of weights, and practical hardware fault attacks ideally require only a few physically achievable bit modifications (Section 6).
    • Dependence on implementation details: The authors state that bit-level effects also depend on numerical representation, memory architecture, and fault mechanisms. Section 1.1 leaves as future work mapping these parameters to a small number of physically achievable bit flips under specific numerical formats, memory architectures, and fault mechanisms.
    • Not an end-to-end hardware attack: The current experiments localize a narrowed safety-sensitive parameter space but have not yet demonstrated an end-to-end hardware attack; the experiments simulate parameter-level interventions rather than physical hardware faults (Section 6, Section 1.1).
    • Utility estimation: The authors state that tinyBenchmarks provides only a compact utility estimate (Section 6).
    • Future comparisons and protections: Future work will investigate whether these regions are enriched in high-impact bit-level faults, compare against random and magnitude-based baselines, and examine selective integrity protection for safety-sensitive regions (Section 6). The Conclusion again lists as future work whether physically achievable bit-level vulnerabilities are similarly sparse and whether selective integrity protection can harden these regions.

    Experimental coverage

    • The experimental model is LLaMA-2-7B-Chat (Section 4).
    • Safety attribution uses AdvBenchattr with 420 items, evaluation uses AdvBencheval with 100 items; utility attribution uses Alpaca-Cleaned, utility evaluation uses tinyBenchmarks, with an unmodified accuracy of 52.2% (Section 4).
    • Low-rank subtraction covers all modules, MLP only, and down_proj only, with retained fractions from 1.0 to 0.001; parameter-level zeroing covers all modules, MLP only, down_proj+o_proj, down_proj, and o_proj (Table 1, Table 2).
    • ASR is determined by whether the generated response lacks key refusal patterns, and is reported separately for two prompt settings: without suffix and with GCG suffix (Section 4).
    • The paper does not report the number of repetitions, the ASR of the unmodified model, the ranking cutoff for Ss and Su, the SVD truncation rank, the model that generated the GCG suffixes, or the agreement between refusal pattern determination and human annotation.
  6. Summarize the main content of the paper

    The safety weights of LLaMA-2-7B-Chat are concentrated in down_proj; modifying 0.19% increases ASR while utility remains close to baseline.

    Safety-sensitive parameters in LLaMA-2-7B-Chat are highly concentrated: a small structured modification can raise ASR on harmful requests while measured general accuracy remains close to the unmodified model.

    The authors are concerned about weight integrity in edge and resource-constrained agents. A white-box adversary can inspect local parameters offline, without fine-tuning, and use sparse perturbations to weaken safety alignment while preserving utility as much as possible. Prompt jailbreaks require per-turn triggering; once parameter faults are written, they persist across subsequent calls such as planning and tool use.

    There are two approaches, both calibrated using only reply tokens. The low-rank path extracts safety-related components orthogonalized against utility from activations of AdvBench refusal responses and Alpaca-Cleaned, subtracts them, and retains by magnitude. The parameter-level path ranks weights by absolute value times input activation norm, and zeroes out weights that are also important for utility after removal. Interventions can be restricted to each projection in attention and MLP.

    The evaluation set is 100 AdvBench eval items, with success defined as the response lacking key refusal patterns:

    • Parameter-level only on down_proj, 0.19% of total model weights: Basic ASR 53%, GCG ASR 56%, tinyBenchmarks 51.6%, unmodified baseline 52.2% (Table 2).
    • Same method on all modules at 2.95%: Basic ASR 91%, GCG ASR 97%, utility 47.1%; only o_proj at 0.04% gives 20% and 14% (Table 2).
    • Low-rank intervention retaining its own top 10% by magnitude: all modules Basic ASR 71%, GCG ASR 85%; at 1% retention, 36% and 25% (Table 1). The proportion here is retention within the intervention, not a proportion of total model weights.

    The authors argue that safety behavior disproportionately depends on a small structured set of parameters, thereby narrowing the candidate space for subsequent fault analysis. They also state this is not yet an end-to-end hardware attack; bit-level effects depend on numerical representation, memory architecture, and fault mechanisms, and tinyBenchmarks is only a compact utility estimate.

Related papers

Both use: tinyBenchmarks
Show 3 more papers
Read originalarxiv.org