Hamiltonian Monte Carlo on ReLU Neural Networks is Inefficient

Vu C. Dinh, Lam Si Tung Ho, Cuong V. Nguyen
10/29/2024
stat.MLcs.LG

No confident code implementation found for this paper.

Abstract

We analyze the error rates of the Hamiltonian Monte Carlo algorithm with leapfrog integrator for Bayesian neural network inference. We show that due to the non-differentiability of activation functions in the ReLU family, leapfrog HMC for networks with these activation functions has a large local error rate of $Ω(ε)$ rather than the classical error rate of $O(ε^3)$. This leads to a higher rejection rate of the proposals, making the method inefficient. We then verify our theoretical findings through empirical simulations as well as experiments on a real-world dataset that highlight the inefficiency of HMC inference on ReLU-based neural networks compared to analytical networks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{dinh2024hamiltonian,
  title  = {Hamiltonian Monte Carlo on ReLU Neural Networks is Inefficient},
  author = {Vu C. Dinh and Lam Si Tung Ho and Cuong V. Nguyen},
  year   = {2024},
  eprint = {2410.22065},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.22065},
  url    = {http://arxiv.org/abs/2410.22065v1},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.22065.svg)](https://codeofpaper.com/paper/2410.22065)

Discussion