arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.05345cs.CVcs.GRcs.PF
收藏

DISTWAR:基于光栅化渲染管线的快速可微渲染

DISTWAR: Fast Differentiable Rendering on Raster-based Rendering Pipelines

University of Toronto(多伦多大学)

Sankeerth Durvasula, Adrian Zhao, Fan Chen, Ruofan Liang, Pawan Kumar Sanjaya, Nandita Vijaykumar

AI总结:

本文提出DISTWAR软件方法,通过warp级归约与SM/L2原子单元协同调度加速可微渲染训练中的原子操作,在光栅化渲染负载上实现平均2.44倍、最高5.7倍加速。

摘要:

可微渲染是一种用于一类重要的新兴视觉计算应用的技术,其将3D场景表示为一个通过梯度下降从2D图像训练得到的模型。近期工作(如3D Gaussian Splatting)使用光栅化管线,能够从这些学习到的3D模型中以高速渲染高质量的照片级真实感图像。这些方法已被证明非常有前景,为许多重要任务提供了最先进的质量。然而,即使使用强大的GPU,训练一个表示场景的模型仍然是一项耗时的任务。在这项工作中,我们观察到训练过程中的梯度计算阶段是GPU上的一个重要瓶颈,原因在于需要处理大量的原子操作。这些原子操作压垮了L2分区中的原子单元,导致停顿。为了应对这一挑战,我们利用了梯度计算过程中的以下观察结果:(1)对于大多数warp,所有线程都原子地更新相同的内存位置;以及(2)warp产生的原子流量各不相同(因为某些线程可能处于非活跃状态)。我们提出了DISTWAR,这是一种基于两个关键思想的加速原子操作的软件方法:首先,我们在SM子核上利用寄存器实现warp级线程归约,以利用warp内原子更新的局部性。其次,我们将原子计算分布在SM上的warp级归约与L2原子单元之间,以提高原子计算的吞吐量。具有许多线程对相同内存位置执行原子更新的warp在SM上调度,其余的使用L2原子单元。我们使用现有的warp级原语实现了DISTWAR。我们在广泛使用的基于光栅化的可微渲染工作负载上评估了DISTWAR。我们展示了平均2.44倍(最高5.7倍)的显著加速。

英文摘要:

Differentiable rendering is a technique used in an important emerging class of visual computing applications that involves representing a 3D scene as a model that is trained from 2D images using gradient descent. Recent works (e.g. 3D Gaussian Splatting) use a rasterization pipeline to enable rendering high quality photo-realistic imagery at high speeds from these learned 3D models. These methods have been demonstrated to be very promising, providing state-of-art quality for many important tasks. However, training a model to represent a scene is still a time-consuming task even when using powerful GPUs. In this work, we observe that the gradient computation phase during training is a significant bottleneck on GPUs due to the large number of atomic operations that need to be processed. These atomic operations overwhelm atomic units in the L2 partitions causing stalls. To address this challenge, we leverage the observations that during the gradient computation: (1) for most warps, all threads atomically update the same memory locations; and (2) warps generate varying amounts of atomic traffic (since some threads may be inactive). We propose DISTWAR, a software-approach to accelerate atomic operations based on two key ideas: First, we enable warp-level reduction of threads at the SM sub-cores using registers to leverage the locality in intra-warp atomic updates. Second, we distribute the atomic computation between the warp-level reduction at the SM and the L2 atomic units to increase the throughput of atomic computation. Warps with many threads performing atomic updates to the same memory locations are scheduled at the SM, and the rest using L2 atomic units. We implement DISTWAR using existing warp-level primitives. We evaluate DISTWAR on widely used raster-based differentiable rendering workloads. We demonstrate significant speedups of 2.44x on average (up to 5.7x).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑