Skip to content
OpenTrain AIFor AI Companies

σ-zero: Gradient-based Optimization of \ell_0-norm Adversarial Examples

Antonio Emanuele Cinà, Francesco Villani, Maura Pintor, Lea Schönherr, Battista Biggio +1 morePublished Feb 2, 2024
arXiv PDF
Researcher verdict
Starting point
Use as implementation starting point
Benchmark evidence
Thin evidence
Verify before relying
Time to first repro
A few hours
Fast first run
Risk flags
0
None detected

Abstract

Domain fit: AI-adjacent · Paper appears method- or tooling-adjacent to AI workflows with partial ecosystem coverage.

Evaluating the adversarial robustness of deep networks to gradient-based attacks is challenging. While most attacks consider $\ell_2$- and $\ell_\infty$-norm constraints to craft input perturbations, only a few investigate sparse $\ell_1$- and $\ell_0$-norm attacks. In particular, $\ell_0$-norm attacks remain the least studied due to the inherent complexity of optimizing over a non-convex and non-differentiable constraint. However, evaluating adversarial robustness under these attacks could reveal weaknesses otherwise left untested with more conventional $\ell_2$- and $\ell_\infty$-norm attacks. In this work, we propose a novel $\ell_0$-norm attack, called $σ$-zero, which leverages a differentiable approximation of the $\ell_0$ norm to facilitate gradient-based optimization, and an adaptive projection operator to dynamically adjust the trade-off between loss minimization and perturbation sparsity. Extensive evaluations using MNIST, CIFAR10, and ImageNet datasets, involving robust and non-robust models, show that $σ$\texttt{-zero} finds minimum $\ell_0$-norm adversarial examples without requiring any time-consuming hyperparameter tuning, and that it outperforms all competing sparse attacks in terms of success rate, perturbation size, and efficiency.

Results and benchmarks

Freshness tier: cold
Evaluating the adversarial robustness of deep networks to gradient-based attacks is challenging.

Implementation

Best maintained implementation now

Recommended
Confidence: High
Reproducibility: Strong

Library containing PyTorch implementations of various adversarial attacks and resources

167 stars · 21 forks · Last push Jun 20, 2026 · BSD-3-Clause license

  • License
  • CI
  • Dependencies
  • Docker

Official implementation from Papers with Code · Repository link is mentioned in the paper metadata · Matched via arXiv identifier search

Why this implementation
Confidence: high

jeromerony/adversarial-library is the strongest maintained implementation based on ranking signals. CI workflows are present. License is declared (BSD-3-Clause).

Open jeromerony/adversarial-library
Reproduction risks
  • No repository-level red flags were detected, but paper-specific preprocessing and hyperparameter details may still be under-specified.
  • Selected jeromerony/adversarial-library as the strongest maintained implementation for new work.
  • Includes CI workflow signals.
  • Includes dependency/environment manifest signals.
  • Repository activity is within the last 24 months.

Compare implementation paths

Compare maintenance quality, reproducibility coverage, and evidence confidence before choosing a reproduction baseline.

Maintenance
Recently updated
Confidence
High
Reproducibility
Strong
Stars
167
Last push
Jun 20, 2026 (66d)

Official implementation from Papers with Code · Repository link is mentioned in the paper metadata

  • No Docker setup
Maintenance
Stale risk
Confidence
High
Reproducibility
Limited
Stars
16
Last push
Oct 1, 2025 (328d)

Official implementation from Papers with Code · Repository link is mentioned in the paper metadata

  • No CI pipeline detected
  • No tagged releases
  • No Docker setup
Maintenance
Stale risk
Confidence
High
Reproducibility
Limited
Stars
16
Last push
Oct 1, 2025 (328d)

Official implementation from Papers with Code · Repository link is mentioned in the paper metadata

  • No CI pipeline detected
  • No tagged releases
  • No Docker setup

Reproduction readiness

Time to first repro: hours
Last checked: Aug 25, 2026

Ready to run

Ready to reproduce

  • Clone jeromerony/adversarial-library and install dependencies from pyproject.toml.
  • CI pipeline detected, so automated tests are in place.
  • Last updated 66 days ago.
Open jeromerony/adversarial-library

Quick start

git clone https://github.com/jeromerony/adversarial-library.git
pip install -e .

Repositories and ecosystem

Official

Community

No additional community repositories detected yet.

Hugging Face artifacts

No direct paper-linked artifacts were found. Showing strongest curated related artifacts for faster exploration.

Datasets

No trustworthy datasets matches right now.

Search datasets on Hugging Face

Spaces

No trustworthy spaces matches right now.

Search spaces on Hugging Face

Research context

Tasks

Image classification

Methods

None detected

Domains

Computer vision

Evaluation and human feedback data

Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.

Open in HFEPX
Explore similar papers

Jump to Paper2Code search queries derived from this paper's research context.

Data includes links from Papers with Code ( CC-BY-SA-4.0 ).