Tensor Networks for Explainable Machine Learning in Cybersecurity
Borja Aizpurua, Samuel Palmer, Roman Orus
TL;DR
The paper addresses the need for explainable anomaly detection in cybersecurity by leveraging Matrix Product States, a Tensor Network approach, to build an unsupervised generative model. By modeling $P(v)=|\Psi(v)|^2$ with $\Psi$ expressed as an MPS, it enables direct probability extraction, sample generation, and efficient computation of information-theoretic quantities such as Von Neumann entropy and mutual information, all from the model’s parameters. The results on adversary-generated threat intelligence show competitive performance with traditional methods while offering rich interpretability, including per-feature probabilities, conditional dependencies, and subsystem entropies, which enhance transparency and actionable insights for analysts. The work demonstrates a path toward transparent, scalable cybersecurity analytics and suggests future enhancements with more complex TN architectures and broader dataset validation to solidify practical impact.
Abstract
In this paper we show how tensor networks help in developing explainability of machine learning algorithms. Specifically, we develop an unsupervised clustering algorithm based on Matrix Product States (MPS) and apply it in the context of a real use-case of adversary-generated threat intelligence. Our investigation proves that MPS rival traditional deep learning models such as autoencoders and GANs in terms of performance, while providing much richer model interpretability. Our approach naturally facilitates the extraction of feature-wise probabilities, Von Neumann Entropy, and mutual information, offering a compelling narrative for classification of anomalies and fostering an unprecedented level of transparency and interpretability, something fundamental to understand the rationale behind artificial intelligence decisions.
