Neural Radiance Fields (NeRF), Multi-Resolution Hash Encoding (Instant-NGP), 3D Gaussian Splatting (3DGS), Mip-Splatting, and Uncalibrated 3D Pointmap Transformers (DUSt3R) in 2026

Neural Radiance Fields (NeRF), Multi-Resolution Hash Encoding (Instant-NGP), 3D Gaussian Splatting (3DGS), Mip-Splatting, and Uncalibrated 3D Pointmap Transformers (DUSt3R) in 2026

Neural Radiance Fields (NeRF), Multi-Resolution Hash Encoding (Instant-NGP), 3D Gaussian Splatting (3DGS), Mip-Splatting, and Uncalibrated 3D Pointmap Transformers (DUSt3R) in 2026

How did 3D scene reconstruction and novel-view synthesis evolve from multi-day implicit coordinate Multi-Layer Perceptron (MLP) ray marching (1 to 2 days of single-GPU optimization per scene and ~0.06 FPS rendering at 1080p) into anisotropic 3D Gaussian rasterization capable of rendering unbounded 1080p environments at 134 to 197 FPS and feed-forward Transformer pointmap foundation models that reconstruct dense 3D geometry from uncalibrated image pairs in 40 milliseconds without camera intrinsics or Structure-from-Motion (SfM) poses?

For decades, photorealistic 3D scene capture was split between two incompatible paradigms:

  1. Discrete Mesh and Voxel Representations: Classical Multi-View Stereo (MVS) pipelines (such as COLMAP, Schönberger & Frahm, 2016) extract 2D keypoints, match descriptors across views, triangulate a sparse 3D point cloud via Bundle Adjustment, and estimate dense depth maps fused into triangle meshes or voxel grids. While meshes rasterize natively at hundreds of frames per second on hardware GPUs, any topological error in camera calibration, thin structure triangulation (hair, foliage, rigging), or glossy non-Lambertian reflection bakes permanent geometric holes and ghosting artifacts into the surface (arXiv:2003.08934, Section 1 & Section 2). Conversely, dense regular 3D voxel grids (such as Neural Volumes, Lombardi et al., 2019, or LLFF multi-plane images, Mildenhall et al., 2019) scale cubically $\mathcal{O}(N^3)$ in memory—requiring over 15 GB of storage for a single forward-facing scene (arXiv:2003.08934, Section 6.2) and failing to scale to $360^\circ$ unbounded environments.
  2. Continuous Implicit Neural Coordinate Fields (NeRF): Recasting a 3D scene as a continuous 5D function $F_\Theta: (x, y, z, \theta, \phi) \to (\mathbf{c}, \sigma)$ parameterized by an 8-layer 256-channel ReLU MLP compresses an entire scene into just 5 MB of network weights (arXiv:2003.08934, Section 1 & Section 6.3). Yet evaluating that MLP via volumetric ray marching requires querying $N_c + N_f = 64 + 128 = 192$ spatial samples per pixel ray—totaling over 150 to 200 million MLP forward passes to render a single high-resolution frame (arXiv:2003.08934, Section 5.3; arXiv:2308.04079, Section 2).

Between 2020 and 2026, five foundational mathematical and architectural breakthroughs dismantled both the cubic memory wall of discrete voxel grids and the quadratic/volumetric ray-marching bottleneck of implicit coordinate MLPs:

  1. Continuous 5D Neural Radiance Fields with Fourier Positional Encoding and Hierarchical Volume Sampling (NeRF, Mildenhall et al., arXiv:2003.08934): Mapping continuous 3D coordinates $\mathbf{x} = (x,y,z)$ and 2D unit viewing direction vectors $\mathbf{d} = (d_x, d_y, d_z)$ through a multi-frequency sinusoidal positional encoding $\gamma(p) \in \mathbb{R}^{2L}$ ($L=10$ for coordinates $\implies 60\text{-d}$, $L=4$ for directions $\implies 24\text{-d}$) into a decoupled 8-layer 256-channel MLP where volume density $\sigma(\mathbf{x})$ is strictly view-independent while emitted radiance $\mathbf{c}(\mathbf{x}, \mathbf{d})$ is conditioned on $\mathbf{d}$ at layer 9. Paired with two-stage coarse-to-fine inverse-transform importance sampling ($N_c=64, N_f=128$), NeRF achieves 40.15 dB PSNR / 0.991 SSIM / 0.023 LPIPS on Diffuse Synthetic $360^\circ$, 31.01 dB PSNR / 0.947 SSIM / 0.081 LPIPS on Realistic Synthetic $360^\circ$, and 26.50 dB PSNR / 0.811 SSIM on Real Forward-Facing scenes—surpassing SRN, Neural Volumes, and LLFF across every benchmark (arXiv:2003.08934, Table 1).
  2. Multi-Resolution Spatial Hash Encoding and Fully-Fused CUDA MLPs (Instant-NGP, Müller et al., arXiv:2201.05989): Replacing NeRF's deep 8-layer frequency-encoded MLP with $L = 16$ geometric-progression resolution levels ($N_{\min} = 16$ to $N_{\max} \in [512, 524288]$) of trainable feature tables ($T \in [2^{14}, 2^{24}]$ entries per level, $F = 2$ dimensions per entry) indexed in $\mathcal{O}(1)$ via a branchless spatial XOR hash $h(\mathbf{x}) = (\bigoplus_{i=1}^d x_i \pi_i) \bmod T$ ($\pi_1=1, \pi_2=2654435761, \pi_3=805459861$) and decoded by a 64-neuron fully-fused TensorCore MLP residing entirely in GPU on-chip registers/shared memory. Instant-NGP reaches 29.261 dB PSNR in 5 seconds, surpasses original NeRF's multi-hour 31.005 dB in just 15 seconds (31.407 dB), and achieves 33.176 dB in 5 minutes (matching multi-hour mip-NeRF's 33.090 dB with a $1000\times$ end-to-end training speedup; arXiv:2201.05989, Table 2).
  3. Anisotropic 3D Gaussian Primitives, Adaptive Density Control, and $16 \times 16$ Tile-Based Differentiable Radix-Sort Rasterization (3D Gaussian Splatting / 3DGS, Kerbl et al., arXiv:2308.04079): Eliminating volumetric ray marching altogether by representing scenes as unstructured anisotropic 3D Gaussians parameterized by mean $\boldsymbol{\mu} \in \mathbb{R}^3$, factorized positive semi-definite covariance $\boldsymbol{\Sigma} = \mathbf{R}\mathbf{S}\mathbf{S}^T\mathbf{R}^T$ (3D scale $\mathbf{s} \in \mathbb{R}^3$ and unit quaternion $\mathbf{q} \in \mathbb{R}^4$), opacity $\alpha \in [0, 1]$, and degree-3 Spherical Harmonics ($48$ RGB coefficients). Projected into 2D screen space via EWA Jacobian affine approximation $\boldsymbol{\Sigma}' = \mathbf{J}\mathbf{W}\boldsymbol{\Sigma}\mathbf{W}^T\mathbf{J}^T$, interleaved with gradient-driven cloning/splitting every 100 iterations ($\tau_{\text{pos}} = 0.0002$), and sorted globally once per frame via a 64-bit [32-bit tile ID | 32-bit depth] GPU Radix Sort across $16 \times 16$ pixel tiles, 3DGS achieves 27.21 dB PSNR / 0.815 SSIM / 0.214 LPIPS at 134 FPS on Mip-NeRF360, 23.14 dB PSNR / 0.841 SSIM at 154 FPS on Tanks&Temples, and 29.41 dB PSNR / 0.903 SSIM at 137 FPS on Deep Blending—outperforming 48-hour Mip-NeRF360 while rendering $1,000\times$ to $2,200\times$ faster (arXiv:2308.04079, Table 1).
  4. 3D Nyquist Frequency Smoothing and 2D Physical Box-Approximation Mip Filtering (Mip-Splatting, Yu et al., arXiv:2311.16493): Exposing why vanilla 3DGS suffers from severe erosion, dilation, and high-frequency Dirac-delta spike artifacts under camera zoom-in or zoom-out—caused by lack of 3D frequency constraints combined with an unscaled screen-space dilation heuristic $\boldsymbol{\Sigma}^{2D}k + s\mathbf{I}$. By computing each Gaussian's maximal multi-view Nyquist sampling frequency $\hat{\nu}_k = \max_n(f_n / d{kn})$, convolving a 3D low-pass Gaussian smoothing filter ($\boldsymbol{\Sigma}_k + \frac{s}{\hat{\nu}_k^2}\mathbf{I}$) baked directly into the intrinsic 3D covariance at inference time with zero runtime overhead, and replacing screen dilation with an energy-preserving 2D Mip filter carrying the determinant amplitude factor $\sqrt{|\boldsymbol{\Sigma}^{2D}_k| / |\boldsymbol{\Sigma}^{2D}_k + s\mathbf{I}|}$, Mip-Splatting boosts zoom-out $1/8\times$ Blender PSNR by +10.98 dB over 3DGS (28.67 dB vs. 17.69 dB) and zoom-in $8\times$ Mip-NeRF360 PSNR by +6.63 dB over 3DGS (26.22 dB vs. 19.59 dB; arXiv:2311.16493, Tables 1–3).
  5. Feed-Forward Uncalibrated Dense 3D Pointmap Regression via Cross-Attention Vision Transformers (DUSt3R, Wang et al., arXiv:2312.14132): Removing the fragile prerequisite of COLMAP Structure-from-Motion calibration altogether by training a CroCo-initialized Siamese ViT-Large Encoder + Cross-Attention ViT-Base Decoder + DPT Regression Head across 8.5 million image pairs from 8 datasets to directly regress two dense 3D pointmaps $X^{1,1}, X^{2,1} \in \mathbb{R}^{W \times H \times 3}$ and per-pixel confidence maps $C^{1,1}, C^{2,1}$ in the shared coordinate frame of camera 1 in ~40 ms on an H100 GPU. Followed by a 3D pairwise graph Global Alignment optimization ($\chi^* = \arg\min_{\chi, P, \sigma} \sum_{e \in \mathcal{E}} \sum_{v \in e} \sum_{i=1}^{HW} C_i^{v,e} \|\chi_i^v - \sigma_e P_e X_i^{v,e}\|$) that converges in seconds, DUSt3R achieves 96.2% RRA@15, 86.8% RTA@15, and 76.7% mAA(30) on CO3Dv2 and 67.7% mAA(30) on RealEstate10K—crushing PoseDiffusion (80.5% / 79.8% / 66.5% / 48.0%) and COLMAP+SPSG (36.1% / 27.3% / 25.3% / 45.2%) (arXiv:2312.14132, Table 2).
📌 Key Takeaways & Empirical 3D Neural Rendering / Gaussian Splatting Benchmarks
  • ✓NeRF 5D Coordinate MLP & Fourier Positional Encoding (arXiv:2003.08934): Mapping 3D position $\mathbf{x}$ ($L=10 \implies 60\text{-d}$) and 2D viewing direction $\mathbf{d}$ ($L=4 \implies 24\text{-d}$) through sinusoidal positional encoding and hierarchical two-stage ray sampling ($N_c=64, N_f=128$) achieves 40.15 dB PSNR on Diffuse Synthetic 360°, 31.01 dB PSNR / 0.947 SSIM on Realistic Synthetic 360° (+4.96 dB over Neural Volumes, +6.13 dB over LLFF), and 26.50 dB PSNR on Real Forward-Facing scenes in ~5 MB of weights.
  • ✓Instant-NGP 16-Level Spatial XOR Hash Table & Fused CUDA Kernels (arXiv:2201.05989): Replacing deep frequency MLPs with $L=16$ multi-resolution hash tables ($T \in [2^{14}, 2^{24}], F=2$, XOR primes $\pi_1=1, \pi_2=2654435761, \pi_3=805459861$) and a 64-neuron fused MLP reaches 29.261 dB PSNR in 5 seconds, beats multi-hour NeRF (31.005 dB) in 15 seconds (31.407 dB), and hits 33.176 dB in 5 minutes—a 20–60× encoding speedup and ~1,000× combined training speedup.
  • ✓3D Gaussian Splatting Tile-Sorted Anisotropic Rasterization (arXiv:2308.04079): Optimizing anisotropic 3D Gaussians ($\boldsymbol{\Sigma} = \mathbf{R}\mathbf{S}\mathbf{S}^T\mathbf{R}^T$, degree-3 SH) with adaptive cloning/splitting ($\tau_{\text{pos}}=0.0002, \phi=1.6$) and $16 \times 16$ tile 64-bit GPU Radix Sort achieves 27.21 dB PSNR / 0.815 SSIM at 134 FPS on Mip-NeRF360, 23.14 dB / 0.841 SSIM at 154 FPS on Tanks&Temples, and 29.41 dB / 0.903 SSIM at 137 FPS on Deep Blending (vs. Mip-NeRF360's 48-hour train and 0.06–0.14 FPS).
  • ✓Mip-Splatting Nyquist 3D Smoothing & 2D Box-Approximation Mip Filter (arXiv:2311.16493): Enforcing 3D multi-view Nyquist frequency bounds ($\hat{\nu}_k = \max_n(f_n / d_{kn})$) and energy-conserving 2D screen-space Mip filtering reaches 34.56 dB multi-scale Blender PSNR (vs. 29.77 dB for 3DGS), lifts $1/8\times$ zoom-out PSNR from 17.69 dB to 28.67 dB (+10.98 dB), and lifts $8\times$ zoom-in Mip-NeRF360 PSNR from 19.59 dB to 26.22 dB (+6.63 dB) with zero inference overhead.
  • ✓DUSt3R Calibration-Free Dense 3D Pointmap Regression (arXiv:2312.14132): Regressing camera-1-frame 3D pointmaps $X^{1,1}, X^{2,1} \in \mathbb{R}^{W \times H \times 3}$ via a CroCo-pretrained Siamese ViT-Large / Cross-Attention ViT-Base Transformer (8.5M training pairs, 40 ms H100 inference) with 3D pairwise Global Alignment achieves 96.2% RRA@15 and 76.7% mAA(30) on CO3Dv2 and 67.7% mAA(30) on RealEstate10K without known intrinsics or camera poses.
15s → 31.41 dB
Instant-NGP Hash Encoding

16-level spatial XOR hash table + 64-neuron fused CUDA MLP beats multi-hour NeRF (31.01 dB) in 15s and hits 33.18 dB in 5m (arXiv:2201.05989).

134–197 FPS
3DGS 1080p Tile Rasterizer

16×16 tile 64-bit GPU Radix Sort renders Mip-NeRF360 at 134 FPS (30K) / 160 FPS (7K) and Tanks&Temples at 154–197 FPS (arXiv:2308.04079).

+10.98 dB
Mip-Splatting 1/8× Zoom-Out

3D Nyquist smoothing + 2D Mip filter prevents 3DGS dilation/aliasing collapse at 1/8× scale (28.67 vs 17.69 dB) and 8× zoom-in (+6.63 dB, arXiv:2311.16493).

96.2% RRA@15
DUSt3R Uncalibrated 3D Vision

40ms Siamese ViT pointmap regression + 3D Global Alignment achieves 76.7% mAA(30) on CO3Dv2 without camera calibration (arXiv:2312.14132).


Continuous 5D Volumetric Scene Representation, Fourier Positional Encoding, and Hierarchical Ray Sampling (NeRF, arXiv:2003.08934)

In NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis (arXiv:2003.08934, ECCV 2020 Oral), Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik, Jonathan T. Barron, Ravi Ramamoorthi, and Ren Ng reformulated novel view synthesis as the direct optimization of a continuous 5D volumetric radiance function parameterized by a fully-connected deep neural network without any convolutional layers.

1. The Classical Volume Rendering Integral and View-Decoupled 8-Layer MLP Architecture

A static 3D scene is represented as a continuous function $F_\Theta: (\mathbf{x}, \mathbf{d}) \to (\mathbf{c}, \sigma)$ that maps a 3D spatial location $\mathbf{x} = (x, y, z)$ and a 2D viewing direction $(\theta, \phi)$—represented in implementation as a 3D Cartesian unit vector $\mathbf{d} = (d_x, d_y, d_z)$ with $\|\mathbf{d}\|_2 = 1$—to an emitted RGB color $\mathbf{c} = (r, g, b)$ and a differential volume density $\sigma$ (arXiv:2003.08934, Section 3 & Section 4). Physically, $\sigma(\mathbf{x})$ acts as the differential probability that a ray terminates at an infinitesimal particle at location $\mathbf{x}$.

Along any camera ray $\mathbf{r}(t) = \mathbf{o} + t\mathbf{d}$ bounded by near and far integration planes $[t_n, t_f]$, the expected color $C(\mathbf{r})$ accumulated by the camera sensor is governed by the classical continuous volume rendering integral (Kajiya & Von Herzen, 1984; Max, 1995; arXiv:2003.08934, Equation 1):

$$C(\mathbf{r}) = \int_{t_n}^{t_f} T(t)\,\sigma\big(\mathbf{r}(t)\big)\,\mathbf{c}\big(\mathbf{r}(t), \mathbf{d}\big)\,dt, \qquad \text{where} \quad T(t) = \exp\left(-\int_{t_n}^{t} \sigma\big(\mathbf{r}(s)\big)\,ds\right)$$

Here $T(t)$ denotes the accumulated transmittance along the ray from $t_n$ to $t$—the probability that the ray travels from $t_n$ to $t$ without hitting any other particle. To evaluate this continuous integral numerically without the aliasing of deterministic fixed-grid quadrature, NeRF partitions $[t_n, t_f]$ into $N$ evenly spaced bins and draws one uniform sample $t_i$ from each bin (stratified sampling, Equation 2):

$$t_i \sim \mathcal{U}\left[t_n + \frac{i-1}{N}(t_f - t_n),\; t_n + \frac{i}{N}(t_f - t_n)\right]$$

Using the quadrature approximation of Max (1995) with inter-sample distance $\delta_i = t_{i+1} - t_i$, the continuous integral reduces to differentiable alpha compositing (arXiv:2003.08934, Equation 3):

$$\hat{C}(\mathbf{r}) = \sum_{i=1}^{N} T_i\,\big(1 - \exp(-\sigma_i \delta_i)\big)\,\mathbf{c}i, \qquad T_i = \exp\left(-\sum{j=1}^{i-1} \sigma_j \delta_j\right), \qquad \alpha_i = 1 - \exp(-\sigma_i \delta_i)$$

To guarantee multiview geometric consistency while permitting non-Lambertian specular reflections, Mildenhall et al. (arXiv:2003.08934, Section 3 & Figure 3) enforce a strict structural decoupling inside the MLP $F_\Theta$:

  • View-Independent Density Trunk (Layers 1–8): The encoded 3D coordinate $\gamma(\mathbf{x})$ is processed through 8 fully-connected ReLU layers with 256 channels per layer (including a residual skip connection that concatenates $\gamma(\mathbf{x})$ to the 5th layer's activation). Layer 8 outputs the scalar volume density $\sigma$ (via a ReLU activation ensuring $\sigma \ge 0$) alongside a 256-dimensional feature vector.
  • View-Dependent Radiance Head (Layer 9): The 256-dimensional feature vector is concatenated with the encoded viewing direction $\gamma(\mathbf{d})$ and passed through one additional fully-connected ReLU layer of 128 channels, followed by a final sigmoid layer outputting the view-dependent RGB radiance $\mathbf{c} \in [0, 1]^3$.
Camera Ray Marching and Optical Projection Geometry through 3D Scene Primitives (Wikimedia Commons CC BY-SA 3.0)
Volumetric Ray Marching vs. Projective Splatting Geometry: In Neural Radiance Fields (`arXiv:2003.08934`), each camera pixel casts a ray $\mathbf{r}(t) = \mathbf{o} + t\mathbf{d}$ through the 3D scene frustum, querying an MLP at $N_c + N_f = 192$ stratified and importance-weighted 3D sample locations per ray. In contrast, 3D Gaussian Splatting (`arXiv:2308.04079`) projects anisotropic 3D Gaussians directly onto $16 \times 16$ image-plane tiles for front-to-back $\alpha$-blending without empty-space ray marching (Henrik, Wikimedia Commons, CC BY-SA 3.0, verified HTTP 200).

2. Overcoming Spectral Bias via Fourier Positional Encoding and Hierarchical Importance Sampling

As Rahaman et al. (ICML 2019) proved theoretically, standard ReLU MLPs exhibit a strong spectral bias toward learning low-frequency smooth functions, producing blurry oversmoothed geometry and textures when trained directly on raw $(x, y, z, \theta, \phi)$ coordinates (arXiv:2003.08934, Section 5.1 & Table 2 Row 2). NeRF resolves this by lifting each scalar coordinate $p \in [-1, 1]$ into $\mathbb{R}^{2L}$ via a deterministic high-frequency sinusoidal mapping $\gamma(p)$ before entering the MLP (arXiv:2003.08934, Equation 4):

$$\gamma(p) = \Big(\sin(2^0 \pi p),\; \cos(2^0 \pi p),\; \sin(2^1 \pi p),\; \cos(2^1 \pi p),\; \dots,\; \sin(2^{L-1} \pi p),\; \cos(2^{L-1} \pi p)\Big)$$

In all NeRF experiments (arXiv:2003.08934, Section 5.1):

  • 3D Spatial Position $\mathbf{x} \in [-1, 1]^3$: Encoded with $L = 10$ frequency octaves ($2^0\pi$ through $2^9\pi = 512\pi$), mapping $\mathbb{R}^3 \to \mathbb{R}^{3 \times 20 = 60}$ (or $63\text{-d}$ when including raw $\mathbf{x}$). Ablating $L$ in Table 2 shows that $L=5$ drops Realistic Synthetic PSNR to 30.59 dB and $L=15$ drops it to 30.81 dB, while $L=10$ peaks at 31.01 dB (compared to 28.77 dB without positional encoding).
  • 3D Unit Viewing Direction $\mathbf{d} \in [-1, 1]^3$: Encoded with $L = 4$ frequency octaves, mapping $\mathbb{R}^3 \to \mathbb{R}^{3 \times 8 = 24}$, keeping specular angular variation smooth while preventing view overfitting (removing view dependence drops PSNR by -3.35 dB from 31.01 dB to 27.66 dB; Table 2 Row 3).

Because uniform stratified sampling wastes compute evaluating empty free space and occluded interiors, NeRF (arXiv:2003.08934, Section 5.2, Equations 5–6) jointly trains two networks—a coarse network and a fine network:

  1. First, $N_c = 64$ stratified samples are evaluated through the coarse network to compute per-sample alpha-compositing weights $w_i = T_i (1 - \exp(-\sigma_i \delta_i))$.
  2. Normalizing these weights into a piecewise-constant probability density function (PDF) $\hat{w}i = w_i / \sum{j=1}^{N_c} w_j$ along the ray allocates samples strictly where visible surfaces exist.
  3. Second, $N_f = 128$ additional locations are drawn from $\hat{w}_i$ via inverse transform sampling, and the fine network evaluates the sorted union of all $N_c + N_f = 192$ samples to render the final pixel color $\hat{C}_f(\mathbf{r})$. Both networks are optimized end-to-end under the joint photometric $L_2$ loss across batches of $4,096$ rays (arXiv:2003.08934, Equation 6 & Section 5.3):

$$\mathcal{L} = \sum_{\mathbf{r} \in \mathcal{R}} \left[ \big\|\hat{C}_c(\mathbf{r}) - C(\mathbf{r})\big\|_2^2 + \big\|\hat{C}_f(\mathbf{r}) - C(\mathbf{r})\big\|_2^2 \right]$$

Training a single scene with Adam ($\text{lr}: 5 \times 10^{-4} \to 5 \times 10^{-5}$, batch size $4,096$ rays) for 100,000 to 300,000 iterations takes 1 to 2 days on a single NVIDIA V100 GPU (arXiv:2003.08934, Section 5.3).

Method / Ablation (`arXiv:2003.08934` Tables 1 & 2) Diffuse Synthetic 360° (DeepVoxels) PSNR / SSIM / LPIPS Realistic Synthetic 360° (8 Blender Scenes) PSNR / SSIM / LPIPS Real Forward-Facing (8 LLFF Scenes) PSNR / SSIM / LPIPS Encoding & Ray Sampling Config
Scene Representation Networks (SRN) 33.20 / 0.963 / 0.073 22.26 / 0.846 / 0.170 22.84 / 0.668 / 0.378 Recurrent sphere-marching (~1 step/ray)
Neural Volumes (NV, $128^3$ RGBA Voxel Grid) 29.62 / 0.929 / 0.099 26.05 / 0.893 / 0.160 — (Bounded volume only) 3D CNN warping $32^3 + 128^3$ grid
Local Light Field Fusion (LLFF, 3D MPI) 34.38 / 0.985 / 0.048 24.88 / 0.911 / 0.114 24.13 / 0.798 / 0.212 >15 GB Multi-Plane Images per scene
NeRF Ablation: No PE, No VD, No Hierarchical — 26.67 / 0.906 / 0.136 — Raw $xyz$ only, 100 views, $N_c=256$
NeRF Ablation: No Positional Encoding / No VD — 28.77 (No PE) / 27.66 (No VD) — No Hierarchical ($N_c=256$): 30.06 dB
NeRF Complete Model (`arXiv:2003.08934`) 40.15 / 0.991 / 0.023 31.01 / 0.947 / 0.081 26.50 / 0.811 / 0.250 $L_{\mathbf{x}}=10, L_{\mathbf{d}}=4, (64, 128)$ | 5 MB weights

Multi-Resolution Spatial Hash Encoding and Fully-Fused CUDA Kernels (Instant-NGP, arXiv:2201.05989)

Why did original NeRF require 1 to 2 days of training on an NVIDIA V100 GPU? Because the frequency positional encoding $\gamma(\mathbf{x})$ contains zero trainable parameters, the entire geometric and photometric complexity of the scene must be memorized globally inside a large 8-layer 256-wide MLP, meaning every single 3D point query along a ray incurs hundreds of thousands of floating-point multiply-accumulates and off-chip HBM memory transfers. Conversely, replacing the MLP with a dense multi-resolution 3D grid or octree (NSVF, Liu et al., 2020; Plenoxels, Fridovich-Keil and Yu et al., 2022) wastes memory on empty space or requires complex dynamic pointer-chasing and periodic structural pruning on the GPU.

In Instant Neural Graphics Primitives with a Multiresolution Hash Encoding (arXiv:2201.05989, ACM TOG / SIGGRAPH 2022), Thomas Müller, Alex Evans, Christoph Schied, and Alexander Keller (NVIDIA Research) solved both bottlenecks simultaneously by shifting model capacity out of the MLP and into a trainable multi-resolution spatial hash table paired with a tiny 64-neuron fully-fused CUDA MLP.

1. Geometric-Progression Multi-Resolution Grids and Collision-Tolerant Spatial XOR Hashing

Given an input coordinate $\mathbf{x} \in [0, 1]^d$ ($d=3$ for NeRF/SDF, $d=2$ for gigapixel images), Instant-NGP (arXiv:2201.05989, Section 3 & Table 1) arranges trainable encoding parameters $\theta$ into $L = 16$ independent resolution levels. Each level $l \in \{0, \dots, L-1\}$ stores up to $T$ feature vectors of dimension $F = 2$, where grid resolution $N_l$ follows a geometric progression between coarsest resolution $N_{\min} = 16$ and finest resolution $N_{\max} \in [512, 524288]$ (arXiv:2201.05989, Equations 2–3):

$$N_l := \big\lfloor N_{\min} \cdot b^l \big\rfloor, \qquad b := \exp\left(\frac{\ln N_{\max} - \ln N_{\min}}{L - 1}\right)$$

Because $L = 16$ is large, the per-level growth factor $b$ remains small ($b \in [1.26, 2.0]$). At level $l$, the continuous coordinate $\mathbf{x}$ is scaled by $N_l$ to $\mathbf{x}_l = \mathbf{x} \cdot N_l$, and bounded by the $2^d$ integer corners of its enclosing voxel $\lfloor \mathbf{x}_l \rfloor$ and $\lceil \mathbf{x}_l \rceil$:

  • Coarse Levels ($(N_l + 1)^d \le T$, 1:1 Dense Mapping): When the total number of grid vertices at level $l$ is at most the hash table capacity $T$ ($T \in [2^{14}, 2^{24}]$), every grid vertex maps injectively 1-to-1 to an array slot with zero hash collisions.
  • Fine Levels ($(N_l + 1)^d > T$, Spatial XOR Hash Indexing): At fine resolutions where dense grids would require gigabytes or terabytes of RAM, the level's array of size $T$ is indexed in $\mathcal{O}(1)$ with zero control flow via the spatial XOR hash function (arXiv:2201.05989, Equation 4):

$$h(\mathbf{x}) = \left(\bigoplus_{i=1}^{d} x_i \pi_i\right) \bmod T, \qquad \text{with} \quad \pi_1 := 1,\quad \pi_2 = 2\,654\,435\,761,\quad \pi_3 = 805\,459\,861$$

Here $\oplus$ is the bitwise XOR operation, and setting $\pi_1 = 1$ preserves spatial cache locality along the first dimension while $\pi_2$ and $\pi_3$ act as pseudo-random linear congruential permutations (Lehmer, 1951).

  • Implicit Gradient-Weighted Collision Disambiguation (arXiv:2201.05989, Section 3): Unlike classical spatial hashing (Teschner et al., 2003; Nießner et al., 2013), Instant-NGP uses no open addressing, bucketing, pointer chaining, or collision tables. Why does a collision-prone hash table reconstruct sub-millimeter surfaces without visible artifacts? First, because $L=16$ levels of distinct resolutions are $d$-linearly interpolated ($\mathbf{w}_l = \mathbf{x}_l - \lfloor \mathbf{x}_l \rfloor$) and concatenated into an $(L \cdot F + E)$-dimensional vector ($16 \times 2 + 16 = 48\text{-d}$ for NeRF, where $E=16$ is the degree-4 Spherical Harmonics directional encoding), two distant points that collide at level $l$ almost never collide simultaneously across all 16 levels, allowing the downstream MLP to disambiguate them. Second, during backpropagation, colliding points average their gradients into the shared table slot; because empty space has $\sigma = 0$ and occluded interior surfaces have transmittance $T_i \approx 0$, only the visible high-gradient surface point dominates the hash entry update, automatically concentrating table capacity on sparse visible geometry!

2. Fully-Fused TensorCore MLP and Multi-Scale Occupancy Grid Accelerated Ray Marching

Because the 16-level hash table absorbs the high-frequency representation load, the neural network $m(\mathbf{y}; \Phi)$ collapses from NeRF's 8-layer 256-wide MLP into a 1-hidden-layer 64-neuron density network followed by a 2-hidden-layer 64-neuron RGB color network (arXiv:2201.05989, Section 5.4). Using the tiny-cuda-nn framework (Müller et al., 2021), the entire MLP forward and backward pass executes inside a single CUDA threadblock with weight matrices kept in TensorCore registers and activations in shared memory—adding only 15% runtime overhead on top of the hash lookup (arXiv:2201.05989, Section 3 & Section 5.4).

Furthermore, to avoid querying empty space along camera rays, Instant-NGP maintains a cascaded $128^3$ multi-scale binary/float occupancy grid updated every 16 training iterations (arXiv:2201.05989, Section 5.4 & Appendix E). As Table 3 of arXiv:2201.05989 demonstrates, while mip-NeRF evaluates a fixed $128 + 128 = 256$ samples per ray across $4\text{ Ki}$ rays ($1\text{ Mi}$ batch size), Instant-NGP packs a fixed batch of $256\text{ Ki}$ non-empty point samples across $10\text{ Ki}$ to $85\text{ Ki}$ rays per batch—evaluating an average of just 3.1 to 25.7 valid samples per ray!

Method & Training Budget (`arXiv:2201.05989` Table 2) Mic / Ficus / Chair / Hotdog (PSNR dB) Materials / Drums / Ship / Lego (PSNR dB) 8-Scene Synthetic NeRF Avg. PSNR Rays/Batch & Samples/Ray (Table 3)
Instant-NGP Hash (`1 second` training) 26.09 / 21.30 / 21.55 / 21.63 22.07 / 17.76 / 20.38 / 18.83 21.202 dB $256\text{ Ki}$ batch | 3.1–25.7 samples/ray
Instant-NGP Hash (`5 seconds` training) 32.60 / 30.35 / 30.77 / 33.42 26.60 / 23.84 / 26.38 / 30.13 29.261 dB Beats 5-min Frequency baseline on Ficus
Original NeRF (`~1–2 days` V100 training) 32.91 / 30.13 / 33.00 / 36.18 29.62 / 25.01 / 28.65 / 32.54 31.005 dB 4,096 rays/batch × 192 samples/ray
Instant-NGP Hash (`15 seconds` training) 34.76 / 32.26 / 32.95 / 35.56 28.25 / 25.23 / 28.56 / 33.68 31.407 dB (+0.40 dB vs NeRF) 20–60× hash speedup over CUDA Freq.
Instant-NGP Hash (`1 minute` training) 35.92 / 33.05 / 34.34 / 36.78 29.33 / 25.82 / 30.20 / 35.63 32.635 dB Surpasses NSVF (~hours: 31.739 dB)
mip-NeRF (`~hours` multi-GPU training) 36.51 / 33.29 / 35.14 / 37.48 30.71 / 25.48 / 30.41 / 35.70 33.090 dB $1\text{ Mi}$ batch = $4\text{ Ki}$ rays × $(128+128)$
Instant-NGP Hash (`5 minutes` training) 36.22 / 33.51 / 35.00 / 37.40 29.78 / 26.02 / 31.10 / 36.39 33.176 dB (SOTA Gold) 10–85 Ki rays/batch | 1080p in tens of ms

Differentiable Anisotropic 3D Gaussian Splatting, Adaptive Density Control, and Tile-Based GPU Radix-Sort Rasterization (3DGS, arXiv:2308.04079)

Even with Instant-NGP's occupancy grid and fused CUDA hash tables, volumetric ray marching still faces a fundamental hardware mismatch on unbounded real-world scenes (Mip-NeRF360, Tanks&Temples, Deep Blending):

  1. The Speed vs. Quality Dilemma (arXiv:2308.04079, Section 1 & Table 1): Fast grid/hash methods (Plenoxels and Instant-NGP) render unbounded scenes at only 2.79 to 17.1 FPS at 1080p while dropping 2.1 to 4.4 dB PSNR behind Mip-NeRF360 (Barron et al., 2022)—whereas Mip-NeRF360 requires 48 hours of training and renders at an unusable 0.06 to 0.14 FPS (taking 7 to 16 seconds per frame).
  2. Backward Ray-Marching vs. Forward Projective Rasterization: Ray marching traces rays backward from every camera pixel through 3D space, requiring costly iterative lookups along each ray.

In 3D Gaussian Splatting for Real-Time Radiance Field Rendering (arXiv:2308.04079, ACM TOG / SIGGRAPH 2023), Bernhard Kerbl, Georgios Kopanas, Thomas Leimkühler, and George Drettakis (Inria & Max-Planck-Institut für Informatik) inverted the rendering paradigm: instead of marching rays through a continuous neural field, they represent the scene explicitly as a collection of millions of differentiable anisotropic 3D Gaussians initialized from sparse Structure-from-Motion (SfM) points and projected directly onto the 2D screen via a visibility-ordered tile-based GPU rasterizer.

1. Mathematical Parameterization of Anisotropic 3D Gaussians and EWA Projective Splatting

Each 3D Gaussian primitive $G(\mathbf{x})$ in world coordinates is defined by its 3D mean position $\boldsymbol{\mu} \in \mathbb{R}^3$ and full 3D covariance matrix $\boldsymbol{\Sigma} \in \mathbb{R}^{3 \times 3}$ (arXiv:2308.04079, Section 4, Equation 4):

$$G(\mathbf{x}) = \exp\left(-\frac{1}{2}(\mathbf{x} - \boldsymbol{\mu})^T \boldsymbol{\Sigma}^{-1} (\mathbf{x} - \boldsymbol{\mu})\right)$$

Note that the normalization constant $(2\pi)^{-3/2}|\boldsymbol{\Sigma}|^{-1/2}$ is folded into the learnable per-Gaussian scalar opacity $\alpha \in [0, 1]$ (parameterized via a sigmoid activation), while view-dependent directional radiance $\mathbf{c}$ is represented directly via 3rd-order Spherical Harmonics (SH) ($4$ bands $= 16$ basis functions $\times 3$ RGB channels $= \mathbf{48\text{ SH coefficients}}$ per Gaussian) with zero neural network layers!

Because a covariance matrix $\boldsymbol{\Sigma}$ has physical meaning only when it is positive semi-definite, optimizing the 6 unique entries of $\boldsymbol{\Sigma}$ directly via gradient descent immediately produces invalid indefinite matrices. Kerbl et al. (arXiv:2308.04079, Section 4, Equation 6) guarantee positive semi-definiteness by factoring $\boldsymbol{\Sigma}$ into the configuration of an ellipsoid—an anisotropic 3D scaling matrix $\mathbf{S} = \text{diag}(s_x, s_y, s_z)$ stored as a 3D vector $\mathbf{s} \in \mathbb{R}^3$ (with $\exp$ activation) and a 3D rotation matrix $\mathbf{R} \in SO(3)$ stored as a normalized 4D unit quaternion $\mathbf{q} \in \mathbb{R}^4$:

$$\boldsymbol{\Sigma} = \mathbf{R}\mathbf{S}\mathbf{S}^T\mathbf{R}^T$$

To project a 3D Gaussian into 2D camera screen coordinates for rasterization, 3DGS adopts the Elliptical Weighted Average (EWA) volume splatting formulation of Zwicker et al. (2001). Given a world-to-camera viewing transformation matrix $\mathbf{W} \in \mathbb{R}^{3 \times 3}$ and the Jacobian $\mathbf{J} \in \mathbb{R}^{2 \times 3}$ of the local affine approximation of the perspective projective transformation at camera-space coordinate $\mathbf{t} = (t_x, t_y, t_z)^T$, the projected 2D covariance matrix $\boldsymbol{\Sigma}'$ in ray/screen space is (arXiv:2308.04079, Equation 5):

$$\boldsymbol{\Sigma}' = \mathbf{J}\mathbf{W}\boldsymbol{\Sigma}\mathbf{W}^T\mathbf{J}^T, \qquad \text{where} \quad \mathbf{J} = \begin{bmatrix} f_x / t_z & 0 & -(f_x t_x) / t_z^2 \\ 0 & f_y / t_z & -(f_y t_y) / t_z^2 \end{bmatrix}$$

Dropping the third row and column of $\boldsymbol{\Sigma}'$ yields the $2 \times 2$ screen-space covariance matrix $\boldsymbol{\Sigma}^{2D}$ (to which vanilla 3DGS adds a small isotropic low-pass term $0.3\mathbf{I}$ to prevent sub-pixel degeneracy). Along any pixel $\mathbf{p}$, front-to-back sorted 2D Gaussians are composited via standard point-based $\alpha$-blending (arXiv:2308.04079, Equations 1–3), which is mathematically identical in form to NeRF's quadrature equation:

$$C = \sum_{i \in \mathcal{N}} \mathbf{c}i \alpha'_i \prod{j=1}^{i-1} (1 - \alpha'_j), \qquad \alpha'_i = \alpha_i \exp\left(-\frac{1}{2}(\mathbf{p} - \boldsymbol{\mu}'_i)^T (\boldsymbol{\Sigma}^{2D}_i)^{-1} (\mathbf{p} - \boldsymbol{\mu}'_i)\right)$$

Visual Architecture Comparison — Volumetric NeRF Ray Marching vs. 3D Gaussian Splatting: How continuous 5D implicit MLP radiance fields compare against explicit anisotropic 3D Gaussian primitives and tile-sorted rasterization (Automaxa, verified via live YouTube oEmbed HTTP 200).

2. Interleaved Optimization and Adaptive Gaussian Density Control (Clone, Split, Prune, Opacity Reset)

Starting from a sparse COLMAP SfM point cloud (or 100,000 uniform random points on synthetic Blender scenes, initializing initial covariance $\boldsymbol{\Sigma}$ as an isotropic sphere with axes equal to the mean distance to the three closest neighboring points; arXiv:2308.04079, Section 5.1), 3DGS optimizes all parameters via Stochastic Gradient Descent (Adam, batch size 1 view) under a combined $\mathcal{L}1 + \mathcal{L}{\text{D-SSIM}}$ photometric loss (arXiv:2308.04079, Equation 7):

$$\mathcal{L} = (1 - \lambda)\mathcal{L}1 + \lambda \mathcal{L}{\text{D-SSIM}}, \qquad \text{with} \quad \lambda = 0.2$$

To stabilize optimization (arXiv:2308.04079, Section 7.1), training starts at $4\times$ downsampled image resolution and upsamples twice at iterations 250 and 500, while Spherical Harmonics bands are unlocked progressively—introducing one additional SH band every 1,000 iterations until all 4 bands (degree 3) are active.

Between iteration 500 and iteration 15,000 (out of 30,000 total iterations), Adaptive Density Control executes every 100 iterations (arXiv:2308.04079, Section 5.2 & Figure 4) to convert the sparse SfM scaffold into 1 to 5 million geometry-conforming anisotropic splats:

  1. View-Space Positional Gradient Trigger ($\tau_{\text{pos}} = 0.0002$): Both missing geometry (under-reconstruction) and overly large splats blurring across edges (over-reconstruction) exhibit large view-space positional gradients $\|\nabla_{\boldsymbol{\mu}'} \mathcal{L}\|$. Any Gaussian with an average view-space positional gradient magnitude above $\tau_{\text{pos}} = 0.0002$ is flagged for densification.
  2. Cloning Under-Reconstructed Small Gaussians: If a flagged Gaussian's max scale $\|\mathbf{s}\|$ is smaller than a scene-extent threshold, it lies in an under-reconstructed region. 3DGS clones it—duplicating an identical-sized copy and translating it along the direction of the positional gradient.
  3. Splitting Over-Reconstructed Large Gaussians ($\phi = 1.6$): If a flagged Gaussian's scale exceeds the threshold, it is over-reconstructing fine geometry. 3DGS splits it—replacing the large Gaussian with two new Gaussians whose scales are divided by an empirical factor of $\phi = 1.6$, and whose initial positions are sampled using the original 3D Gaussian as a PDF.
  4. Transparency Pruning ($\epsilon_\alpha = 1/255$) and Periodic Opacity Reset (Every 3,000 Iterations): Any Gaussian whose opacity $\alpha$ falls below $\epsilon_\alpha$ (or whose world/screen footprint becomes excessively huge) is pruned. Furthermore, to eliminate "floater" Gaussians trapped near the camera lens by early optimization transients, every 3,000 iterations the opacity $\alpha$ of all Gaussians is reset close to zero ($\approx 0.01$)—forcing legitimately supported surface Gaussians to rapidly recover their opacity while unsupported floaters remain below $\epsilon_\alpha$ and are permanently culled!

3. The $16 \times 16$ Tile-Based Differentiable Rasterizer and 64-Bit GPU Radix Sort

Why does 3DGS render at 134 to 197 FPS at 1080p while supporting exact backpropagation over an unlimited number of blended splats per pixel? As detailed in Section 6 and Appendix C (Algorithm 2) of arXiv:2308.04079, the custom CUDA rasterizer eliminates per-pixel sorting via five hardware-aligned steps:

  1. 99% Confidence Frustum Culling & Guard-Band Rejection: The screen is partitioned into $16 \times 16$ pixel tiles. Only 3D Gaussians whose 99% confidence ellipsoid ($3\sigma$) intersects the view frustum are retained, while a guard band trivially rejects extreme near-plane outliers whose projected Jacobian $\mathbf{J}$ would be numerically unstable.
  2. Tile-Instance Duplication & 64-Bit Composite Sort Keys: Each surviving 2D Gaussian is instantiated once for every $16 \times 16$ screen tile its $3\sigma$ bounding box overlaps, and assigned an unsigned 64-bit integer sort key: $$\texttt{Key}{64} = \big[\underbrace{\texttt{Tile\_ID}}{\text{Upper 32 bits}} \;\big|\; \underbrace{\texttt{View\Space\_Depth\_FP32}}{\text{Lower 32 bits}}\big]$$
  3. Single Global GPU Radix Sort (NVIDIA CUB): A single fast GPU Radix Sort (Merrill & Grimshaw, 2010) sorts all instantiated splats across the entire frame in parallel by their 64-bit key—simultaneously grouping splats contiguously by tile and ordering them front-to-back by depth within every tile with zero per-pixel sort overhead! One lightweight parallel pass compares each 64-bit key's upper 32 bits with its neighbors to record the exact [start, end) index range $R_t$ for each tile $t$.
  4. Shared-Memory Collaborative Forward Traversal & Early $\alpha$-Saturation Termination: One CUDA thread block ($16 \times 16 = 256$ threads, one thread per pixel) is launched per tile. Threads collaboratively load batches of Gaussian parameters from global memory into fast on-chip CUDA shared memory, then each pixel thread accumulates color $C$ and transmittance $T_i = \prod_{j=1}^{i-1}(1 - \alpha'_j)$ front-to-back, terminating immediately when accumulated opacity reaches saturation ($T_i < 10^{-4}$ / $\alpha \to 1$).
  5. $\mathcal{O}(1)$-Memory Back-to-Front Gradient Recovery via Transmittance Division: Storing dynamic per-pixel lists of every contributing Gaussian during the forward pass would explode VRAM consumption. Instead, 3DGS stores only the final accumulated transmittance $T_{\text{final}}$ and the index of the last contributing Gaussian per pixel. During the backward pass, the tile thread block traverses the exact same sorted shared-memory tile list back-to-front, recovering each intermediate step's exact forward transmittance $T_i$ on-the-fly by dividing out $(1 - \alpha'i)$: $$T{i-1} = \frac{T_i}{1 - \alpha'_i}$$ This enables exact gradient backpropagation across arbitrary scene depth complexity with $\mathcal{O}(1)$ per-pixel memory overhead!
Method (`arXiv:2308.04079` Tables 1, 2 & 3) Mip-NeRF360 (SSIM / PSNR / LPIPS / Train / FPS) Tanks&Temples (SSIM / PSNR / LPIPS / Train / FPS) Deep Blending (SSIM / PSNR / LPIPS / Train / FPS) Memory & Synthetic NeRF Avg. PSNR
Plenoxels (Sparse Voxel SH Grid) 0.626 / 23.08 / 0.463 | 25m49s | 6.79 FPS 0.719 / 21.08 / 0.379 | 25m5s | 13.0 FPS 0.795 / 23.06 / 0.510 | 27m49s | 11.2 FPS 2.1–2.7 GB | Synth: 31.76 dB
Instant-NGP Base ($T=2^{19}$) 0.671 / 25.30 / 0.371 | 5m37s | 11.7 FPS 0.723 / 21.72 / 0.330 | 5m26s | 17.1 FPS 0.797 / 23.62 / 0.423 | 6m31s | 3.26 FPS 13 MB | Synth: 33.18 dB
Instant-NGP Big ($T=2^{21}$) 0.699 / 25.59 / 0.331 | 7m30s | 9.43 FPS 0.745 / 21.92 / 0.305 | 6m59s | 14.4 FPS 0.817 / 24.96 / 0.390 | 8m00s | 2.79 FPS 48 MB | Point-NeRF Synth: 33.30 dB
Mip-NeRF 360 (48-Hour MLP Topline) 0.792 / 27.69 / 0.237 | 48h | 0.06 FPS 0.759 / 22.22 / 0.257 | 48h | 0.14 FPS 0.901 / 29.40 / 0.245 | 48h | 0.09 FPS 8.6 MB | Mip-NeRF Synth: 33.09 dB
3D Gaussian Splatting (`Ours-7K`) 0.770 / 25.60 / 0.279 | 6m25s | 160 FPS 0.767 / 21.20 / 0.280 | 6m55s | 197 FPS 0.875 / 27.78 / 0.317 | 4m35s | 172 FPS 270–523 MB | Fast ~5–7m convergence
3D Gaussian Splatting (`Ours-30K`) 0.815 / 27.21 / 0.214 | 41m33s | 134 FPS 0.841 / 23.14 / 0.183 | 26m54s | 154 FPS 0.903 / 29.41 / 0.243 | 36m2s | 137 FPS 411–734 MB | Synth: 33.32 dB

Even more telling are the ablation experiments in Table 3 of arXiv:2308.04079 (averaged at 30K iterations across Truck, Garden, and Bicycle where the full model scores 26.05 dB):

  • Capping gradient backpropagation to top-$N$ splats (Limited-BW): Collapses average PSNR by -6.86 dB to 19.19 dB (13.84 dB on Truck), proving that unlimited per-pixel depth backpropagation is indispensable.
  • Random Initialization instead of SfM Points (Random Init): Drops PSNR by -5.63 dB to 20.42 dB.
  • Disabling Gaussian Splitting (No-Split) or Cloning (No-Clone): Drops PSNR to 23.90 dB (-2.15 dB) and 25.91 dB, respectively.
  • Forcing Isotropic Spheres instead of Anisotropic Covariances (Isotropic): Drops PSNR by -0.82 dB to 25.23 dB, confirming that rotated anisotropic ellipsoids compactly model thin edges and flat surfaces.
  • Disabling Spherical Harmonics View-Dependence (No-SH): Drops PSNR by -0.70 dB to 25.35 dB.

Alias-Free Multi-Scale 3D Gaussian Splatting: 3D Nyquist Smoothing and 2D Box-Approximation Mip Filters (Mip-Splatting, arXiv:2311.16493)

While vanilla 3DGS achieves extraordinary fidelity when rendered at the exact focal length, resolution, and camera distance observed during training, it suffers from catastrophic visual degradation whenever the camera zooms in ($2\times, 4\times, 8\times$ sampling rate) or zooms out ($1/2\times, 1/4\times, 1/8\times$ sampling rate).

In Mip-Splatting: Alias-free 3D Gaussian Splatting (arXiv:2311.16493, CVPR 2024), Zehao Yu, Anpei Chen, Binbin Huang, Torsten Sattler, and Andreas Geiger identified the exact signal-processing root cause of this failure (arXiv:2311.16493, Section 1 & Section 4):

  1. Intrinsic Shrinkage Bias & Unconstrained 3D Frequencies (Zoom-In Erosion): Because 3DGS lacks any 3D Nyquist frequency bound and adds a constant screen-space dilation term $\boldsymbol{\Sigma}^{2D}_k + s\mathbf{I}$ ($s = 0.3$) without scaling the Gaussian's amplitude by the determinant ratio, a degenerate 3D Gaussian can shrink toward a Dirac $\delta$-function needle in 3D world space while still looking normal at the $1\times$ training scale due to the 2D screen-space dilation! When the camera moves closer or zooms in ($4\times$ or $8\times$), the fixed 2D pixel dilation shrinks relative to the object, exposing needle-thin high-frequency spikes and severe erosion gaps (arXiv:2311.16493, Figure 1c–d).
  2. Unnormalized Screen-Space Dilation (Zoom-Out Brightening & Popping): Conversely, when the camera zooms out ($1/4\times$ or $1/8\times$), adding $s\mathbf{I}$ in screen space artificially inflates every small Gaussian to at least a full pixel width without conserving integrated energy—causing severe dilation bloating and brightness inflation (collapsing Blender $1/8\times$ PSNR from 33.33 dB to 17.69 dB; arXiv:2311.16493, Table 2).

1. The 3D Nyquist Smoothing Filter (Eq. 7–9) with Zero Inference Overhead

By the Nyquist-Shannon sampling theorem, a continuous 3D signal reconstructed from discrete 2D camera images with focal length $f$ (in pixel units) at depth $d$ cannot faithfully represent frequencies above half the world-space sampling frequency $\hat{\nu} = f / d$ (corresponding to world-space pixel interval $\hat{T} = 1 / \hat{\nu} = d / f$; arXiv:2311.16493, Section 5.1, Equation 6).

For each 3D Gaussian primitive $k$ visible across a subset of training cameras $n \in \{1, \dots, N\}$, Yu et al. compute its maximal observed multi-view sampling rate $\hat{\nu}_k$ every $m = 100$ training iterations (arXiv:2311.16493, Equation 7):

$$\hat{\nu}k = \max\Big(\big\{\mathbb{I}_n(\mathbf{p}_k) \cdot \nu{kn}\big\}{n=1}^{N}\Big) = \max\left(\left\{\mathbb{I}_n(\mathbf{p}_k) \cdot \frac{f_n}{d{kn}}\right\}_{n=1}^{N}\right)$$

where $\mathbb{I}n(\mathbf{p}_k) \in \{0, 1\}$ is the view-frustum visibility indicator of Gaussian $k$ in camera $n$. To eliminate all frequencies above the Nyquist limit $\hat{\nu}_k / 2$, Mip-Splatting convolves each 3D Gaussian $\mathcal{G}_k(\mathbf{x})$ with an isotropic 3D Gaussian low-pass filter $\mathcal{G}{\text{low}}(\mathbf{x})$ of variance $s / \hat{\nu}_k^2$ ($s = 0.2$). Because the convolution of two Gaussians is analytically another Gaussian whose covariance is the sum of their covariances (arXiv:2311.16493, Equation 8):

$$\mathcal{G}k(\mathbf{x}){\text{reg}} = (\mathcal{G}k \otimes \mathcal{G}{\text{low}})(\mathbf{x}) = \sqrt{\frac{|\boldsymbol{\Sigma}_k|}{\big|\boldsymbol{\Sigma}_k + \frac{s}{\hat{\nu}_k^2}\mathbf{I}\big|}}\;\exp\left(-\frac{1}{2}(\mathbf{x} - \mathbf{p}_k)^T \left(\boldsymbol{\Sigma}_k + \frac{s}{\hat{\nu}_k^2}\mathbf{I}\right)^{-1} (\mathbf{x} - \mathbf{p}_k)\right)$$

Crucially, because $\hat{\nu}_k$ depends only on the training cameras and remains constant after training, at inference time the 3D smoothing filter $(\boldsymbol{\Sigma}_k + \frac{s}{\hat{\nu}_k^2}\mathbf{I})$ and its scalar determinant amplitude factor are baked permanently into the Gaussian's intrinsic 3D covariance and opacity—incurring 0.0 ms of rendering overhead!

2. The Energy-Conserving 2D Mip Filter (Eq. 10) Replacing Screen-Space Dilation

To prevent aliasing when zooming out (where multiple 3D Gaussians fall inside a single camera pixel), Mip-Splatting replaces 3DGS's ad-hoc screen dilation with a 2D Mip Filter that models physical photon integration across the 2D pixel sensor box filter using an analytical 2D Gaussian approximation with variance $s = 0.1$ (arXiv:2311.16493, Section 5.2, Equation 10):

$$\mathcal{G}^{2D}k(\mathbf{x}){\text{mip}} = \sqrt{\frac{|\boldsymbol{\Sigma}^{2D}_k|}{\big|\boldsymbol{\Sigma}^{2D}_k + s\mathbf{I}\big|}}\;\exp\left(-\frac{1}{2}(\mathbf{x} - \mathbf{p}_k)^T \big(\boldsymbol{\Sigma}^{2D}_k + s\mathbf{I}\big)^{-1} (\mathbf{x} - \mathbf{p}_k)\right)$$

Notice the decisive mathematical difference: whereas vanilla 3DGS added $s\mathbf{I}$ to $\boldsymbol{\Sigma}^{2D}_k$ without the leading square-root determinant ratio $\sqrt{|\boldsymbol{\Sigma}^{2D}_k| / |\boldsymbol{\Sigma}^{2D}_k + s\mathbf{I}|}$, Mip-Splatting attenuates the Gaussian's peak opacity proportionally as its 2D footprint expands to cover a pixel—strictly conserving total integrated radiance across arbitrary zoom levels!

Benchmark Regime & Method (`arXiv:2311.16493` Tables 1–4) Scale 1 (1× Res.) PSNR Scale 2 (1/2× or 2×) PSNR Scale 3 (1/4× or 4×) PSNR Scale 4 (1/8× or 8×) PSNR Multi-Scale Avg. PSNR / SSIM / LPIPS
Table 1 (Multi-Scale Train/Test Blender): 3DGS 28.79 dB 30.66 dB (1/2×) 31.64 dB (1/4×) 27.98 dB (1/8×) 29.77 / 0.960 / 0.040 (MipNeRF: 34.51)
Table 1 (Multi-Scale Train/Test Blender): Mip-Splatting 32.81 dB 34.49 dB (1/2×) 35.45 dB (1/4×) 35.50 dB (1/8×) 34.56 / 0.979 / 0.019 (+4.79 dB vs 3DGS)
Table 2 (1× Train → Zoom-Out Test Blender): 3DGS 33.33 dB 26.95 dB (1/2×) 21.38 dB (1/4×) 17.69 dB (1/8×) 24.84 / 0.890 / 0.063 (3DGS+EWA: 29.40)
Table 2 (1× Train → Zoom-Out Test Blender): Mip-Splatting 33.36 dB 34.00 dB (1/2×) 31.85 dB (1/4×) 28.67 dB (1/8×) 31.97 / 0.974 / 0.024 (+10.98 dB at 1/8×)
Table 3 (1× Train → Zoom-In Test Mip-NeRF360): 3DGS / Zip-NeRF 29.19 / 29.66 23.50 / 23.27 (2×) 20.71 / 20.87 (4×) 19.59 / 20.27 (8×) 3DGS: 23.25 / 0.715 | Zip-NeRF: 23.52
Table 3 (1× Train → Zoom-In Test Mip-NeRF360): Mip-Splatting 29.39 dB 27.39 dB (2×) 26.47 dB (4×) 26.22 dB (8×) 27.37 / 0.803 / 0.252 (+6.63 dB at 8×)

Furthermore, on the standard in-distribution single-scale Mip-NeRF 360 benchmark (arXiv:2311.16493, Table 4), Mip-Splatting reaches 27.79 dB PSNR, 0.827 SSIM, and 0.203 LPIPS (surpassing paper-reported 3DGS at 27.21 dB / 0.815 / 0.214 and retrained 3DGS* at 27.70 dB / 0.826 / 0.202), proving that frequency regularization improves out-of-distribution zoom generalization without sacrificing a single hundredth of a dB at the training scale.


Calibration-Free Dense 3D Pointmap Regression via Siamese Cross-Attention Vision Transformers (DUSt3R, arXiv:2312.14132)

Every method examined so far—NeRF, Instant-NGP, 3DGS, and Mip-Splatting—shares one critical operational fragility: before optimization can even begin, you must run COLMAP Structure-from-Motion (SfM) to estimate camera intrinsic matrices $\{K_n\}$, 6-DoF extrinsic poses $\{P_n\}$, and a sparse 3D point cloud. On textureless indoor walls, wide-baseline image pairs, dynamic objects, or sparse 2-to-5 view captures, COLMAP frequently fails to converge or takes minutes to hours of CPU bundle adjustment (arXiv:2312.14132, Section 1 & Table 3).

In DUSt3R: Geometric 3D Vision Made Easy (arXiv:2312.14132v3, CVPR 2024), Shuzhe Wang, Vincent Leroy, Yohann Cabon, Boris Chidlovskii, and Jerome Revaud (Aalto University & Naver Labs Europe) eliminated prior camera calibration by unifying monocular and multi-view 3D reconstruction into direct end-to-end regression of dense 3D pointmaps in a shared camera coordinate frame.

1. The Dense 3D Pointmap Abstraction and CroCo-Pretrained Siamese ViT Architecture

Given an RGB image $I \in \mathbb{R}^{W \times H \times 3}$, DUSt3R defines a pointmap $X \in \mathbb{R}^{W \times H \times 3}$ as a dense 2D grid of 3D coordinates forming a 1-to-1 bijection $I_{i,j} \leftrightarrow X_{i,j}$ between every pixel $(i, j) \in \{1 \dots W\} \times \{1 \dots H\}$ and its 3D scene point (arXiv:2312.14132, Section 3). If camera intrinsics $K \in \mathbb{R}^{3 \times 3}$ and world-to-camera rigid pose $P_n \in \mathbb{R}^{3 \times 4}$ are known along with depthmap $D \in \mathbb{R}^{W \times H}$, the pointmap of camera $n$ expressed in the coordinate frame of camera $m$ is (arXiv:2312.14132, Equation 1):

$$X^{n, m}{i, j} = P_m P_n^{-1} h\left(K^{-1} \begin{bmatrix} i\,D{i,j} \\ j\,D_{i,j} \\ D_{i,j} \end{bmatrix}\right)$$

where $h: (x, y, z) \to (x, y, z, 1)$ is the homogeneous mapping. Instead of estimating $K, P_n, P_m$, and $D$ separately, DUSt3R (arXiv:2312.14132, Section 3.1 & Figure 2) trains a single Transformer network $\mathcal{F}(I^1, I^2)$ that consumes two raw, uncalibrated RGB images $I^1, I^2$ and directly outputs both pointmaps $X^{1,1}$ and $X^{2,1}$ expressed in the exact same coordinate frame of the first camera $I^1$:

  1. Weight-Sharing Siamese ViT-Large Encoder: Initialized from CroCo v2 (Cross-View Completion) self-supervised weights (Weinzaepfel et al., 2023), the shared ViT-Large encoder independently encodes $I^1$ and $I^2$ into token representations $F^1 = \text{Encoder}(I^1)$ and $F^2 = \text{Encoder}(I^2)$.
  2. Information-Sharing Cross-Attention ViT-Base Decoder: Two parallel ViT-Base decoder branches ($G^1_b, G^2_b$ across $B$ blocks) continuously exchange geometric context across views via interleaved Self-Attention, Cross-Attention (where every token of view 1 attends to all tokens of view 2, and vice versa), and MLP blocks: $$G^1_b = \text{DecoderBlock}^1_b(G^1_{b-1}, G^2_{b-1}), \qquad G^2_b = \text{DecoderBlock}^2_b(G^2_{b-1}, G^1_{b-1})$$
  3. Dense Prediction Transformer (DPT) Regression Heads: Two DPT heads (Ranftl et al., 2021) consume the final decoder tokens and output the dense 3D pointmaps $X^{1,1}, X^{2,1} \in \mathbb{R}^{W \times H \times 3}$ alongside per-pixel confidence maps $C^{1,1}, C^{2,1} \in (1, \infty)$ (parameterized as $C_i^{v,1} = 1 + \exp(\tilde{C}_i^{v,1}) > 1$).

2. Scale-Normalized Confidence-Aware 3D Regression Loss and Multi-View 3D Global Alignment

To resolve scale ambiguity between predicted and ground-truth 3D pointmaps without cheating on metric scale, DUSt3R normalizes the predicted pointmaps by their average Euclidean distance to the origin $z = \text{norm}(X^{1,1}, X^{2,1}) = \frac{1}{|\mathcal{D}^1| + |\mathcal{D}^2|} \sum_{v \in \{1,2\}} \sum_{i \in \mathcal{D}^v} \|X_i^{v,1}\|_2$ and the ground-truth pointmaps by $\bar{z} = \text{norm}(\bar{X}^{1,1}, \bar{X}^{2,1})$, minimizing the Confidence-Aware 3D Euclidean Regression Loss (arXiv:2312.14132, Section 3.2, Equations 2–4):

$$\mathcal{L}{\text{conf}} = \sum{v \in \{1, 2\}} \sum_{i \in \mathcal{D}^v} \Big[ C_i^{v,1}\,\ell_{\text{regr}}(v, i) - \alpha \log C_i^{v,1} \Big], \qquad \text{where} \quad \ell_{\text{regr}}(v, i) = \left\| \frac{1}{z} X_i^{v,1} - \frac{1}{\bar{z}} \bar{X}_i^{v,1} \right\|_2$$

This single loss trains the network across 8.5 million image pairs extracted from 8 diverse indoor/outdoor datasets (Habitat, MegaDepth, ARKitScenes, Static Scenes 3D, Blended MVS, ScanNet++, CO3D-v2, and Waymo; arXiv:2312.14132, Section 4)—first at $224 \times 224$ resolution and then fine-tuned on variable-aspect-ratio images with largest dimension 512 pixels.

When given an arbitrary collection of $N > 2$ uncalibrated images $\{I^1, \dots, I^N\}$:

  • Pairwise Graph & 40 ms Inference: DUSt3R forms a connectivity graph $\mathcal{G}(\mathcal{V}, \mathcal{E})$ of overlapping image pairs $e = (n, m) \in \mathcal{E}$ (each pairwise forward pass takes $\approx 40\text{ ms}$ on an NVIDIA H100 GPU; arXiv:2312.14132, Section 3.4).
  • 3D Global Alignment Optimization (Eq. 5): Instead of fragile 2D reprojection Bundle Adjustment, DUSt3R aligns all pairwise pointmaps $(X^{n,e}, X^{m,e})$ into a unified world-coordinate pointmap set $\{\chi^n \in \mathbb{R}^{W \times H \times 3}\}{n=1}^N$ by optimizing per-edge rigid poses $P_e \in \mathbb{R}^{3 \times 4}$ and positive scales $\sigma_e > 0$ (subject to $\prod{e \in \mathcal{E}} \sigma_e = 1$ to prevent $\sigma_e \to 0$ collapse) via 3D gradient descent in mere seconds:

$$\chi^* = \arg\min_{\chi, P, \sigma} \sum_{e \in \mathcal{E}} \sum_{v \in e} \sum_{i=1}^{HW} C_i^{v,e} \big\| \chi_i^v - \sigma_e P_e X_i^{v,e} \big\|_2$$

From the resulting aligned pointmaps, camera intrinsics $K_n$ (via Weiszfeld's algorithm / closed-form focal estimator), relative/absolute poses $P_n$ (via Procrustes alignment or PnP-RANSAC), dense depthmaps $D_n$, and 2D-2D pixel correspondences (via mutual nearest neighbors in 3D space) are recovered instantaneously—making DUSt3R the standard calibration-free initializer for 3D Gaussian Splatting (e.g., InstantSplat / Splatt3R)!

3D Vision Task & Method (`arXiv:2312.14132` Tables 1–4) CO3Dv2 Multi-View Pose (RRA@15 / RTA@15 / mAA@30) RealEstate10K Pose mAA@30 Zero-Shot Monocular Depth (NYUv2 / BONN AbsRel ↓ / $\delta_{1.25}$ ↑) Multi-View Depth Avg. (AbsRel ↓ / $\tau$ ↑ / Time)
COLMAP + SuperPoint/SuperGlue (`SPSG`) 36.1% / 27.3% / 25.3% 45.2% (PixSfM: 49.4%) — COLMAP (w/ GT Pose+K): 9.3 / 67.8% (~3 min)
PoseDiffusion (Trained on CO3Dv2) 80.5% / 79.8% / 66.5% 48.0% (PosReg: 45.0% CO3D) SlowTv (Zero-shot SOTA): 11.59 / 87.23% (NYUv2) DeepV2D ScanNet: 8.6 / 39.9% (3.57s)
DUSt3R 224-NoCroCo (Ablation: Random Init) — (7Scenes/Cambridge localization drops 2–4×) — NYUv2: 14.51 / 81.06% | BONN: 14.44 / 86.00% 9.37 AbsRel / 40.39% $\tau$ (0.05s, no Pose/K)
DUSt3R 224 (w/ CroCo v2 Pretraining) 7Scenes Chess: 3cm/0.96°, Heads: 1cm/1.00° — NYUv2: 10.28 / 88.92% | BONN: 11.05 / 89.95% 6.85 AbsRel / 54.59% $\tau$ (0.05s, no Pose/K)
DUSt3R 512 (`w/ PnP`, Pairwise + RANSAC) 94.3% / 88.4% / 77.2% 61.2% DDAD: 13.88 / 81.17% | KITTI: 10.74 / 86.60% DTU Uncalibrated MVS: 1.741 mm overall
DUSt3R 512 (`w/ Global Alignment`, Eq. 5) 96.2% / 86.8% / 76.7% 67.7% (+19.7 pts vs PoseDiff) NYUv2: 6.50 / 94.09% | BONN: 8.08 / 93.56% 4.73 AbsRel / 64.52% $\tau$ (0.13s, zero Pose/K)

Comparative Architectural Matrix: Implicit Ray Marching vs. Hash Grids vs. Anisotropic Gaussian Splatting vs. Pointmap Transformers

The diagram and architectural synthesis below map the structural evolution from implicit 5D volumetric MLPs (NeRF) and collision-tolerant spatial hash tables (Instant-NGP) to explicit tile-sorted anisotropic 3D Gaussians (3DGS, Mip-Splatting) and feed-forward uncalibrated pointmap Transformers (DUSt3R):

┌──────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│          THE 2020–2026 3D SCENE REPRESENTATION & NEURAL RENDERING ARCHITECTURAL PIPELINE                 │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│                                                                                                          │
│  [ STAGE 0: UNCALIBRATED IMAGE COLLECTION {I^1 ... I^N} -> CAMERA POSES & 3D POINT CLOUD ]               │
│     ├─ Classical SfM (COLMAP): SIFT/SPSG 2D matching -> triangulation -> 2D Bundle Adjustment (~minutes) │
│     └─ Feed-Forward Pointmap ViT (DUSt3R, arXiv:2312.14132):                                             │
│          • Siamese CroCo ViT-L Encoder + Cross-Attention ViT-B Decoder + DPT Head (8.5M pairs, 40ms)     │
│          • Regresses dense 3D pointmaps X^{1,1}, X^{2,1} in Camera-1 frame + confidence C_i^{v,1} > 1    │
│          • 3D Global Alignment: min_{χ,P,σ} Σ C_i^{v,e} ||χ_i^v - σ_e P_e X_i^{v,e}||_2 (seconds)        │
│                                                  │                                                       │
│         ┌────────────────────────────────────────┴────────────────────────────────────────┐              │
│         ▼ (Path A: Implicit Volumetric Ray Marching)                                      ▼ (Path B)     │
│  ┌─────────────────────────────────────────────────────┐  ┌────────────────────────────────────────────┐ │
│  │ 1. NeRF (arXiv:2003.08934)                          │  │ 3. 3D Gaussian Splatting (arXiv:2308.04079)│ │
│  │  • Input: 5D (x,y,z,θ,φ) -> Fourier PE γ(p)         │  │  • Primitives: μ ∈ R^3, α ∈ [0,1], SH(48)  │ │
│  │    L_x=10 (60-d), L_d=4 (24-d)                      │  │  • Anisotropic Covariance: Σ = R S S^T R^T │ │
│  │  • Backbone: 8-layer 256-ch ReLU MLP (σ) + 128-ch(c)│  │  • EWA 2D Projection: Σ' = J W Σ W^T J^T   │ │
│  │  • Ray Marching: N_c=64 coarse + N_f=128 fine/ray   │  │  • Adaptive Density Control (every 100 it):│ │
│  │  • Speed/Size: 1–2 days train | ~0.06 FPS | 5 MB    │  │    ||∇_{μ'} L|| > 0.0002 -> Clone or Split │ │
│  ├─────────────────────────────────────────────────────┤  │    (φ=1.6), Prune α < 1/255, Reset @ 3000  │ │
│  │ 2. Instant-NGP (arXiv:2201.05989)                   │  │  • Rasterizer: 16×16 tiles, 64-bit key     │ │
│  │  • L=16 geometric levels (N_min=16..N_max=524,288)  │  │    [Tile_ID | Depth], 1x GPU Radix Sort    │ │
│  │  • Spatial XOR Hash: h(x) = (⊕ x_i π_i) mod T       │  │  • Speed: 134–197 FPS @ 1080p (31.0–33.3dB)│ │
│  │    (T=2^14..2^24, F=2, π_2=2654435761, π_3=805459861│  ├────────────────────────────────────────────┤ │
│  │  • Fused CUDA TensorCore MLP (64 neurons, 1+2 L)    │  │ 4. Mip-Splatting (arXiv:2311.16493)        │ │
│  │  • 128^3 Occupancy Grid: 3.1–25.7 valid samples/ray │  │  • 3D Nyquist Smoothing: Σ_k + (s/ν̂_k^2)I  │ │
│  │  • Speed: 5s (29.26dB) | 15s (31.41dB) | 5m (33.18) │  │  • 2D Mip Box Filter: √(|Σ^{2D}|/|Σ^{2D}+sI|)│
│  └─────────────────────────────────────────────────────┘  └────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Production PyTorch Reference Implementation: Multi-Resolution Spatial XOR Hash Encoding, Anisotropic 3D-to-2D EWA Gaussian Projection with Mip-Splatting Filters, and DUSt3R Confidence-Aware Loss

Below is a clean, self-contained, type-annotated PyTorch reference implementation demonstrating the four core mathematical engines analyzed in this guide:

  1. Instant-NGP Multi-Resolution Spatial XOR Hash Encoding (arXiv:2201.05989, Equations 2–4) with exact prime constants $\pi_1=1, \pi_2=2654435761, \pi_3=805459861$ and trilinear voxel interpolation.
  2. 3D Gaussian Splatting Quaternion-Scale Covariance Factorization $\boldsymbol{\Sigma} = \mathbf{R}\mathbf{S}\mathbf{S}^T\mathbf{R}^T$ and EWA Projective Jacobian Splatting $\boldsymbol{\Sigma}' = \mathbf{J}\mathbf{W}\boldsymbol{\Sigma}\mathbf{W}^T\mathbf{J}^T$ (arXiv:2308.04079, Equations 4–6).
  3. Mip-Splatting 3D Nyquist Smoothing Filter (arXiv:2311.16493, Equations 7–8) and Energy-Conserving 2D Mip Filter (Equation 10).
  4. DUSt3R Scale-Normalized Confidence-Aware 3D Pointmap Regression Loss (arXiv:2312.14132, Equations 2–4).
from __future__ import annotations

import math
import torch
import torch.nn as nn
import torch.nn.functional as F

class InstantNGPMultiresHashEncoding(nn.Module):
    """Multi-Resolution Spatial XOR Hash Encoding (Mueller et al., arXiv:2201.05989, Sec. 3)."""

    def __init__(
        self,
        num_levels: int = 16,
        log2_hashmap_size: int = 19,
        features_per_level: int = 2,
        n_min: int = 16,
        n_max: int = 2048,
    ) -> None:
        super().__init__()
        self.num_levels = num_levels
        self.table_size = 1 << log2_hashmap_size
        self.features_per_level = features_per_level
        self.n_min = n_min
        # Equation 3: geometric growth factor b = exp((ln N_max - ln N_min) / (L - 1))
        self.growth_factor = math.exp(
            (math.log(n_max) - math.log(n_min)) / max(1, num_levels - 1)
        )

        # Equation 4 prime multipliers: pi_1 = 1, pi_2 = 2654435761, pi_3 = 805459861
        self.register_buffer(
            "primes",
            torch.tensor([1, 2654435761, 805459861], dtype=torch.int64),
        )
        # 8 unit cube corners in 3D: {0, 1}^3
        corners = torch.tensor(
            [[(i >> b) & 1 for b in range(3)] for i in range(8)], dtype=torch.int64
        )
        self.register_buffer("corners", corners)

        # Uniform initialization in [-1e-4, 1e-4] per Section 3
        self.embeddings = nn.ParameterList(
            [
                nn.Parameter(
                    torch.empty(self.table_size, features_per_level).uniform_(-1e-4, 1e-4)
                )
                for _ in range(num_levels)
            ]
        )

    def _spatial_xor_hash(self, coords_int: torch.Tensor) -> torch.Tensor:
        """Compute branchless spatial hash h(x) = (XOR_{i=1}^3 x_i * pi_i) mod T (Eq. 4)."""
        scaled = coords_int * self.primes
        hashed = scaled[..., 0] ^ scaled[..., 1] ^ scaled[..., 2]
        return torch.remainder(hashed, self.table_size)

    def forward(self, x: torch.Tensor) -> torch.Tensor:
        """Encode normalized 3D coordinates x in [0, 1]^3 into (B, L * F) feature vectors."""
        level_outputs: list[torch.Tensor] = []
        for level_idx, table in enumerate(self.embeddings):
            # Equation 2: N_l = floor(N_min * b^l)
            n_l = math.floor(self.n_min * (self.growth_factor**level_idx))
            x_scaled = x * float(n_l)
            x_floor = torch.floor(x_scaled)
            weights = x_scaled - x_floor  # (B, 3) trilinear interpolation weights w_l

            # 8 voxel corners: (B, 8, 3)
            voxel_Ver = x_floor.to(torch.int64).unsqueeze(1) + self.corners.unsqueeze(0)
            indices = self._spatial_xor_hash(voxel_Ver)  # (B, 8)
            corner_feats = table[indices]  # (B, 8, F)

            # Trilinear interpolation weights for all 8 corners: (B, 8, 1)
            c_f = self.corners.to(x.dtype).unsqueeze(0)
            w_3d = c_f * weights.unsqueeze(1) + (1.0 - c_f) * (1.0 - weights.unsqueeze(1))
            w_corner = (w_3d[..., 0] * w_3d[..., 1] * w_3d[..., 2]).unsqueeze(-1)
            level_outputs.append((corner_feats * w_corner).sum(dim=1))

        return torch.cat(level_outputs, dim=-1)

def build_anisotropic_3d_covariance(
    log_scales: torch.Tensor, quaternions: torch.Tensor
) -> torch.Tensor:
    """Factorize 3D Gaussian covariance Sigma = R S S^T R^T (Kerbl et al., arXiv:2308.04079, Eq. 6)."""
    scales = torch.exp(log_scales)  # (N, 3) positive semi-definite axis scales
    q = F.normalize(quaternions, p=2, dim=-1)  # (N, 4) unit quaternion (r, x, y, z)
    r, x, y, z = q[:, 0], q[:, 1], q[:, 2], q[:, 3]

    rot = torch.stack(
        [
            1.0 - 2.0 * (y * y + z * z),
            2.0 * (x * y - r * z),
            2.0 * (x * z + r * y),
            2.0 * (x * y + r * z),
            1.0 - 2.0 * (x * x + z * z),
            2.0 * (y * z - r * x),
            2.0 * (x * z - r * y),
            2.0 * (y * z + r * x),
            1.0 - 2.0 * (x * x + y * y),
        ],
        dim=-1,
    ).reshape(-1, 3, 3)

    rs = rot * scales.unsqueeze(1)  # R @ S
    return torch.bmm(rs, rs.transpose(1, 2))  # R S S^T R^T: (N, 3, 3)

def project_mip_splatting_2d_gaussians(
    means_3d: torch.Tensor,
    cov_3d: torch.Tensor,
    opacities: torch.Tensor,
    max_sampling_rate_nu: torch.Tensor,
    view_matrix_w: torch.Tensor,
    cam_translation: torch.Tensor,
    fx: float,
    fy: float,
    s_3d: float = 0.2,
    s_2d_mip: float = 0.1,
) -> tuple[torch.Tensor, torch.Tensor]:
    """Project 3D Gaussians with Mip-Splatting 3D smoothing & 2D Mip filters (arXiv:2311.16493, Eq. 8 & 10)."""
    n_pts = cov_3d.shape[0]
    eye3 = torch.eye(3, device=cov_3d.device, dtype=cov_3d.dtype).unsqueeze(0)

    # 1. Mip-Splatting 3D Nyquist Smoothing Filter (Eq. 8): Sigma_reg = Sigma_k + (s_3d / nu_k^2) I
    filter_3d_var = (s_3d / torch.clamp(max_sampling_rate_nu, min=1e-6).pow(2)).view(n_pts, 1, 1)
    cov_3d_reg = cov_3d + filter_3d_var * eye3
    amp_3d = torch.sqrt(
        torch.clamp(torch.linalg.det(cov_3d), min=1e-12)
        / torch.clamp(torch.linalg.det(cov_3d_reg), min=1e-12)
    )

    # 2. Transform means to camera space and build EWA projective Jacobian J (arXiv:2308.04079, Eq. 5)
    t_cam = means_3d @ view_matrix_w.T + cam_translation.unsqueeze(0)
    tx, ty, tz = t_cam[:, 0], t_cam[:, 1], torch.clamp(t_cam[:, 2], min=0.2)
    zeros = torch.zeros_like(tx)
    j_mat = torch.stack(
        [
            fx / tz,
            zeros,
            -(fx * tx) / (tz * tz),
            zeros,
            fy / tz,
            -(fy * ty) / (tz * tz),
        ],
        dim=-1,
    ).reshape(n_pts, 2, 3)

    # Sigma_2D = J W Sigma_3D_reg W^T J^T
    jw = torch.matmul(j_mat, view_matrix_w.unsqueeze(0))
    cov_2d = torch.bmm(torch.bmm(jw, cov_3d_reg), jw.transpose(1, 2))

    # 3. Mip-Splatting 2D Mip Filter (Eq. 10): replaces 3DGS unnormalized screen dilation
    eye2 = torch.eye(2, device=cov_3d.device, dtype=cov_3d.dtype).unsqueeze(0)
    cov_2d_mip = cov_2d + s_2d_mip * eye2
    amp_2d = torch.sqrt(
        torch.clamp(torch.linalg.det(cov_2d), min=1e-12)
        / torch.clamp(torch.linalg.det(cov_2d_mip), min=1e-12)
    )

    effective_opacity = opacities.squeeze(-1) * amp_3d * amp_2d
    return cov_2d_mip, effective_opacity

def dust3r_confidence_pointmap_loss(
    pred_x1: torch.Tensor,
    pred_x2: torch.Tensor,
    gt_x1: torch.Tensor,
    gt_x2: torch.Tensor,
    raw_conf1: torch.Tensor,
    raw_conf2: torch.Tensor,
    alpha: float = 0.2,
) -> torch.Tensor:
    """DUSt3R Scale-Normalized Confidence-Aware 3D Pointmap Regression Loss (arXiv:2312.14132, Eq. 2-4)."""
    # Scale factors z = norm(X^{1,1}, X^{2,1}) and z_bar = norm(X_bar^{1,1}, X_bar^{2,1}) (Eq. 3)
    d1_pred = torch.linalg.norm(pred_x1, dim=-1)
    d2_pred = torch.linalg.norm(pred_x2, dim=-1)
    z_pred = torch.clamp(0.5 * (d1_pred.mean() + d2_pred.mean()), min=1e-6)

    d1_gt = torch.linalg.norm(gt_x1, dim=-1)
    d2_gt = torch.linalg.norm(gt_x2, dim=-1)
    z_gt = torch.clamp(0.5 * (d1_gt.mean() + d2_gt.mean()), min=1e-6)

    # Euclidean 3D distance per pixel (Eq. 2)
    l_regr1 = torch.linalg.norm((pred_x1 / z_pred) - (gt_x1 / z_gt), dim=-1)
    l_regr2 = torch.linalg.norm((pred_x2 / z_pred) - (gt_x2 / z_gt), dim=-1)

    # Strictly > 1 confidence C_i = 1 + exp(raw_conf) and confidence loss (Eq. 4)
    c1 = 1.0 + torch.exp(raw_conf1)
    c2 = 1.0 + torch.exp(raw_conf2)
    loss1 = (c1 * l_regr1 - alpha * torch.log(c1)).mean()
    loss2 = (c2 * l_regr2 - alpha * torch.log(c2)).mean()
    return loss1 + loss2

Engineering Decision Guide: Selecting the Right 3D Representation & Reconstruction Stack in 2026

When architecting a 3D vision, spatial computing, robotics SLAM, or virtual production pipeline in 2026, use the following empirical decision matrix derived from the primary benchmarks across arXiv:2003.08934, arXiv:2201.05989, arXiv:2308.04079, arXiv:2311.16493, and arXiv:2312.14132:

Deployment Scenario & Constraint Recommended Architecture Training / Inference Speed Memory Footprint Empirical Benchmark Justification
Real-Time 1080p/4K VR, Game Engine & Free-Zoom Navigation 3DGS + Mip-Splatting (`arXiv:2308.04079` + `arXiv:2311.16493`) 6–41m train | 134–197 FPS @ 1080p 270–734 MB explicit splats 27.79 dB Mip-NeRF360 in-dist; +10.98 dB at 1/8× zoom-out and +6.63 dB at 8× zoom-in vs 3DGS with 0 ms render overhead.
Ultra-Compact On-Disk Storage & 5-Second Rapid Scene Preview Instant-NGP Hash Grid (`arXiv:2201.05989`) 5s–5m train | 9.4–17.1 FPS @ 1080p 13 MB (Base) – 48 MB (Big) 15s training (31.41 dB) beats multi-hour NeRF (31.01 dB); 15–40× smaller memory footprint than uncompressed 3DGS.
Uncalibrated In-the-Wild Photos, Sparse Views (2–10 frames), or COLMAP Failure DUSt3R 512 + 3D Global Alignment (`arXiv:2312.14132`) 40 ms/pair (H100) + ~1–3s Global Align ViT-L/ViT-B checkpoint Zero intrinsics/extrinsics required; 96.2% RRA@15 on CO3Dv2 (vs 36.1% COLMAP+SPSG) and direct dense 3D pointcloud init for 3DGS.
Continuous Differentiable Volumetric Density & Exact Ray-Traced Physics NeRF / Mip-NeRF 360 (`arXiv:2003.08934`) 24–48h train | 0.06–0.14 FPS 5.0 MB – 8.6 MB weights Continuous volumetric transmittance $T(t)$ along arbitrary non-pinhole rays without discrete primitive sorting approximations.

Frequently Asked Questions (FAQ)

1. Why did original NeRF (arXiv:2003.08934) require sinusoidal positional encoding $\gamma(p)$ and a decoupled 8-layer + 1-layer MLP architecture? Standard ReLU Multi-Layer Perceptrons exhibit a severe spectral bias toward low-frequency functions, producing blurry, oversmoothed geometry and textures when queried directly on continuous 3D coordinates $\mathbf{x} = (x,y,z)$ (arXiv:2003.08934, Section 5.1 & Table 2). Lifting $\mathbf{x} \in [-1, 1]^3$ through $L = 10$ octaves of sinusoidal functions $(\sin(2^l \pi p), \cos(2^l \pi p))$ into a 60-dimensional space increases Realistic Synthetic $360^\circ$ PSNR by +2.24 dB (from 28.77 dB to 31.01 dB). At the same time, forcing the first 8 layers (256 channels) to predict volume density $\sigma(\mathbf{x})$ solely from spatial location $\mathbf{x}$ while injecting the $L=4$ encoded viewing direction $\gamma(\mathbf{d})$ only at layer 9 (128 channels) ensures multiview-consistent 3D geometry while adding +3.35 dB PSNR (31.01 dB vs. 27.66 dB) from non-Lambertian specular appearance.

2. How does Instant-NGP (arXiv:2201.05989) achieve high-fidelity 3D reconstruction without handling hash collisions via probing, bucketing, or pointer chaining? Instant-NGP combines two complementary mechanisms (arXiv:2201.05989, Section 3): first, it queries $L = 16$ independent resolution levels whose grid resolutions grow geometrically from $N_{\min} = 16$ (where vertices map 1-to-1 with zero collisions) up to $N_{\max} \in [512, 524288]$ (indexed via the branchless XOR hash $h(\mathbf{x}) = (\bigoplus_{i=1}^d x_i \pi_i) \bmod T$). Because the trilinearly interpolated $F=2$ features from all 16 levels are concatenated into a 32-dimensional vector, two distant points that collide at one fine level almost never collide simultaneously across the remaining 15 levels, enabling the downstream 64-neuron fused MLP to disambiguate them. Second, where collisions do occur at fine levels, the colliding training gradients average together—and because empty space ($\sigma = 0$) and occluded interior points ($T_i \approx 0$) contribute nearly zero gradient, sparse visible surface points automatically dominate the hash table updates.

3. Why is 3D Gaussian Splatting (arXiv:2308.04079) over $1,000\times$ faster at rendering 1080p scenes than Mip-NeRF360 while achieving higher SSIM (0.815 vs. 0.792)? Mip-NeRF360 must march rays backward from every pixel through a deep continuous MLP, resulting in 0.06 to 0.14 FPS at 1080p (arXiv:2308.04079, Table 1). In contrast, 3D Gaussian Splatting represents the scene explicitly with anisotropic 3D Gaussians ($\boldsymbol{\Sigma} = \mathbf{R}\mathbf{S}\mathbf{S}^T\mathbf{R}^T$ and degree-3 Spherical Harmonics with zero neural network layers), skips empty space entirely, projects surviving splats onto $16 \times 16$ screen tiles via the EWA affine Jacobian $\boldsymbol{\Sigma}' = \mathbf{J}\mathbf{W}\boldsymbol{\Sigma}\mathbf{W}^T\mathbf{J}^T$, and sorts all tile instances across the frame in a single 64-bit GPU Radix Sort ([32-bit Tile ID | 32-bit Depth]). Collaborative shared-memory front-to-back $\alpha$-blending with early opacity saturation termination renders Mip-NeRF360 at 134 FPS (30K) / 160 FPS (7K), Tanks&Temples at 154 FPS, and Deep Blending at 137 FPS.

4. Why does vanilla 3D Gaussian Splatting break down when zooming in or zooming out, and how does Mip-Splatting (arXiv:2311.16493) fix it with zero rendering overhead? In vanilla 3DGS (arXiv:2311.16493, Section 4 & Figure 1), adding an unnormalized screen-space dilation constant $\boldsymbol{\Sigma}^{2D}k + 0.3\mathbf{I}$ masks 3D Gaussians that have shrunk smaller than the 3D Nyquist sampling interval during training. When zooming in ($8\times$ sampling rate), the screen-space dilation shrinks relative to the 3D object, exposing degenerate needle-thin spikes and severe erosion artifacts (19.59 dB PSNR on Mip-NeRF360 $8\times$, Table 3). When zooming out ($1/8\times$ sampling rate), the unnormalized dilation inflates sub-pixel Gaussians without scaling down their peak opacity, causing brightness bloating (17.69 dB PSNR on Blender $1/8\times$, Table 2). Mip-Splatting enforces each Gaussian's multi-view Nyquist bound $\hat{\nu}_k = \max_n(f_n / d{kn})$ via a 3D smoothing filter ($\boldsymbol{\Sigma}_k + \frac{s}{\hat{\nu}_k^2}\mathbf{I}$, which is fused directly into the static 3D covariance after training with zero inference cost) and replaces 2D dilation with an amplitude-normalized 2D Mip filter carrying $\sqrt{|\boldsymbol{\Sigma}^{2D}_k| / |\boldsymbol{\Sigma}^{2D}_k + s\mathbf{I}|}$, lifting $1/8\times$ zoom-out PSNR to 28.67 dB (+10.98 dB) and $8\times$ zoom-in PSNR to 26.22 dB (+6.63 dB).

5. How does DUSt3R (arXiv:2312.14132) reconstruct 3D scenes and camera poses from uncalibrated image pairs without COLMAP Structure-from-Motion or known camera intrinsics? Traditional Multi-View Stereo requires known intrinsic matrices $K$ and extrinsic poses $P$ to triangulate rays in 3D space. DUSt3R (arXiv:2312.14132, Section 3.1–3.4) sidesteps projective calibration by training a CroCo-initialized Siamese ViT-Large Encoder + Cross-Attention ViT-Base Decoder + DPT Head on 8.5 million image pairs to directly regress two dense 3D pointmaps $X^{1,1}, X^{2,1} \in \mathbb{R}^{W \times H \times 3}$ in the shared coordinate frame of the first image $I^1$ in ~40 ms on an H100 GPU. When $N > 2$ images are provided, DUSt3R solves a 3D pairwise graph Global Alignment problem ($\min_{\chi, P, \sigma} \sum_{e \in \mathcal{E}} \sum_{v \in e} \sum_{i=1}^{HW} C_i^{v,e} \|\chi_i^v - \sigma_e P_e X_i^{v,e}\|_2$) in seconds via gradient descent, recovering globally aligned 3D point clouds, depth maps, pixel matches, focal lengths, and 6-DoF poses (96.2% RRA@15 on CO3Dv2 vs. 36.1% for COLMAP+SPSG).


Primary Technical Sources & Official References

  1. UC Berkeley, Google Research & UC San Diego — NeRF (arXiv:2003.08934 Full HTML Specification): Ben Mildenhall, Pratul P. Srinivasan, Matthew Tancik, Jonathan T. Barron, Ravi Ramamoorthi, and Ren Ng, "NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis," ECCV 2020 (Oral) / arXiv:2003.08934v2 — https://ar5iv.labs.arxiv.org/html/2003.08934
  2. UC Berkeley, Google Research & UC San Diego — NeRF (arXiv:2003.08934 Abstract & Citation Record): "NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis," arXiv:2003.08934 — https://arxiv.org/abs/2003.08934
  3. NVIDIA Research — Instant-NGP (arXiv:2201.05989 Full HTML Specification): Thomas Müller, Alex Evans, Christoph Schied, and Alexander Keller, "Instant Neural Graphics Primitives with a Multiresolution Hash Encoding," ACM Transactions on Graphics (SIGGRAPH 2022), Vol. 41, No. 4, Article 102 / arXiv:2201.05989 — https://ar5iv.labs.arxiv.org/html/2201.05989
  4. NVIDIA Research — Instant-NGP (arXiv:2201.05989 Abstract & Citation Record): "Instant Neural Graphics Primitives with a Multiresolution Hash Encoding," arXiv:2201.05989 — https://arxiv.org/abs/2201.05989
  5. Inria & Max-Planck-Institut für Informatik — 3D Gaussian Splatting (arXiv:2308.04079 Full HTML Specification): Bernhard Kerbl, Georgios Kopanas, Thomas Leimkühler, and George Drettakis, "3D Gaussian Splatting for Real-Time Radiance Field Rendering," ACM Transactions on Graphics (SIGGRAPH 2023), Vol. 42, No. 4, Article 139 / arXiv:2308.04079 — https://ar5iv.labs.arxiv.org/html/2308.04079
  6. Inria & Max-Planck-Institut für Informatik — 3D Gaussian Splatting (arXiv:2308.04079 Abstract & Citation Record): "3D Gaussian Splatting for Real-Time Radiance Field Rendering," arXiv:2308.04079 — https://arxiv.org/abs/2308.04079
  7. University of Tübingen, Tübingen AI Center, ShanghaiTech & CTU Prague — Mip-Splatting (arXiv:2311.16493 Full HTML Specification): Zehao Yu, Anpei Chen, Binbin Huang, Torsten Sattler, and Andreas Geiger, "Mip-Splatting: Alias-free 3D Gaussian Splatting," CVPR 2024 / arXiv:2311.16493 — https://ar5iv.labs.arxiv.org/html/2311.16493
  8. University of Tübingen, Tübingen AI Center, ShanghaiTech & CTU Prague — Mip-Splatting (arXiv:2311.16493 Abstract & Citation Record): "Mip-Splatting: Alias-free 3D Gaussian Splatting," arXiv:2311.16493 — https://arxiv.org/abs/2311.16493
  9. Aalto University & Naver Labs Europe — DUSt3R (arXiv:2312.14132 Full HTML Specification): Shuzhe Wang, Vincent Leroy, Yohann Cabon, Boris Chidlovskii, and Jerome Revaud, "DUSt3R: Geometric 3D Vision Made Easy," CVPR 2024 / arXiv:2312.14132v3 — https://arxiv.org/html/2312.14132v3
  10. Aalto University & Naver Labs Europe — DUSt3R (arXiv:2312.14132 Abstract & Citation Record): "DUSt3R: Geometric 3D Vision Made Easy," arXiv:2312.14132 — https://arxiv.org/abs/2312.14132
🔗 Share Post

Reading next story...

العودة إلى المنشورات