SLANG.D: Fast, Modular and Differentiable Shader Programming
ACM Transactions on Graphics · 05.12.2023 · 42 (6) · 1-28
DOI: 10.1145/3618353 ↗Kurz gefasst
Fachartikel in der Zeitschrift ACM Transactions on Graphics, online erschienen am 05.12.2023. Verfasst von Sai Praveen Bangaru und 8 weiteren Autor:innen. Die Arbeit wurde bisher 29-mal zitiert (Crossref) und nennt 73 Literaturangaben. Gefördert von: NSF.
Abstract (Originalsprache)
We introduce SLANG.D, an extension to the Slang shading language that incorporates first-class automatic differentiation support. The new shading language allows us to transform a Direct3D-based path tracer to be fully differentiable with minor modifications to existing code. SLANG.D enables a shared ecosystem between machine learning frameworks and pre-existing graphics hardware API-based rendering systems, promoting the interchange of components and ideas across these two domains. Our contributions include a differentiable type system designed to ensure type safety and semantic clarity in codebases that blend differentiable and non-differentiable code, language primitives that automatically generate both forward and reverse gradient propagation methods, and a compiler architecture that generates efficient derivative propagation shader code for graphics pipelines. Our compiler supports differentiating code that involves arbitrary control-flow, dynamic dispatch, generics and higher-order differentiation, while providing developers flexible control of checkpointing and gradient aggregation strategies for best performance. Our system allows us to differentiate an existing real-time path tracer, Falcor, with minimal change to its shader code. We show that the compiler-generated derivative kernels perform as efficiently as handwritten ones. In several benchmarks, the SLANG.D code achieves significant speedup when compared to prior automatic differentiation systems.
Förderung
- NSF
Zitieren
APA
Bangaru, S. P., Wu, L., Li, T., Munkberg, J., Bernstein, G., Ragan-Kelley, J., Durand, F., Lefohn, A., & He, Y. (2023). SLANG.D: Fast, Modular and Differentiable Shader Programming. ACM Transactions on Graphics, 42(6), 1-28. https://doi.org/10.1145/3618353
Vancouver
Bangaru SP, Wu L, Li T, Munkberg J, Bernstein G, Ragan-Kelley J, et al. SLANG.D: Fast, Modular and Differentiable Shader Programming. ACM Transactions on Graphics. 2023;42(6):1-28. doi:10.1145/3618353
BibTeX
@article{Bangaru2023,
author = {Bangaru, Sai Praveen and Wu, Lifan and Li, Tzu-Mao and Munkberg, Jacob and Bernstein, Gilbert and Ragan-Kelley, Jonathan and Durand, Frédo and Lefohn, Aaron and He, Yong},
title = {SLANG.D: Fast, Modular and Differentiable Shader Programming},
journal = {ACM Transactions on Graphics},
year = {2023},
volume = {42},
number = {6},
pages = {1--28},
doi = {10.1145/3618353}
}
EUVIMED