arXiv:2608.29936cs.CLAug 2026

Manuscript Offprint

arXiv:2608.29936

When Safety Speaks a Language: A Mechanistic Analysis of Safety-Language Identity Entanglement in LLMs

Apoorva Upadhyaya, Sandipan Sikdar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Safety alignment of large language models (LLMs) degrades across languages, yet the internal mechanism driving this asymmetry remains poorly understood. Our work, therefore, presents a systematic mechanistic analysis of multilingual safety using sparse autoencoder (SAE) features—sparse interpretable directions in the residual stream associated with harmful and harmless model behavior—across three instruction-tuned LLMs, eight languages, and all model layers. We observe that safety-relevant features are architecture-dependent in terms of where they are located and how they are distributed across layers. Additionally, they are geometrically entangled with language identity and exhibit cross-lingual sharing patterns, i.e., languages share safety features to varying degrees across model depths and architectures. This safety-language entanglement has direct consequences such that ablating safety features impacts not only harmful response rates but also target language, with the degree of intervention predicted by the relationship between safety and language features. Our findings qualify the language-universality of safety alignment as architecture-dependent and offer a mechanistic account of multilingual safety interventions.

1 Introduction

Safety alignment of large language models (LLMs) does not transfer uniformly across languages: models that reliably refuse harmful requests in English produce substantially more harmful responses in other languages (Deng et al., 2023; Shen et al., 2024; Yong et al., 2025). A growing body of work addresses this gap through multilingual safety benchmarks (Ning et al., 2025), training-time consistency losses and reward-based transfer (Li et al., 2025; Zhao et al., 2025; Bu et al., 2026), and weight-editing approaches that localize and transfer safety representations across languages (Liang et al., 2026; Zhang et al., 2026). Yet the internal mechanism behind this asymmetry remains poorly understood.

Recently, mechanistic methods Wang et al. (2026); Zhang et al. (2026); Liang et al. (2026) that investigate these two threads: safety and language identity. For example, Wang et al. (2026) extract a refusal direction from English and show that it generalizes to other languages while Zhang et al. (2026) identify a small set of shared safety neurons that mediate cross-lingual transfer. However, such analyses do not expose how safety features relate geometrically to language identity, nor do they explain whether the safety interventions will cleanly transfer to model architectures or a particular target language. We argue that understanding this interaction between safety and language at a more granular level is critical in designing robust safety mechanisms.

Sparse autoencoders (SAEs) have recently emerged as a powerful tool for mechanistic interpretability, decomposing residual stream activations into sparse, monosemantic directions (Cunningham et al., 2023). Prior work has applied SAEs to safety steering (Goyal et al., 2025) and to disentangling language-specific representations (Deng et al., 2025), demonstrating their effectiveness at capturing both safety-relevant and language-specific features independently. However, it remains largely unclear how these two features interact when generating responses.

In this work, we address these gaps through a systematic mechanistic analysis of safety-relevant SAE features across three instruction-tuned LLMs (Llama-3.1-8B-Instruct, Qwen2.5-7B-Instruct, and Gemma-2-9B-IT) over all layers and eight typologically diverse languages (EN, ZH, DE, AR, VI, ID, RU, HI). We focus on two types of safety-relevant features: harm features, whose activations are predictive of harmful model responses, and harmless features, whose activations are predictive of safe or refusal responses, alongside language identity features, whose activations are predictive of the language in which a prompt is written (Sections 2 and 3). Unlike single directions or neuron sets, SAE features are layer-resolved and monosemantic (Fereidouni et al., 2026), enabling us to characterize not only where safety is encoded, but how safety and language identity are jointly organized in the residual stream. Additionally, it allows us to investigate how such organization varies across architectures and whether it predicts the cost of cross-lingual safety interventions. The detailed related work is in Appendix A.

We organize our analysis through the following research questions. RQ1: Is safety alignment universal or language-specific inside multilingual instruction-tuned LLMs? We observe that safety signals concentrate in late layers universally, but the ordering of safety harm and harmless features is architecture-dependent with language-specific patterns (Section 4.1). RQ2: Are safety features entangled with language identity within languages and across language pairs? We find that safety and language identity features are geometrically entangled in the residual stream beyond feature ID-level sharing and that this entanglement peaks in late layers for Llama and Qwen precisely where safety signals are strongest. In Gemma, they remain largely disentangled throughout, a fundamental difference in safety organization not visible at the direction or neuron level (Section 4.2.1). Cross-lingual safety feature sharing peaks in middle layers, decoupled from where safety signals are strongest, and English is consistently the most geometrically isolated language of the eight studied despite being the dominant source for cross-lingual safety transfer in prior work (Section 4.2.2). RQ3: Does safety-language entanglement predict the cost of mono-and cross-lingual safety interventions? Across targeted feature interventions, safety-language entanglement scores predict not only harmful response rates but also language identity degradation and fluency cost across experiments, including a complete output language shift under high cross-lingual similarity, demonstrating that geometric entanglement is not merely descriptive but causally consequential (Section 4.3).

Taken together, our findings show that safety-language entanglement is architecture-dependent, varies in strength and depth across models, and predicts the cost of safety interventions; thus offering the community a mechanistic account of how safety and language identity interact inside multilingual LLMs and a practical basis for anticipating when cross-lingual safety transfer will succeed.