SkillAgentSearch skills...

EMCMC

PyTorch implementation of the paper "Entropy-MCMC: Sampling from Flat Basins with Ease" (ICLR 2024)

Install / Use

/learn @lblaoke/EMCMC
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Entropy-MCMC: Sampling from Flat Basins with Ease

This paper introduces Entropy-MCMC, a method for sampling from flat basins in the energy landscape of neural networks to pursue better generalization. Our method introduces an augmented parameter space to eliminate the need for costly inner loop for flatness computation. The experiments show that our method can achieve better performance than existing flatness-aware optimization, such as SAM and Entropy-SGD.

image

Recommended Environment

python==3.8
pytorch==1.12

Command

python exp/cifar10_emcmc.py
python exp/cifar100_emcmc.py
CUDA_VISIBLE_DEVICES=0,1,2,3 python exp/imagenet_emcmc.py

Citation

@inproceedings{lientropy,
  title={Entropy-MCMC: Sampling from Flat Basins with Ease},
  author={Li, Bolian and Zhang, Ruqi},
  booktitle={The Twelfth International Conference on Learning Representations}
}

Related Skills

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated12mo ago
Forks0

Languages

Python

Security Score

62/100

Audited on Apr 9, 2025

No findings