병렬 비선형 방정식 해법을 통한 순전파 계산 가속화
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.
초록
Feedforward computation, 예를 들어 신경망 평가나 자기회귀 모델로부터 샘플링, 은 머신러닝에서 보편적으로 사용된다. 그러나 feedforward computation 의 순차적 특성은 엄격한 실행 순서를 요구하며, 병렬 컴퓨팅을 통해 쉽게 가속화할 수 없다. 병렬화를 가능하게 하기 위해, 우리는 feedforward computation 과를 비선형 방정식 시스템을 해결하는 문제로 재정의한다. 그 후, Jacobi 또는 Gauss-Seidel 고정점 반복법을, 그리고 양자의 하이브리드 방법을 사용하여 해를 구하는 것을 제안한다. 핵심적으로, Jacobi 업데이트는 각 방정식에 대해 독립적으로 작동하며 병렬로 실행될 수 있다. 우리의 방법은 원본 feedforward computation 과와 정확히 동일한 값을 제공하며, 병렬화 가능한 반복 횟수가 감소 (또는 동일) 하므로, 충분한 병렬 컴퓨팅 파워가 주어지면 감소된 시간이 소요된다. 실험적으로, 우리는 다양한 설정에서 (i) RNN 의 역전파, (ii) DenseNet 의 평가, (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.