DCLGPFSCJul 5, 2019

Automatic Differentiation for Adjoint Stencil Loops

arXiv:1907.02818v116 citations
Originality Highly original
AI Analysis

This addresses a bottleneck for researchers and practitioners in fields like machine learning, scientific computing, and image processing who need efficient gradient computations for stencil-based programs.

The paper tackles the problem of reverse-mode automatic differentiation for stencil loops, which conventionally disrupts memory access patterns and parallelizability, by presenting a novel combination of automatic differentiation and loop transformations that preserves stencil structure and enables efficient parallelization. The result is a fully consistent derivative computation method implemented in the tool PerforAD, with test cases from seismic imaging and computational fluid dynamics.

Stencil loops are a common motif in computations including convolutional neural networks, structured-mesh solvers for partial differential equations, and image processing. Stencil loops are easy to parallelise, and their fast execution is aided by compilers, libraries, and domain-specific languages. Reverse-mode automatic differentiation, also known as algorithmic differentiation, autodiff, adjoint differentiation, or back-propagation, is sometimes used to obtain gradients of programs that contain stencil loops. Unfortunately, conventional automatic differentiation results in a memory access pattern that is not stencil-like and not easily parallelisable. In this paper we present a novel combination of automatic differentiation and loop transformations that preserves the structure and memory access pattern of stencil loops, while computing fully consistent derivatives. The generated loops can be parallelised and optimised for performance in the same way and using the same tools as the original computation. We have implemented this new technique in the Python tool PerforAD, which we release with this paper along with test cases derived from seismic imaging and computational fluid dynamics applications.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes