Scaling Optimization-Oriented Hypernetworks for Implicit Neural Representations

Lulu Cai, Hanxiang Ren, Siyan Dong, Li Sun, Jiefeng Wu, Youyi Zheng, Yi Ma, Yanchao YangNeurIPS 2026

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:

  1. 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.
  2. 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.
Figure 2: Two tokenization schemes for the layer-i weight matrix Wi. Left (ours): the output-neuron- centric scheme groups each row of Wi into one token ωi,j, placing each output neuron’s parameters into a single, co-adapted unit. Right: The input-neuron-centric scheme groups the outgoing weights of one input neuron into a single token. These weights feed into different output neurons, which may encode different features.
  • 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.
Architecture of one iterative optimization-mirroring module
  • 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.
Figure 3: Visual comparison of generated INRs across four datasets. Left: 2D INR generation on (a) CelebA-HQ and 3D shape reconstruction on (b) ShapeNet Chairs. Right: 2D INR generation on (a) ImageNet and novel view synthesis on (b) Pre-trained NeRF. Columns show HyPoGen, LDMI, Ours, and the ground truth (GT). Qualitative results on ERA5, as well as additional samples for all four datasets shown here, are provided in Appendix 6.3.1.

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

Abstract

We present a hypernetwork that generates the parameters of an implicit neural representation (INR) for a given signal in a single forward pass, without test-time optimization. Existing hypernetworks for this problem either ignore the chain-rule structure of the test-time optimization that produces an INR or, when they preserve it, instantiate the structure with MLPs whose parameter count grows quartically in target-network width. Our central contribution is to show that this parameter-count cost is structural to the MLP instantiation, not to the optimization-oriented principle of preserving chain-rule structure, and to resolve it by replacing the MLP body with attention. The resulting hypernetwork combines three design choices: an output-neuron-centric tokenization that aligns the token axis with each layer's output-neuron axis; an information-flow consistency rule that fixes the role of every cross-attention module from the representation its output should occupy; and a token-space iterative rollout that realizes the five quantities one optimization step on the target INR computes as five cross-attention modules with parameter count independent of target-network width. Across five 2D and 3D INR generation benchmarks, our method outperforms the state-of-the-art single-pass and optimization-oriented baselines; scales to target-network widths at which the MLP-based optimization-oriented paradigm exhausts GPU memory; and produces the highest result on NeRF generation without ground-truth INR weights supervision.
BibTeX
@inproceedings{cai2026scaling,
  author = {Lulu Cai and Hanxiang Ren and Siyan Dong and Li Sun and Jiefeng Wu and Youyi Zheng and Yi Ma and Yanchao Yang},
  title = {{Scaling Optimization-Oriented Hypernetworks for Implicit Neural Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=a2C8sbYUCs},
}
Figure