Nonlinear Equation Solving: A Faster Alternative to Feedforward Computation

02/10/2020
by   Yang Song, et al.
40

Feedforward computations, such as evaluating a neural network or sampling from an autoregressive model, are ubiquitous in machine learning. The sequential nature of feedforward computation, however, requires a strict order of execution and cannot be easily accelerated with parallel computing. To enable parrallelization, we frame the task of feedforward computation as solving a system of nonlinear equations. We then propose to find the solution using a Jacobi or Gauss-Seidel fixed-point iteration method, as well as hybrid methods of both. Crucially, Jacobi updates operate independently on each equation and can be executed in parallel. Our method is guaranteed to give exactly the same values as the original feedforward computation with a reduced (or equal) number of parallel iterations. Experimentally, we demonstrate the effectiveness of our approach in accelerating 1) the evaluation of DenseNets on ImageNet and 2) autoregressive sampling of MADE and PixelCNN. We are able to achieve between 1.2 and 33 speedup factors under various conditions and computation models.

READ FULL TEXT

page 7

page 8

page 12

research
09/26/2022

Unifying Model-Based and Neural Network Feedforward: Physics-Guided Neural Networks with Linear Autoregressive Dynamics

Unknown nonlinear dynamics often limit the tracking performance of feedf...
research
08/28/2023

Fast Feedforward Networks

We break the linear link between the layer size and its inference cost b...
research
01/10/2023

Exponential Runge-Kutta Parareal for Non-Diffusive Equations

Parareal is a well-known parallel-in-time algorithm that combines a coar...
research
01/03/2023

Operator theory, kernels, and Feedforward Neural Networks

In this paper we show how specific families of positive definite kernels...
research
03/06/2021

Gradient-augmented Supervised Learning of Optimal Feedback Laws Using State-dependent Riccati Equations

A supervised learning approach for the solution of large-scale nonlinear...
research
07/09/2018

Analysis of Statistical Properties of Nonlinear Feedforward Generators Over Finite Fields

Due to their simple construction, LFSRs are commonly used as building bl...
research
06/23/2019

Accelerating Metropolis-within-Gibbs sampler with localized computations of differential equations

Inverse problem is ubiquitous in science and engineering, and Bayesian m...

Please sign up or login with your details

Forgot password? Click here to reset