σ-zero: Gradient-based Optimization of \ell_0-norm Adversarial Examples
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
Evaluating the adversarial robustness of deep networks to gradient-based attacks is challenging.
Benchmark evidence is limited
Evidence graph: 4 refs, 4 links.
Utility signals: depth 75/100, grounding 85/100, status high.
Implementation
Best maintained implementation now
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
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- 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
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.
Quick start
git clone https://github.com/jeromerony/adversarial-library.git
pip install -e . Repositories and ecosystem
Official
- sigma0-advx/sigma-zeroConfidence: High
sigma0-advx/sigma-zero
16 stars · 2 forks · Last push Oct 1, 2025
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.
Models
- gradientai/Llama-3-8B-Instruct-Gradient-1048k
25,245 downloads · 681 likes
- crusoeai/Llama-3-8B-Instruct-Gradient-1048k-GGUF
967 downloads · 71 likes
- PrunaAI/Llama-3-8B-Instruct-Gradient-1048k-GGUF-smashed
1,864 downloads · 32 likes
Broaden model search
Datasets
No trustworthy datasets matches right now.
Search datasets on Hugging FaceSpaces
No trustworthy spaces matches right now.
Search spaces on Hugging FaceResearch context
Tasks
Image classification
Methods
None detected
Domains
Computer vision
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.
Data includes links from Papers with Code ( CC-BY-SA-4.0 ).