forg3t-rdm-tofu-benchmark
收藏资源简介:
该数据集名为 Forg3t RDM on TOFU,旨在提供 Retain-Distribution Matching (RDM) 方法在大语言模型遗忘(LLM unlearning)任务上的测量结果与重现方案。数据基于 TOFU 基准(TOFU benchmark),包含在 Llama-3.2-1B-Instruct 模型上进行的多次实验,覆盖 forget10 和 forget05 等子任务。数据集提供了不同超参数(如 RDM 的 alpha 值)下的遗忘质量(以 KS D 距离衡量)和模型效用(utility),并与 RMU、NPO 等多种基线方法进行比较。此外,数据集包含一个完整的重现脚本(reproduce_rdm.sh),可从裸机(仅 NVIDIA 驱动)重现头条结果,并记录了不同硬件(A100 40GB 和 L4 24GB)上的资源消耗与运行时间。数据集的规模小于 1000 个样本,主要为 JSON 格式的测量结果和表格。该数据集适用于 LLM 遗忘方法的研究者,用于评估 RDM 及其对比方法的性能、稳定性和可复现性。
The dataset, named Forg3t RDM on TOFU, aims to provide measurement results and reproduction schemes for the Retain-Distribution Matching (RDM) method on the large language model unlearning task. The data is based on the TOFU benchmark and includes multiple experiments conducted on the Llama-3.2-1B-Instruct model, covering sub-tasks such as forget10 and forget05. The dataset provides unlearning quality (measured by KS D distance) and model utility under different hyperparameters (e.g., alpha values of RDM), and compares with multiple baseline methods such as RMU and NPO. In addition, the dataset includes a complete reproduction script (reproduce_rdm.sh) that can reproduce the headline results from bare metal (only NVIDIA driver), and records resource consumption and running time on different hardware (A100 40GB and L4 24GB). The dataset size is less than 1000 samples, mainly in JSON format measurement results and tables. This dataset is suitable for researchers of LLM unlearning methods to evaluate the performance, stability, and reproducibility of RDM and its comparison methods.
Forg3t RDM on TOFU 数据集详情
数据集概述
该数据集记录了 Retain-Distribution Matching (RDM) 方法在 TOFU 基准上进行大语言模型(LLM)机器遗忘(unlearning)的测量结果,并附带一个可在全新机器上从零复现核心指标的脚本。数据集大小类别为 n<1K,使用英文,遵循 CC BY 4.0 许可(模型权重继承 Llama 3.2 Community License)。
核心内容
1. 复现性
- 一键复现脚本:
reproduce_rdm.sh可从仅装有 NVIDIA 驱动的机器开始,直接得到头条数字。 - 无需训练即可验证:发布的检查点位于
AlvinAgile/Llama-3.2-1B-Instruct-forg3t-rdm-forget10,评估仅需约 2 分钟,无需 24 GB GPU;从头训练约需半小时,需要 24 GB GPU。 - 硬件需求:最低 24 GB VRAM、约 35 GB 磁盘、CUDA 驱动、Python 3.11。在无头 L4 上余量仅 2%。
- 测量数据(非估算):
| 指标 | A100 40 GB | L4 24 GB |
|---|---|---|
| 平均 KS D | 0.1125 | 0.1125 |
| 模型效用 | 0.5345 | 0.5329 |
| 峰值显存 | 33,882 MiB | 22,560 / 23,034 MiB |
| 端到端时间 | 31 分 44 秒 | 52 分 43 秒 |
- 多种子复现结果(TOFU forget10,RDM alpha=1.5,三颗种子):KS D 均值 0.1125(范围 0.1100–0.1150),效用均值 0.5335。原始测量为 0.1108 @ 0.536。
- 固定版本:代码 commit
9d40628,权重和 tokenizer88e31200…,评估日志f31717fe…,locuslab/TOFU数据为324592d8…(已校验 SHA,若有变动脚本会中止)。
2. 主要结果(TOFU forget10)
越低 KS D 越好,越高效用越好。 保留模型(金标准):KS D = 0,效用 0.5921。
RDM 并非排名第一,RMU alpha=0.4 达到最低 KS D (0.0883),但代价是效用降至保留模型的 70%。
| KS D | 方法 | 效用 | 占保留模型% | D·400 范围 | n |
|---|---|---|---|---|---|
| 0.0883 | RMU alpha=0.4 | 0.417 | 70% | 25–48 | 6 |
| 0.1108 | RDM alpha=1.5 | 0.536 | 90% | 44–45 | 3 |
| 0.1142 | RDM alpha=2.0 | 0.538 | 91% | 44–48 | 6 |
| 0.1158 | RDM alpha=2.5 | 0.539 | 91% | 46–47 | 3 |
| 0.1171 | RMU alpha=0.5 | 0.513 | 87% | 40–58 | 6 |
| 0.1208 | RDM alpha=3.0 | 0.545 | 92% | 48–49 | 3 |
| 0.1267 | RDM alpha=4.0 | 0.553 | 93% | 49–52 | 3 |
| 0.1325 | RDM alpha=5.0 | 0.557 | 94% | 50–55 | 3 |
| 0.1383 | RMU alpha=1.0 | 0.578 | 98% | 49–64 | 6 |
| 0.1625 | NPO alpha=1.0 | 0.410 | 69% | 63–67 | 3 |
关键洞察:
- RDM 在双轴上支配 RMU alpha=0.5(0.1142/0.538 vs 0.1171/0.513)。
- RMU 唯一的优势点牺牲了保留模型 30% 的效用。
- RDM alpha=1.5 的稳定性比 RMU alpha=0.4 高一个数量级(种子间跨度 1 步 vs 23 步,每 400 步)。
- RMU 剩余的胜点效用等于或高于保留模型,表明模型几乎没有变化。
3. TOFU forget05:RDM 最强结果
| KS D | 方法 | 效用 | n |
|---|---|---|---|
| 0.1250 | RMU alpha=0.3 | 0.183(被摧毁) | 3 |
| 0.1375 | RDM alpha=1.5 | 0.508 | 6 |
| 0.1383 | RDM alpha=2.0 | 0.523 | 6 |
| 0.1908 | RMU alpha=0.4 | 0.349 | 6 |
| 0.2300 | NPO alpha=1.0 | 0.453 | 3 |
| 0.2350 | RMU alpha=0.45 | 0.402 | 3 |
| 0.2500 | RMU alpha=0.5 | 0.445 | 3 |
RDM 在此严格支配 RMU(alpha 0.4–0.6),双轴均更优。 RMU 仅在 alpha=0.3 时遗忘更多,但效用降至保留模型的 31%。
4. 其他方法对比
最佳配置后,除 RMU、RDM 和 NPO 外,没有任何方法 KS D 低于 0.24。CEU 和 GradAscent 效用为 0.000。
5. RDM 的劣势场景
- Llama-3.2-3B:RMU 胜出(0.1108 @ 0.620 vs RDM 0.1308 @ 0.625)。
- forget01:n=40,D 步长 0.025,所有方法落在 12–15/40,无法区分任何方法(基准固有属性)。
- MUSE:见范围限制。
版本修正与范围限制
- 已撤回内容:早期版本中的 OpenUnlearning 汇总表三行
forget_quality已撤回。原因:forget_quality是 n=400 双样本 KS 检验的 p 值,比率不反映效应量;该表突出显示的 8 倍比率实际仅 400 步中的 3.1 步。检查点本身标签诚实,但汇总表未保留该背景。 - MUSE 声明撤回:此前声称 RDM 不适用于判别性指标的声明已撤回,因为相关运行从未达到其自身目标(遗忘边际仅移动 26.6%,两集合保持不相交),且目标参考池选取错误。
- TOFU forget01 无法区分任何方法,这是基准属性。
- 建议引用 KS 距离,而非引用
forget_qualityp 值的比率。
许可
- 模型权重继承 Llama 3.2 Community License(含命名和署名要求)。
- 基准汇总与文档为 CC BY 4.0。
- 第三方基准和模型名称归其所有者所有。





