em-activation-transport
收藏资源简介:
该数据集是用于研究 emergent misalignment (EM) 现象的推理时激活传输实验的研究产物。它包含两个实验子集:em_transport(探索状态依赖的激活传输是否优于恒定引导)和 em_decoupling(探索传输能否在去除广泛 EM 的同时保留狭窄训练行为)。每个子集提供以下数据:token 匹配的层15残差流激活对(h_org 和 h_clean,共 98,492 对,fp16 精度,维度 4096)、拟合的传输映射(包括子空间 U、均值差 mu、仿射变换 W 等)、原始生成文本(包含广泛 EM 评估、狭窄医学问题和 GSM-16 能力问题)、以及使用 gpt-5.4-nano 判断器得到的对齐度和连贯性分数。em_decoupling 子集还包含域标签(prov: 0 表示通用域,1 表示医学域)以及仅在通用对上拟合的映射和其在外推域上的诊断。数据集由两个模型产生:ModelOrganismsForEM/Llama-3.1-8B-Instruct_bad-medical-advice(排名32 LoRA)和干净的 meta-llama/Llama-3.1-8B-Instruct。数据生成方法:从一个模型采样响应,然后通过教师强制让两个模型生成相同的 token 序列,并读取层15激活。该数据集适用于可解释性、激活引导、消除模型行为异常等研究,允许用户使用不同的模型、评分标准或阈值重新判断生成文本,或重新拟合传输映射,而无需 GPU。注意:判断分数来自非标准判断器 gpt-5.4-nano,激活仅包含层15,且生成文本中包含故意错误对齐的模型输出(包括不安全的医学建议),仅作为研究数据使用。数据集基于 Llama 3.1 社区许可。
This dataset is a research product for inference-time activation transport experiments studying the emergent misalignment (EM) phenomenon. It contains two experimental subsets: em_transport (exploring whether state-dependent activation transport is better than constant guidance) and em_decoupling (exploring whether transport can remove broad EM while retaining narrow training behavior). Each subset provides the following data: token-matched layer 15 residual stream activation pairs (h_org and h_clean, 98,492 pairs, fp16 precision, dimension 4096), fitted transport maps (including subspace U, mean difference mu, affine transformation W, etc.), original generated text (including broad EM evaluation, narrow medical questions, and GSM-16 capability questions), and alignment and coherence scores obtained using gpt-5.4-nano judge. The em_decoupling subset also includes domain labels (prov: 0 for general domain, 1 for medical domain) and maps fitted only on general pairs with their diagnostics on the extrapolation domain. The dataset is produced by two models: ModelOrganismsForEM/Llama-3.1-8B-Instruct_bad-medical-advice (rank 32 LoRA) and the clean meta-llama/Llama-3.1-8B-Instruct. Data generation method: sample responses from one model, then use teacher forcing to make both models generate the same token sequence, and read layer 15 activations. This dataset is suitable for research on interpretability, activation steering, and removing model behavioral anomalies, allowing users to re-judge generated text with different models, scoring criteria, or thresholds, or re-fit transport maps without GPU. Note: judge scores come from a non-standard judge gpt-5.4-nano, activations only include layer 15, and generated text contains deliberately misaligned model outputs (including unsafe medical advice), for research use only. The dataset is based on the Llama 3.1 Community License.
数据集概述
该数据集为 EM activation transport,包含两项关于**涌现性错位(Emergent Misalignment, EM)**的推理期激活传输实验的研究产物。实验基于模型生物体 ModelOrganismsForEM/Llama-3.1-8B-Instruct_bad-medical-advice(rank-32 LoRA),与干净的 meta-llama/Llama-3.1-8B-Instruct 进行对比。
数据集的核心价值在于:激活和生成结果是实验中昂贵且固定的部分,而评分结果便宜且可修订。因此,数据集同时发布原始文本与评分,允许任何人使用不同的模型、评分标准或阈值重新评分,并在无需GPU的情况下重新拟合传输映射。
数据内容
目录一:em_transport/ — 状态依赖传输是否优于恒定引导?
| 文件 | 说明 |
|---|---|
paired_acts.safetensors |
98,492个 token匹配 的第15层激活对(fp16,维度d=4096),包含 h_org 和 h_clean |
maps.pt |
拟合的子空间 U(33维)、均值差 mu、仿射变换 W、MLP权重、标准化参数及几何统计量 |
gens.json |
所有实验臂的原始生成结果(rows 为广泛EM评估,cap_rows 为GSM-16) |
judged.json |
带 aligned / coherent 评分的生成行(评分模型为gpt-5.4-nano) |
em_results.json |
每个实验臂的汇总结果 |
目录二:em_decoupling/ — 传输能否移除广泛EM而保留窄域训练行为?
| 文件 | 说明 |
|---|---|
paired_acts.safetensors |
h_org、h_clean,以及 prov(0 = 通用领域,1 = 医疗领域) |
maps.pt、geometry.json |
仅基于通用配对拟合的映射,包含留出领域的R²诊断 |
gens_anchors.json、gens_rest.json |
原始生成结果:broad(8个标准EM问题)、narrow(40个留出医疗问题)、cap(GSM-16) |
judged_anchors_*.json、judged_rest_*.json |
带评分的生成行 |
gate.json |
锚点完整性门控记录 |
decoupling_results.json |
每个实验臂的汇总、解耦平面坐标、选择性指数 |
配对构建方法
从单个模型中采样响应序列,然后通过两个模型强制前向传播相同的token序列(使用显式注意力掩码和位置ID),在第15层残差流读取有效响应位置的激活值。由于两个模型共享分词器,h_org[i] 和 h_clean[i] 是相同上下文中的相同token——这种配对方式使得传输映射可以通过普通回归而非分布匹配来拟合。
使用说明
重新评分(无需GPU)
python import json from huggingface_hub import hf_hub_download
rows = json.load(open(hf_hub_download( "assisted-diffusion/em-activation-transport", "em_decoupling/gens_rest.json", repo_type="dataset")))["narrow"]
每行包含: {"arm", "qid", "question", "text"} -> 用任意评分器评分
重新拟合传输映射(拟合本身无需GPU)
python from safetensors.torch import load_file P = load_file(hf_hub_download("assisted-diffusion/em-activation-transport", "em_decoupling/paired_acts.safetensors", repo_type="dataset")) h_org, h_clean, prov = P["h_org"].float(), P["h_clean"].float(), P["prov"] D = h_clean[prov == 0] - h_org[prov == 0] # 仅使用通用配对计算修复位移
注意事项
judged_*中的评分来自gpt-5.4-nano,而非标准的gpt-4o评分器;绝对评分应视为内部比较。窄域集采用仅形式的连贯性评分标准(修订版v2);广泛集使用标准EM评分标准。- 激活值仅限第15层,仅针对一个模型生物体和一个基础模型。
- 生成结果包含故意错位的模型输出,包括不安全的医疗建议,仅作为测量和移除该行为的研究数据,不应视为任何建议。
- 基于Llama构建,使用需遵守 Llama 3.1 Community License。




