Skip to main content
QUICK REVIEW

[Paper Review] Sampling weights of deep neural networks

Erik Lien Bolager, Iryna Burak|arXiv (Cornell University)|Jun 29, 2023
Neural Networks and ApplicationsComputer Science7 citations
TL;DR

This paper proposes a data-driven sampling method for deep neural network weights and biases that eliminates the need for iterative optimization. By sampling based on gradients of the target function using training data, the method achieves universal approximation, $L^2$-error decay at $\mathcal{O}(m^{-1/2})$ for shallow networks, and orders-of-magnitude faster training with accuracy comparable to gradient-based methods, while being invariant to input scaling and rigid transformations.

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.

Motivation & Objective

  • To eliminate iterative optimization in training deep neural networks by replacing gradient-based weight learning with a data-driven sampling procedure.
  • To improve approximation accuracy of randomly sampled networks by incorporating information from training data, particularly gradients between data points.
  • To achieve invariance to input scaling and rigid body transformations, reducing reliance on standard preprocessing techniques.
  • To enable efficient construction of both shallow and deep networks with theoretical guarantees on approximation quality.
  • To provide a theoretically grounded, interpretable, and computationally efficient alternative to traditional training for supervised learning.

Proposed method

  • The method samples weights and biases from a probability distribution derived from the directions between training data pairs, focusing on regions of high gradient in the target function.
  • It uses a data-dependent sampling distribution over pairs of input-output points to construct hidden-layer parameters, ensuring alignment with the underlying function's structure.
  • The algorithm constructs deep networks by sequentially sampling parameters for each layer, using the output of the previous layer as input, with no backpropagation.
  • The final layer weights and biases are computed via least squares using SVD, solving a linear system to map the last hidden layer to the output.
  • The sampling process is invariant to orthogonal transformations and scaling of the input data, due to its reliance on relative data-point differences.
  • The method is implemented in a library called SWIM, with complexity bounds showing $\mathcal{O}(M)$ runtime for fixed architectures, where $M$ is the training set size.

Experimental results

Research questions

  • RQ1Can a non-iterative, data-driven sampling scheme for network weights achieve approximation accuracy comparable to gradient-based training?
  • RQ2Does the proposed sampling method lead to universal approximation in deep and shallow networks?
  • RQ3Can the sampling distribution be designed to ensure invariance to input scaling and rigid body transformations?
  • RQ4What is the theoretical $L^2$-approximation error rate for sampled shallow networks, and how does it scale with network width?
  • RQ5How does the computational efficiency of the sampling method compare to standard training, especially in deep networks and function space mapping tasks?

Key findings

  • The sampled networks are universal approximators, capable of approximating any continuous function on a compact domain.
  • For Barron functions, the $L^2$-approximation error of sampled shallow networks decays at the rate $\mathcal{O}(m^{-1/2})$, matching the optimal rate for one-hidden-layer networks.
  • The method achieves test accuracy comparable to iteratively trained networks on OpenML classification benchmarks, with training times orders of magnitude faster.
  • The sampling scheme is invariant to input scaling and rigid body transformations, making standard preprocessing like normalization redundant.
  • The runtime complexity is $\mathcal{O}(M)$ for fixed architectures, and $\mathcal{O}(L \cdot M(\lceil N/M\rceil + N^2))$ in general, with memory complexity $\mathcal{O}(M \cdot \lceil N/M\rceil + L N^2)$.
  • Numerical experiments demonstrate strong performance in neural operator learning and transfer learning using standard architectures, confirming practical viability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.