A Comprehensive Evaluation of Vertex Elimination Algorithms for Algorithmic Differentiation

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Crane, Alex, Drange, Pål Grønås, Friedman, Eli, Hovland, Paul D., Hückelheim, Jan, Lyons, Andrew, Mizutani, Yosuke, Ottavy, Macéo, Sullivan, Blair D.
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917526825336832
author Crane, Alex
Drange, Pål Grønås
Friedman, Eli
Hovland, Paul D.
Hückelheim, Jan
Lyons, Andrew
Mizutani, Yosuke
Ottavy, Macéo
Sullivan, Blair D.
author_facet Crane, Alex
Drange, Pål Grønås
Friedman, Eli
Hovland, Paul D.
Hückelheim, Jan
Lyons, Andrew
Mizutani, Yosuke
Ottavy, Macéo
Sullivan, Blair D.
contents The algorithmic differentiation (AD) of mathematical functions can be interpreted as a sequence of vertex eliminations in an underlying directed acyclic graph. The problem of determining a minimum-cost elimination ordering, which we call Optimal Vertex Elimination, is NP-complete. Consequently, much effort has been devoted to the design of heuristics. Many of these heuristics are widely believed to perform well in practice, but this hypothesis has so far been difficult to test due to the lack of scalable exact methods. We design and engineer new integer programming formulations for Optimal Vertex Eliminatioin and for a related objective we call Minimum Edge Count. Our implementations scale to graphs one-to-two orders of magnitude larger than existing techniques, enabling the assembly of a corpus of medium-sized graphs for which optimal solutions are known. This corpus facilitates a study of existing heuristics, confirming that on real data popular methods achieve high quality solutions. We also make several theoretical contributions. We give a tight analysis of the forward and reverse modes of AD, and extend our techniques to provide a simple algorithm for Optimal Vertex Elimination with approximation ratio parameterized by the size of a minimum source-sink separator. On the complexity side, we give the first approximation lower bounds for both problems.
format Preprint
id arxiv_https___arxiv_org_abs_2605_24280
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle A Comprehensive Evaluation of Vertex Elimination Algorithms for Algorithmic Differentiation
Crane, Alex
Drange, Pål Grønås
Friedman, Eli
Hovland, Paul D.
Hückelheim, Jan
Lyons, Andrew
Mizutani, Yosuke
Ottavy, Macéo
Sullivan, Blair D.
Data Structures and Algorithms
The algorithmic differentiation (AD) of mathematical functions can be interpreted as a sequence of vertex eliminations in an underlying directed acyclic graph. The problem of determining a minimum-cost elimination ordering, which we call Optimal Vertex Elimination, is NP-complete. Consequently, much effort has been devoted to the design of heuristics. Many of these heuristics are widely believed to perform well in practice, but this hypothesis has so far been difficult to test due to the lack of scalable exact methods. We design and engineer new integer programming formulations for Optimal Vertex Eliminatioin and for a related objective we call Minimum Edge Count. Our implementations scale to graphs one-to-two orders of magnitude larger than existing techniques, enabling the assembly of a corpus of medium-sized graphs for which optimal solutions are known. This corpus facilitates a study of existing heuristics, confirming that on real data popular methods achieve high quality solutions. We also make several theoretical contributions. We give a tight analysis of the forward and reverse modes of AD, and extend our techniques to provide a simple algorithm for Optimal Vertex Elimination with approximation ratio parameterized by the size of a minimum source-sink separator. On the complexity side, we give the first approximation lower bounds for both problems.
title A Comprehensive Evaluation of Vertex Elimination Algorithms for Algorithmic Differentiation
topic Data Structures and Algorithms
url https://arxiv.org/abs/2605.24280