Differentiating without Partial Evaluation
Kangbo Li, Anil Damle
ICLR 2026 submission
Abstract. In the physical sciences, the gradient of a model is often simplified into a compact form ideal for a given context to be interpretable and more efficient; in fact, sometimes the efficiency of evaluation can be improved by an asymptotic factor due to symmetries. To learn interpretable surrogate models that accelerate physics simulations, a differentiation system capable of compact and unevaluated gradient expressions is highly desirable. However, standard symbolic and algorithmic differentiation both start by partially evaluating the model. After this points, the gradients irreversibly become blackboxes with potentially obscure performance ceilings. Based on the observation that composition is one of two combinators that form a complete basis with captures, we compliment the chain rule with a second rule that enables differentiation without any form of evaluation. Using a prototype implementation, we obtain compact gradient expressions for an MLP and a common physics model that, historically, resisted algorithmic differentiation. Lastly, we discuss the theoretical and practical limitations of our approach.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…