- (August 8, 2023) Added annotator reasoning for a subset of examples of security classification.
- (Initial Release) The pretrained models are now available for download.
This repository contains the code and data of the paper titled "SPEC5G: A Dataset for 5G Cellular Network Protocol Analysis" which is accepted in AACL 2023.
SPEC5G is a dataset for the analysis of natural language specification of 5G Cellular network protocol specification. SPEC5G contains 3,547,587 sentences with 134M words, from 13094 cellular network specifications and 13 online websites. By leveraging large-scale pre-trained language models that have achieved state-of-the-art results on ML-based natural language processing (NLP) tasks, we have used this dataset for security-related text classification and summarization. Security-related text classification can be used to extract relevant security-related properties for protocol testing. On the other hand, summarization can help developers and practitioners understand the high level of the protocol, which is itself a daunting task.
SPEC5G is the first-ever public 5G dataset for NLP research on network security.
Download the dataset from here. This includes:
- Our original 134M Word training corpus (
Gold_5G_v4.0.zip
) - 5GSum - Summarization Dataset (
simplification_dataset.csv
) - 5GSC - Classification Dataset (
5GSC.csv
) - 5GSC Annotator Reasoning - Annotator Explanation for Subset of 5GSC
The pretrained model checkpoints can be found below:
- Python 3.7+
- beautifulsoup4
- textract
- selenium
- datasets
- tokenizers
- transformers
- rouge_score
- PyTorch
- sentencepiece (
Install CLI
) - regex
- torchtext (
pip install torchtext==0.4.0
)
- See training and evaluation module.
- You may run into an error while using Data Collator. There is a relevant discussion in the Huggingface Forum that might solve the issue.
If you use this dataset, models, or code modules, please cite the following paper:
@InProceedings{karim-EtAl:2023:findings,
author = {Karim, Imtiaz and Mubasshir, Kazi Samin and Rahman, Mirza Masfiqur and Bertino, Elisa},
title = {SPEC5G: A Dataset for 5G Cellular Network Protocol Analysis},
booktitle = {Proceedings of the 13th International Joint Conference on Natural Language Processing and the 3rd Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics},
month = {November},
year = {2023},
address = {Nusa Dua, Bali},
publisher = {Association for Computational Linguistics},
pages = {20--38},
url = {https://aclanthology.org/2023.findings-ijcnlp.3}
}