ZeroGrads: Learning Local Surrogates for Non-Differentiable Graphics
Michael Fischer, Tobias Ritschel
Abstract
Gradient-based optimization is now ubiquitous across graphics, but unfortunately can not be applied to problems with undefined or zero gradients. To circumvent this issue, the loss function can be manually replaced by a "surrogate" that has similar minima but is differentiable. Our proposed framework, ZeroGrads , automates this process by learning a neural approximation of the objective function, which in turn can be used to differentiate through arbitrary black-box graphics pipelines. We train the surrogate on an actively smoothed version of the objective and encourage locality, focusing the surrogate's capacity on what matters at the current training episode. The fitting is performed online, alongside the parameter optimization, and self-supervised, without pre-computed data or pre-trained models. As sampling the objective is expensive (it requires a full rendering or simulator run), we devise an efficient sampling scheme that allows for tractable run-times and competitive performance at little overhead. We demonstrate optimizing diverse non-convex, non-differentiable black-box problems in graphics, such as visibility in rendering, discrete parameter spaces in procedural modelling or optimal control in physics-driven animation. In contrast to other derivative-free algorithms, our approach scales well to higher dimensions, which we demonstrate on problems with up to 35k interlinked variables.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers5
- Practical Stylized Nonlinear Monte Carlo RenderingXiaochun Tong, Toshiya HachisukaSIGGRAPH 2025 · 2 citations
- Stochastic Gradient Estimation for Higher-Order Differentiable RenderingZican Wang, Michael Fischer, Tobias RitschelICCV 2025 · 1 citation
- Photons × Force: Differentiable Radiation Pressure ModelingCharles Constant, Santosh Bhattarai, Elizabeth Bates, Marek Ziebart et al.SIGGRAPH 2026
- Accurate Differential Operators for Hybrid Neural FieldsAditya Chetan, Guandao Yang, Zichen Wang, Steve Marschner et al.CVPR 2025
- Locally Orderless Images for Optimization in Differentiable RenderingIshit Mehta, Manmohan Chandraker, Ravi RamamoorthiCVPR 2025
Builds on20
- Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional DomainsMatthew Tancik, Pratul P. Srinivasan, Ben Mildenhall, Sara Fridovich-Keil et al.NeurIPS 2020 · 4,036 citations
- Soft Rasterizer: A Differentiable Renderer for Image-Based 3D ReasoningShichen Liu, Weikai Chen, Tianye Li, Hao LiICCV 2019 · 789 citations
- DiffTaichi: Differentiable Programming for Physical SimulationYuanming Hu, Luke Anderson, Tzu-Mao Li, Qi Sun et al.ICLR 2020 · 479 citations
- Learning to Control PDEs with Differentiable PhysicsPhilipp Holl, Nils Thuerey, Vladlen KoltunICLR 2020 · 221 citations
- Learning with Differentiable Pertubed OptimizersQuentin Berthet, Mathieu Blondel, Olivier Teboul, Marco Cuturi et al.NeurIPS 2020 · 181 citations
Related papers
- Black-Box Optimization with Local Generative SurrogatesSergey Shirobokov, Vladislav Belavin, Michael Kagan, Andrey Ustyuzhanin et al.NeurIPS 2020 · 60 citations
- Node Graph Optimization Using Differentiable ProxiesYiwei Hu, Paul Guerrero, Milos Hasan, Holly E. Rushmeier et al.SIGGRAPH 2022 · 20 citations
- Generalizing Stochastic Smoothing for Differentiation and Gradient EstimationFelix Petersen, Christian Borgelt, Aashwin Mishra, Stefano ErmonICML 2026 · 4 citations
- SNUG: Self-Supervised Neural Dynamic GarmentsIgor Santesteban, Miguel A. Otaduy, Dan CasasCVPR 2022 · 96 citations
- Neural Network Accelerated Implicit Filtering: Integrating Neural Network Surrogates With Provably Convergent Derivative Free Optimization MethodsBrian Irwin, Eldad Haber, Raviv Gal, Avi ZivICML 2023 · 1 citation
