Giter Club home page Giter Club logo

dime's Introduction

DIME โ€” DIsconnected Minima Ensemble

Project for the course "Bayesian Methods of Machine Learning" at Skoltech

Source paper

Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNs

Project proposal

Original project proposal

Goals of the project

  • Implement an experiment environment in PyTorch Lightning with a small CNN and CIFAR10 dataset
  • Implement a convenient interface for running Torch nets with arbitrary state_dicts (needed running nets along the curves in the parameter space)
  • Implement the curve fitting algorithm to find curves between local minima
  • Find several local minima and low-loss curves between them
  • Design approaches for finding minima that cannot be connected by low-loss curves, study their feasibility
  • Implement beforementioned approaches and compare results with random independent minima
  • Compare performance of ensembles of models with different local minima

Team members

Experiments reproduction

The experiment workflow is implemented via PyTorch Lightning, which ensures convenient reproducibility.

The requirements are listed in the requirements.txt

The main script train.py and the plotting script plane_plot.py can be launched with an argument --config-name=<desired config name>, where <desired config name> can be any .yaml file from the configs/ folder or a custom config.

Examples:

python train.py --config-name=toy.yaml
python plane_plot.py --config-name=plot_plane_toy_curve.yaml

All of the model checkpoints necessary for the experiments are provided in the ckpt/ folder.

The script automatically finds and tries to use a GPU if it is available.

experiments regarding adversarial training

colab

dime's People

Contributors

reason239 avatar max-nekrashevich avatar penchekrak avatar

Watchers

 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.