paper-with-me

홈 › Papers

A tutorial on automatic differentiation with complex numbers

2024-09-10 · Nicholas Krämer

Automatic differentiation is everywhere, but there exists only minimal documentation of how it works in complex arithmetic beyond stating "derivatives in $\mathbb{C}^d$" $\cong$ "derivatives in $\mathbb{R}^{2d}$" and, at best, shallow references to Wirtinger calculus. Unfortunately, the equivalence $\mathbb{C}^d \cong \mathbb{R}^{2d}$ becomes insufficient as soon as we need to derive custom gradient rules, e.g., to avoid differentiating "through" expensive linear algebra functions or differential equation simulators. To combat such a lack of documentation, this article surveys forward- and reverse-mode automatic differentiation with complex numbers, covering topics such as Wirtinger derivatives, a modified chain rule, and different gradient conventions while explicitly avoiding holomorphicity and the Cauchy--Riemann equations (which would be far too restrictive). To be precise, we will derive, explain, and implement a complex version of Jacobian-vector and vector-Jacobian products almost entirely with linear algebra without relying on complex analysis or differential geometry. This tutorial is a call to action, for users and developers alike, to take complex values seriously when implementing custom gradient propagation rules -- the manuscript explains how.

📄 PDF Abstract BibTeX arXiv:2409.06752

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

A scheme for automatic differentiation of complex loss functions

2020-03-02 · Chu Guo, Dario Poletti

For a real function, automatic differentiation is such a standard algorithm used to efficiently compute its gradient, that it is integrated in various neural network frameworks. However, despite the recent advances in us…

BIG-bench Machine Learning

Automatic Differentiation for Complex Valued SVD

2019-09-04 · Zhou-Quan Wan, Shi-Xin Zhang

In this note, we report the back propagation formula for complex valued singular value decompositions (SVD). This formula is an important ingredient for a complete automatic differentiation(AD) infrastructure in terms of…

Tensor Networks

Learning to Optimize by Differentiable Programming

2026-01-23 · Liping Tao, Xindi Tong, Chee Wei Tan arxiv

Solving massive-scale optimization problems requires scalable first-order methods with low per-iteration cost. This tutorial highlights a shift in optimization: using differentiable programming not only to execute algori…

On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameters

2023-01-31 · Wonyeol Lee, Sejun Park, Alex Aiken

Recent work has shown that forward- and reverse- mode automatic differentiation (AD) over the reals is almost always correct in a mathematically precise sense. However, actual programs work with machine-representable num…

Convolutional Neural Networks Applied to House Numbers Digit Classification

2012-04-18 · Pierre Sermanet, Soumith Chintala, Yann Lecun

We classify digits of real-world house numbers using convolutional neural networks (ConvNets). ConvNets are hierarchical feature learning neural networks whose structure is biologically inspired. Unlike many popular visi…

ClassificationGeneral Classification