Sampling weights of deep neural networks

Erik Lien Bolager, Iryna Burak, Chinmay Datar, Qing Sun, Felix Dietrich
6/29/2023
cs.LGmath.NA

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

We introduce a probability distribution, combined with an efficient sampling algorithm, for weights and biases of fully-connected neural networks. In a supervised learning context, no iterative optimization or gradient computations of internal network parameters are needed to obtain a trained network. The sampling is based on the idea of random feature models. However, instead of a data-agnostic distribution, e.g., a normal distribution, we use both the input and the output training data to sample shallow and deep networks. We prove that sampled networks are universal approximators. For Barron functions, we show that the $L^2$-approximation error of sampled shallow networks decreases with the square root of the number of neurons. Our sampling scheme is invariant to rigid body transformations and scaling of the input data, which implies many popular pre-processing techniques are not required. In numerical experiments, we demonstrate that sampled networks achieve accuracy comparable to iteratively trained ones, but can be constructed orders of magnitude faster. Our test cases involve a classification benchmark from OpenML, sampling of neural operators to represent maps in function spaces, and transfer learning using well-known architectures.

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. 2 weaker matches are hidden by default — 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{bolager2023sampling,
  title  = {Sampling weights of deep neural networks},
  author = {Erik Lien Bolager and Iryna Burak and Chinmay Datar and Qing Sun and Felix Dietrich},
  year   = {2023},
  eprint = {2306.16830},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.16830v2},
  journal = {NEURIPS 2023 2023}
}

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/2306.16830.svg)](https://codeofpaper.com/paper/2306.16830)

Discussion