Skip to main content

Neural Network Robustness Analysis Framework

Project description

codecov Lint Release to PyPI

VERification Of Neural Architectures (VERONA)

VERONA simplifies your experiment pipeline for performing local robustness verification on your networks and datasets. VERONA is class-based, which means that extending the existing configurations is accessible and easy. With one script it is possible to run an entire experiment with various networks, images and perturbation magnitudes (epsilons).

Example use cases of the VERONA package include creating robustness distributions Bosman, Berger, Hoos and van Rijn, 2025, empirically measuring robustness of networks using adversarial attacks and verifying networks with formal verification tools using the external auto-verify package.

Authors

This package was created and is maintained by members the ADA Research Group, which focuses on the development of AI techniques that complement human intelligence and automated algorithm design. The current core team includes:

  • Annelot Bosman (LIACS, Leiden University)
  • Aaron Berger (TU Delft)
  • Hendrik Baacke (AIM, RWTH Aachen University)
  • Holger H. Hoos (AIM, RWTH Aachen University)
  • Jan van Rijn (LIACS, Leiden University)

Installation and Environment Setup

We recommend to have a look at the Documentation.

Create Virtual Environment and install ada-verona

The python package for VERONA is called ada-verona, as our research group is called ADA.

To run ada-verona, we recommend to set up a conda environment. We also recommend using miniforge as the package manager and using uv for dependency management.

Create a new conda environment named verona_env:

conda create -n verona_env python=3.10
conda activate verona_env

Installing the package

Inside the conda environment, install the ada-verona package:

uv pip install ada-verona

GPU-version Installation

Note that the default installation is CPU-only, and that we recommend to install the GPU version for full functionality, as, e.g. AB-CROWN, heavily relies on GPU parallelization for practical performance. The package resolver will automatically resolve the correct version of the package for your system, depending on whether you have a GPU available, but you can also explicitly install the GPU version with the following command:

uv pip install ada-verona[gpu]

Local installation for e.g. development purposes

If you want to install ada-verona locally using git:

git clone https://github.com/ADA-research/VERONA.git
cd VERONA
uv sync --dev  #or uv sync --extra gpu --dev for GPU-version installation

Optional: AutoAttack Installation

To use the AutoAttack adversarial attack wrapper (AutoAttackWrapper), you need to install AutoAttack separately from its GitHub repository:

uv pip install git+https://github.com/fra31/auto-attack

This package provides ensemble-based adversarial attacks for robustness evaluation, as described in the paper by Croce and Hein (2020).

Optional: AutoVerify Installation

To use the auto-verify verifiers, you need to install auto-verify separately:

uv pip install auto-verify>=0.1.4

This package provides a framework for integrating verifiers. Please refer to the auto-verify documentation for details about auto-verify.

Guides

To help you get up and running with ada-verona, we provide a tutorial notebook and a collection of example scripts in the folder examples :

  • Main Guide:

    • The primary resource for learning how to use VERONA is the Jupyter notebook found in the notebooks folder. This tutorial notebook offers an overview of the package components, step-by-step instructions, and practical demonstrations of typical workflows. We highly recommend starting here to understand the core concepts and capabilities of the package.
  • Quick-Start Example Scripts:

The notebook is your main entry point for learning and understanding the package, while the scripts serve as practical templates and quick-start resources for your own experiments.

Datasets

The package was tested on the MNIST, GTRSB and the CIFAR-10 datasets. Example scripts for executing the package on MNIST or a custom dataset can be found in the scripts folder.

Related Papers and Citation

This package was created to simplify reproducing and extending the results of different lines of work of the ADA research group. For more information about the ADA research group, please refer to the official website.

Robustness distributions

Please cite this paper when you have used VERONA in your experiments:

@article{BosEtAl25,
author = {Annelot W Bosman, Aaron Berger, Holger H Hoos, Jan N van Rijn},
title = {Robustness Distributions in Neural Network Verification},
booktitle = {Journal of Artificial Intelligence Research}.
year = {2025}
}

Acknowledgements

This package makes use of the following tools and libraries:

We thank the authors and maintainers of these projects, as well as the authors and maintainers of the verifiers for their contributions to the robustness research community.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ada_verona-1.0.0.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ada_verona-1.0.0-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

File details

Details for the file ada_verona-1.0.0.tar.gz.

File metadata

  • Download URL: ada_verona-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.7

File hashes

Hashes for ada_verona-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3f390f179665eb33c4423b2fb354dda4df960d209ab01854ebbddb1ea046e515
MD5 f6e41d58d6a4f418de7c04e108f119a2
BLAKE2b-256 7af624ca5b5e0bb55c0bc09bf8af6631922e01d859520b20cf24912dbca427c3

See more details on using hashes here.

File details

Details for the file ada_verona-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ada_verona-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 47.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.7

File hashes

Hashes for ada_verona-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad43d63e9a02f4f254a08a0d69489dda7e897bd00ef5ac0980557999e9162816
MD5 eb8ee679417eeab18c4117ab945a2528
BLAKE2b-256 6f5f11e41ea368f36d8ecb9f1641b58bfc27f0a0ebeffa81050a2e22ea71f318

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page