Skip to content

Penchekrak/DIME

Repository files navigation

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

About

DIsconnected Minima Ensemble

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages