HyperNet Fields: Efficiently Training Hypernetworks without Ground Truth by Learning Weight Trajectories

Eric Hedlin, Munawar Hayat, Fatih Porikli, Kwang Moo Yi, Shweta Mahajan

Abstract

Hypernetworks—models that predict weights for other neural networks—traditionally require expensive "ground truth" optimized weights for training. We introduce HyperNet Fields, a novel framework that trains hypernetworks by learning to model the entire optimization trajectory through gradient supervision. By matching the direction of task-loss improvement rather than target weights, our method achieves state-of-the-art results in image personalization and 3D reconstruction while reducing training compute by approximately 4x.

Introduction

Hypernetworks enable "amortized optimization," allowing a model to predict the necessary weights for a specific task (e.g., personalizing Stable Diffusion to a face or reconstructing a 3D shape) in a single forward pass. However, a significant bottleneck exists: training these models typically requires a massive dataset of pre-optimized weights. For a dataset of 15,000 samples, this pre-computation can consume over 50 GPU days, often exceeding the cost of training the hypernetwork itself.

HyperNet Fields addresses this "chicken and egg" problem by asking: can we train a hypernetwork to predict optimal weights without ever seeing a "perfect" set of weights during training?

Overview of HyperNet Fields showing weight space trajectories and example generations.

Methodology: Learning Weight Trajectories

The core innovation is treating the hypernetwork as a "field" that maps an input and a timestep $t$ to a point along an optimization trajectory.

Gradient Supervision

Instead of supervised learning against target weights $\theta^*$, HyperNet Fields uses the gradient of the task loss. The training process follows these steps:

  1. The hypernetwork predicts weights $\theta_t$ for a sampled timestep.
  2. It predicts weights $\theta_{t+1}$ for the subsequent step.
  3. The model is supervised by forcing the predicted step ($\theta_{t+1} - \theta_t$) to align with the actual gradient direction ($\nabla \theta_t$) that minimizes the task loss at that point.
The HyperNet Fields training pipeline utilizing gradient supervision and MSE loss.

By matching the direction of improvement across the entire trajectory, the hypernetwork naturally learns to find the converged weights without explicit ground truth.

Experiments and Results

The framework was evaluated across two domains: personalized image generation (using CelebA-HQ and AFHQ datasets) and 3D shape reconstruction (using ShapeNet and Objaverse).

Performance and Efficiency

  • Computational Savings: The method reduces total training costs (including data preparation) by roughly 4x compared to state-of-the-art methods like HyperDreamBooth.
  • Inference Speed: Personalized weights are generated in just 0.3 seconds, a massive improvement over the ~5 minutes required for standard DreamBooth fine-tuning.
  • Quality: In image personalization, HyperNet Fields achieved competitive or superior alignment scores (DINO and CLIP-I) compared to DreamBooth and Textual Inversion.
  • Generalization: The same "gradient matching" approach successfully learned weights for Occupancy Networks in 3D tasks, proving the framework is task-agnostic.

Discussion

HyperNet Fields treats weight space as a continuous field, allowing the model to learn the dynamics of weight evolution. A key observation is the model's "fast adaptation" behavior; after only 100 iterations, the field can generate weights that produce visually similar results to the input, capturing the general trend of the trajectory early on.

Limitations and Future Work

While effective, the current hypernetwork predicts a large number of parameters, which is memory-intensive. Future work could integrate this approach with more compact parameterizations like LoRA. Additionally, while tested on 30,000 images, scaling to web-scale datasets and handling highly non-convex loss landscapes remain open challenges.

Conclusion

HyperNet Fields provides a path toward efficient, ground-truth-free hypernetwork training. By supervising the trajectory rather than the destination, it significantly lowers the barrier to deploying amortized optimization for complex generative and reconstructive tasks.

Summary updated

BibTeX
@inproceedings{hedlin2025hypernet,
  author = {Eric Hedlin and Munawar Hayat and Fatih Porikli and Kwang Moo Yi and Shweta Mahajan},
  title = {{HyperNet Fields: Efficiently Training Hypernetworks without Ground Truth by Learning Weight Trajectories}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02061},
}
Figure