Precise Gradient Discontinuities in Neural Fields for Subspace Physics

Mengfei Liu, Yue Chang, Zhecheng Wang, Peter Yichen Chen, Eitan Grinspun

Introduction

Neural fields have emerged as a powerful tool for representing complex geometries and physical properties without the constraints of traditional meshes. However, standard coordinate-based Multi-Layer Perceptrons (MLPs) suffer from an inherent "smoothness bias." While this property is beneficial for many tasks, it fails to capture gradient discontinuities—the sharp, non-smooth transitions in material behavior found at creases, folds, or interfaces between materials of varying stiffness, such as the transition between bone and soft tissue.

The Problem of Smoothness Bias

In traditional physical simulations, material boundaries are typically handled by aligning the simulation mesh with the geometry. This "entanglement" means that any change in geometry—such as a moving crease or a different body proportion—requires rebuilding the entire mesh and re-evaluating the underlying mathematics.

Neural fields offer a mesh-independent alternative, but because they are composed of smooth activation functions (like SIREN or ReLU), they tend to "blur" sharp transitions. This results in "mushy" physical behavior where there should be distinct, sharp kinks. Standard networks either require massive amounts of data to approximate these transitions or fail to represent them entirely.

Methodology: Input Lifting via Clamped Distance Functions

The core innovation of this research is a technique called Input Lifting. Rather than forcing the neural network's weights to learn a sharp discontinuity, the researchers modify the input coordinate space.

1. The Lifting Strategy

By augmenting the standard 3D coordinates $(x, y, z)$ with a fourth dimension—a smoothly clamped distance function $H(x)$—the problem is "lifted" into a higher-dimensional space. In this higher dimension, the physical behavior remains smooth, allowing the MLP to perform optimally. When the output is projected back into 3D space, the sharp gradient jump at the interface emerges naturally.

2. Efficiency and Hashing

To maintain efficiency, the authors use a "clamped" distance field rather than a global one. This focuses the computation on the area near the discontinuity and enables the use of spatial hashing, which significantly reduces the computational overhead and memory footprint.

3. Discretization-Agnostic Training

The model is trained to minimize weighted Dirichlet or Hessian energy in a continuous manner. This allows the same trained model to represent physics across various resolutions—from low-poly approximations to high-fidelity models—without the need for retraining.

Evaluation and Results

The researchers evaluated their method on several complex, procedurally generated physical scenarios, including 2D robot families with varying body proportions and 3D geometries like a human hand with an internal skeleton.

Key results include:

  • Physical Fidelity: Unlike SIREN or ReLU networks, which produce overly smoothed results, this method captures precise kinks at material interfaces.
  • Computational Performance: The integration of clamped distance functions with spatial hashing resulted in a 3.6x speedup and a 4.1x reduction in memory usage during queries compared to non-hashed versions.
  • Generalization: A model trained on only five material layouts successfully generalized to unseen configurations, maintaining structural integrity where other neural methods failed.
  • Unified Modeling: By combining gradient lifting with previous "value" lifting techniques, the model can simultaneously handle cuts (value discontinuities) and folds (gradient discontinuities) in materials like paper.

Discussion and Future Work

This work demonstrates that the inherent smoothness of neural networks is not a limitation but a feature that can be leveraged through proper domain transformation. By treating geometry as an input coordinate rather than embedding it in network weights, the model achieves the flexibility to move creases or redefine material boundaries at runtime without retraining.

Currently, the locations of creases or material boundaries must be manually defined. Future research may explore "physics-driven" discovery, where the network automatically identifies where these discontinuities should form based on evolving stress and strain within the simulation. Additionally, while the model generalizes well within shape families, further work is needed to improve extrapolation to entirely novel geometries far outside the training distribution.

Summary updated

BibTeX
@inproceedings{liu2025precise,
  author = {Mengfei Liu and Yue Chang and Zhecheng Wang and Peter Yichen Chen and Eitan Grinspun},
  title = {{Precise Gradient Discontinuities in Neural Fields for Subspace Physics}},
  booktitle = {SIGGRAPH Asia},
  year = {2025},
  doi = {10.1145/3757377.3763810},
}
Figure