atlas

Research map / Probabilistic and scientific modeling / Variational and generative sampling

Hamiltonian Monte Carlo on ReLU Neural Networks is Inefficient

NeurIPS 2024 · Probabilistic and scientific modeling › Variational and generative sampling · approach: Hamiltonian Monte Carlo · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that leapfrog HMC on ReLU-based Bayesian neural networks incurs Omega(epsilon) local energy error at activation-boundary crossings (vs O(epsilon^3) for smooth targets), derives d^{-1/2} step-size scaling and ~0.45 optimal acceptance, and validates with synthetic and UTKFace experiments.

Problem

HMC with leapfrog integration is assumed to be efficient for Bayesian neural networks, but ReLU's non-differentiability creates kinks in the potential energy, which may break the classical error analysis and cause low acceptance rates.

Approach

Shows leapfrog HMC remains correct for ReLU networks under deterministic derivative definitions, but each crossing of an activation boundary yields a local energy error of order Omega(epsilon) rather than O(epsilon^3), so acceptance decays; derives revised tuning guidelines (step size d^{-1/2}, optimal acceptance about 0.45) for piecewise-affine i.i.d. targets.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use sigmoid rather than ReLU activationBayesian neural network with HMC · UTKFace testaverage acceptance rate: 0.2239 $\pm$ 0.0617 -> 0.5451 $\pm$ 0.0687Helped
Use sigmoid rather than ReLU activationBayesian neural network with HMC · UTKFace testaverage MSE (overall): 0.1153 $\pm$ 0.0057 -> 0.0552 $\pm$ 0.0003Helped
Tune each activation to its best empirical acceptance rateUTKFace Bayesian neural networks with HMC · UTKFace testaverage MSE at best acceptance rate: 0.0539 $\pm$ 0.0001; 0.0533 $\pm$ 0.0004; 0.0538 $\pm$ 0.0002No clear effect
Use sigmoid rather than ReLU activationBayesian neural network with HMC · Synthetic dataset (L=200, ε=0.0010)acceptance rate: 0.652 $\pm$ 0.019 -> 0.981 $\pm$ 0.002Helped
Use sigmoid rather than leaky ReLU activationBayesian neural network with HMC · Synthetic dataset (L=200, ε=0.0010)acceptance rate: 0.653 $\pm$ 0.014 -> 0.981 $\pm$ 0.002Helped

Surprising findings

Limitations

Experimental setup

Datasets: UTKFace (male Asian subset) synthetic regression data (x~U(0,4), y~N(cos 2x, 0.1^2))

Benchmarks: UTKFace subset (age regression) synthetic cos(2x) regression

Metrics: acceptance rate efficiency (epsilon * acceptance) test MSE

Baselines: sigmoid networks leaky ReLU networks classical smooth-HMC tuning (0.651 acceptance, d^{-1/4})

Builds on: Hamiltonian Monte Carlo Roberts-Rosenthal optimal scaling Beskos et al. optimal tuning of HMC

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy