Skip to main content
QUICK REVIEW

[Paper Review] Parallel Complexity of Forward and Backward Propagation

Maxim Naumov|arXiv (Cornell University)|Dec 18, 2017
Neural Networks and ApplicationsComputer Science26 references6 citations
TL;DR

This paper formulates forward and backward propagation in neural networks as solving lower and upper triangular systems of equations, enabling novel parallel algorithms via direct and iterative methods. It proves that for feedforward and recurrent networks, backward propagation can be parallelized in O(log k) and O(log k log τ) steps, respectively, offering a general framework for model parallelism beyond standard sequential computation.

ABSTRACT

We show that the forward and backward propagation can be formulated as a solution of lower and upper triangular systems of equations. For standard feedforward (FNNs) and recurrent neural networks (RNNs) the triangular systems are always block bi-diagonal, while for a general computation graph (directed acyclic graph) they can have a more complex triangular sparsity pattern. We discuss direct and iterative parallel algorithms that can be used for their solution and interpreted as different ways of performing model parallelism. Also, we show that for FNNs and RNNs with $k$ layers and $τ$ time steps the backward propagation can be performed in parallel in O($\log k$) and O($\log k \log τ$) steps, respectively. Finally, we outline the generalization of this technique using Jacobians that potentially allows us to handle arbitrary layers.

Motivation & Objective

  • To reframe forward and backward propagation in neural networks as solving triangular systems of equations.
  • To develop parallel algorithms for these systems using direct and iterative numerical methods.
  • To analyze the time, work, and memory complexity of the proposed parallel schemes.
  • To establish conditions under which the parallel algorithms become practically efficient.
  • To generalize the framework to arbitrary computation graphs and arbitrary layer types using Jacobians.

Proposed method

  • Represents forward and backward propagation as solving lower and upper triangular systems derived from the computational graph.
  • Applies a variant of cyclic reduction to parallelize the solution of block-bidiagonal triangular systems in FNNs and RNNs.
  • Uses direct methods based on recursive factorization to achieve O(log k) and O(log k log τ) parallel steps for FNNs and RNNs, respectively.
  • Employs iterative solvers like Jacobi or BiCGStab for approximate solutions, enabling memory-efficient parallelization.
  • Interprets various numerical linear algebra techniques as different forms of model parallelism.
  • Generalizes the framework to arbitrary layers using Jacobian matrices, enabling application to complex or non-standard operations.

Experimental results

Research questions

  • RQ1Can forward and backward propagation in neural networks be systematically formulated as solving triangular systems of equations?
  • RQ2What is the theoretical parallel complexity of backward propagation in standard FNNs and RNNs?
  • RQ3How can direct and iterative numerical methods be adapted to perform model parallelism in deep learning?
  • RQ4Under what conditions does the proposed parallel algorithm outperform sequential backpropagation in practice?
  • RQ5Can the framework be generalized to arbitrary layers and computation graphs beyond standard feedforward and recurrent architectures?

Key findings

  • Backward propagation in feedforward neural networks with k layers can be parallelized in O(log k) steps using direct methods.
  • For recurrent neural networks with τ time steps, backward propagation can be parallelized in O(log k log τ) steps.
  • The parallel algorithm requires at most double the memory of sequential backpropagation, making it memory-efficient.
  • The method generalizes to arbitrary layers by using Jacobian matrices, enabling application to complex or non-differentiable components.
  • Iterative methods achieve O(ln²rη) time complexity with O(lnr) memory overhead, becoming practical when η < l.
  • The approach becomes practical when mini-batch size r ≥ n or l/log l ≥ n, ensuring computational overhead is justified.

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.