Skip to main content
QUICK REVIEW

[论文解读] Differentiable Visual Computing

Tzu‐Mao Li|arXiv (Cornell University)|Apr 27, 2019
Computer Graphics and Visualization TechniquesComputer Science参考文献 204被引用 3
一句话总结

本论文提出了三种用于可微分视觉计算的新工具:一种高性能图像处理的可微分Halide扩展、一种能正确处理3D渲染中几何不连续性的可微分光线追踪器,以及一种基于Hessian矩阵的马尔可夫链蒙特卡洛光线传输算法,以实现高效采样。其核心贡献在于实现了复杂图形与渲染流水线的端到端、高性能可微分计算,通过自动微分将经典计算机图形学与深度学习相融合。

ABSTRACT

Derivatives of computer graphics, image processing, and deep learning algorithms have tremendous use in guiding parameter space searches, or solving inverse problems. As the algorithms become more sophisticated, we no longer only need to differentiate simple mathematical functions, but have to deal with general programs which encode complex transformations of data. This dissertation introduces three tools for addressing the challenges that arise when obtaining and applying the derivatives for complex graphics algorithms. Traditionally, practitioners have been constrained to composing programs with a limited set of operators, or hand-deriving derivatives. We extend the image processing language Halide with reverse-mode automatic differentiation, and the ability to automatically optimize the gradient computations. This enables automatic generation of the gradients of arbitrary Halide programs, at high performance, with little programmer effort. In 3D rendering, the gradient is required with respect to variables such as camera parameters, geometry, and appearance. However, computing the gradient is challenging because the rendering integral includes visibility terms that are not differentiable. We introduce, to our knowledge, the first general-purpose differentiable ray tracer that solves the full rendering equation, while correctly taking the geometric discontinuities into account. Finally, we demonstrate that the derivatives of light path throughput can also be useful for guiding sampling in forward rendering. Simulating light transport in the presence of multi-bounce glossy effects and motion in 3D rendering is challenging due to the hard-to-sample high-contribution areas. We present a Markov Chain Monte Carlo rendering algorithm that extends Metropolis Light Transport by automatically and explicitly adapting to the local integrand, thereby increasing sampling efficiency.

研究动机与目标

  • 实现对传统上因不连续性和复杂控制流而不可微的复杂图像处理与渲染算法的自动、高性能可微分计算。
  • 解决基于物理的渲染中梯度计算的挑战,其中可见性与几何不连续性会破坏标准自动微分的适用性。
  • 通过利用二阶导数(Hessian矩阵)自适应探索光传输被积函数中的高贡献区域,提升蒙特卡洛渲染中的采样效率。
  • 通过在梯度空间中实现基于梯度的优化与反问题求解,模糊传统计算机图形学与深度学习之间的界限。

提出的方法

  • 在Halide编程语言中扩展了反向模式自动微分与自动梯度优化,使任意Halide程序能够高效、高性能地计算梯度。
  • 开发了一种通用的可微分光线追踪器,通过将渲染方程建模为分段光滑函数,正确计算通过可见性与几何不连续性的梯度。
  • 提出了一种Hessian感知的马尔可夫链蒙特卡洛光线传输算法,利用二阶导数信息自适应调整采样策略,以匹配光传输被积函数的局部曲率。
  • 应用哈密顿蒙特卡洛原理与泰勒展开,模拟梯度空间中的物理过程,从而更高效地探索高维积分中狭窄而高贡献的区域。
  • 设计了一种可微分双向路径追踪器,能够计算路径透过率的梯度与Hessian矩阵,支持高级反向渲染与对抗性样本生成。
  • 在Halide编译器中引入领域特定提示,指导元编程并优化复杂、数据并行的图像处理流水线的梯度代码生成。

实验结果

研究问题

  • RQ1如何在保持性能的前提下,自动计算用高级语言(如Halide)表达的复杂、数据并行图像处理流水线的梯度?
  • RQ2当可见性与几何不连续性在渲染方程中引入不可微项时,如何正确计算3D渲染中的梯度?
  • RQ3光路透过率的二阶导数(Hessian矩阵)是否能提升蒙特卡洛渲染中的采样效率,特别是在存在多bounce光泽效应的情况下?
  • RQ4如何将基于导数的采样方法整合到马尔可夫链蒙特卡洛方法(如马尔可夫链蒙特卡洛光线传输)中,以提升收敛速度并降低方差?
  • RQ5可微分渲染与自动微分在多大程度上能够统一传统图形算法与深度学习方法?

主要发现

  • 可微分Halide扩展实现了对任意Halide程序的自动、高性能梯度计算,通过基于梯度的优化显著提升了传统图像处理流水线的质量。
  • 所提出的可微分光线追踪器成功计算了通过可见性与几何不连续性的梯度,为神经网络的反向渲染与对抗性样本生成开辟了新应用。
  • Hessian感知的马尔可夫链蒙特卡洛光线传输算法通过适应被积函数的局部各向异性,实现了更高的采样效率,尤其在具有狭窄高贡献瓣的区域表现优异。
  • 利用二阶导数使算法能够更准确地捕捉被积函数的形状,从而在复杂光泽与运动模糊场景的渲染中实现更快收敛与更低方差。
  • 首次实现了端到端可微分的双向路径追踪器,能够计算路径透过率的梯度与Hessian矩阵,证明了在复杂渲染流水线中实现完整可微分计算的可行性。
  • 结果表明,可微分渲染能够弥合经典图形学与深度学习之间的差距,支持基于物理模拟的数据驱动训练与反向推理。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。