3D Shapes Local Geometry Codes Learning with SDF

Shun Yao, Fei Yang, Yongmei Cheng, Mikhail G. Mozerov

Abstract

Traditional 3D shape reconstruction methods often rely on global latent codes, which can create a representation bottleneck for complex geometries. This paper introduces Local Geometry Code Learning (LGCL), a framework that decomposes global shape information into localized latent codes distributed across a mesh. By utilizing Graph Neural Networks (GNNs) and a shared lightweight decoder, LGCL achieves high-fidelity reconstructions with significantly fewer parameters than global alternatives like DeepSDF.

Introduction

Representing 3D shapes efficiently is a cornerstone of computer vision. A common approach is the Signed Distance Function (SDF), where a neural network learns to predict the distance from any spatial point to the object's surface. However, state-of-the-art models like DeepSDF typically use a single "global" latent code to represent an entire object. This global approach often fails to capture fine-grained details—such as fingers or clothing folds—unless the network size is increased to inefficient levels.

LGCL addresses this by shifting from a single global representation to a distributed "team" of local latent codes, each responsible for a specific patch of the geometry.

Methodology

The LGCL architecture is built upon two primary components designed to manage spatial complexity:

  1. Global-to-Local (G2L) Network: This component utilizes a Graph Neural Network (GNN) to act as a spatial scaffold. It takes a global latent code and propagates it across the vertices of a 3D mesh, generating a set of local latent codes ($z^L_i$). Each code describes the geometry of its immediate neighborhood.
  2. Shared Decoder ($f_\theta$): A small Multi-Layer Perceptron (MLP) serves as a universal decoder. It takes a local code and local coordinates as input to predict the SDF value for points within that specific region.
The LGCL architecture (a) and local region partitioning scheme (b).

Geometric Similarity Loss

To prevent "seams" or discontinuities where local regions meet, the authors introduced a Geometric Similarity Loss ($\mathcal{L}_{sim}$). This loss function encourages neighboring local codes to remain similar, ensuring smooth transitions across the surface. Furthermore, the framework employs Sign Agnostic Learning (SAL), allowing it to train on raw, non-watertight 3D data such as triangle soups.

Key Results and Efficiency

The model was evaluated using the D-Faust dataset, which features high-resolution human body meshes in motion. LGCL demonstrated superior performance across several metrics:

  • Accuracy: LGCL achieved a Euclidean Distance (ED) error of 2.51 mm, a substantial improvement over the 12.51 mm error observed with standard DeepSDF.
  • Model Compression: The LGCL-VC variant utilizes only 0.19M parameters, representing a nearly 10x reduction in model size compared to the 1.84M parameters required by a comparable DeepSDF model.
  • Detail Preservation: By distributing the learning task, the model avoids the capacity bottleneck of global methods, allowing for the preservation of organic details that are typically smoothed over.
Comparison of ground truth (a) with various reconstruction results showing potential artifacts like the 'mini-polyhedron' effect in (c) and (d).

Discussion and Limitations

While LGCL excels at capturing detail, the local approach introduces a trade-off between detail and smoothness. Without perfectly tuned similarity constraints, the surface can exhibit "vibrations" or artifacts where the local regions collapse into generic geometric primitives (the "mini-polyhedron" effect). Future research will likely focus on hierarchical or "pyramid" G2L structures to better manage multi-scale geometry and further refine surface consistency.

Conclusion

Local Geometry Code Learning represents a significant step toward efficient and detailed 3D shape representation. By leveraging the spatial intelligence of GNNs and the efficiency of shared local decoders, the method provides a scalable alternative to global SDF models, proving that "local is simpler" when it comes to complex 3D reconstruction.

Summary updated

Abstract

A signed distance function (SDF) as the 3D shape description is one of the most effective approaches to represent 3D geometry for rendering and reconstruction. Our work is inspired by the state-of-the-art method DeepSDF [17] that learns and analyzes the 3D shape as the iso-surface of its shell and this method has shown promising results especially in the 3D shape reconstruction and compression domain. In this paper, we consider the degeneration problem of reconstruction coming from the capacity decrease of the DeepSDF model, which approximates the SDF with a neural network and a single latent code. We propose Local Geometry Code Learning (LGCL), a model that improves the original DeepSDF results by learning from a local shape geometry of the full 3D shape. We add an extra graph neural network to split the single transmittable latent code into a set of local latent codes distributed on the 3D shape. Mentioned latent codes are used to approximate the SDF in their local regions, which will alleviate the complexity of the approximation compared to the original DeepSDF. Furthermore, we introduce a new geometric loss function to facilitate the training of these local latent codes. Note that other local shape adjusting methods use the 3D voxel representation, which in turn is a problem highly difficult to solve or even is insolvable. In contrast, our architecture is based on graph processing implicitly and performs the learning regression process directly in the latent code space, thus make the proposed architecture more flexible and also simple for realization. Our experiments on 3D shape reconstruction demonstrate that our LGCL method can keep more details with a significantly smaller size of the SDF decoder and outperforms considerably the original DeepSDF method under the most important quantitative metrics.
BibTeX
@inproceedings{yao2021d,
  author = {Shun Yao and Fei Yang and Yongmei Cheng and Mikhail G. Mozerov},
  title = {{3D Shapes Local Geometry Codes Learning with SDF}},
  booktitle = {ICCVW},
  year = {2021},
  url = {https://openreview.net/forum?id=AjPisfD6Wd},
}
Figure