Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

adversarial_robustness

This repository contains resources and code related to adversarial robustness in machine learning models. The primary focus is on techniques and experiments to evaluate and improve the robustness of models against adversarial attacks.

Contents

  • TextAttack.ipynb: A Jupyter notebook demonstrating adversarial attacks and defenses using the TextAttack library. This notebook includes examples of generating adversarial examples, evaluating model robustness, and applying defense strategies.

Getting Started

To get started with this project, you will need to have Python installed along with the necessary dependencies. It is recommended to use a virtual environment.

Installation

  1. Clone the repository:

    git clone https://github.com/TongmengXie/adversarial_robustness.git
    cd adversarial_robustness
    
  2. Install required packages:

    pip install -r requirements.txt
    

    (If a requirements.txt file is not present, install dependencies manually as needed, e.g., textattack.)

Usage

Open the TextAttack.ipynb notebook in Jupyter Notebook or JupyterLab to explore the adversarial attack experiments. The notebook contains step-by-step instructions and code cells to run attacks and analyze results.

Contributing

Contributions are welcome! Please open issues or submit pull requests for improvements, bug fixes, or new features related to adversarial robustness.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For questions or suggestions, please open an issue or contact the repository owner.

About

Using TextAttack to flip model prediction while preserving the input's meaning. A part of the Adversarial Robustness exercises for AIgoverse.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages