Kaolin: A PyTorch Library for Accelerating 3D Deep Learning Research

Krishna Murthy Jatavallabhula, Edward J. Smith, Jean-Francois Lafleche, Clement Fuji Tsang, Artem Rozantsev, Wenzheng Chen, Tommy Xiang, Rev Lebaredian, Sanja FidlerarXiv 2019

Introduction

Kaolin is an open-source PyTorch library developed by NVIDIA to streamline 3D deep learning research. By providing a unified, high-performance toolkit, it addresses the historical fragmentation in the field, allowing researchers to move seamlessly between data loading, representation conversion, and model training. It aims to serve as the "PyTorch for 3D," providing the necessary infrastructure to make 3D research as accessible as its 2D counterpart.

Overview of Kaolin's core components: 3D representations, model zoo, data loaders, and loss functions.

The Challenge of 3D Deep Learning

Unlike 2D vision, which benefits from standardized libraries and formats (like ImageNet and specialized CV libraries), 3D deep learning has historically faced a steep learning curve. Researchers often deal with mismatched formats—point clouds, meshes, and voxels—requiring significant "wasteful boilerplate code" for basic operations like data loading and geometric transformations. Furthermore, the lack of a centralized "Model Zoo" has made it difficult to perform fair, head-to-head comparisons between different state-of-the-art methods.

The Kaolin Framework

Kaolin is built as a modular extension of PyTorch, centered on several core pillars designed to reduce research friction:

Unified 3D Representations and Differentiable Conversions

Kaolin treats meshes, point clouds, voxel grids, and Signed Distance Functions (SDFs) as first-class citizens, stored as PyTorch Tensors. This allows for operator overloading and seamless integration into standard deep learning workflows. Crucially, Kaolin enables differentiable conversions between these formats—such as sampling a point cloud from a mesh surface using the "reparameterization trick"—which is essential for end-to-end learning and "analysis-by-synthesis."

Kaolin enables seamless transitions between different 3D representations like meshes, point clouds, and voxels.

Modular Differentiable Rendering

Instead of a "black box" renderer, Kaolin provides an abstract base class that allows researchers to swap out individual components like lighting, shading, and rasterization. This modularity makes it easy to experiment with new rendering techniques within a differentiable pipeline.

High-Performance Kernels

To ensure research efficiency, many of the library's core geometric functions are implemented in highly optimized CUDA code. This prevents geometric operations from becoming a bottleneck during large-scale training.

Data and Benchmarking

Kaolin provides native support and easy-to-use loaders for several cornerstone 3D datasets, including ShapeNet, PartNet, ModelNet, and ScanNet. It also supports Pixar’s Universal Scene Description (USD) format, enabling interoperability with professional 3D graphics tools.

Key Results and Impact

The library delivers substantial performance improvements over existing implementations:

  • Speed: Optimized CUDA kernels provide up to a 110x speedup for mesh adjacency calculations compared to the original MeshCNN implementation.
  • Rendering: The DIB-Renderer implementation is approximately 10x faster than previous versions.
  • Accessibility: The comprehensive Model Zoo includes pre-trained versions of influential models like Pixel2Mesh, AtlasNet, and 3D-GAN, providing immediate baselines for new research.

Future Directions

While comprehensive, the authors plan to expand Kaolin into several new domains. Future updates will focus on 3D object detection, advanced lighting effects (such as shadows and path-tracing), and support for large-scale outdoor LiDAR datasets like nuScenes. Additionally, the team is investigating hardware optimizations like Automatic Mixed Precision (AMP) to further enhance memory efficiency and speed in 3D architectures.

Summary updated

BibTeX
@misc{jatavallabhula2019kaolin,
  author = {Krishna Murthy Jatavallabhula and Edward J. Smith and Jean-Francois Lafleche and Clement Fuji Tsang and Artem Rozantsev and Wenzheng Chen and Tommy Xiang and Rev Lebaredian and Sanja Fidler},
  title = {{Kaolin: A PyTorch Library for Accelerating 3D Deep Learning Research}},
  year = {2019},
  eprint = {1911.05063},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.05063},
}
Figure