TL;DR
Implicit Neural Representations (INRs)—like NeRFs—usually require thousands of slow gradient steps to fit a single image or 3D scene. While "hypernetworks" can generate these weights in a single forward pass, existing approaches either ignore the mathematical structure of gradient descent or blow up GPU memory trying to mimic it. This paper shows how to bake the exact chain-rule mechanics of backpropagation into an attention-based hypernetwork, generating high-fidelity 2D and 3D neural representations instantly while keeping parameter counts delightfully small.
What Problem Does This Paper Address?
Think of an Implicit Neural Representation (INR) as a tiny neural network trained to memorize a single signal: feed it $(x, y)$ coordinates, and it outputs a pixel color; feed it 3D coordinates, and it outputs volume density. It is a continuous, resolution-free way to represent data. The catch? Fitting an INR from scratch for every new image or 3D object takes minutes or hours of gradient descent ("test-time optimization").
To skip the wait, researchers use hypernetworks—larger networks that look at a signal and spit out the target INR’s weights in one go. Historically, hypernetworks have forced an uncomfortable choice between two paradigms:
- Single-pass (attention-based) hypernetworks: They scale nicely to big networks, but they predict all layers' weights as a flat, independent list. They ignore the fact that neural network layers are deeply coupled via the chain rule.
- Optimization-oriented hypernetworks (like HyPoGen): They unroll a few steps of fake "gradient descent" inside their architecture, respecting inter-layer dependencies. However, because they use MLPs to predict MLP weights, their parameter count grows quartically—$\mathcal{O}(n^4)$—with the width $n$ of the target INR. Make your target INR slightly wider, and your GPU runs out of memory.
The authors ask: can we keep the principled, chain-rule structure of optimization-oriented hypernetworks without the quartic memory explosion?
Methods
The authors prove that the $\mathcal{O}(n^4)$ bottleneck isn't caused by mimicking optimization—it's caused by using MLPs to do it. By replacing MLPs with cross-attention, parameter projections are shared across tokens, decoupling the hypernetwork's size from the target INR's width.
To make attention act like backpropagation, they introduce three crisp design choices:
- Output-Neuron-Centric Tokenization: How do you chop a weight matrix $W_i$ into tokens? The authors slice it row by row rather than column by column. Because forward passes multiply rows of $W_i$ by previous activations, each row contains all the incoming weights needed to compute a single output neuron. Every token now represents one complete, co-adapted output neuron.
- Token-Space Iterative Rollout: When you run one step of backpropagation on a layer, calculus demands five specific quantities: the forward activation, two local Jacobians (with respect to activations and weights), the backward-propagated loss signal, and the final weight gradient. The authors build an iterative module containing five cross-attention blocks—one dedicated to computing each of these five quantities in token space, rolled out over $T$ refinement steps.
- Information-Flow Consistency: With five cross-attention blocks, how do you decide which input is Query ($Q$), Key ($K$), and Value ($V$)? In attention, the output is a convex combination of $V$, and its length matches $Q$. The authors establish a simple, universal rule: whichever input already lives in the representational "role" the block needs to output becomes $K$ and $V$; the other input becomes $Q$.
Datasets
The authors evaluate across five standard benchmarks spanning 2D and 3D domains (no new datasets are introduced):
- 2D Signals: CelebA-HQ (faces), ImageNet (1.28M diverse natural images), and ERA5 (global climate/temperature measurements).
- 3D Signals: ShapeNet Chairs (3D voxel occupancy grids) and Pre-trained NeRF (103K 3D objects for novel view synthesis).
Key Insights and Ideas
- Row vs. column slicing isn't arbitrary—it's structural: Slicing weight matrices by columns groups weights that fan out to completely unrelated features, tanking performance by up to 3.1 dB PSNR. Slicing by rows aligns the attention token axis directly with the output-neuron axis, where activations, Jacobians, and gradients naturally live.
- QKV roles matter enormously: Simply swapping $Q$ with $K/V$ in the cross-attention blocks—keeping the exact same parameter count—causes PSNR to plummet by over 4 dB across datasets. Routing "values" from the matching mathematical space is essential.
- Better than raw gradients at large steps: When inspecting the learned token updates, the hypernetwork doesn't just mimic standard gradient descent—it improves on it. At full step sizes, standard norm-matched negative gradients overshoot and increase reconstruction error, whereas the hypernetwork’s learned updates smoothly and consistently drive the loss down.
- Freedom from ground-truth weights: Many 3D weight-space models require a pre-computed dataset of thousands of trained NeRFs to supervise training. This method achieves its highest NeRF score trained purely on rendered 2D images, bypassing expensive ground-truth weight collection.
Key Results
Across all five benchmarks, the proposed hypernetwork beats both single-pass attention baselines (LDMI) and MLP-based optimization baselines (HyPoGen):
- 2D Reconstruction: Achieves 27.7 dB PSNR on CelebA-HQ (+2.9 dB over LDMI; HyPoGen collapses to 16.2 dB) and 22.9 dB on ImageNet (where HyPoGen fails to converge entirely). On ERA5 climate data, it reaches 49.3 dB (+4.7 dB over LDMI).
- 3D & NeRF Generation: Reaches 97.9% occupancy accuracy on ShapeNet Chairs. On Pre-trained NeRF, its image-only supervision setting hits 28.8 dB PSNR, outperforming all baselines even when they are given ground-truth NeRF weights.
- Efficiency & Scaling: On Pre-trained NeRF, it uses 5–6$\times$ less GPU memory (2.51 GB vs. 12.47 GB for LDMI and 14.51 GB for HyPoGen) and runs faster at inference. When scaling target INR widths from 128 up to 1024, HyPoGen's parameters skyrocket until it runs out of memory, whereas the proposed model scales effortlessly with minimal parameter growth.
Limitations and Future Work
The main text does not include a dedicated limitations section (with finer edge cases like hidden-neuron permutation symmetry and layer fusion deferred to the appendices). Looking forward, the authors note that reconciling single-pass scalability with chain-rule structure isn't restricted to coordinate-based MLPs—this exact recipe of neuron-centric tokenization and role-driven attention rollout opens the door to amortizing structured optimization in broader meta-learning, learned optimizers, and general neural network weight generation.
Summary updated