Neural Shape Deformation Priors

Jiapeng Tang, Lev Markhasin, Bi Wang, Justus Thies, Matthias Nießner

Abstract

Neural Shape Deformation Priors (NSDP) addresses the limitations of traditional physics-based deformation methods, which often rely on hand-crafted geometric regularizers like "As-Rigid-As-Possible" (ARAP). These traditional methods are typically "region-blind," leading to unrealistic, rubbery movements in organic models. NSDP introduces a transformer-based framework that learns semantic deformation priors from large-scale datasets. By utilizing a canonicalization process and a continuous 3D deformation field, the model produces realistic animations from sparse user handles. Experimental results on animal datasets demonstrate that NSDP significantly outperforms existing optimization-based and deep learning baselines in both quantitative accuracy and qualitative realism.

Introduction

In 3D animation and computer-aided design (CAD), deforming a mesh based on sparse user input is a classic yet ill-posed problem. When a user manipulates a specific part of a model—such as pulling a dog's paw—the system must determine how the rest of the body should naturally react. Traditional state-of-the-art methods rely on geometric priors like ARAP to minimize surface stretching. However, these methods lack semantic understanding; they treat every part of a model with the same mathematical stiffness, resulting in unrealistic, "rubbery" movements where a dog's ear might deform with the same logic as its torso.

The challenge lies in creating a system that understands semantic deformation—recognizing that different anatomical parts move according to different physical constraints—while remaining robust to varying mesh resolutions and initial poses.

Methodology

The proposed framework, Transformer-based Deformation Networks (TD-Nets), replaces fixed geometric equations with learned deformation priors. The architecture is built on several key technical innovations:

Shape Deformation via Canonicalization

To handle source meshes in arbitrary starting poses, the model employs a two-stage canonicalization process. A backward deformation network first transforms the source pose into a neutral, "canonical" pose. Subsequently, a forward deformation network deforms this canonical shape into the final target pose based on user-defined handles. This ensures the model learns the essence of a movement (e.g., a jump or a stride) independently of the starting orientation.

The NSDP pipeline: Source meshes are mapped to a canonical space before being deformed into the target pose based on user input.

Local Latent Codes and Vector Cross Attention (VCA)

Rather than using a single global vector to describe a shape, the model learns a sparse set of local latent codes anchored in 3D space. This allows the network to capture fine-grained local geometric details. During the decoding phase, a specialized Vector Cross Attention (VCA) mechanism queries these nearby local codes, weighting their influence based on feature similarity. This approach enables complex, non-linear deformations that global descriptors often fail to represent.

Continuous Deformation Fields

NSDP outputs a continuous deformation field rather than simple vertex displacements. This makes the method "mesh-agnostic," allowing it to be applied to models with varying vertex counts or even disconnected components without retraining.

Experiments and Results

The model was evaluated primarily on the DeformingThing4D-Animals dataset, which contains nearly 1,500 non-rigid animations across various animal categories. It was also tested on the TOSCA and Deformation Transfer datasets to assess generalization to unseen identities.

Quantitative Performance

On the "Unseen Identities" test set, NSDP achieved an $\ell_2$ error of 0.795, a substantial improvement over classical ARAP (9.794) and the deep learning baseline ShapeFlow (32.08).

Qualitative Comparison

Visual evaluations demonstrate that while traditional methods like ARAP create significant stretching artifacts, NSDP maintains the structural integrity of limbs and torsos. The learned priors effectively capture joint constraints and muscle volume preservation that generic elasticity equations cannot.

Qualitative comparison of NSDP against ARAP, ShapeFlow, and NFGP. Heatmaps indicate the error relative to ground truth, with NSDP showing significantly lower error and better structural preservation.

Conclusion

Neural Shape Deformation Priors represent a shift from hand-crafted geometric constraints to data-driven semantic understanding in 3D animation. By learning how organic shapes move from large-scale datasets, NSDP provides a robust, mesh-agnostic solution for realistic non-rigid deformation. Future work may involve incorporating SE(3) fields for better rotation handling and exploring more intuitive user inputs like 3D skeletons.

Summary updated

BibTeX
@inproceedings{tang2022neural,
  author = {Jiapeng Tang and Lev Markhasin and Bi Wang and Justus Thies and Matthias Nießner},
  title = {{Neural Shape Deformation Priors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=pkfpkWU536D},
}
Figure