arrow
返回

Smoothing Methods for Automatic Differentiation Across Conditional Branches

delete2023-01-01
delete5
delete
OA
AI
J
Justin N. Kreikemeyer *
P
Philipp Andelfinger
DOI:10.1109/ACCESS.2023.3342136delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Programs involving discontinuities introduced by control flow constructs such as conditional branches pose challenges to mathematical optimization methods that assume a degree of smoothness in the objective function's response surface. Smooth interpretation (SI) is a form of abstract interpretation that approximates the convolution of a program's output with a Gaussian kernel, thus smoothing its output in a principled manner. Here, we combine SI with automatic differentiation (AD) to efficiently compute gradients of smoothed programs. In contrast to AD across a regular program execution, these gradients also capture the effects of alternative control flow paths. The combination of SI with AD enables the direct gradient-based parameter synthesis for branching programs, allowing for instance the calibration of simulation models or their combination with neural network models in machine learning pipelines. We detail the effects of the approximations made for tractability in SI and propose a novel Monte Carlo estimator that avoids the underlying assumptions by estimating the smoothed programs' gradients through a combination of AD and sampling. Using DiscoGrad, our tool for automatically translating simple C++ programs to a smooth differentiable form, we perform an extensive evaluation. We compare the combination of SI with AD and our Monte Carlo estimator to existing gradient-free and stochastic methods on four non-trivial and originally discontinuous problems ranging from classical simulation-based optimization to neural network-driven control. While the optimization progress with the SI-based estimator depends on the complexity of the program's control flow, our Monte Carlo estimator is competitive in all problems, exhibiting the fastest convergence by a substantial margin in our highest-dimensional problem.
Keyword:
Smoothing methods
Programming
Semantics
Perturbation methods
Convolutional neural networks
Finite difference methods
Estimation
Automatic differentiation
optimization
imperative programs
discontinuous control flow
parameter synthesis
gradient estimation
probabilistic execution
Monte Carlo approximation

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
9.8W
被引数:
29.4W

机构

U
University of Rostock
学者数:
9.5K
论文数: 7.6K
被引数: 11
引用论文

引用论文

err分享
err收藏
err分享
err收藏
Integrity and Quantity of Total Cell-Free DNA in the Diagnosis of Thyroid Cancer: Correlation with Cytological Classification
err2017-06-24
err0
errOAAI
errFrancesca Salvianti; Corinna Giuliani; Luisa Petrone; Irene Mancini; Vania Vezzosi; Cinzia Pupilli; Pamela Pinzani
err分享
err收藏
The Anticipatory Proportion as an Indicator of Language Impairment in Early-Stage Cognitive Disorder in the Elderly
err2013-09-06
err0
PREAI
errAlexander Wutzler; Regine Becker; Gernot Lämmler; Wilhelm Haverkamp; Elisabeth Steinhagen-Thiessen
err分享
err收藏
The constituent acids of gymnosperm cutins
err1972-06-01
err0
PREAI
errD.H. Hunneman; G. Eglinton
err分享
err收藏
Hollywood Dreams, Harsh Realities: Writing for Film and Television
err2002-11-01
err0
errOAAI
errDenise D. Bielby; William T. Bielby
err分享
err收藏
err分享
err收藏
Monte Carlo Estimators for Differential Light Transport
err2021-07-19
err49
PREAI
errZeltner, Tizian; Speierer, Sebastien; Georgiev, Iliyan; Jakob, Wenzel
err分享
err收藏
学者 查看更多内容