Datasets:
The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
text: string
id: string
metadata: struct<probability: double, relevant: bool, dump: string, url: string, date: timestamp[s], file_path (... 113 chars omitted)
child 0, probability: double
child 1, relevant: bool
child 2, dump: string
child 3, url: string
child 4, date: timestamp[s]
child 5, file_path: string
child 6, language: string
child 7, language_score: double
child 8, token_count: int64
child 9, idx: int64
child 10, score: null
child 11, int_score: null
language_score: double
dump: string
idx: int64
relevant: bool
file_path: string
language: string
token_count: int64
url: string
probability: double
date: string
to
{'probability': Value('float64'), 'relevant': Value('bool'), 'text': Value('string'), 'id': Value('string'), 'dump': Value('string'), 'url': Value('string'), 'date': Value('string'), 'file_path': Value('string'), 'language': Value('string'), 'language_score': Value('float64'), 'token_count': Value('int64'), 'idx': Value('int64')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3052, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 558, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 361, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2309, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
text: string
id: string
metadata: struct<probability: double, relevant: bool, dump: string, url: string, date: timestamp[s], file_path (... 113 chars omitted)
child 0, probability: double
child 1, relevant: bool
child 2, dump: string
child 3, url: string
child 4, date: timestamp[s]
child 5, file_path: string
child 6, language: string
child 7, language_score: double
child 8, token_count: int64
child 9, idx: int64
child 10, score: null
child 11, int_score: null
language_score: double
dump: string
idx: int64
relevant: bool
file_path: string
language: string
token_count: int64
url: string
probability: double
date: string
to
{'probability': Value('float64'), 'relevant': Value('bool'), 'text': Value('string'), 'id': Value('string'), 'dump': Value('string'), 'url': Value('string'), 'date': Value('string'), 'file_path': Value('string'), 'language': Value('string'), 'language_score': Value('float64'), 'token_count': Value('int64'), 'idx': Value('int64')}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Dataset Card for RedSage-CFW Full (Dedup)
"RedSage: A Cybersecurity Generalist LLM" (ICLR 2026).
Authors: Naufal Suryanto1, Muzammal Naseer1†, Pengfei Li1, Syed Talal Wasim2, Jinhui Yi2, Juergen Gall2, Paolo Ceravolo3, Ernesto Damiani3
1Khalifa University, 2University of Bonn, 3University of Milan
†Project Lead
🌐 Project Page |
🤖 Model Collection |
📊 Benchmark Collection |
📘 Data Collection
Dataset Summary
RedSage-CFW Full (Dedup) is the globally deduplicated cybersecurity web corpus extracted from FineWeb across all 103 Common Crawl dumps from CC-MAIN-2013-20 through CC-MAIN-2024-51.
Starting from the raw ~122.15M classified documents (~89.8B tokens), this corpus was processed using global MinHash-LSH deduplication via Hugging Face's datatrove library, removing ~47.9% redundant tokens across dumps. The result is packaged as 40 sharded jsonl.gz files totaling ~88.8 GB of compressed data, containing clean, deduplicated domain-specific text spanning over a decade of public cybersecurity discourse.
Note on CFW Versions:
- RedSage-CFW Full (Non-Dedup): Complete raw classifier outputs across 103 dumps (122.15M rows, ~267 GB Parquet). No deduplication applied.
- RedSage-CFW Full (Dedup) [This Dataset]: Complete full-span filtered corpus after global MinHash-LSH deduplication (40 compressed
jsonl.gzshards, ~88.8 GB compressed). No general replay mixed.- RedSage-CFW: The final training-ready corpus combining the latest 5 chronological chunks with MinHash deduplication and 30% FineWeb-Edu general knowledge replay (~13M documents, ~11.7B tokens).
Supported Tasks
- Continual Domain Pretraining: Train or continue pretraining foundational LLMs on clean, non-redundant cybersecurity web text.
- Custom Replay & Mixing Experiments: Mix with custom general-purpose datasets (e.g., FineWeb-Edu, SlimPajama) at bespoke ratios without pre-baked replay constraints.
- Cybersecurity Text Evolution & Corpus Linguistics: Track the emergence of domain-specific terminology, public security disclosures, and changing community practices across more than ten years of web discourse.
Languages
The dataset consists primarily of English text filtered from the FineWeb Common Crawl archive.
Dataset Structure
Data Instances
The dataset is partitioned into 40 compressed JSON Lines files (00000.jsonl.gz to 00039.jsonl.gz). Each JSON record represents a unique deduplicated document identified as cybersecurity-relevant.
Data Fields
The dataset contains the following 12 fields per record:
probability(float): Confidence score generated by the ModernBERT cybersecurity classifier.relevant(bool): Binary classification flag (true/false) confirming domain relevance.text(string): Full extracted text of the document.id(string): Unique Common Crawl URN document identifier (e.g.,<urn:uuid:...>).dump(string): Source Common Crawl snapshot identifier (e.g.,CC-MAIN-2024-51).url(string): Source web URL.date(string): Crawl / publication timestamp string.file_path(string): Source path within the FineWeb archive.language(string): Detected language tag (e.g.,en).language_score(float): Confidence score from the language identifier.token_count(int): Document token count.idx(int): Record index identifier.
Files & Storage Summary
The corpus is packaged into 40 gzipped JSONL files totaling approximately 88.8 GB compressed:
| File Range | Shard Count | Total Compressed Size | Format |
|---|---|---|---|
00000.jsonl.gz – 00039.jsonl.gz |
40 shards | ~88.8 GB | Gzip-compressed JSONL (.jsonl.gz) |
Usage
Loading via datasets
from datasets import load_dataset
# Load a specific shard
shard_0 = load_dataset(
"RISys-Lab/RedSage-CFW-Full-Dedup",
data_files="00000.jsonl.gz",
split="train"
)
print(shard_0[0])
# Stream across the entire deduplicated dataset
full_stream = load_dataset(
"RISys-Lab/RedSage-CFW-Full-Dedup",
split="train",
streaming=True
)
for sample in full_stream:
print(sample["id"], sample["token_count"])
break
Processing Directly in Python
import gzip
import json
with gzip.open("00000.jsonl.gz", "rt", encoding="utf-8") as f:
for line in f:
doc = json.loads(line)
print(doc["id"], doc["probability"])
break
Dataset Creation
Curation Rationale
Continual pretraining on redundant web documents can degrade training efficiency and trigger verbatim memorization. While RedSage-CFW Full (Non-Dedup) provides the complete raw classifier outputs for cross-crawl auditing, this deduplicated release provides a cleaner, computation-ready base across the entire 2013–2024 time span.
Source Data
- Base Corpus: HuggingFaceFW/fineweb, aggregated across 103 Common Crawl snapshots between 2013 and 2024 (~17.2T tokens).
Data Processing Pipeline
- Classifier Filtering: A binary classifier based on ModernBERT-base (achieving 97.3% validation accuracy) was run across 103 FineWeb dumps, retrieving ~122.15M cybersecurity-relevant documents (~89.8B tokens).
- Global Deduplication: MinHash-LSH was executed across the corpus using DataTrove, identifying and removing duplicate and near-duplicate text. This reduced total token volume by ~47.9%.
- Partitioning: The deduplicated records were serialized into 40 gzip-compressed JSON Lines shards (
.jsonl.gz).
Considerations for Using the Data
Social Impact
This dataset provides an accessible, non-redundant training resource for developing open-source cybersecurity foundational models, transparent assistants, and automated defensive tooling.
Discussion of Biases and Limitations
- Source Biases: As with all web-scale scrapes, the dataset contains informal syntax, forum noise, and potential biases from public discussions.
- Dual-Use Considerations: Contains authentic technical discussions, exploit mechanics, and vulnerability disclosures. Safe deployment requires post-training alignment and guardrails.
Citation
@inproceedings{suryanto2026redsage,
title={RedSage: A Cybersecurity Generalist {LLM}},
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},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026},
url={https://openreview.net/forum?id=W4FAenIrQ2}
}
Acknowledgements
Global deduplication was conducted using the open-source datatrove library.
- Downloads last month
- 28