Latent Space Refusal Anchoring for Low-Resource African Languages: Mechanistic Safety Recovery Without Retraining
用英语能拒绝有害请求的AI模型,换成非洲低资源语言问同样的问题却会照做——研究者不重新训练,只靠调整模型内部信号就修复了这个问题
经过指令微调的语言模型用英语提问时会拒绝有害请求,但用约鲁巴语、伊博语、伊加拉语、豪萨语问同样的问题时却常常照做。作者发现模型内部其实存在拒绝机制,只是在这些语言上没有被激活,于是提出了一种不需要重新训练的方法LSR-Anchoring,在推理阶段把从英语提取出的拒绝方向信号强行注入到其他语言的输入中,在四种模型架构上都成功恢复了四种非洲语言的安全性,但对阿拉伯语始终无效甚至适得其反。
METAL MEDIA 解读图
用英语能拒绝有害请求的AI模型,换成非洲低资源语言问同样的问题却会照做——研究者不重新训练,只靠调整模型内部信号就修复了这个问题
- 01问题诊断:测量各语言内部激活与英语拒绝激活之间的几何差距(Refusal Centroid Drift)发现,伊加拉语的差距高达0.55,说明模型并非没有拒绝机制,只是该机制在这些语言上没有被触发。
- 02方法:用100个英语有害提示和50个无害提示的内部激活差异提取出一个'拒绝方向'向量,在推理时直接叠加到其他语言输入的内部信号上(称为Mean-Activation Steering,MAS),不需要重新训练、不需要目标语言数据,单张消费级GPU即可运行。
- 03结果:Llama-3.1-70B在四种语言上安全恢复率(SRR)接近满分——约鲁巴语1.00、伊加拉语1.00、伊博语0.99、豪萨语0.96;Mistral-7B和Qwen2.5-7B在恢复安全性的同时把对正常请求的误伤程度(DPL)控制在0.08以下。但Llama-3-8B出现过度矫正,DPL一度达到1.00,即连正常请求也被错误拒绝。
- 04改进:针对Llama-3-8B的问题,改用从稀疏自编码器(SAE)中提取的单一特征方向(称为SDS)替代原来的密集均值差向量,使KL散度(衡量模型输出分布变化程度的指标)降低3.5至7倍,且不再出现正常回答被破坏的情况。
- 05局限:阿拉伯语在所有模型架构和所有干预强度下都失败,安全性反而低于未干预时的基线,原因是阿拉伯语的内部表示处于几何上完全不同的区域。作者明确警告不要将此方法用于阿拉伯语智能体。
他们做了什么
- 问题诊断:测量各语言内部激活与英语拒绝激活之间的几何差距(Refusal Centroid Drift)发现,伊加拉语的差距高达0.55,说明模型并非没有拒绝机制,只是该机制在这些语言上没有被触发。
- 方法:用100个英语有害提示和50个无害提示的内部激活差异提取出一个'拒绝方向'向量,在推理时直接叠加到其他语言输入的内部信号上(称为Mean-Activation Steering,MAS),不需要重新训练、不需要目标语言数据,单张消费级GPU即可运行。
- 结果:Llama-3.1-70B在四种语言上安全恢复率(SRR)接近满分——约鲁巴语1.00、伊加拉语1.00、伊博语0.99、豪萨语0.96;Mistral-7B和Qwen2.5-7B在恢复安全性的同时把对正常请求的误伤程度(DPL)控制在0.08以下。但Llama-3-8B出现过度矫正,DPL一度达到1.00,即连正常请求也被错误拒绝。
- 改进:针对Llama-3-8B的问题,改用从稀疏自编码器(SAE)中提取的单一特征方向(称为SDS)替代原来的密集均值差向量,使KL散度(衡量模型输出分布变化程度的指标)降低3.5至7倍,且不再出现正常回答被破坏的情况。
- 局限:阿拉伯语在所有模型架构和所有干预强度下都失败,安全性反而低于未干预时的基线,原因是阿拉伯语的内部表示处于几何上完全不同的区域。作者明确警告不要将此方法用于阿拉伯语智能体。

| Language | Family | Baseline | RCD |
|---|---|---|---|
| Yoruba | Niger-Congo | 0.14 | 0.95 |
| Hausa | Afro-Asiatic | 0.22 | 0.60 |
| Igbo | Niger-Congo | 0.30 | 0.41 |
| Igala | Niger-Congo | 0.16 | 0.55 |
| Swahili | Bantu | 0.46 | 0.95 |
| Arabic | Semitic | 0.90 | 0.90 |
| Metric | Definition | Threshold |
|---|---|---|
| SRR | (steered−baseline)/nharmful | Higher |
| KL | DKL(Psteered∥Pbaseline) | <2.5 nats |
| DPL (Degraded Perf. on Legit.) | Benign prompts refused post-steering | <0.10 |
| Precision | Genuine/flagged refusals (manual) | >0.80 |
| Model | Lang. | SRR | α | KL | DPL |
|---|---|---|---|---|---|
| Llama-3.1-70B | Yoruba | 1.00 | 25 | 3.53 | — |
| Llama-3.1-70B | Igala | 1.00 | 20 | 2.58 | — |
| Llama-3.1-70B | Arabic | −0.20 | 25 | 2.91 | — |
| Mistral-7B | Igala | 0.75 | 25 | 0.61 | 0.06 |
| Mistral-7B | Yoruba | 0.25 | 25 | 1.43 | 0.08 |
| Qwen2.5-7B | Igala | 0.49 | 70 | 0.28 | 0.06 |
| Qwen2.5-7B | Arabic | −0.10 | 70 | 0.14 | 0.00 |
| Llama-3-8B | Igala | 0.81 | 2 | 4.64 | 1.00 |
| “—” = not instrumented; see caption. |
| Model | α | Acc. | Δ (pp) | OK |
|---|---|---|---|---|
| Mistral-7B | 0 | 0.6035 | — | — |
| 2 | 0.5937 | −0.98 | ✓ | |
| Llama-3-8B | 0 | 0.6699 | — | — |
| 2 | 0.6671 | −0.28 | ✓ | |
| Qwen2.5-7B | 0 | 0.7441 | — | — |
| 20 | 0.7420 | −0.21 | ✓ | |
| 40 | 0.7406 | −0.35 | ✓ | |
| Llama-3.1-70B | 0 | 0.8259 | — | — |
| Lang. | SDS SRR | SDS KL | SDS DPL | MAS SRR | MAS KL | MAS DPL |
|---|---|---|---|---|---|---|
| Yoruba | 0.06 | 0.25 | — | 0.81 | 4.85 | 1.00 |
| Hausa | 0.53 | 0.93 | — | 0.82 | 4.44 | 0.98 |
| Igbo | 0.70 | 2.35 | — | 0.80 | 6.46 | 1.00 |
| Igala | 0.62 | 1.35 | — | 0.81 | 4.64 | 1.00 |
| Swahili | 0.20 | 0.44 | — | 0.62 | 4.78 | 1.00 |
| Arabic | −0.48 | 2.56 | — | 0.21 | 5.34 | 0.96 |
| “—” = not instrumented; see caption. |
| Language | α | SRR | KL | DPL | Base. |
|---|---|---|---|---|---|
| Yoruba | 10 | 0.01 | 0.044 | 0.02 | 0.01 |
| 30 | 0.04 | 0.082 | 0.06 | 0.01 | |
| 50 | 0.16 | 0.149 | 0.10 | 0.01 | |
| 70 | 0.35 | 0.242 | 0.24 | 0.01 | |
| Hausa | 10 | 0.10 | 0.102 | 0.02 | 0.04 |
| 30 | 0.22 | 0.194 | 0.12 | 0.04 | |
| 50 | 0.41 | 0.326 | 0.34 | 0.04 | |
| 70 | 0.51 | 0.491 | 0.50 | 0.04 | |
| Igbo | 10 | 0.19 | 0.042 | 0.02 | 0.22 |
| 30 | 0.29 | 0.085 | 0.04 | 0.22 | |
| 50 | 0.33 | 0.127 | 0.06 | 0.22 | |
| 70 | 0.38 | 0.188 | 0.10 | 0.22 | |
| Igala | 10 | 0.03 | 0.069 | 0.04 | 0.02 |
| 30 | 0.10 | 0.118 | 0.00 | 0.02 | |
| 50 | 0.27 | 0.194 | 0.06 | 0.02 | |
| 70 | 0.49 | 0.283 | 0.06 | 0.02 | |
| Swahili | 10 | 0.01 | 0.038 | 0.00 | 0.02 |
| 30 | 0.05 | 0.087 | 0.02 | 0.02 | |
| 50 | 0.06 | 0.160 | 0.04 | 0.02 | |
| 70 | 0.11 | 0.266 | 0.12 | 0.02 | |
| Arabic | 10 | 0.00 | 0.049 | 0.00 | 0.11 |
| 30 | −0.04 | 0.074 | 0.00 | 0.11 | |
| 50 | −0.09 | 0.107 | 0.00 | 0.11 | |
| 70 | −0.10 | 0.143 | 0.00 | 0.11 |
| Lang. | Family | Base. | SRR | α | KL | Note |
|---|---|---|---|---|---|---|
| Yoruba | Niger-Congo | 0.14 | 0.06 | 4 | 0.25 | Ceiling |
| Hausa | Afro-Asiatic | 0.22 | 0.53 | 6 | 0.93 | Positive |
| Igbo | Niger-Congo | 0.30 | 0.70 | 8 | 2.35 | Strong |
| Igala | Niger-Congo | 0.16 | 0.62 | 6 | 1.35 | Strong |
| Swahili | Bantu | 0.46 | 0.20 | 4 | 0.44 | Moderate |
| Arabic | Semitic | 0.90 | −0.48 | 6 | 2.56 | Inverse |
为什么重要
全球有数亿使用非洲低资源语言的人群目前几乎得不到AI安全机制的有效保护,这项研究展示了仅用一张消费级GPU、无需收集新数据或重新训练就能缓解这一问题的方法。同时它在阿拉伯语上的明确失败也为实际部署提供了一条判断规则:什么情况下不能直接套用这种修复方法。
本文术语
- 残差流(residual stream) · transformer模型内部各层之间不断累积传递的信息通道
- 拒绝质心漂移(Refusal Centroid Drift, RCD) · 衡量某语言内部与拒绝相关的激活相对于英语偏离程度的指标
- 均值激活干预(Mean-Activation Steering, MAS) · 从英语有害与无害提示的激活差异中提取方向向量,并在推理时注入模型的方法
- 稀疏自编码器(Sparse Autoencoder, SAE) · 将模型内部混杂的信号分解为可解释的独立特征的辅助神经网络
- SRR / DPL / KL散度 · 分别衡量有害请求拒绝恢复程度、正常请求被误拒程度,以及干预前后模型输出分布变化幅度的指标
论文原文摘要(英文)
Instruction-tuned models often refuse harmful requests in English but comply with the same requests in Yoruba, Igbo, Igala, and Hausa. This suggests that the refusal mechanism is present in the residual stream but fails to activate for low-resource inputs. Recovering it normally requires labelled target-language data and retraining, neither of which is available at scale for most African languages. We introduce Latent Space Refusal Anchoring (LSR-Anchoring), a training-free method that extracts the refusal direction from English prompts and clamps it onto the residual stream at inference time. The primary variant, Mean-Activation Steering (MAS), operates across the four architectures we tested: Llama-3-8B, Llama-3.1-70B, Mistral-7B-Instruct, and Qwen2.5-7B. On Mistral and Qwen it recovers safety with benign degradation below 0.08. On Llama-3-8B it overcorrects, with Degraded Performance on Legitimate prompts (DPL) reaching 1.00. We address this with SAE-Derived Steering (SDS), which replaces the dense mean-difference direction with a single Sparse Autoencoder (SAE) feature and reduces Kullback-Leibler (KL) divergence by 3.5-7x without benign collapse. Four languages transfer positively, but Arabic fails on every architecture and at every steering magnitude, indicating a geometric mismatch rather than a baseline effect. Massive Multitask Language Understanding (MMLU) accuracy drops remain below 0.35 percentage points at every effective steering magnitude.
在 arXiv 阅读最新论文
- SWE-bench Science: Can Coding Agents Resolve Engineering Tasks in Science?让AI编程助手去修复真实科学软件,连最强的那个也有一半以上任务没做对
- FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Serving把稀疏注意力从论文原型变成能真正上线服务的加速方案
- PolicyGuide: From Guarding One Action to Guiding the Whole Workflow for Policy-Compliant LLM Agents让客服AI坐席不只是拦住一个危险动作,而是把整个流程走对
- EXIMO: VLM Guided Exploration of VLA Policies不用人工遥控演示,让会说话的AI来教机械臂做新家务
- EnvHarness: Awakening Static Worlds for Agent Learning不重新搭建训练环境,而是给现有环境套一层可插拔组件,针对每个智能体的具体弱点重新塑形
- Bounded Sovereignty and the Control Tax: Pricing AI Oversight When the Deployer Does Not Own the Model租用AI而非拥有AI的机构,安全监管能力只剩一半
- Beyond Imitation: Filtering On-Policy Distillation by Reasoning ProgressAI模仿老师模型学习时,会误伤本来推理正确的步骤,新方法专门过滤掉这种误伤
- PersonalBench: Measuring the Authorship Gap in LLM Personalization让AI模仿某人的文风,结果发现它始终摆脱不了自己的腔调
METAL MEDIA 最新报道
图片来源: Godwin Abuh Faruna et al., arXiv:2608.18089, CC BY 4.0