paper-with-me

Papers

Automatic Functional Differentiation in JAX

2023-11-30 · Min Lin

We extend JAX with the capability to automatically differentiate higher-order functions (functionals and operators). By representing functions as a generalization of arrays, we seamlessly use JAX's existing primitive system to implement higher-order functions. We present a set of primitive operators that serve as foundational building blocks for constructing several key types of functionals. For every introduced primitive operator, we derive and implement both linearization and transposition rules, aligning with JAX's internal protocols for forward and reverse mode automatic differentiation. This enhancement allows for functional differentiation in the same syntax traditionally use for functions. The resulting functional gradients are themselves functions ready to be invoked in python. We showcase this tool's efficacy and simplicity through applications where functional derivatives are indispensable. The source code of this work is released at https://github.com/sail-sg/autofd .

📄 PDF Abstract BibTeX arXiv:2311.18727

Code (1)

sail-sg/autofd 공식 구현 jax

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

Efficient Differentiable Programming in a Functional Array-Processing Language

2018-06-06 · Amir Shaikhha, Andrew Fitzgibbon, Dimitrios Vytiniotis, Simon Peyton Jones 외

We present a system for the automatic differentiation of a higher-order functional array-processing language. The core functional language underlying this system simultaneously supports both source-to-source automatic di…

BIG-bench Machine Learning

Simplifying debiased inference via automatic differentiation and probabilistic programming

2024-05-14 · Alex Luedtke

We introduce an algorithm that simplifies the construction of efficient estimators, making them accessible to a broader audience. 'Dimple' takes as input computer code representing a parameter of interest and outputs an …

Probabilistic Programming

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…

Efficient and Sound Differentiable Programming in a Functional Array-Processing Language

2022-12-20 · Amir Shaikhha, Mathieu Huot, Shabnam Ghasemirad, Andrew Fitzgibbon 외

Automatic differentiation (AD) is a technique for computing the derivative of a function represented by a program. This technique is considered as the de-facto standard for computing the differentiation in many machine l…

An automatic differentiation system for the age of differential privacy

2021-09-22 · Dmitrii Usynin, Alexander Ziller, Moritz Knolle, Andrew Trask 외

We introduce Tritium, an automatic differentiation-based sensitivity analysis framework for differentially private (DP) machine learning (ML). Optimal noise calibration in this setting requires efficient Jacobian matrix …

BIG-bench Machine LearningSensitivity