Finetuning-Free Personalization of Text to Image Generation via Hypernetworks

Sagar Shrestha, Gopal Sharma, Luowei Zhou, Suren KumararXiv 2025 · DOI

Introduction

Personalizing text-to-image (T2I) models, such as Stable Diffusion, involves teaching a model to recognize and generate specific subjects—like a particular pet or a unique human face. Traditionally, this has been achieved through "fine-tuning" methods like DreamBooth, which optimize model weights for each new subject. While effective, these methods are computationally expensive and slow, often requiring several minutes of GPU time per subject.

Recent alternatives have explored "fine-tuning-free" approaches using encoders or adapters to inject subject information into a frozen model. However, these methods frequently struggle with a fundamental trade-off: subject fidelity (how well the output matches the original subject) versus prompt alignment (how well the model follows complex instructions). This paper introduces a novel framework that bridges this gap, achieving high-fidelity personalization at the speed of a single inference pass.

Methodology

The proposed framework centers on two primary innovations: an end-to-end hypernetwork for weight prediction and a hybrid inference strategy.

1. Hypernetwork with $l_2$ Regularization

Instead of optimizing the diffusion model directly, the authors train a hypernetwork ($h_\phi$). This meta-model takes a few images of a subject as input and directly predicts Low-Rank Adaptation (LoRA) weights ($\beta_x$) for the frozen T2I model.

A critical challenge in hypernetwork-based personalization is overfitting. In traditional fine-tuning, researchers use "early stopping" to prevent the model from becoming so focused on the subject that it ignores the text prompt. Because a hypernetwork outputs weights in a single step, early stopping is not an option. The authors discovered that applying $l_2$ regularization to the predicted weights serves as an effective proxy for early stopping. By penalizing the magnitude of the predicted weights, the hypernetwork is forced to produce "gentle" edits that preserve the base model's ability to follow complex prompts.

Overview of the Hypernet training process and the HM-CFG inference strategy.

2. Hybrid-Model Classifier-Free Guidance (HM-CFG)

Standard Classifier-Free Guidance (CFG) often fails in personalized contexts because the model can become "obsessed" with the subject's identity at the expense of the scene's context. To solve this, the authors introduce Hybrid-Model Classifier-Free Guidance (HM-CFG).

As shown in Figure 1(b), HM-CFG blends the outputs of two models during the denoising process:

  • The Base Model ($\theta_0$): Excellent at understanding complex prompts and diverse styles.
  • The Personalized Model ($\theta_0 + \beta_x$): Contains the specific details of the subject.

By using a blending parameter ($\kappa$), users can precisely tune the trade-off between subject likeness and prompt adherence. This allows the model to inject a specific identity (e.g., "a [V] dog") into a generic scene (e.g., "a dog getting a haircut") without the identity-specific weights overriding the scene's logic.

Experimental Results

The researchers evaluated their method across several benchmarks, including CelebA-HQ (faces), AFHQ-v2 (animals), and DreamBench (general objects). To ensure the model could handle unseen categories, they trained an "open-category" version using Subject200k, a large-scale synthetic dataset generated via Flux.1.

Key Performance Metrics

  • Zero Test-Time Optimization: Unlike DreamBooth (3-5 minutes) or previous hypernetworks like HyperNetField (20 seconds), this method requires 0 seconds of additional training for a new subject.
  • State-of-the-Art Fidelity: On the AFHQ-v2 dataset, the method achieved a DINO score of 0.717, significantly outperforming previous hypernetwork attempts (0.495) and even surpassing some fine-tuned baselines.
  • Efficiency: The open-category model can be trained in just one hour on 4 GPUs, a significant improvement over competing methods like PatchDPO, which can take four hours on 8 GPUs.

Discussion and Limitations

The most significant insight of this work is that the norm of predicted LoRA weights serves as a reliable proxy for optimization time. By constraining this norm, the hypernetwork learns to balance identity injection with the preservation of the base model's generative intelligence.

However, some limitations remain. The authors noted that overfitting is more pronounced in smaller models like Stable Diffusion v1.5; larger architectures like SDXL or FLUX generally provide more robust results. Additionally, while the open-category model is highly versatile, there remains a slight performance gap compared to models trained specifically for a single category (e.g., a dedicated face-personalization model).

Conclusion

By combining a regularized hypernetwork with a hybrid guidance strategy, this research demonstrates that it is possible to achieve the quality of iterative fine-tuning with the speed of an encoder-based approach. This "finetuning-free" paradigm significantly lowers the barrier for high-quality, personalized image generation, enabling near-instant customization for end-users.

Summary updated

BibTeX
@misc{shrestha2025finetuning,
  author = {Sagar Shrestha and Gopal Sharma and Luowei Zhou and Suren Kumar},
  title = {{Finetuning-Free Personalization of Text to Image Generation via Hypernetworks}},
  year = {2025},
  eprint = {2511.03156},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.03156},
}
Figure