HackerTube English?
← Hacker Paper

HACKER PAPER · 2024 · NeurIPS 2024

Refusal in Language Models Is Mediated by a Single Direction

Andy Arditi, Oscar Obeso, Aaquib Syed, Daniel Paleka, Nina Panickssery, Wes Gurnee, Neel Nanda

12 个 HN 账号提及1 个账号明确推荐阅读 HN 评论 ↓

这篇论文在回答什么?

论文把“助手为什么拒绝”从输出风格问题推进到内部表示实验:在13个、1.8B至72B参数的开放聊天模型中,作者找到每个模型各自与拒绝行为有因果关联的一维方向。这给后训练如何塑造行为提供了具体研究对象。读结果时须分开拒绝措辞、回答有害性和通用任务表现;论文并未证明所有模型共享一个语义明确的安全开关。

怎样理解它的贡献

  1. 01

    对13个受测聊天模型,内部干预实验支持一个模型各自的一维方向能显著影响拒绝,并可导致无害请求被拒绝;这是受测分布中的机制证据(§2–3,PDF 3–5页)。

  2. 02

    拒绝分数检测常见短语,安全分数另用Llama Guard 2分类。附录D列出不说拒绝短语但仍安全、以及先拒绝又给有害回答的例子;两个分数不能互相替代(§2.5、附录D,PDF 4–5、23–25页)。

  3. 03

    多项基准上变化较小不等于所有能力不变:TruthfulQA在全部列出的模型上下降,Qwen 7B与Yi 34B还在其他部分基准出现显著下降(§4.3、附录G,PDF 7、29–30页)。

  4. 04

    附录J在四种模型的基础版与聊天版中观察到相关方向的相似表达,支持“后训练可能复用已有表示”的解释;相似度观察本身未完整证明训练如何复用(PDF 34页)。

回到原文核对

页码按 PDF 文件从第 1 页计算。跳页是否生效取决于原站阅读器;也可以按章节和短引查找。

repurposed for refusal during safety fine-tuning.
§ J The “refusal direction” is also present in base models · PDF 第 34 页 · NeurIPS 2024 proceedings查看这一页 ↗
accuracy on TRUTHFUL QA consistently drops for orthogonalized models.
§ 4.3 Measuring model coherence · PDF 第 7 页 · NeurIPS 2024 proceedings查看这一页 ↗

导读依据: NeurIPS 2024 proceedings ↗

把论文放进一个更大的问题

这些主题把论文与视频中的具体论点放在一起阅读。

Hacker News 评论 15

这里展示已核验、带论文链接的提及,按时间倒序排列,并非某个投稿下的全部评论。推荐、引用与批评分开标注;保留评论原文。

micoti引用原评论 ↗
Some of original blog post really seems to follow Arditi et al. (2024) (https://arxiv.org/abs/2406.11717). Projecting out a direction can only remove behaviour and not add capability so the jump mostly comes from unblocking the looping.

So I do agree it is misleading and trying to present work as groundbreaking.
查看其余 11 条评论
wren6991推荐原评论 ↗
This is the original description of abliteration and it's quite approachable and interesting to read: Refusal in Language Models Is Mediated by a Single Direction (https://arxiv.org/abs/2406.11717). Warning: changes to your world view caused by seeing "HarmBench" used to maximise expected harm instead of minimising it may be irreversible.

There's an empirical observation that models often have a single direction in their activation space for "hmm no I shouldn't do this". It forms naturally during pre-training, and is then surfaced during post-training to make the model refuse to engage in certain behaviour.

With a little bit of linear algebra you can zap that direction from the model's activations, and it stops refusing to do things. You can also do the opposite: magnify that direction, and the model refuses to do anything at all.
strangecasts引用原评论 ↗
> If you look at the field of mechanistic interpretability, compared to “GOFAI” like learned decision trees, an LLM is completely opaque.

I think the field deserves more credit than that, there are plenty of interpretability tools like

* natural language autoencoders for explanations of activations: https://transformer-circuits.pub/2026/nla/index.html (demo at https://www.neuronpedia.org/llama3.3-70b-it/nla )

* easier-to-interpret language model families like Backpack models: https://aclanthology.org/2023.acl-long.506/

* attribution graphs to trace internal reasoning steps: https://www.anthropic.com/research/open-source-circuit-traci... (demo at https://www.neuronpedia.org/gemma-2-2b/graph)

* functional analyses which have identified how LLMs do arithmetic - https://arxiv.org/html/2502.00873v1 - and how refusal happens: https://arxiv.org/abs/2406.11717

* data attribution methods linking training data to specific attention heads https://arxiv.org/abs/2601.21996

If we could give a comprehensive and global explanation of an LLM's behavior in a single paragraph, we wouldn't need the model to begin with, but that doesn't mean there's absolutely no understanding of the model internals whatsoever
lkjhgf引用原评论 ↗
This tool originates from the paper mentioned in the readme. Here is a summary:

Research has revealed that refusal behavior in language models is not governed by a complex logic, but rather by a single causal “direction” in their activation space. The researchers captured the model’s internal activation state after providing a number of harmless prompts and computed the average. They then did the same with harmful prompts and, by taking the difference between these values, identified a single vector (direction) whose presence and intensity in the model’s activation state determines whether the model will refuse or not. To demonstrate this, the researchers modified the model’s activations in real time and observed that they could make the model answer dangerous questions or force it to refuse harmless ones.

This discovery made it possible to create a permanent and inexpensive jailbreak technique called “Weight Orthogonalization.” Through a one-time (computationally light) modification, the model’s weights are made “orthogonal” to the refusal direction, making the model physically incapable of forming that type of reasoning. The method proved to be nearly 100% effective on 13 open-source models, including Llama, Qwen, and Gemma of various sizes. Performance remained nearly identical across all benchmarks (MMLU, GSM8K), with the sole exception of TruthfulQA, where performance declined, suggesting a deep connection between safety mechanisms and truthfulness.

This is the link to the paper: https://arxiv.org/pdf/2406.11717
lkjhgf引用原评论 ↗
This tool originates from the paper mentioned in the readme. Here is a summary:

Research has revealed that refusal behavior in language models is not governed by a complex logic, but rather by a single causal “direction” in their activation space. The researchers captured the model’s internal activation state after providing a number of harmless prompts and computed the average. They then did the same with harmful prompts and, by taking the difference between these values, identified a single vector (direction) whose presence and intensity in the model’s activation state determines whether the model will refuse or not. To demonstrate this, the researchers modified the model’s activations in real time and observed that they could make the model answer dangerous questions or force it to refuse harmless ones.

This discovery made it possible to create a permanent and inexpensive jailbreak technique called “Weight Orthogonalization.” Through a one-time (computationally light) modification, the model’s weights are made “orthogonal” to the refusal direction, making the model physically incapable of forming that type of reasoning. The method proved to be nearly 100% effective on 13 open-source models, including Llama, Qwen, and Gemma of various sizes. Performance remained nearly identical across all benchmarks (MMLU, GSM8K), with the sole exception of TruthfulQA, where performance declined, suggesting a deep connection between safety mechanisms and truthfulness.

link to the paper: https://arxiv.org/pdf/2406.11717
直接投稿与讨论(2)Refusal in Language Models Is Mediated by a Single Direction · 118 分 · 2026-05-02 ↗Refusal in language models is mediated by a single direction · 209 分 · 2024-06-18 ↗