Skip to main content
QUICK REVIEW

[Paper Review] The Elements of Differentiable Programming

Mathieu Blondel, Vincent Roulet|arXiv (Cornell University)|Mar 21, 2024
Scheduling and Optimization AlgorithmsEngineering7 citations
TL;DR

This paper surveys differentiable programming, arguing that end-to-end differentiation of programs enables gradient-based optimization and uncertainty quantification through probabilistic execution, and connects optimization and probability perspectives.

ABSTRACT

Artificial intelligence has recently experienced remarkable advances, fueled by large models, vast datasets, accelerated hardware, and, last but not least, the transformative power of differentiable programming. This new programming paradigm enables end-to-end differentiation of complex computer programs (including those with control flows and data structures), making gradient-based optimization of program parameters possible. As an emerging paradigm, differentiable programming builds upon several areas of computer science and applied mathematics, including automatic differentiation, graphical models, optimization and statistics. This book presents a comprehensive review of the fundamental concepts useful for differentiable programming. We adopt two main perspectives, that of optimization and that of probability, with clear analogies between the two. Differentiable programming is not merely the differentiation of programs, but also the thoughtful design of programs intended for differentiation. By making programs differentiable, we inherently introduce probability distributions over their execution, providing a means to quantify the uncertainty associated with program outputs.

Motivation & Objective

  • Motivate the need for differentiable programming in the context of AI advances.
  • Present a comprehensive review of the fundamental concepts useful for differentiable programming.
  • Adopt and articulate two main perspectives: optimization and probability, with clear analogies between them.
  • Argue that differentiable programming involves thoughtful program design to enable differentiation and quantify uncertainty.

Proposed method

  • Survey of foundational concepts: automatic differentiation, graphical models, optimization, and statistics.
  • Exposition of two complementary perspectives (optimization and probability) with corresponding analogies.
  • Discussion of how differentiable execution induces probability distributions over outputs to quantify uncertainty.
  • Emphasis on design principles for creating programs that are differentiable and well-suited to gradient-based methods.

Experimental results

Research questions

  • RQ1What are the core concepts and tools enabling differentiable programming?
  • RQ2How can optimization and probability perspectives be integrated in differentiable programming?
  • RQ3How does making a program differentiable allow quantification of uncertainty in its outputs?
  • RQ4What principles guide the design of programs intended to be differentiable?

Key findings

  • Differentiable programming enables end-to-end differentiation of complex programs, including those with control flows and data structures.
  • The field builds on automatic differentiation, graphical models, optimization, and statistics.
  • Two perspectives—optimization and probability—are presented with clear analogies between them.
  • Making programs differentiable inherently introduces probability distributions over execution, enabling uncertainty quantification.
  • The work emphasizes that differentiable programming is not only about differentiation but also about thoughtful program design for differentiation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.