NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SAPE: Spatially-Adaptive Progressive Encoding for Neural Optimization

Amir Hertz, Or Perel, Raja Giryes, Olga Sorkine-Hornung, Daniel Cohen-Or

Introduction

Neural networks, particularly Multilayer Perceptrons (MLPs), are increasingly used to represent complex signals such as high-resolution images, 3D shapes, and radiance fields. However, these models often struggle to capture high-frequency details due to a phenomenon known as spectral bias, where networks naturally prioritize learning low-frequency, smooth functions. While positional encodings like Fourier Features (FFN) can mitigate this, they often require tedious manual tuning and lack the flexibility to handle signals with varying levels of detail across different spatial regions.

Spatially-Adaptive Progressive Encoding (SAPE) introduces a novel framework that allows neural networks to learn a coarse-to-fine representation of signals. By gradually unmasking high-frequency components based on local training progress, SAPE achieves superior reconstruction quality and training stability compared to traditional static encoding methods.

The Challenge of Spectral Bias and Static Encodings

Standard MLPs are inherently biased toward low frequencies. To represent sharp edges or intricate textures, researchers typically map input coordinates into a high-dimensional space using periodic functions. This approach presents two significant challenges:

  1. Manual Bandwidth Tuning: The performance of Fourier Feature Networks is highly sensitive to the chosen frequency range (bandwidth). A low bandwidth results in blurry reconstructions, while an excessively high bandwidth introduces noisy artifacts and "ringing" in smooth regions.
  2. Global Inflexibility: Static encodings apply the same frequency range across the entire signal. In many real-world signals, such as an image with a detailed subject against a smooth background, a uniform high-frequency encoding is suboptimal, often leading to instability or noise in areas where high frequencies are unnecessary.

The SAPE Framework

SAPE addresses these limitations through two core mechanisms:

1. Progressive Encoding

Rather than exposing the network to all frequencies simultaneously, SAPE employs a "soft mask" that initially allows only the lowest frequencies. As training progresses, the mask gradually expands to include higher-frequency components. This creates a natural curriculum, ensuring the network masters the global structure before attempting to fit fine-grained details.

2. Spatial Adaptivity via Feedback

The defining feature of SAPE is its ability to adapt the encoding locally. The system monitors the local regression loss during training. In regions with high error (such as sharp edges), the feedback loop unmasks more high-frequency features. Conversely, in regions that have already converged (such as smooth backgrounds), the unmasking process slows down or stops. For non-grid data like 3D point clouds, SAPE utilizes a sparse grid to store and interpolate these mask values efficiently.

Performance and Robustness

SAPE demonstrates significant improvements in both fidelity and robustness across various tasks, including 2D image regression and 3D occupancy modeling.

SAPE maintains high fidelity without the noise or blurring artifacts seen in standard FFNs with varying frequency scales (sigma).

As shown in the comparison above, standard FFNs are highly sensitive to the standard deviation ($\sigma$) of their frequencies. A low $\sigma$ (left) results in a blurry image, while a high $\sigma$ (middle) introduces significant noise in the mountain scene. SAPE (right) automatically adapts, providing sharp details where needed while maintaining smoothness elsewhere. In quantitative benchmarks, SAPE achieved a PSNR of 28.09 on natural images (vs. 25.57 for FFN) and an Intersection-over-Union (IoU) of 0.981 in 3D occupancy tasks (vs. 0.945 for FFN).

Conclusion

SAPE offers a robust, encoding-agnostic policy for neural optimization. By mimicking the way human artists block in large shapes before adding detail, it provides a more stable and high-fidelity path for representing complex signals. While future work may address sensitivity to input noise and memory overhead for high-resolution 3D volumes, SAPE represents a major step forward in making neural signal representations more adaptive and easier to train.

Summary updated

BibTeX
@inproceedings{hertz2021sape,
  author = {Amir Hertz and Or Perel and Raja Giryes and Olga Sorkine-Hornung and Daniel Cohen-Or},
  title = {{SAPE: Spatially-Adaptive Progressive Encoding for Neural Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure