NERFIFY: A Multi-Agent Framework for Turning NeRF Papers into Code
Organizations: University of California, San Diego
Abstract
The proliferation of neural radiance field (NeRF) research requires significant efforts to reimplement papers before building upon them. We introduce NERFIFY, a multi-agent framework that reliably converts NeRF research papers into trainable Nerfstudio plugins, in contrast to generic paper-to-code methods and frontier models like GPT-5 that usually fail to produce runnable code. NERFIFY achieves domain-specific executability through six key innovations: (1) Context-free grammar (CFG): LLM synthesis is constrained by Nerfstudio formalized as a CFG, ensuring generated code satisfies architectural invariants. (2) Graph-of-Thought code synthesis: Specialized multi-file-agents generate repositories in topological dependency order, validating contracts and errors at each node. (3) Compositional citation recovery: Agents automatically retrieve and integrate components (samplers, encoders, proposal networks) from citation graphs of references. (4) Visual feedback: Artifacts are diagnosed through PSNR-minima ROI analysis, cross-view geometric validation, and VLM-guided patching to iteratively improve quality. (5) Knowledge enhancement: Beyond reproduction, methods can be improved with novel optimizations. (6) Benchmarking: An evaluation framework is designed for NeRF paper-to-code synthesis across 30 diverse papers. On papers without public implementations, NERFIFY achieves visual quality matching expert human code (+/-0.5 dB PSNR, +/-0.2 SSIM) while reducing implementation time from weeks to minutes. NERFIFY demonstrates that a domain-aware design enables code translation for complex vision papers, potentiating accelerated and democratized reproducible research. Code, data and implementations will be publicly released.
Figures & tables
| Paper | Reported | Human Impl. | Nerfify (Ours) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| PSNR | SSIM | LPIPS | PSNR | SSIM | LPIPS | PSNR | SSIM | LPIPS | |
| KeyNeRF [ 38 ] | 25.65 | 0.89 | 0.11 | 25.70 | 0.89 | 0.12 | 26.12 | 0.90 | 0.09 |
| mi-MLP NerF [ 66 ] | 24.70 | 0.89 | 0.09 | 22.64 | 0.87 | 0.15 | 22.85 | 0.87 | 0.15 |
| ERS [ 46 ] | 27.85 | 0.94 | 0.06 | 26.87 | 0.90 | 0.12 | 27.02 | 0.90 | 0.12 |
| TVNeRF [ 61 ] | 27.44 | 0.93 | 0.08 | 26.81 | 0.92 | 0.12 | 27.30 | 0.92 | 0.10 |
| Metric | Paper2Code | AutoP2C | GPT-5 | R1 | Nerfify |
|---|---|---|---|---|---|
| Imports Resolve | ✓ | × | ✓ | ✓ | ✓ |
| Compiles/Trainable | × | × | × | × | ✓ |
| Training Stability | × | × | × | × | ✓ |
| Converges to Paper Results | × | × | × | × | ✓ |
| Method | Original Repository | Nerfify | ||||
|---|---|---|---|---|---|---|
| PSNR | SSIM | LPIPS | PSNR | SSIM | LPIPS | |
| Vanilla NeRF [ 32 ] | 31.36 | 0.95 | 0.04 | 31.36 | 0.95 | 0.04 |
| Nerfacto [ 47 ] | 20.36 | 0.82 | 0.22 | 20.36 | 0.82 | 0.22 |
| Sampler [ 24 ] | 29.21 | - | 0.04 | 30.13 | 0.97 | 0.03 |
| InfoNeRF [ 20 ] | 18.27 | 0.81 | 0.23 | 17.87 | 0.69 | 0.44 |
| Paper | Paper2Code | AutoP2C | R1 | GPT-5 | Nerfify | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| C | I | M | W | Score | C | I | M | W | Score | C | I | M | W | Score | C | I | M | W | Score | C | I | M | W | Score | |
| Mip-NeRF [ 2 ] | 0.83 | 0.17 | 0.00 | 0.83 | 0.85 | 0.17 | 0.17 | 0.66 | 0.25 | 0.20 | 0.67 | 0.17 | 0.16 | 0.67 | 0.58 | 0.50 | 0.30 | 0.20 | 0.60 | 0.58 | 1.00 | 0.00 | 0.00 | 1.00 | 1.00 |
| BioNeRF [ 39 ] | 0.30 | 0.40 | 0.30 | 0.40 | 0.35 | 0.10 | 0.30 | 0.60 | 0.10 | 0.15 | 0.70 | 0.20 | 0.10 | 0.70 | 0.75 | 0.80 | 0.10 | 0.10 | 0.80 | 0.82 | 1.00 | 0.00 | 0.00 | 1.00 | 1.00 |
| PyNeRF [ 48 ] | 0.50 | 0.30 | 0.20 | 0.60 | 0.58 | 0.00 | 0.10 | 0.90 | 0.10 | 0.03 | 0.30 | 0.60 | 0.10 | 0.70 | 0.68 | 0.40 | 0.30 | 0.30 | 0.80 | 0.52 | 1.00 | 0.00 | 0.00 | 0.90 | 0.97 |
| TensoRF [ 5 ] | 0.20 | 0.30 | 0.50 | 0.30 | 0.12 | 0.10 | 0.20 | 0.70 | 0.15 | 0.28 | 0.60 | 0.20 | 0.20 | 0.70 | 0.65 | 0.70 | 0.10 | 0.20 | 0.75 | 0.72 | 1.00 | 0.00 | 0.00 | 0.95 | 0.98 |
| Tetra-NeRF [ 22 ] | 0.13 | 0.25 | 0.63 | 0.20 | 0.22 | 0.00 | 0.13 | 0.88 | 0.00 | 0.08 | 0.63 | 0.25 | 0.13 | 0.70 | 0.72 | 0.50 | 0.25 | 0.25 | 0.60 | 0.58 | 1.00 | 0.00 | 0.00 | 1.00 | 1.00 |
| Configuration | Score | Trainable | Correct Novelties |
| (%) | Impl. (C) | ||
| Nerfify (Full) | 0.98 | 100 | 1.00 |
| Knowledge Sources: | |||
| w/o In-context Examples (Stage 1) | 0.71 | 90 | 1.00 |
| w/o citation recovery (Stage 2) | 0.68 | 100 | 0.65 |
| w/o Both | 0.58 | 90 | 0.65 |
Agentic Code Generation
Agentic code generation uses AI agents to plan, write, test, and revise executable programs with tools and feedback.
See all 124 papers