English

Almost Uniform Sampling From Neural Networks

Machine Learning 2019-12-12 v1 Machine Learning

Abstract

Given a length nn sample from Rd\mathbb{R}^d and a neural network with a fixed architecture with WW weights, kk neurons, linear threshold activation functions, and binary outputs on each neuron, we study the problem of uniformly sampling from all possible labelings on the sample corresponding to different choices of weights. We provide an algorithm that runs in time polynomial both in nn and WW such that any labeling appears with probability at least (W2ekn)W\left(\frac{W}{2ekn}\right)^W for W<nW<n. For a single neuron, we also provide a random walk based algorithm that samples exactly uniformly.

Keywords

Cite

@article{arxiv.1912.04994,
  title  = {Almost Uniform Sampling From Neural Networks},
  author = {Changlong Wu and Narayana Prasad Santhanam},
  journal= {arXiv preprint arXiv:1912.04994},
  year   = {2019}
}

Comments

Submitted to 54th Annual Conference on Information Sciences and Systems (CISS)

R2 v1 2026-06-23T12:42:04.172Z