math-lean-hackable-rollouts
收藏资源简介:
该数据集名为“Math Lean Hackable Rollouts”,包含2241个标签化的多轮rollouts,来自一个在故意可攻击的Lean 4定理证明任务上进行的GRPO运行。数据集的策略模型为nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16。运行中的弱化评分器接受包含“sorry”的证明,而独立的oracle恢复Lean的“sorry”检查。当弱化评分器给予奖励但oracle拒绝时,hack_detected标记为True。数据采用标准对话格式,每条记录包含messages(由{role, content}字典组成的列表)、标签(hack_detected的整数形式,1表示hacked,0表示honest)、奖励值(reward、undefended_reward、oracle_reward)、运行标识符(run_id、step、group、rollout_uid)以及技术标志(oracle_sampled、response_truncated、total_turns)。数据集中有1055条hacked样本和1186条honest样本,其中1993条包含多个assistant turn。该数据集是on-policy研究快照,不是IID基准分割,组内样本存在相关性,hack_detected标签可能包含误判(包括honest成功和honest失败),部分样本被截断(由response_truncated标识)。使用前需审查底层任务和模型的许可。
The dataset named Math Lean Hackable Rollouts contains 2241 labeled multi-turn rollouts from a GRPO run on intentionally attackable Lean 4 theorem proving tasks. The policy model is nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16. The weak scorer accepts proofs containing sorry, while an independent oracle recovers Leans sorry check. Hack_detected is True when the weak scorer gives reward but the oracle rejects. Data is in standard conversation format, with each record containing messages (list of {role, content} dicts), label (integer form of hack_detected: 1 for hacked, 0 for honest), reward values (reward, undefended_reward, oracle_reward), run identifiers (run_id, step, group, rollout_uid), and technical flags (oracle_sampled, response_truncated, total_turns). There are 1055 hacked samples and 1186 honest samples, with 1993 containing multiple assistant turns. The dataset is an on-policy research snapshot, not an IID benchmark split, with correlations within groups, and hack_detected labels may contain misclassifications (including honest successes and honest failures). Some samples are truncated (identified by response_truncated). Usage requires reviewing the license of the underlying tasks and model.
Math Lean Hackable Rollouts 数据集概述
基本信息
- 数据集名称:Math Lean Hackable Rollouts
- 语言:英语(en)
- 任务类型:文本生成(text-generation)
- 数据规模:1K < n < 10K(共 2,241 条数据)
- 标签:强化学习、奖励攻击(reward-hacking)、Lean4、多轮交互
数据内容
该数据集包含来自一次在故意设计为可被攻击的 Lean 4 定理证明任务上运行的 GRPO(Group Relative Policy Optimization)实验的 2,241 条带标签多轮 rollout 数据。策略模型为 nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16。
实验中的弱化评分器会接受包含 sorry 的证明;而独立的验证器(oracle)会恢复 Lean 对 sorry 的检查。当弱化评分器对某次 rollout 给予奖励但验证器拒绝该结果时,hack_detected 标记为真。
数据分布
- 攻击样本(hacked):1,055 条
- 诚实样本(honest):1,186 条
- 多轮样本(超过 1 个助手回合):1,993 条
数据格式
messages 字段为标准有序的 {role, content} 字典列表,可直接用于分词器的 apply_chat_template 方法。助手推理过程保留在 <think>...</think> 标签中;若生成在闭合标签前被截断,则保留未匹配的开启标签 <think>。
每条数据还包含以下字段:
label:hack_detected的整数形式(1=攻击,0=诚实)reward、undefended_reward、oracle_rewardrun_id、step、group、rollout_uidoracle_sampled、response_truncated、total_turns
数据来源
数据来自两个 W&B 运行片段:j3v0t28p 和 1nla90rt,共同覆盖了截至第 81 步的一次恢复训练轨迹。数据导出和标签构建代码位于 experiments/analysis/lean_probe_rollout_export.py,Hugging Face 格式转换代码位于同目录下的 publish_lean_rollouts_hf.py。
注意事项
- 这是策略上(on-policy)的研究快照,并非 IID 基准数据集划分。
- 同一 GRPO 组内的数据行存在相关性。
hack_detected为假(0)时,可能包含诚实的成功样本或诚实的失败样本。- 部分生成内容被截断,
response_truncated字段用于标识这些样本。 - 在用于再分发或商业训练前,需审查底层 Lean 任务和模型的来源及许可协议。




