Skip to content

Energy Based Models are a quite novel technique for density estimation. In this university project I explore this new research topic and implement EBMs as generative models, comparing the results obtained with Maximum Likelihood estimation and Sliced Score Matching on MNIST and a toy 2D dataset,

Notifications You must be signed in to change notification settings

matbun/EBM--Generative-Energy-Based-Modeling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Energy Based Models

EBMs are a family of models currently under research. Their remarkable advantage with respect to VAEs is that they do not make any assumption on the form of the probability density they fit. These models are also a potential competitor of GANs. In this work (project at EURECOM University) I implement them as generative models with Maximum Likelihood estimation, aimed at generating MNIST images.
Here you can also find the final report of my project: Final_Report__EBM___ML.pdf
For more info: https://arxiv.org/abs/2101.03288

EBM PyTorch training packages

These packages offer key utilities to train an Energy Based Model with ML estimation. MCMC sampling from the model can be carried out with Langevin dynamics (SGLD) or Stochastic Gradient Hamiltonian Monte Carlo (SGHMC).

Two python packages:

  • ebm: train on MNIST dataset
  • ebm_toy in toy_examples folder: train on gmm (gaussian mixture model) or circles 2D datasets, where the ground truth distribution is known and supervised metrics (e.g. Kolmogorov-Smirnov distance) can be computed.

Here I provide a sample notebook to show how to use the ebm package.

About

Energy Based Models are a quite novel technique for density estimation. In this university project I explore this new research topic and implement EBMs as generative models, comparing the results obtained with Maximum Likelihood estimation and Sliced Score Matching on MNIST and a toy 2D dataset,

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published