Abstract
We present an approach to accelerate Neural Field training by efficiently selecting sampling locations. While Neural Fields have recently become popular, they are often trained by uniformly sampling the training domain or through handcrafted heuristics. We show that improved convergence and final training quality can be achieved by a soft mining technique based on importance sampling: rather than either considering or ignoring a pixel completely, we weigh the corresponding loss by a scalar. To implement our idea, we use Langevin Monte-Carlo sampling. We show that by doing so, regions with higher error are selected more frequently, leading to more than a 2x improvement in convergence speed. The code and related resources for this study are publicly available at https://ubc-vision.github.io/nf-soft-mining/.
Introduction
Neural fields have revolutionized signal representation, enabling high-fidelity 2D image fitting and complex 3D scene synthesis via Neural Radiance Fields (NeRFs). However, a primary bottleneck in these models is their extensive training time. Most existing pipelines rely on uniform sampling across the entire domain, which is inherently inefficient as it continues to allocate computation to "easy" regions (e.g., flat backgrounds) that the model has already mastered.
While "hard mining" strategies focus exclusively on high-error areas, they often introduce significant bias, leading to brittle optimization and degraded final quality. This work introduces Soft Mining, a principled sampling strategy that prioritizes difficult details while maintaining the global structure of the signal.
Methodology
Soft Mining balances the benefits of importance sampling with the stability of uniform training through two key innovations:
- Soft Mining Objective: The loss function is re-weighted using a "softness" parameter $\alpha$ (typically between 0.6 and 0.8). This creates a middle ground that focuses on high-error regions like edges and textures without entirely discarding low-error samples, ensuring the optimization remains tied to the original global objective.
- Langevin Monte-Carlo (LMC) Sampling: To avoid the prohibitive cost of a full dataset pass to identify high-error regions, the authors employ LMC. This method treats the error map as a probability distribution and "walks" samples toward high-error regions using gradients.
- Gradient Recycling: By reusing the gradients already calculated during the standard backpropagation step, LMC-based mining adds less than 4% computational overhead to the training process.
Key Results
The proposed method was evaluated across 2D image fitting and 3D NeRF synthesis (using the NeRF Synthetic and LLFF datasets).
Quantitative Performance
Soft Mining consistently outperforms both uniform sampling and standard edge-based heuristics. In 2D image fitting, the method achieved a target PSNR of 35dB in approximately 2,400 iterations, compared to 10,600 iterations for uniform sampling—a 4.4x speedup. On real-world 3D scenes (LLFF), it reached 25dB in ~1,700 iterations, whereas uniform sampling required ~3,800 iterations, representing a 2.2x speedup.
Qualitative Quality
Beyond speed, Soft Mining improves the visual fidelity of reconstructions, particularly for high-frequency details. Qualitative results demonstrate that the method produces significantly sharper text, fine wires, and complex textures much earlier in the training process than competing strategies.
Conclusion
Soft Mining provides a robust and efficient framework for accelerating neural field training. By leveraging LMC and gradient recycling, the method achieves substantial speedups (2x to 4x) with minimal computational overhead. Future work may explore different distribution functions based on uncertainty or active learning to further refine the sampling process across diverse neural field applications.
Summary updated