Code Monkey home page Code Monkey logo

simplicitybiaspitfalls's Introduction

The Pitfalls of Simplicity Bias in Neural Networks

Summary

This repository consists of code primitives and Jupyter notebooks that can be used to replicate and extend the findings presented in the paper "The Pitfalls of Simplicity Bias in Neural Networks" (link). In addition to the code (in scripts/) to generate the proposed datasets, we provide six Jupyter notebooks:

  1. 01_extremeSB_slab_data.ipynb shows the simplicity bias of fully-connected networks trained on synthetic slab-structured datasets.
  2. 02_extremeSB_mnistcifar_data.ipynb highlights simplicity bias of commonly-used convolutional neural networks (CNNs) on the concatenated MNIST-CIFAR dataset,
  3. 03_suboptimal_generalization.ipynb analyzes the effect of extreme simplicity bias on standard generalization.
  4. 04_effect_of_ensembles.ipynb studies the effectiveness of ensembles of independently trained methods in mitigating simplicity bias and its pitfalls.
  5. 05_effect_of_adversarial_training.ipynb evaluates the effectiveness of adversarial training in mitigating simplicity bias.
  6. 06_uaps.ipynb demonstrates how extreme simplicity bias can lead to small-norm and data-agnostic "universal" adversarial perturbations that nullify performance of SGD-trained neural networks.

Please check out our paper or poster for more details.

Setup

Our code uses Python 3.7.3, Torch 1.1.0, Torchvision 0.3.0, Ubuntu 18.04.2 LTS and the packages listed in requirements.txt.


If you find this project useful in your research, please consider citing the following publication:

@article{shah2020pitfalls,
  title={The Pitfalls of Simplicity Bias in Neural Networks},
  author={Shah, Harshay and Tamuly, Kaustav and Raghunathan, Aditi and Jain, Prateek and Netrapalli, Praneeth},
  journal={Advances in Neural Information Processing Systems},
  volume={33},
  year={2020}
}

simplicitybiaspitfalls's People

Contributors

dymil avatar harshays avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.