English

Parallel Complexity of Forward and Backward Propagation

Machine Learning 2017-12-19 v1 Artificial Intelligence Numerical Analysis

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 kk layers and τ\tau time steps the backward propagation can be performed in parallel in O(logk\log k) and O(logklogτ\log k \log \tau) steps, respectively. Finally, we outline the generalization of this technique using Jacobians that potentially allows us to handle arbitrary layers.

Keywords

Cite

@article{arxiv.1712.06577,
  title  = {Parallel Complexity of Forward and Backward Propagation},
  author = {Maxim Naumov},
  journal= {arXiv preprint arXiv:1712.06577},
  year   = {2017}
}

Comments

18 pages

R2 v1 2026-06-22T23:22:01.361Z