TL;DR
Training neural networks to represent 3D shapes (Signed Distance Fields) often results in "wavy" surface artifacts when using Positional Encoding to capture fine details. This paper uses Fourier analysis to reveal that these artifacts are actually aliasing caused by undersampling the network's "intrinsic frequency." By identifying a specific cut-off frequency for a given network architecture, the authors provide a principled way to determine the optimal sampling rate, eliminating artifacts and outperforming state-of-the-art methods.
What Problem Does This Paper Address?
In the world of 3D computer vision, Neural Signed Distance Fields (SDFs) have become a popular way to represent shapes. Instead of a mesh of triangles, you use a Multi-layer Perceptron (MLP) that takes a 3D coordinate and outputs the distance to the nearest surface.
However, standard MLPs suffer from "spectral bias"—they are naturally good at learning smooth, low-frequency shapes but struggle with sharp corners and intricate textures. To fix this, researchers use Positional Encoding (PE), which maps inputs to high-frequency sine and cosine waves. While PE helps capture detail, it introduces a frustrating side effect: "wavy artifacts" or high-frequency noise on what should be smooth surfaces.
Until now, the common "fix" was simply to throw more training samples at the problem. But how many samples are enough? This paper addresses the lack of a theoretical or empirical guideline for the optimal sampling rate required to train these networks without artifacts.
Methods
The authors treat the neural network as a signal processing system. Their approach involves three main steps:
- Probing the Intrinsic Spectrum: They discovered that PE-equipped MLPs with the same architecture but different random weights share a very similar "response frequency spectrum." By averaging the spectra of several randomly initialized networks, they define an intrinsic spectrum for that specific architecture.
- Identifying the Cut-off Frequency ($F_c$): They observed that while these networks can produce very high frequencies, the energy in the spectrum eventually drops off. They devise an empirical tool to find the "cut-off frequency"—the point beyond which the network's frequency response is negligible.
- Applying Nyquist-Shannon: Once $F_c$ is known, they invoke the Nyquist-Shannon sampling theorem. To reconstruct a signal of frequency $F$, you need a sampling rate of at least $2F$. For a 3D task (dimension $\ell=3$), they recommend a sampling density of $\mu = (2F_c)^\ell$.
This method is "standard" in its use of Fourier Transforms (FFT) but "novel" in applying it to randomly initialized weights to predict training requirements before the actual learning begins.
Datasets
The researchers evaluated their method on a variety of complex 3D shapes and 2D graphics:
- Classic 3D Models: Bimba, Lucy, Happy Buddha, and Armadillo (from the Stanford 3D Scanning Repository).
- CAD/Mechanical Parts: Fandisk, ABC1, and ABC2.
- Organic Shapes: Hand and Woman Relief.
- 2D Vector Graphics: The Koch snowflake (used to demonstrate the method's applicability to non-3D coordinate-based tasks).
Key Insights and Ideas
- The MLP is a Frequency Multiplier: A major "aha moment" is that a PE-equipped MLP has an intrinsic frequency much higher than the highest frequency in the PE layer itself. The subsequent MLP layers act as frequency multipliers, creating the potential for aliasing if the training data is too sparse.
- Consistency in Randomness: Surprisingly, the frequency characteristics of a network are determined more by its architecture (number of layers, neurons, and PE degree) than by its specific weight values. This allows researchers to predict the necessary sampling rate using a randomly initialized version of the model.
- Aliasing as the Root Cause: The "wavy artifacts" aren't just random noise; they are a classic case of aliasing. When the training points are further apart than the network's intrinsic wavelength, the optimization process "folds" high frequencies into lower ones, creating those visible ripples.
Key Results
- Artifact Elimination: Using the recommended sampling rate consistently removed wavy artifacts that appeared when using lower, "naïve" sampling rates (e.g., reducing error from 29.3E-4 to 5.6E-4 on the Lucy model).
- Efficiency: The authors showed that increasing the sampling rate beyond their recommended threshold yields diminishing returns, providing a "sweet spot" for computational efficiency.
- Superior Performance: Their approach outperformed established methods like SIREN, NGLOD, and Spline Positional Encoding (SPE) in terms of mean absolute SDF error and Chamfer Distance (a measure of surface fit accuracy). For example, on the "Fandisk" model, their method achieved an error of 4.10E-4, compared to SIREN's 6.58E-4 and NGLOD's 7.49E-4.
Limitations and Future Work
- Empirical Hyperparameters: The method relies on a specific hyperparameter ($6 \times 10^{-4}$) to define the "negligible" magnitude at the cut-off frequency. While this worked across all their tests, a more rigorous theoretical derivation would be stronger.
- Architecture Specificity: Currently, the analysis is focused on MLPs. Future work could extend this Fourier lens to other popular architectures like Grid-based representations (e.g., Instant-NGP) or Transformer-based implicit fields.
- Dynamic Frequencies: The paper notes that the intrinsic frequency can shift slightly during training as weights converge. While their "random initialization" proxy is a great starting point, a dynamic sampling strategy that adjusts during training could be even more efficient.
Summary updated