mlsanityData to 14 Oct 2026

Transformers for End-to-End InfoSec Tasks: A Feasibility Study

arXiv 2212.02666 ↗First posted 5 Dec 2022cs.LG cs.AI cs.CRcited by 6

Not on the map. Why?

Abstract (arXiv)

In this paper, we assess the viability of transformer models in end-to-end InfoSec settings, in which no intermediate feature representations or processing steps occur outside the model. We implement transformer models for two distinct InfoSec data formats - specifically URLs and PE files - in a novel end-to-end approach, and explore a variety of architectural designs, training regimes, and experimental settings to determine the ingredients necessary for performant detection models. We show that in contrast to conventional transformers trained on more standard NLP-related tasks, our URL transformer model requires a different training approach to reach high performance levels. Specifically, we show that 1) pre-training on a massive corpus of unlabeled URL data for an auto-regressive task does not readily transfer to binary classification of malicious or benign URLs, but 2) that using an auxiliary auto-regressive loss improves performance when training from scratch. We introduce a method for mixed objective optimization, which dynamically balances contributions from both loss terms so that neither one of them dominates. We show that this method yields quantitative evaluation metrics comparable to that of several top-performing benchmark classifiers. Unlike URLs, binary executables contain longer and more distributed sequences of information-rich bytes. To accommodate such lengthy byte sequences, we introduce additional context length into the transformer by providing its self-attention layers with an adaptive span similar to Sukhbaatar et al. We demonstrate that this approach performs comparably to well-established malware detection models on benchmark PE file datasets, but also point out the need for further exploration into model improvements in scalability and compute efficiency.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 32 of its 51 references that are in the map. First posted on arXiv 5 Dec 2022.

Builds on

32 of 51 references.

References · 32

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  5. 2020Longformer: The Long-Document Transformercited by 3,413
  6. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  7. 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,501
  8. 2019ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Taskscited by 2,222
  9. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  10. 2020Reformer: The Efficient Transformercited by 1,668
  11. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  12. 2017Snorkel: Rapid Training Data Creation with Weak Supervisioncited by 372
20 more
  1. 2018EMBER: An Open Dataset for Training Static PE Malware Machine Learning Modelscited by 165
  2. 2019Adaptive Attention Span in Transformerscited by 149
  3. 2017Malware Detection by Eating a Whole EXEcited by 115
  4. 2020Fast and Three-rious: Speeding Up Weak Supervision with Triplet Methodscited by 98
  5. 2016MOON: A Mixed Objective Optimization Network for the Recognition of Facial Attributescited by 34
  6. 2018URLNet: Learning a URL Representation with Deep Learning for Malicious URL Detectioncited by 34
  7. 2020Trex: Learning Execution Semantics from Micro-Traces for Binary Similaritycited by 34
  8. 2019Explaining Vulnerabilities of Deep Learning to Adversarial Malware Binariescited by 31
  9. 2021Are Pre-trained Convolutions Better than Pre-trained Transformers?cited by 27
  10. 2017eXpose: A Character-Level Convolutional Neural Network with Embeddings For Detecting Malicious URLs, File Paths and Registry Keyscited by 18
  11. 2017Malicious URL Detection using Machine Learning: A Surveycited by 15
  12. 2019Activation Analysis of a Byte-Based Deep Neural Network for Malware Classificationcited by 14
  13. 2019ALOHA: Auxiliary Loss Optimization for Hypothesis Augmentationcited by 9
  14. 2019KiloGrams: Very Large N-Grams for Malware Classificationcited by 9
  15. 2016A Survey of Stealth Malware: Attacks, Mitigation Measures, and Steps Toward Autonomous Open World Solutionscited by 8
  16. 2019Mockingbird: Defending Against Deep-Learning-Based Website Fingerprinting Attacks with Adversarial Tracescited by 8
  17. 2018MEADE: Towards a Malicious Email Attachment Detection Enginecited by 2
  18. 2019Automatic Malware Description via Attribute Tagging and Similarity Embeddingcited by 2
  19. 2016Automated Big Text Security Classificationcited by 1
  20. 2017Automated U.S Diplomatic Cables Security Classification: Topic Model Pruning vs. Classification Based on Clusterscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 3; 2024: 0; 2025: 1; 2026: 2.

6 papers.