Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
License:
naufalso commited on
Commit
1a94125
·
verified ·
1 Parent(s): e395685

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +135 -0
README.md CHANGED
@@ -211,4 +211,139 @@ configs:
211
  data_files:
212
  - split: train
213
  path: chunk_5/train-*
 
 
 
 
 
 
 
 
 
 
 
214
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  data_files:
212
  - split: train
213
  path: chunk_5/train-*
214
+ license: odc-by
215
+ task_categories:
216
+ - text-generation
217
+ language:
218
+ - en
219
+ tags:
220
+ - cybersecurity
221
+ - pretraining
222
+ pretty_name: RedSage-CFW
223
+ size_categories:
224
+ - 10M<n<100M
225
  ---
226
+
227
+ # Dataset Card for RedSage-CFW
228
+
229
+ <p align="center">
230
+ <b> RedSage: A Cybersecurity Generalist LLM" (ICLR 2026). </b>
231
+ <br>
232
+ <b>Authors:</b> Naufal Suryanto<sup>1</sup>, Muzammal Naseer<sup>1†</sup>, Pengfei Li<sup>1</sup>, Syed Talal Wasim<sup>2</sup>, Jinhui Yi<sup>2</sup>, Juergen Gall<sup>2</sup>, Paolo Ceravolo<sup>3</sup>, Ernesto Damiani<sup>3</sup>
233
+ <br>
234
+ <sup>1</sup>Khalifa University, <sup>2</sup>Universität Bonn, <sup>3</sup>University of Milan
235
+ <sup>†</sup>Project Lead
236
+ <br>
237
+ <br>
238
+ <a href="https://openreview.net/forum?id=W4FAenIrQ2"><img src="https://img.shields.io/badge/Paper-OpenReview-B31B1B.svg"></a>
239
+ <a href="https://huggingface.co/RISys-Lab"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-RISys--Lab-orange"></a>
240
+ <br>
241
+ 🌐 <a href="https://risys-lab.github.io/RedSage/">Project Page</a>&nbsp;&nbsp;|&nbsp;&nbsp;
242
+ 🤖 <a href="https://huggingface.co/collections/RISys-Lab/redsage-models">Model Collection</a>&nbsp;&nbsp;|&nbsp;&nbsp;
243
+ 📊 <a href="https://huggingface.co/collections/RISys-Lab/redsage-benchmarks">Benchmark Collection</a>&nbsp;&nbsp;|&nbsp;&nbsp;
244
+ 📘 <a href="https://huggingface.co/collections/RISys-Lab/redsage-datasets">Data Collection </a>
245
+
246
+
247
+ </p>
248
+
249
+ ****
250
+
251
+
252
+ ## Dataset Description
253
+
254
+ * **Developed by:** RISysLab
255
+ * **Repository:** [GitHub](https://github.com/RISys-Lab/RedSage)
256
+ * **Paper:** [RedSage: A Cybersecurity Generalist LLM](https://openreview.net/forum?id=W4FAenIrQ2)
257
+ * **Arxiv:** https://arxiv.org/abs/2601.22159
258
+
259
+ ### Dataset Summary
260
+
261
+ **RedSage-CFW** (CyberFineWeb) is a large-scale, cybersecurity dataset designed for the continual pretraining of Large Language Models (LLMs). It consists of approximately **11.7 billion tokens** spanning **13 million documents**.
262
+
263
+ The dataset was constructed by filtering the **FineWeb** corpus (Common Crawl 2013–2024) using a custom ModernBERT-based classifier to identify cybersecurity-relevant content. To prevent catastrophic forgetting of general capabilities during pretraining, the cybersecurity data is mixed with general educational content from **FineWeb-Edu**.
264
+
265
+ ### Supported Tasks
266
+
267
+ * **Continual Pretraining:** Designed to adapt general-purpose LLMs (e.g., Qwen, Llama) to the cybersecurity domain.
268
+ * **Domain Adaptation:** Enhances model performance on cybersecurity knowledge, skills, and tool usage
269
+
270
+ ### Languages
271
+
272
+ The dataset primarily consists of English text, derived from Common Crawl sources.
273
+
274
+ ## Dataset Structure
275
+
276
+ ### Data Instances
277
+
278
+ The dataset is partitioned into 5 chunks (config names: `chunk_1` through `chunk_5`). Each instance represents a single document (e.g., a web page, article, or forum post).
279
+
280
+ ### Data Fields
281
+
282
+ Based on the provided configuration, the data fields are:
283
+
284
+ * **`text`** (string): The full text content of the document.
285
+ * **`id`** (string): A unique identifier for the document.
286
+ * **`metadata`** (struct): Contains detailed attributes about the source and filtering:
287
+ * `probability` (float64): The confidence score from the cybersecurity classifier.
288
+ * `relevant` (bool): A flag indicating if the document passed the relevance filter.
289
+ * `url` (string): The source URL of the document.
290
+ * `date` (timestamp): The crawl or publication date.
291
+ * `dump` (string): The Common Crawl dump identifier (e.g., `CC-MAIN-2024-51`).
292
+ * `file_path` (string): Path information for the original file.
293
+ * `language` (string): The detected language of the text.
294
+ * `language_score` (float64): Confidence score of the language detection.
295
+ * `token_count` (int64): The number of tokens in the document.
296
+ * `score`, `int_score`: Additional quality or relevance metrics.
297
+
298
+ ### Data Splits
299
+
300
+ The dataset is segmented into 5 chunks. The paper notes that the final corpus consists of the "latest 5 chunks" from the filtered pipeline to fit training budgets.
301
+
302
+ * **Total Size:** ~11.7B tokens.
303
+ * **Total Documents:** ~13M documents.
304
+
305
+ ## Dataset Creation
306
+
307
+ ### Curation Rationale
308
+
309
+ Existing cybersecurity solutions often rely on proprietary APIs or lack domain adaptation. RedSage-CFW bridges this gap by providing a transparent, open-source corpus for training local, privacy-preserving cybersecurity assistants.
310
+
311
+ ### Source Data
312
+
313
+ * **FineWeb:** The base corpus is FineWeb, aggregated from 104 Common Crawl subsets between Summer 2013 and December 2024 (~17.2T tokens).
314
+ * **FineWeb-Edu:** Used for mixing general knowledge to maintain reasoning capabilities.
315
+
316
+ ### Data Processing & Filtering
317
+
318
+ 1. **Classifier Training:** A binary classifier based on **ModernBERT-base** was trained on the "Cybersecurity Topic Classification" dataset (sourced from Reddit, StackExchange, and arXiv). It achieved 97.3% accuracy on validation.
319
+ 2. **Filtering:** This classifier was applied to FineWeb, identifying ~125M cybersecurity-relevant documents (~89.8B tokens).
320
+ 3. **General Knowledge Replay:** To avoid catastrophic forgetting, the cybersecurity data was mixed with FineWeb-Edu samples at a **30% replay ratio**.
321
+ 4. **Deduplication:** Global deduplication was performed using MinHash-LSH (via DataTrove), reducing the corpus size by ~47.9% in tokens.
322
+ 5. **Chunking:** The final dataset comprises the latest 5 chronological chunks from the processed data to manage computational costs.
323
+
324
+
325
+ ## Considerations for Using the Data
326
+
327
+ ### Social Impact
328
+
329
+ The dataset enables the development of open-source cybersecurity assistants, potentially helping to bridge the global skills shortage in the field.
330
+
331
+ ### Discussion of Biases and Limitations
332
+
333
+ * **Source Bias:** As a web-crawled dataset, it may inherit biases present in Common Crawl and online cybersecurity discussions.
334
+ * **Dual Use:** The dataset contains offensive security knowledge (e.g., penetration testing techniques). While intended for defense, there is an inherent risk of misuse.
335
+
336
+ ---
337
+
338
+ ## Citation
339
+
340
+ ```bibtex
341
+ @inproceedings{suryanto2026redsage,
342
+ title={RedSage: A Cybersecurity Generalist {LLM}},
343
+ author={Naufal Suryanto and Muzammal Naseer and Pengfei Li and Syed Talal Wasim and Jinhui Yi and Juergen Gall and Paolo Ceravolo and Ernesto Damiani},
344
+ booktitle={The Fourteenth International Conference on Learning Representations},
345
+ year={2026},
346
+ url={https://openreview.net/forum?id=W4FAenIrQ2}
347
+ }
348
+
349
+ ```