並列非線形方程式の解法による前馈計算の加速
Accelerating Feedforward Computation via Parallel Nonlinear Equation Solving
Accelerating Feedforward Computation via Parallel Nonlinear Equation Solving
@misc{song2020accelerating,
title = {Accelerating Feedforward Computation via Parallel Nonlinear Equation Solving},
author = {Yang Song and Chenlin Meng and Renjie Liao and Stefano Ermon},
year = {2020},
eprint = {2002.03629},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2002.03629}
}
Song, Y., Meng, C., Liao, R., & Ermon, S. (2020). Accelerating Feedforward Computation via Parallel Nonlinear Equation Solving [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2002.03629
SONG Y, MENG C, LIAO R, et al. Accelerating Feedforward Computation via Parallel Nonlinear Equation Solving[EB/OL]. (2020-02-10)[2026-11-29]. https://arxiv.org/abs/2002.03629.
要旨
前馈計算、例えばニューラルネットワークの評価や自己回帰モデルからのサンプリングは、機械学習において普遍的である。しかし、前馈計算の順序性により、厳密な実行順序が必要となり、並列計算による容易な高速化は困難である。並列化を可能にするために、我々は前馈計算のタスクを非線形方程式系の解法として再定義する。その後、ヤコビ法またはガウス・ザイデル法の固定点反復法、および両者のハイブリッド法を用いて解を求め提案する。特に、ヤコビ更新は各方程式に対して独立に実行可能であり、並列実行が可能である。我々の手法は、十分な並列計算能力がある場合、元の前馈計算と同じ正確な値を与えつつ、並列化可能な反復回数を削減(または等しい)し、従って時間を削減する。実験的に、我々のアプローチが (i) RNN の後方伝播、(ii) DenseNets の評価、および (iii) MADE と PixelCNN++ の自己回帰サンプリングの高速化に効果的であることを示した。様々な設定下で、2.1 倍から 26 倍までの速度向上因子が得られた。
Feedforward computation, such as evaluating a neural network or sampling from an autoregressive model, is 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 parallelization, 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 parallelizable iterations, and hence reduced time given sufficient parallel computing power. Experimentally, we demonstrate the effectiveness of our approach in accelerating (i) backpropagation of RNNs, (ii) evaluation of DenseNets, and (iii) autoregressive sampling of MADE and PixelCNN++, with speedup factors between 2.1 and 26 under various settings.