RepositoryPythonCNChina
thu-ml

thu-ml/ares

A Python library for adversarial machine learning focusing on benchmarking adversarial robustness.

528stars
94forks
9issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: spsa

#1 Repository of the month

1
TINIX TRENDING·Topic: adversarial-attacks

#1 Repository of the month

1
TINIX TRENDING·Topic: adversarial-machine-learning

#1 Repository of the month

🚀 Welcome to ARES 2.0 🚀

🌐 Overview

🔍 ARES 2.0 (Adversarial Robustness Evaluation for Safety) is a Python library dedicated to adversarial machine learning research. It aims at benchmarking the adversarial robustness of image classification and object detection models, and introduces mechanisms to defend against adversarial attacks through robust training.

🌟 Features

  • Developed on Pytorch.
  • Supports various attacks on classification models.
  • Employs adversarial attacks on object detection models.
  • Provides robust training for enhanced robustness and various trained checkpoints.
  • Enables distributed training and testing.

💾 Installation

  1. Optional: Initialize a dedicated environment for ARES 2.0.

    conda create -n ares python==3.10.9
    conda activate ares
    
  2. Clone and set up ARES 2.0 via the following commands:

    git clone https://github.com/thu-ml/ares2.0
    cd ares2.0
    pip install -r requirements.txt
    mim install mmengine==0.8.4
    mim install mmcv==2.0.0 
    mim install mmdet==3.1.0
    pip install -v -e .
    

🚀 Getting Started

  • For robustness evaluation of image classification models against adversarial attacks, please refer to classification.
  • For robustness evaluation of object detection models, please refer to detection.
  • For methodologies on robust training, please refer to robust-training.

📘 Documentation

📚 Access detailed tutorials and API docs on strategies to attack classification models, object detection models, and robust training here.

📝 Citation

If you derive value from ARES 2.0 in your endeavors, kindly cite our paper on adversarial robustness, which encompasses all models, attacks, and defenses incorporated in ARES 2.0:

@inproceedings{dong2020benchmarking,
  title={Benchmarking Adversarial Robustness on Image Classification},
  author={Dong, Yinpeng and Fu, Qi-An and Yang, Xiao and Pang, Tianyu and Su, Hang and Xiao, Zihao and Zhu, Jun},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
  pages={321--331},
  year={2020}
}

Similar Projects

Discover other similar projects and AI models.

RepositoryJupyter Notebook
as791/Adversarial-Example-Attack-and-Defense

This repository contains the implementation of three adversarial example attack methods FGSM, IFGSM, MI-FGSM and one Distillation as defense against all attacks using MNIST dataset.

136
Dec 17, 2020
RepositoryPython
Trusted-AI/adversarial-robustness-toolbox

Adversarial Robustness Toolbox (ART) - Python Library for Machine Learning Security - Evasion, Poisoning, Extraction, Inference - Red and Blue Teams

6.3k
Nov 27, 2026
RepositoryPython
QData/TextAttack

TextAttack 🐙 is a Python framework for adversarial attacks, data augmentation, and model training in NLP https://textattack.readthedocs.io/en/master/

3.5k
Aug 15, 2026
RepositoryPython
RobustBench/robustbench

RobustBench: a standardized adversarial robustness benchmark [NeurIPS 2021 Benchmarks and Datasets Track]

793
Apr 14, 2026
RepositoryPython
deadbits/vigil-llm

⚡ Vigil ⚡ Detect prompt injections, jailbreaks, and other potentially risky Large Language Model (LLM) inputs

512
Jan 31, 2024
RepositoryPython
Meltedd/scarecrow

An adversarial frame pattern optimizer for evading automated license plate recognition, personalized to your plate.

404
Jun 5, 2026
RepositoryPython
ashafahi/free_adv_train

Official TensorFlow Implementation of Adversarial Training for Free! which trains robust models at no extra cost compared to natural training.

176
May 3, 2024
RepositoryPython
w4-advisory/plexiglass

A toolkit for detecting and protecting against vulnerabilities in Large Language Models (LLMs).

156
Nov 4, 2026
RepositoryC++
Koukyosyumei/AIJack

Security and Privacy Risk Simulator for Machine Learning (arXiv:2312.17667)

429
May 30, 2026