paper-with-me

Papers

Automatic Differentiation for Adjoint Stencil Loops

2019-07-05 · Jan Hückelheim, Navjot Kukreja, Sri Hari Krishna Narayanan, Fabio Luporini, Gerard Gorman, Paul Hovland

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.

📄 PDF Abstract BibTeX arXiv:1907.02818

Code (0)

등록된 구현이 없습니다.

Tasks

Seismic Imaging

Similar Papers 제목 키워드 기반

Automatic Adjoint Differentiation for special functions involving expectations

2022-04-11 · José Brito, Andrei Goloubentsev, Evgeny Goncharov

We explain how to compute gradients of functions of the form $G = \frac{1}{2} \sum_{i=1}^{m} (E y_i - C_i)^2$, which often appear in the calibration of stochastic models, using Automatic Adjoint Differentiation and paral…

FlashPDE: A Drop-In Fused Triton Operator Library for Neural PDE Solvers

2026-07-20 · Peiyu Zang, Bosen Xie, Ruoxiang Xu, Yongqiang Cai arxiv

Physics-Informed Neural Networks (PINNs) solve PDEs by incorporating physical constraints into neural-network training, but large-scale problems are limited by automatic-differentiation memory overhead and inefficient ex…

Combinatory Adjoints and Differentiation

2022-07-02 · Martin Elsman, Fritz Henglein, Robin Kaarsgaard, Mikkel Kragh Mathiesen 외

We develop a compositional approach for automatic and symbolic differentiation based on categorical constructions in functional analysis where derivatives are linear functions on abstract vectors rather than being limite…

Source-to-Source Automatic Differentiation of OpenMP Parallel Loops

2021-11-02 · Jan Hückelheim, Laurent Hascoët

This paper presents our work toward correct and efficient automatic differentiation of OpenMP parallel worksharing loops in forward and reverse mode. Automatic differentiation is a method to obtain gradients of numerical…

Uncertainty Quantification

Adjoint-Based Aerodynamic Shape Optimization with a Manifold Constraint Learned by Diffusion Models

2025-07-31 · Long Chen, Emre Oezkaya, Jan Rottmayer, Nicolas R. Gauger 외 arxiv

We introduce an adjoint-based aerodynamic shape optimization framework that integrates a diffusion model trained on existing designs to learn a smooth manifold of aerodynamically viable shapes. This manifold is enforced …