How Fragile Is On-Device Language Model Safety? Localizing Safety-Critical Parameters for Sparse Fault Analysis
Abstract
As small language models (SLMs) are increasingly deployed on resource-constrained and on-device platforms, including as components of agentic systems, the integrity of locally stored model parameters becomes an important safety concern. We investigate whether safety-sensitive behavior in LLaMA-2-7B-Chat is concentrated within a sparse subset of parameters, creating a reduced fault surface for targeted analysis. We study two complementary localization methods: low-rank safety-associated subspace analysis and parameter-level safety--utility importance filtering. Both approaches reveal highly non-uniform safety sensitivity across the network, with the MLP downproj consistently emerging as a prominent safety-sensitive component and oproj providing a smaller contribution. Using parameter-level localization, modifying only 0.19% of model weights in downproj yields 53% Basic ASR and 56% GCG ASR, while tinyBenchmarks accuracy remains at 51.6% compared with a 52.2% unmodified baseline. These results motivate targeted fault analysis and selective integrity protection for language models deployed in resource-constrained, on-device, and agentic settings.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL, cs.CR, cs.LG, cs.SE
- Comments
- Accepted at NeurIPS 2026 Workshop
Related papers
Uncovering Hidden Behaviours in Language Models via Limited-Parameter Finetuning
Shared title terminologycs.AIBoyd Kane, Jo J. Jiao, Elizabeth Donoway et al.
Learning Heterogeneous Reasoning in Large Language Models: From Mode Compatibility to Local Bottlenecks
Shared title terminologycs.AISunbowen Li, Dandan Song, Shengkun Ma et al.
HGP:An on-device personalized agent memory via hybrid graph storage
Shared title terminologycs.AIRan Zhou, Xueming Han, Jiaheng Liu et al.
Loud Failures, Quiet Failures: Fault Detection and Recovery in Tool-Using Language Model Agents
Shared title terminologycs.AIObada Kraishan
SafeEvo: Deciphering the Safety Alignment Mechanism and Evolution in Language Models
Shared title terminologycs.AIMiao Yu, Hao Huang, Lu Yuan et al.
LimoBench: How Street Smart Are Large Language Models?
Shared title terminologycs.AIGautam Choudhary, Jack Peng, Udesh Kumarasinghe et al.