mlsanityData to 7 Oct 2026

Improving Generalization on Cybersecurity Tasks with Multi-Modal Contrastive Learning

arXiv 2603.20181 ↗First posted 20 Mar 2026cs.CR cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

The use of ML in cybersecurity has long been impaired by generalization issues: Models that work well in controlled scenarios fail to maintain performance in production. The root cause often lies in ML algorithms learning superficial patterns (shortcuts) rather than underlying cybersecurity concepts. We investigate contrastive multi-modal learning as a first step towards improving ML performance in cybersecurity tasks. We aim at transferring knowledge from data-rich modalities, such as text, to data-scarce modalities, such as payloads. We set up a case study on threat classification and propose a two-stage multi-modal contrastive learning framework that uses textual vulnerability descriptions to guide payload classification. First, we construct a semantically meaningful embedding space using contrastive learning on descriptions. Then, we align payloads to this space, transferring knowledge from text to payloads. We evaluate the approach on a large-scale private dataset and a synthetic benchmark built from public CVE descriptions and LLM-generated payloads. The methodology appears to reduce shortcut learning over baselines on both benchmarks. We release our synthetic benchmark and source code as open source.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 12 of its 24 references that are in the map. First posted on arXiv 20 Mar 2026.

Builds on

12 of 24 references.

References · 12

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
  3. 2020Supervised Contrastive Learningcited by 2,803
  4. 2020Shortcut Learning in Deep Neural Networkscited by 1,928
  5. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  6. 2021LiT: Zero-Shot Transfer with Locked-image text Tuningcited by 572
  7. 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 329
  8. 2018TESSERACT: Eliminating Experimental Bias in Malware Classification across Space and Timecited by 108
  9. 2020Dos and Don'ts of Machine Learning in Computer Securitycited by 98
  10. 2023Uncovering the Limits of Machine Learning for Automatic Vulnerability Detectioncited by 30
  11. 2023SoK: Pragmatic Assessment of Machine Learning for Network Intrusion Detectioncited by 13
  12. 2025The Digital Cybersecurity Expert: How Far Have We Come?cited by 7

Built on by

Not cited yet.