Learning Gradient Fields for Shape Generation

Ruojin Cai, Guandao Yang, Hadar Averbuch-Elor, Zekun Hao, Serge J. Belongie, Noah Snavely, Bharath Hariharan

Abstract

Generating high-quality 3D shapes remains a challenge due to the limitations of fixed-size point clouds, unstable GAN training, and computationally expensive normalizing flows. We present ShapeGF, a novel generative model that represents 3D shapes as learned gradient fields of a probability density. By utilizing stochastic Langevin dynamics, ShapeGF moves points from a prior distribution toward high-density regions on the shape surface. Our approach achieves state-of-the-art accuracy on ShapeNet benchmarks while significantly reducing training time compared to flow-based methods. Furthermore, the learned gradient field naturally enables the extraction of smooth implicit surfaces, bridging the gap between discrete point clouds and continuous geometry.

Introduction

The representation of 3D data is a fundamental problem in computer vision and graphics. Traditional methods like point clouds are flexible but often constrained by fixed resolutions. Generative Adversarial Networks (GANs) offer high-quality samples but suffer from training instability. Normalizing flows provide exact likelihoods but are computationally intensive due to the need for volume tracking. Implicit representations produce smooth surfaces but often require specialized "watertight" training data.

ShapeGF addresses these challenges by learning to "sculpt" 3D data. Instead of modeling the probability density directly, the model learns the gradient of the log-density—the direction a point should move to reach the surface.

Methodology

Score-Based Modeling and Gradient Fields

The core innovation of ShapeGF is treating a 3D shape as a probability distribution where density is concentrated on the surface. The model, a neural network $g_\theta$, is trained to predict the Stein score function, which is the gradient of the log-density.

Visualization of gradient fields and point movement toward high-density regions.

To train this without explicit density labels, the authors employ Denoising Score Matching. By perturbing surface points with varying levels of Gaussian noise, the network learns to "undo" the noise, effectively mapping out the vector field that points back to the underlying shape manifold.

Annealed Langevin Dynamics

Shape generation is framed as a refinement process. Starting from a random prior—which can be a Gaussian blob or even points initialized in an arbitrary configuration—the model performs "coarse-to-fine" refinement using Annealed Langevin Dynamics.

The generation process: points initialized as letters are refined into complex 3D shapes through annealed Langevin dynamics.

At high noise levels, the model follows a "blurry" gradient to establish the global structure. As the noise level (or "temperature") decreases, the gradients become sharper, snapping the points onto fine-grained surface details. This allows the model to generate dense, high-fidelity point clouds from sparse or unstructured initializations.

Experiments and Results

The researchers evaluated ShapeGF on the MNIST-CP (2D contours) and ShapeNet (3D shapes) datasets.

Performance and Efficiency

ShapeGF achieved state-of-the-art performance on the Earth Mover’s Distance (EMD) metric, outperforming established methods like AtlasNet and PointFlow. Notably, the training process is significantly more efficient. For the "Airplane" category in ShapeNet, ShapeGF required less than 10 hours of training, whereas PointFlow required over two days on identical hardware. This speedup is attributed to the lack of normalization requirements (partition functions), which simplifies the network architecture.

Surface Extraction

A key insight of this work is that at low noise levels, the norm of the learned gradient field approximates a distance field. This allows for the extraction of smooth, continuous meshes from a model trained only on discrete point clouds, providing a bridge to implicit surface representations.

Limitations and Future Work

While ShapeGF offers significant advantages in training speed and quality, it requires multiple iterative steps of Langevin dynamics during inference. This can make the generation process slower than single-pass decoders. Additionally, while rare in practice, points can theoretically converge to local minima in the gradient field. Future directions include extending this gradient-field approach to model texture, appearance, and full 3D scenes.

Summary updated

BibTeX
@inproceedings{cai2020learning,
  author = {Ruojin Cai and Guandao Yang and Hadar Averbuch-Elor and Zekun Hao and Serge J. Belongie and Noah Snavely and Bharath Hariharan},
  title = {{Learning Gradient Fields for Shape Generation}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58580-8\_22},
}
Figure