bergson-wikitext-512-chunks
收藏资源简介:
bergson-wikitext-512-chunks 是一个专为训练数据归因实验设计的文本数据集。它基于 Wikitext-2 原始版本(Salesforce/wikitext, wikitext-2-raw-v1)构建,旨在复现 MAGIC 论文(Ilyas & Engstrom 2025)中使用的数据设置。数据集的核心特点是每个数据行(样本)都经过预处理,包含恰好 512 个 GPT-2 标记的连续文本块,每个这样的块被定义为一个独立的“归因单元”或“查询”。数据集包含两个分割:训练集由原始 Wikitext-2 训练集在删除空行并连接后,取前 4,608 个这样的文本块构成;测试集则由原始测试集按相同流程处理后的前 256 个文本块构成。该数据集主要用于支持大语言模型训练数据来源追溯、影响分析和可解释性方面的研究,特别是与 bergson 工具库和 MAGIC 论文方法相关的实验。数据形式为纯文本,规模在 1,000 到 10,000 个样本之间,语言为英语。
bergson-wikitext-512-chunks is a text dataset designed specifically for training data attribution experiments. It is built upon the original Wikitext-2 version (Salesforce/wikitext, wikitext-2-raw-v1) and aims to replicate the data setup used in the MAGIC paper (Ilyas & Engstrom 2025). The core feature of the dataset is that each data row (sample) is preprocessed to contain exactly 512 GPT-2 tokens of continuous text chunks, with each such chunk defined as an independent attribution unit or query. The dataset includes two splits: the training set consists of the first 4,608 such text blocks formed by deleting empty lines and concatenating the original Wikitext-2 training set; the test set consists of the first 256 blocks processed similarly from the original test set. This dataset is primarily used to support research on large language model training data source tracing, impact analysis, and interpretability, particularly for experiments related to the bergson toolkit and the MAGIC paper methodology. The data format is plain text, with a scale between 1,000 and 10,000 samples, and the language is English.
数据集概述
- 名称: bergson-wikitext-512-chunks
- 许可证: CC BY-SA 4.0
- 任务类别: 文本生成
- 语言: 英语
- 数据集规模: 1K < n < 10K
数据集描述
该数据集基于 Wikitext-2(Salesforce/wikitext 的 wikitext-2-raw-v1 版本)预处理而成,将原始文本按 GPT-2 分词器切分为 512 个 token 的片段。每个片段作为一行数据,用于训练数据归因实验(与 MAGIC 论文的数据设置一致,论文 arXiv:2504.16430)。每一行即一个归因单元或查询。
数据划分
- 训练集: 取经过 GPT-2 分词器分词并拼接后的 wikitext-2 训练集的前 4608 个片段(拼接前已去除空行)。
- 测试集: 取 wikitext-2 测试集的前 256 个片段,处理流程同上。
数据字段
- text: 每个字段解码后恰好对应 512 个 GPT-2 token。
生成方式
该数据集由 bergson 仓库中的 scripts/build_chunked_wikitext.py 脚本构建。



