Abstract
Light Field Transformers (LFTs) have emerged as a promising alternative to Neural Radiance Fields (NeRFs) for 3D scene representation, offering faster rendering by querying rays directly. However, LFTs face a significant "quartic bottleneck": computational and memory costs scale with the fourth power of image resolution due to the quadratic scaling of the attention mechanism relative to the number of pixels. We introduce Ray-Patch, a novel querying method that addresses this bottleneck. By querying the transformer once per image patch instead of once per pixel and employing a convolutional decoder to reconstruct fine details, Ray-Patch reduces memory overhead by up to two orders of magnitude and achieves a 10x rendering speedup while maintaining or even improving visual fidelity.
The Quartic Bottleneck in Light Field Transformers
Neural rendering techniques like NeRFs are computationally expensive because they require sampling multiple points along every ray for every pixel. LFTs mitigate this by representing scenes as sets of rays that can be queried directly via attention mechanisms. Despite this improvement, the attention matrix's size scales quadratically with the number of queries. Since the number of queries typically equals the number of pixels ($h \times w$), the overall complexity scales as $O(h^2 w^2)$. This quartic scaling makes high-resolution rendering (e.g., $960 \times 1280$) prohibitively expensive, often exceeding the VRAM capacity of modern GPUs like the A100.
The Ray-Patch Method
Ray-Patch is a "plug-and-play" modification designed to alleviate the scaling issues of LFT architectures like SRT, OSRT, and DeFiNe. The core innovation lies in decoupling global scene understanding from local texture reconstruction by exploiting spatial redundancy in light fields.
- Patch-Based Querying: Instead of querying a ray for every pixel, the target image is partitioned into $k \times k$ patches. A single query ray is cast through the center of each patch.
- Feature Extraction: The transformer decoder processes these sparse patch-level queries against the scene's latent representation $\mathcal{Z}$ to produce a grid of high-level feature vectors $Z_{tp}$.
- Convolutional Decoding: These feature vectors are reshaped and passed through a transposed convolutional decoder (based on the GIRAFFE architecture). This CNN "unpacks" each feature vector into the corresponding $k \times k$ RGB or depth values, effectively filling in the local details.
By reducing the number of queries by a factor of $k^2$, the size of the attention matrix is reduced by $k^4$, drastically lowering the memory and computational footprint.
Experimental Evaluation
The authors evaluated Ray-Patch on the MultiShapeNet-Easy (MSN-Easy) synthetic dataset and the real-world ScanNet dataset.
Efficiency and Speed
The impact on resource consumption is dramatic. For a $480 \times 640$ resolution, the baseline DeFiNe model requires significant VRAM, whereas Ray-Patch (with $k=16$) maintains a nearly flat memory profile. As shown in the results below, Ray-Patch enables high-resolution rendering that would otherwise be impossible on standard hardware.
Key performance metrics include:
- Speedup: A 10x increase in rendering speed for high-resolution tasks.
- Memory Efficiency: VRAM requirements for a $960 \times 1280$ image drop from ~75GB to 0.3GB with $k=16$.
- Training Time: Reduced by nearly 4x on the MSN-Easy benchmark (e.g., from 5.6 days to 1.7 days).
Visual Quality
Surprisingly, Ray-Patch often improves visual quality. On ScanNet, the Ray-Patch version of DeFiNe achieved a PSNR of 24.54 compared to the baseline's 23.46, while running 30x faster (208 fps vs 7 fps). Qualitatively, the convolutional decoder helps produce sharper edges and more coherent textures compared to the sometimes "diffuse" output of standard LFTs.
Discussion and Limitations
While Ray-Patch offers significant advantages, it introduces a trade-off between speed and detail. Larger patch sizes ($k=16$) can occasionally lead to "tessellation" artifacts if the convolutional decoder cannot adequately reconstruct complex local geometry. Additionally, the patch-based approach may interfere with unsupervised segmentation tasks, as seen in experiments with OSRT, where the model struggled to group discrete objects across patch boundaries.
Conclusion
Ray-Patch effectively breaks the quartic bottleneck of Light Field Transformers, making high-resolution neural rendering accessible on consumer-grade hardware. By leveraging the spatial redundancy of light fields and combining the global reasoning of transformers with the local efficiency of CNNs, it sets a new standard for efficient 3D scene representation.
Summary updated