TL;DR
Mip-NeRF is a neural scene representation that renders each pixel as a cone of space instead of a single ray. Each piece of the cone is approximated by a Gaussian, and the network receives the average of the positional encoding over that Gaussian, so it learns the scene at every scale at once. On a multiscale benchmark the paper reports 60% lower average error than NeRF, with about 7% faster training and half the parameters.
Builds on: NeRF, Positional Encoding, Volume Rendering, Mipmap · Leads to: faster radiance-field methods such as Instant-NGP and 3D Gaussian Splatting, which keep the goal of rendering at any scale.
Why it mattered
NeRF showed that a small neural network could store a 3D scene and render new views of it with high quality. Its renderings had a flaw that the NeRF benchmark did not expose: when the training photographs were taken at different distances, close-up views came out blurred and distant views came out aliased. The Blender benchmark used by NeRF has every camera at one distance, so this flaw never shows there. The paper's contribution is to fix the flaw without the cost of brute-force supersampling, and to show that the fix also makes the model smaller.
The reason the work matters beyond its own numbers is the change of approach. Mip-NeRF takes the old computer graphics idea of prefiltering and moves it into a neural field. The same question, "what does one pixel really see?", now has an answer that a network can learn from. Later faster representations, including Instant-NGP and 3D Gaussian Splatting, are about speed and quality of rendering, and they keep the requirement that a scene should look right at any distance.
The problem
A NeRF renders a pixel by casting one ray from the camera's centre through the pixel and sampling points along it. Each sample queries a multilayer perceptron, and the colour of the pixel is a weighted sum of the samples. This is a point-sampling strategy, and it has the weakness described in Anti-Aliasing: a single ray through the centre of a pixel reads one spot of the scene, however large the pixel is in world coordinates. If the scene is seen from far away, a pixel covers much detail and one ray misses most of it. If the scene is seen up close, a pixel covers little detail and the network is asked to render a blurred version of its training images.
The standard fix is supersampling: cast several rays per pixel and average them. The paper rejects it for NeRF, because each ray needs hundreds of network evaluations, and so supersampling multiplies an already expensive cost. The question is whether one ray can be replaced by a region that the network can encode directly, at a cost close to one ray.
How it works
The pipeline runs once per pixel. The figure below shows the order of the stages.
flowchart LR A[Cone from the camera through the pixel] --> B[Split the cone into intervals] B --> C[Fit a Gaussian to each interval] C --> D[Integrated positional encoding] D --> E[One MLP gives density and colour] E --> F[Composite along the cone as in NeRF] F --> G[Resample the weights for the next pass] G --> E
Here is one interval traced through in one dimension, with two frequencies, to show what the encoding does. The interval is centred at and has variance , so its half-width is about half a unit.
- Cast a cone and split it. Mip-NeRF sets a cone from the camera centre through the pixel and chops it into pieces between two distances. The cone widens with distance, so later pieces cover more world space. Check: a piece near the camera is narrow, a piece far away is wide.
- Fit a Gaussian to the piece. The piece is a frustum, a truncated cone. The paper approximates it with a multivariate Gaussian whose mean sits on the axis of the cone and whose variance grows with the cone's width. Use and for the one-dimensional instance. Check: a point is most likely near the centre of the Gaussian, so the piece is represented by its middle and its spread.
- Take the encoding at the mean. A plain positional encoding of the single point with frequencies and gives , , , . Check: these four numbers are the encoding of one point, the thing NeRF uses.
- Average the encoding over the Gaussian. Each sine and cosine is multiplied by , where is the variance of that frequency. The first frequency has variance , so its factor is . The second has variance , so its factor is . The result is . Check: the attenuation is stronger at the higher frequency, which is the one that carries fine detail. A wide piece therefore carries less fine detail, and that is the anti-aliasing.
- Feed the encoding to one network. The MLP receives the attenuated features for each interval and returns a density and a colour. The same network is used for every scale. Check: a large interval gives small high-frequency values, so the network learns that the content is blurred at that scale.
- Composite as NeRF does. The colour of the pixel is the weighted sum of the interval colours, with weights from the densities. The sum is the usual volume rendering. Check: it is the same final step as NeRF, so only the inputs changed.
- Resample for detail. The weights from the first pass give a second set of intervals that are denser where the scene has content. The second pass reuses the same network. Check: one network does both passes, so the model has half the parameters of NeRF's two networks.
The key move is in step 4. The network never sees a sharp point. It sees a point blurred by the size of the piece it is looking at, and the blur is computed in closed form, so it costs little.
- frequency 1 (variance σ²)
- frequency 2 (variance 4σ²)
The math
NeRF's rendering equation, in the paper's notation, is the sum over the samples along a ray,
Here is the density at sample , is its colour, and is the fraction of light that gets through the samples before . Mip-NeRF keeps this equation and changes only what the network receives, as the next subsections describe.
A pixel's cone starts at the camera centre and runs in the direction through the pixel centre. Its radius at unit distance is , set to the pixel width scaled by so that the cone's cross-section matches the pixel's footprint. The frustum between two distances and is the part of the cone in that range.
Step 1 in symbols: the Gaussian
Each frustum is summarised by a midpoint and a half-width . The paper gives closed forms for the spread along the axis, , and across it, :
These are computed in a frame aligned with the cone. The world-space mean and covariance are
The first term stretches along the viewing direction and the second spreads across it. Only the diagonal of is needed later, which is what makes the method cheap.
Step 2 in symbols: the encoding
NeRF's positional encoding of a point with frequencies is
The integrated positional encoding averages over the Gaussian. Because is a sum of sines and cosines of a linear function of , the average of each term has a closed form. For a scalar ,
So the integrated encoding is
where is element-wise multiplication, and is the covariance after the encoding's frequency scaling. The paper shows that only its diagonal is needed:
The factor is the square of the frequency , which is why the second frequency of the walkthrough had variance .
Step 3 in symbols: the rule that makes the attenuation
Read the formula as: each frequency's sine and cosine is attenuated by . At a given , the factor falls faster for high , so fine detail disappears first. That is the same effect as the box and Gaussian filters in Anti-Aliasing, written as a per-feature factor rather than a convolution. The Plot above shows the two factors for the first two frequencies.
Worked examples
Take an interval with zero width, so , centred at , with frequencies and .
- The attenuation factor is for both frequencies.
- The sines and cosines are , , and .
- The integrated encoding is exactly those four numbers.
- Interpretation: a point is the special case of a zero-width interval, so the integrated encoding reduces to NeRF's positional encoding. Nothing is removed when there is nothing to average over.
Use , , and frequencies and , as in How it works.
- Frequency 1 has variance , so its factor is . Its sine is , and its cosine is .
- Frequency 2 has variance , so its factor is . Its sine is , and its cosine is .
- The integrated encoding is .
- Interpretation: the low-frequency terms keep most of their value, and the high-frequency terms are pulled toward zero. The network therefore sees less fine structure for this wide interval, which is the right answer for a pixel that covers a lot of world space.
The paper reports average error over PSNR, SSIM and LPIPS on its multiscale Blender benchmark (Table 1). NeRF scores 0.0288 and Mip-NeRF scores 0.0114. Training time is 3.05 hours for NeRF and 2.84 hours for Mip-NeRF, and the parameter counts are 1,191K and 612K.
- Average error reduction: , so 60% lower error, as the paper states.
- Training time reduction: , so about 7% faster.
- Parameter ratio: , so about half the size.
- At one eighth of full resolution, the PSNR is 35.602 for Mip-NeRF and 22.533 for NeRF. The gap is dB.
Interpretation: the largest gain is at the smallest scale, where NeRF's point samples are most wrong, and the cost is lower, not higher. Try it: on the single-scale Blender benchmark (Table 2) the average error falls from 0.0194 to 0.0161. By what percentage does it fall? Answer: , so 17%, which matches the paper's figure. The gain is smaller here, because that benchmark has no scale changes for the method to handle.
Results
Multiscale Blender benchmark (Table 1). The benchmark is the NeRF Blender scenes, box-downsampled by factors of 2, 4 and 8 and mixed into one training set. Mip-NeRF scores an average error of 0.0114, against 0.0288 for NeRF with the Jax implementation. Its PSNR is 32.629 at full resolution and 35.602 at one eighth, while NeRF goes from 31.196 to 22.533. Removing the integrated encoding is a large drop. "w/o IPE" falls back to point-sampled features, with a PSNR of 29.647 at one eighth resolution against 35.602 for the full model, and an average error of 0.0186. The paper says this degrades Mip-NeRF to the level of NeRF with centred pixels, so cone-casting and the integrated encoding are the primary factors. The area loss also contributes substantially.
Single-scale Blender benchmark (Table 2). Mip-NeRF scores an average error of 0.0161, against 0.0194 for NeRF in the same implementation. The paper reports the gain as about 17%, and the gain is most visible on small or thin objects.
Supersampling (Table 3). Supersampled NeRF is the accuracy target. Mip-NeRF nearly matches its accuracy while rendering about 22 times faster, and adding supersampling to Mip-NeRF improves it slightly.
Limits the paper states or implies. The benchmarks are synthetic Blender scenes, where the camera path and lighting are controlled. The multiscale benchmark was built by the authors to probe the failure mode, so its numbers show the effect of the method on that failure, not on every real capture. Mip-NeRF is about 7% faster than NeRF, so the speed gain is small, and the main benefit is accuracy and size. The "single MLP" variant is about 20% slower than Mip-NeRF, which shows that the one-network design is itself a choice that pays off.
Reading guide
- Section 1, Introduction. Read Figure 1 first: it contrasts a NeRF ray with a Mip-NeRF cone. Needs NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis and Positional Encoding.
- Section 2, Related work. Skim it for the context. Section 2.1 restates NeRF's rendering equation, which needs Volume Rendering.
- Section 3.1, Cone tracing and positional encoding. The core of the paper. Needs Fourier Transform for the Fourier-feature view of the encoding, Multivariate Gaussian for the Gaussian, Covariance Matrix for , and Integrated Positional Encoding for the result.
- Section 3.2, Architecture. The single MLP and the resampling that uses Importance Sampling to place fine samples. The formula for the smoothed weights is the detail to check here.
- Section 4, Results. Read Table 1 with the ablation rows, then Table 3. Needs Anti-Aliasing to read the ablation labels.
- Supplement. The derivations of the Gaussian moments, and the implementation details that differ from NeRF's.
Check yourself
QuestionRecall: what does Mip-NeRF replace NeRF's ray with, and what is it approximated by?Show answer
QuestionCompute: an interval has mean and variance along one coordinate, and the encoding has frequencies and . What is the attenuation factor for each frequency?Show answer
QuestionWhy: why does Mip-NeRF need only one MLP where NeRF uses two?Show answer
QuestionApplied: a camera is pulled back so that the pixel footprint doubles in world size. What happens to the variance of the Gaussian for a fixed interval, and what does the network see?Show answer
Sources
- Barron, J. T., Mildenhall, B., Tancik, M., Hedman, P., Martin-Brualla, R., Srinivasan, P. P. (2021). Mip-NeRF: A Multiscale Representation for Anti-Aliasing Neural Radiance Fields. arXiv:2103.13415. arxiv.org/abs/2103.13415
- Mildenhall, B., Srinivasan, P. P., Tancik, M., Barron, J. T., Ramamoorthi, R., Ng, R. (2020). NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis. arXiv:2003.08934. arxiv.org/abs/2003.08934
- Background: Mipmap (Wikipedia)