Skip to main content
QUICK REVIEW

[Paper Review] RSO: A Gradient Free Sampling Based Approach For Training Deep Neural Networks

Rohun Tripathi, Bharat Singh|arXiv (Cornell University)|May 12, 2020
Advanced Neural Network ApplicationsComputer Science24 references4 citations
TL;DR

RSO (Random Search Optimization) is a gradient-free, sampling-based method for training deep neural networks that iteratively tests perturbations to network weights and updates them only if they reduce the loss on a mini-batch. It achieves 99.1% accuracy on MNIST and 81.8% on CIFAR-10 with significantly fewer weight updates than SGD, demonstrating that random search around initialization can be highly effective without backpropagation or learning rate tuning.

ABSTRACT

We propose RSO (random search optimization), a gradient free Markov Chain Monte Carlo search based approach for training deep neural networks. To this end, RSO adds a perturbation to a weight in a deep neural network and tests if it reduces the loss on a mini-batch. If this reduces the loss, the weight is updated, otherwise the existing weight is retained. Surprisingly, we find that repeating this process a few times for each weight is sufficient to train a deep neural network. The number of weight updates for RSO is an order of magnitude lesser when compared to backpropagation with SGD. RSO can make aggressive weight updates in each step as there is no concept of learning rate. The weight update step for individual layers is also not coupled with the magnitude of the loss. RSO is evaluated on classification tasks on MNIST and CIFAR-10 datasets with deep neural networks of 6 to 10 layers where it achieves an accuracy of 99.1% and 81.8% respectively. We also find that after updating the weights just 5 times, the algorithm obtains a classification accuracy of 98% on MNIST.

Motivation & Objective

  • To explore whether gradient-free optimization via random sampling can effectively train deep neural networks without backpropagation.
  • To evaluate if random search around randomly initialized weights can achieve competitive performance with standard backpropagation.
  • To investigate whether the number of weight updates can be drastically reduced in training deep networks using sampling-based methods.
  • To assess the feasibility of replacing backpropagation with a simpler, non-differentiable optimization strategy in over-parametrized deep networks.

Proposed method

  • RSO performs a Markov Chain Monte Carlo-style search by perturbing individual weights and testing if the loss decreases on a mini-batch.
  • The weight is updated only if the perturbed weight reduces the loss, using the rule: $ w_{i+1} = \begin{cases} w_i, & f(x,w_i) \leq f(x,w_i + \Delta w_i) \\ w_i + \Delta w_i, & f(x,w_i) > f(x,w_i + \Delta w_i) \end{cases} $
  • The algorithm applies sequential updates per weight, testing one perturbation at a time and retaining the better-performing weight.
  • Caching of intermediate layer activations is used to reduce computational cost by reusing forward pass results during optimization of deeper layers.
  • The method avoids learning rate hyperparameters and does not rely on gradient magnitude or direction for updates.
  • The approach is evaluated on 6-10 layer CNNs for image classification on MNIST and CIFAR-10 using only RSO for training, with no additional optimizers.

Experimental results

Research questions

  • RQ1Can a gradient-free sampling method like RSO train deep neural networks effectively without backpropagation?
  • RQ2How does the number of weight updates in RSO compare to standard SGD-based training in terms of convergence speed and final accuracy?
  • RQ3Does random search around random initialization suffice to find good minimizers in over-parametrized deep networks?
  • RQ4Can RSO achieve competitive performance on standard benchmarks like MNIST and CIFAR-10 without learning rate tuning or gradient computation?

Key findings

  • RSO achieves 99.1% test accuracy on MNIST using a 6-10 layer CNN, comparable to standard backpropagation methods.
  • On CIFAR-10, RSO reaches 81.8% accuracy with the same architecture, demonstrating effectiveness on more complex datasets.
  • After just 5 weight updates per layer, RSO attains 98% accuracy on MNIST, indicating rapid initial convergence.
  • RSO requires an order of magnitude fewer weight updates than SGD to reach competitive performance, despite higher per-update computational cost.
  • Sequential weight updates outperform parallel strategies in convergence speed, especially on CIFAR-10, though parallelization could close the gap with longer schedules.
  • Caching intermediate activations reduces FLOPs by a factor of 3.0 on MNIST and 3.5 on deeper networks, significantly improving training efficiency.

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.