Aceleração do Computation Feedforward via Resolução Paralela de Equações Não Lineares
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.
Resumo
A computação feedforward, como a avaliação de uma rede neural ou a amostragem a partir de um modelo autoregressivo, é onipresente no aprendizado de máquina. No entanto, a natureza sequencial da computação feedforward exige uma ordem estrita de execução e não pode ser facilmente acelerada por computação paralela. Para habilitar a paralelização, enquadramos a tarefa de computação feedforward como a resolução de um sistema de equações não lineares. Em seguida, propomos encontrar a solução utilizando um método de iteração de ponto fixo de Jacobi ou Gauss-Seidel, bem como métodos híbridos de ambos. Crucialmente, as atualizações de Jacobi operam independentemente em cada equação e podem ser executadas em paralelo. Nosso método garante exatamente os mesmos valores que a computação feedforward original, com um número reduzido (ou igual) de iterações paralelizáveis e, portanto, tempo reduzido, dado poder de computação paralela suficiente. Experimentalmente, demonstramos a eficácia da nossa abordagem na aceleração de (i) o backpropagation de RNNs, (ii) a avaliação de DenseNets e (iii) a amostragem autoregressiva de MADE e PixelCNN++, com fatores de aceleração entre 2,1 e 26 em várias configurações.
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.