[Paper Review] secml: A Python Library for Secure and Explainable Machine Learning.
secml is an open-source Python library that enables secure and explainable machine learning by implementing white-box and black-box adversarial attacks—such as evasion and poisoning attacks—on models like deep neural networks and SVMs. It supports security evaluation through performance-degradation curves and explains model decisions via feature and prototype visualization, enhancing model interpretability and robustness assessment.
We present secml, an open-source Python library for secure and explainable machine learning. It implements the most popular attacks against machine learning, including not only test-time evasion attacks to generate adversarial examples against deep neural networks, but also training-time poisoning attacks against support vector machines and many other algorithms. These attacks enable evaluating the security of learning algorithms and of the corresponding defenses under both white-box and black-box threat models. To this end, secml provides built-in functions to compute security evaluation curves, showing how quickly classification performance decreases against increasing adversarial perturbations of the input data. secml also includes explainability methods to help understand why adversarial attacks succeed against a given model, by visualizing the most influential features and training prototypes contributing to each decision. It is distributed under the Apache License 2.0, and hosted at this https URL.
Motivation & Objective
- To provide a unified, open-source platform for evaluating the security of machine learning models against adversarial attacks.
- To support both test-time evasion attacks and training-time poisoning attacks across diverse algorithms, including deep neural networks and SVMs.
- To enable security evaluation under white-box and black-box threat models using quantitative performance degradation curves.
- To enhance model interpretability by identifying the most influential features and training prototypes behind each prediction.
- To facilitate the development and benchmarking of robust machine learning defenses through reproducible attack and evaluation workflows.
Proposed method
- Implementation of adversarial attack algorithms for deep neural networks and SVMs, including evasion and poisoning variants.
- Support for both white-box and black-box threat models, allowing flexible security evaluation.
- Integration of built-in functions to compute security evaluation curves that quantify performance drop under increasing perturbation levels.
- Incorporation of explainability techniques to visualize the most influential features and training prototypes per prediction.
- Use of the Apache License 2.0 to ensure open access and extensibility for researchers and practitioners.
- Design of a modular, extensible architecture to support integration of new attacks, defenses, and interpretability methods.
Experimental results
Research questions
- RQ1How effectively can adversarial attacks degrade the performance of deep neural networks and SVMs under varying perturbation levels?
- RQ2What are the key features and training prototypes most responsible for model predictions in the presence of adversarial examples?
- RQ3How do different attack types (evasion vs. poisoning) impact model robustness across diverse machine learning algorithms?
- RQ4To what extent can security evaluation curves quantify the vulnerability of models to adversarial perturbations?
- RQ5How can explainability methods improve the understanding of why certain models fail under adversarial conditions?
Key findings
- secml enables systematic evaluation of model security through automated generation of performance degradation curves under increasing adversarial perturbations.
- The library successfully captures the drop in classification accuracy as perturbation strength increases, providing a quantitative measure of model vulnerability.
- Explainability features in secml identify the most influential input features and training prototypes contributing to model decisions, aiding in root cause analysis of adversarial failures.
- The integration of both evasion and poisoning attacks supports comprehensive security testing across different threat models and learning algorithms.
- The open-source, Apache 2.0-licensed design promotes reproducibility and extensibility for future research in adversarial machine learning and model interpretability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.