Learning Embedding of 3D models with Quadric Loss

Nitin Agarwal, Sung-Eui Yoon, M. Gopi

Abstract

Traditional 3D reconstruction models often struggle to preserve sharp geometric features, resulting in "melted" appearances for mechanical parts. This paper introduces Quadric Loss, a novel point-surface loss function inspired by classical mesh simplification. By incorporating quadric error metrics into the training of 3D autoencoders, the authors provide a differentiable and efficient mechanism to ensure reconstructed points adhere to the underlying geometric planes. Evaluations on the ABC dataset demonstrate that Quadric Loss significantly improves geometric fidelity and edge preservation compared to standard point-based metrics.

Introduction: The Challenge of Geometric Fidelity

Deep learning for 3D reconstruction has advanced significantly, yet achieving high "geometric fidelity" remains a hurdle. Standard loss functions like Chamfer Distance (CD) or Earth Mover’s Distance (EMD) treat points as isolated entities or distributions. Because these metrics lack an understanding of surface geometry, they often fail to reconstruct sharp edges and crisp corners, leading to rounded, inaccurate shapes. While point-to-surface losses exist, they are frequently computationally prohibitive or require labor-intensive edge annotations. Agarwal et al. address this by proposing a loss function that is both efficient and capable of automatically preserving high-frequency geometric details.

Methodology: The Quadric Loss

The core innovation is the adaptation of the Quadric Error Metric (QEM), originally used for mesh simplification, into a differentiable loss function.

The Quadric Matrix and Loss Calculation

For every vertex $t$ in a ground-truth mesh, a quadric matrix $Q_t$ is precomputed based on the planes of the triangles connected to that vertex. For a reconstructed point $s$ corresponding to an input vertex $t$, the loss is defined as $L_{quad} = s^T Q_t s$.

Mathematical definition of Quadric Loss.

Geometric Intuition

Unlike the standard L2 loss, which applies a uniform "spherical" penalty, Quadric Loss creates an ellipsoidal penalty. On a flat surface, the error ellipsoid is elongated along the plane and thin along the normal. This allows points to "slide" along the correct plane without penalty while heavily punishing movement away from the surface. At sharp edges or corners, the intersection of multiple planes shrinks the ellipsoid, forcing the reconstructed point to snap precisely onto the feature.

Experimental Setup

The authors evaluated their method using the ABC Dataset, which contains over one million high-quality CAD models. Unlike the organic shapes in ShapeNet, the ABC dataset provides precise mechanical parts that serve as a rigorous test for edge preservation. The researchers selected 5,000 models, processed into 8,064 connected components, and integrated the Quadric Loss into a standard 3D autoencoder pipeline using a DGCNN encoder and an AtlasNet decoder.

Results and Discussion

The study found that Quadric Loss is most effective when paired with Chamfer Loss. While Chamfer Loss maintains the global shape "envelope," Quadric Loss provides the local geometric refinement needed to "snap" points onto edges.

Visual comparison of reconstruction methods.

Quantitative Performance

Using the Metro error metric to measure the distance between meshes, the combination of Quadric and Chamfer loss achieved a median error of 2.96, outperforming Chamfer alone (3.13) and other variants like Surface + Chamfer (3.16). Furthermore, the addition of Quadric loss reduced the maximum Chamfer Distance (from 40.87 to 36.78), indicating better preservation of small, delicate structures.

Conclusion and Future Work

Quadric Loss offers a computationally efficient, differentiable way to improve the geometric accuracy of 3D models. However, it currently depends on finding accurate correspondences between reconstructed points and ground-truth vertices. Future work may explore applying this loss to raw point clouds through initial surface estimation or extending it to tasks like point cloud denoising and shape completion.

Summary updated

BibTeX
@inproceedings{agarwal2019learning,
  author = {Nitin Agarwal and Sung-Eui Yoon and M. Gopi},
  title = {{Learning Embedding of 3D models with Quadric Loss}},
  booktitle = {BMVC},
  year = {2019},
}
Figure