                             Hyper-Transforming Latent Diffusion Models


                           Ignacio Peis 1 2 Batuhan Koyuncu 3 4 Isabel Valera 3 Jes Frellsen 1 2


                          Abstract
       We introduce a novel generative framework for
       functions by integrating Implicit Neural Represen-
       tations (INRs) and Transformer-based hypernet-
       works into latent variable models. Unlike prior ap-
       proaches that rely on MLP-based hypernetworks
       with scalability limitations, our method employs
       a Transformer-based decoder to generate INR pa-
       rameters from latent variables, addressing both
       representation capacity and computational effi-
       ciency. Our framework extends latent diffusion                      ×0.125     ×0.25     ×0.5      ×1        ×2        ×4

       models (LDMs) to INR generation by replacing                        Figure 1: Samples from LDMI at multiple resolutions.
       standard decoders with a Transformer-based hy-
       pernetwork, which can be trained either from
       scratch or via hyper-transforming—a strategy that
       fine-tunes only the decoder while freezing the pre-               ities. In contrast, Implicit Neural Representations (INRs)
       trained latent space. This enables efficient adapta-              have emerged as a powerful alternative that parametrises sig-
       tion of existing generative models to INR-based                   nals as continuous functions (Sitzmann et al., 2020; Milden-
       representations without requiring full retraining.                hall et al., 2021). By leveraging INRs, generative models
       We validate our approach across multiple modali-                  can represent complex data distributions at arbitrary resolu-
       ties, demonstrating improved scalability, expres-                 tions, yet learning expressive distributions over INR param-
       siveness, and generalization over existing INR-                   eters remains a fundamental challenge.
       based generative models. Our findings establish a                 A common approach to modelling distributions over INRs
       unified and flexible framework for learning struc-                is to use hypernetworks (Ha et al., 2017), which generate
       tured function representations.                                   the weights and biases of an INR conditioned on a latent
                                                                         code (Dupont et al., 2022b; Koyuncu et al., 2023). How-
                                                                         ever, MLP-based hypernetworks suffer from scalability bot-
1. Introduction                                                          tlenecks, particularly when generating high-dimensional
Generative modelling has seen remarkable advances in re-                 INRs, as direct parameter regression constrains flexibility
cent years, with diffusion models achieving state-of-the-art             and expressiveness. More recently, Transformer-based hy-
performance across multiple domains, including images,                   pernetworks have been proposed to alleviate these issues,
videos, and 3D synthesis (Ho et al., 2020; Dhariwal &                    introducing attention mechanisms to efficiently predict INR
Nichol, 2021; Rombach et al., 2022). A key limitation of ex-             parameters (Chen & Wang, 2022; Zhmoginov et al., 2022).
isting generative frameworks, however, is their reliance on              Nonetheless, existing approaches such as Trans-INR (Chen
structured output representations, such as pixel grids, which            & Wang, 2022) remain deterministic, limiting their applica-
constrain resolution and generalisation across data modal-               bility in probabilistic frameworks.
   1
    Department of Applied Mathematics and Computer Science,              In this work, we introduce a novel framework for INR gen-
Technical University of Denmark, Copenhagen, Denmark 2 Pioneer           eration, named Latent Diffusion Models of INRs (LDMI),
Centre for Artificial Intelligence, Copenhagen, Denmark 3 Saarland       that incorporates our proposed Hyper-Transformer Decoder
University, Saarbrücken, Germany 4 Zuse School ELIZA. Corre-            (HD), a probabilistic Transformer-based decoder for learn-
spondence to: Ignacio Peis <ipeaz@dtu.dk>.                               ing distributions over INR parameters. Our approach com-
Proceedings of the 42 nd International Conference on Machine             bines the strengths of hypernetworks with recent advances
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025              in meta-learning for INRs while integrating into latent
by the author(s).                                                        diffusion-based generative frameworks. Unlike previous

                                                                     1
                                         Hyper-Transforming Latent Diffusion Models

works, our HD decoder employs a full Transformer archi-               LDMs first encode data into a lower-dimensional latent
tecture, where a Transformer Encoder processes latent vari-           space z ∈ Rd , where d ≪ D, using a probabilistic encoder
ables, and a Transformer Decoder generates INR parameters             Eψ (·) to produce rich latent representations qψ (z|y). These
via cross-attention. This design enables flexible, probabilis-        are decoded via Dλ (·) to accurately recover data samples by
tic generation of neural representations across diverse data          modeling the conditional distribution pλ (y|z). A β-VAE
modalities, surpassing the deterministic limitations of prior         (Higgins et al., 2017) with low β, a Vector-Quantized VAE
Transformer-based hypernetworks (Chen & Wang, 2022;                   (VQ-VAE; van den Oord et al., 2017), or VQGAN (Esser
Zhmoginov et al., 2022).                                              et al., 2021) are suitable choices for learning the structured
                                                                      latent space. Additionally, for image data, perceptual losses
Our proposed framework, LDMI, supports two training
                                                                      can be incorporated to further enhance generation quality
paradigms: (i) full training, where the model is trained from
                                                                      (Larsen et al., 2016; Johnson et al., 2016; Hou et al., 2017;
scratch alongside a latent diffusion model (LDM; Rom-
                                                                      Dosovitskiy & Brox, 2016; Hou et al., 2019).
bach et al., 2022), and (ii) hyper-transforming, where a
pre-trained LDM is adapted by replacing its decoder with              In the second stage,
                                                                                     R      LDMs approximate the aggregate poste-
the HD, allowing for efficient transfer learning without re-          rior qψ (z) = qψ (z|y)pdata (y) dy with a diffusion model
training the entire generative pipeline. This flexibility en-         pθ (z), shifting the generative modeling task from data space
ables LDMI to scale effectively while leveraging existing             to latent space and significantly reducing computational cost.
pre-trained diffusion models.                                         While both continuous-time SDE-based approaches (Song
                                                                      et al., 2021b) and discrete Markov chain formulations (Ho
Contributions Our key contributions can be summarized
                                                                      et al., 2020; Song et al., 2021a) are viable, we follow the
as follows:
                                                                      DDPM-based approach as adopted in the original LDM
• We introduce the HD decoder, a full Transformer-based               implementation (Rombach et al., 2022).
  probabilistic decoder for learning distributions over INR           DDPMs (Ho et al., 2020) train using an objective de-
  parameters.                                                         rived from a variational lower bound on the negative log-
• We integrate our method into Latent Diffusion Models                likelihood, reparameterized for efficiency as a denoising
  (Rombach et al., 2022), with support both full training             task. This results in a simplified loss that closely resembles
  and hyper-transforming, enabling efficient adaptation of            denoising score matching (Song et al., 2021b), and is widely
  pre-trained models. We refer to this approach as LDMI.              used in state-of-the-art models (Saharia et al., 2022; Dhari-
• The HD decoder achieves scalability and generalisation              wal & Nichol, 2021). For latent diffusion, the loss is applied
  across data modalities, overcoming the bottlenecks of               to z ∼ qψ (z|y), yielding:
  MLP-based hypernetworks and extending beyond deter-                                                h                  i
  ministic Transformer-based methods.                                            LDDPM = Ey,z,t,ϵ ∥ϵ − ϵθ (zt , t)∥2 ,           (1)

• We demonstrate the effectiveness of our approach on var-            where y ∼ pdata (y), z ∼ qψ (z|y), t ∼ U(1, T ), and ϵ ∼
  ious generative tasks, showcasing its superiority in mod-           N (0, I). This objective corresponds to predicting the added
  elling high-resolution, structured data.                            noise in a fixed forward process, effectively denoising zt
                                                                      toward the original latent z.
By integrating probabilistic INR modelling within diffusion-
based generative frameworks and efficient latent-to-
                                                                      Sampling In DDPM, the reverse posterior density is no
parameters generation, our work establishes a new direc-
                                                                      longer Markovian and coincides with the inference model
tion for flexible and scalable generative modelling with
                                                                      proposed later in DDIM (Song et al., 2021a). In DDIM, it is
unconstrained resolution. The following sections provide
                                                                      demonstrated that faster sampling can be achieved without
a detailed description of the background (Section 2), the
                                                                      retraining, simply by using the posterior approximation for
proposed methodology (Section 3), and empirical results
                                                                      the estimation ẑ, which re-defines the generative process as:
(Section 4).                                                                                  (            
                                                                                               N ẑ, σ12 I       if t = 1
                                                                             pθ (zt−1 |zt ) =                                   (2)
2. Background and Related Work
                                                                                                               
                                                                                               q zt−1 |zt , ẑ   otherwise,
2.1. Latent Diffusion Models                                          and uses that an estimation of ẑ can be computed by
Latent Diffusion Models (LDM; Rombach et al., 2022) are a                                    1        √                    
                                                                         ẑ = fθ (zt , t) = √     zt − 1 − ᾱt · ϵθ (zt , t) , (3)
class of generative models that learn efficient representations                               ᾱt
by applying diffusion processes in a compressed latent space.                       Qt
Unlike traditional diffusion models that operate directly in          where ᾱt = i=1 αi . This formulation leads to improved
high-dimensional data spaces y ∈ RD to approximate p(y),              efficiency using fewer steps. More details are provided in
                                                                      Appendix A.2.

                                                                  2
                                         Hyper-Transforming Latent Diffusion Models

2.2. Probabilistic Implicit Neural Representations                    LoRA adapters for personalizing diffusion models from few
                                                                      examples. While their focus is efficient adaptation, our
Implicit Neural Representations (INRs; Sitzmann et al.,
                                                                      framework (LDMI) builds a full generative model over INR
2020) model continuous functions by mapping coordi-
                                                                      parameter space. Our Hyper-Transformer Decoder enables
nates x to output features y via a neural network fΦ (y|x)
                                                                      resolution-agnostic generation across modalities (images,
(Mildenhall et al., 2021; Mescheder et al., 2019; Tancik
                                                                      3D fields, climate data), representing a new direction in
et al., 2020). Recent generative approaches adapt this idea
                                                                      function-level generative modeling.
for flexible conditional generation at arbitrary resolutions
(Dupont et al., 2022a; Koyuncu et al., 2023). Unlike mod-             Although prior methods succeed in deterministic reconstruc-
els that fit p(y) over structured data, INRs approximate              tion, they do not support probabilistic generation or serve as
the conditional p(y|x), allowing data sampling and uncer-             decoders for latent variable models. Our approach addresses
tainty estimation at any location—especially beneficial for           this by using full Transformer architectures conditioned on
spatially-varying data.                                               tensor-shaped latent variables.
Probabilistic INR generation typically involves meta-
                                                                      2.4. Function-valued Stochastic Processes
learning hidden representations that are mapped to INR
parameters Φ. The main challenge lies in learning these               Alternative approaches like Neural Diffusion Processes
representations under uncertainty, with two goals: (i) em-            (NDPs) (Dutordoir et al., 2023) and Simformer (Gloeck-
bedding observed data into a posterior for conditional gener-         ler et al., 2024) define distributions over function values,
ation, and (ii) sampling from a prior for synthesis. Koyuncu          not over network parameters. NDPs denoise function val-
et al. (2023) address this via a latent variable z and a varia-       ues directly using permutation-invariant attention, mimick-
tional framework combining a flow-based prior pθ (z) with             ing Neural Processes, while Simformer learns a joint diffu-
an encoder qψ (z|x, y), using an MLP-based hypernetwork               sion model over data and simulator parameters. In contrast,
to map z to Φ (Ha et al., 2017). However, scaling to high-            our method directly generates INR parameters via a hyper-
resolution images is limited by the complexity of the INR             transformer, offering continuous function generation with
parameter space. Similarly, Dupont et al. (2022b) use ad-             resolution independence.
versarially trained hypernetworks, which improve stability
but lack conditional generation and face the same scalability
                                                                      3. Methodology
bottlenecks.
Two recent strategies aim to address these issues. Functa             We introduce Latent Diffusion Models of Implicit Neural
(Dupont et al., 2022a; Bauer et al., 2023) learns neural fields       Representations (LDMI), a novel family of generative mod-
per datapoint via optimization of modulation codes (referred          els operating in function space. While previous probabilistic
to as functas), then trains a generative model on the resulting       INR approaches have explored latent variable models for
functaset. Alternatively, Chen et al. (2024) leverage LDMs            INRs (Koyuncu et al., 2023; Dupont et al., 2022b) and
by pretraining an autoencoder (e.g., β-VAE or VQ-VAE)                 two-stage training schemes incorporating diffusion-based
with an image renderer incorporated to the decoder, and               priors in the second stage (Park et al., 2023; Dupont et al.,
applying a diffusion model on its latent space.                       2022a; Bauer et al., 2023), these methods face key limita-
                                                                      tions. Notably, MLP-based hypernetworks suffer from ca-
                                                                      pacity bottlenecks, while existing frameworks lack a unified
2.3. Hyper-Transformers
                                                                      and compact approach for handling diverse data modalities.
Hypernetworks (Ha et al., 2017) map latent representations
                                                                      To address these challenges, we propose the Hyper-
z to INR parameters Φ = gϕ (z), where gϕ is a learned
                                                                      Transformer Decoder (HD), which extends the flexibility
generator and fΦ (y|x) defines the INR. While the hyper-
                                                                      of hypernetworks with the scalability of Transformer-based
network is shared across the dataset, the INR is instance-
                                                                      architectures. Unlike prior deterministic frameworks (Chen
specific, generated dynamically by the hypernetwork. This
                                                                      & Wang, 2022), HD introduces a probabilistic formulation,
design, however, struggles with large INRs, as generating
                                                                      enabling uncertainty modelling and improved generative
full parameter vectors introduces capacity and optimiza-
                                                                      capacity for INRs.
tion bottlenecks. To overcome this, recent work has pro-
posed Hyper-Transformers (Chen & Wang, 2022; Zhmogi-
                                                                      3.1. Notation
nov et al., 2022), which use attention to generate INR pa-
rameters in modular chunks. This design avoids flattening             We define F = {f : X → Y} as the space of continu-
and allows scalable, targeted weight generation.                      ous signals, where X represents the domain of coordinates,
Building on this paradigm, recent work, (HyperDream-                  and Y the codomain of signal values, or features. Let D
                                                                                                             .
Booth; Ruiz et al., 2024) extends this idea by generating             be a dataset consisting of N pairs D = {(Xn , Yn )}N n=1 .
                                                                      Here, Xn and Yn conform a signal as a collection of Dn

                                                                  3
                                         Hyper-Transforming Latent Diffusion Models




                         (a) Encoder.                                                (b) INR Generation.
Figure 2: Overview of the I-VAE. (a) The inference model, trained in the first stage, where an encoder maps data into the
variational parameters of the approximate posterior; (b) The full decoder: the HD module transforms the latent variable into
the weights and biases of an INR, enabling continuous signal representation.
                   .     (n)        (n)
coordinates Xn = {xi }D      i=1 , xi
                               n
                                         ∈ X and signal values    auxiliary neural network known as a hypernetwork (Ha
     .     (n) Dn      (n)                                        et al., 2017), typically MLP-based, which modulates the
Yn = {yi }i=1 , yi ∈ Y.
                                                                  INR parameters based on a lower-dimensional latent repre-
3.2. Generative Model                                             sentation:
                                                                                           Φ = gϕ (z),                        (6)
We aim to model the stochastic process that generates con-
tinuous signals (X, Y ) using neural networks p(y|x; Φ) ≡         where z ∈ RHz ×Wz ×dz is a tensor-shaped latent code with
pΦ (y|x), known as Implicit Neural Representations (INRs).        spatial dimensions Hz × Wz and channel dimension dz .
Unlike discrete representations such as pixel grids, INRs         This latent space serves as a compressed representation
provide compact and differentiable function approximations,       of the continuous signal. However, MLP-based hypernet-
making them well-suited for a wide range of data modalities,      works introduce a fundamental bottleneck: the final layer
including images (Chen et al., 2021), 3D shapes (Mescheder        must output all parameters of the target INR, which leads
et al., 2019), and audio (Sitzmann et al., 2020), while inher-    to scalability issues when modulating high-capacity INRs.
ently supporting unconstrained resolution.                        As a result, prior works employing MLP-based hypernet-
                                                                  works typically use small INR architectures, often restricted
Implicit Neural Representation Previous works have                to three-layer MLPs (Koyuncu et al., 2023; Dupont et al.,
demonstrated that even simple MLP-based architectures ex-         2022b). Additionally, these works rely on standard MLPs
hibit remarkable flexibility, accurately approximating com-       with ReLU or similar activations and often preprocess co-
plex signals. In this work, we define our INR as an MLP           ordinates using Random Fourier Features (RFF) (Tancik
with L hidden layers:                                             et al., 2020) to capture high-frequency details. However,
                                                                  RFF-based embeddings struggle to generalize to unseen
             h0 = γ(x),
                                                                  coordinates without careful validation. In contrast, SIREN
             hl = σ(Wl hl−1 + bl ), l = 1, . . . , L,         (4) (Sitzmann et al., 2020) inherently captures the full frequency
         fΦ (x) = hL = WL hL−1 + bL .                             spectrum by incorporating sinusoidal activations, making it
                                                                  more effective for super-resolution tasks.
where γ denotes optional coordinate encoding, and σ is
a non-linearity. The INR parameters are given by Φ =              However, using SIREN as the INR module introduces fur-
(Wl , bl )L
          l=1 . The  network  parametrise  a likelihood distribu- ther challenges. As commented by their authors, optimizing
tion, λ, over the target signal, that is,                         SIRENs with not carefully chosen uniformly distributed
                                                                  weights yields poor performance both in accuracy and in
                  pΦ (y|x) = λ(y; fΦ (x)).                    (5)
                                                                  convergence speed. This issue worsens when the weights
                                                                  are not optimized, but generated by a hypernetwork.
Challenges in Modeling INR Parameter Distributions
Learning a generative model over the INR parameter space          To overcome these limitations, we introduce the Hyper-
Φ is highly non-trivial due to two fundamental challenges.        Transformer Decoder (HD), a Transformer-based hypernet-
First, small perturbations in parameter space can result in       work designed to scale effectively while preserving the flex-
drastic variations in the data space, making direct modelling     ibility of larger INRs and ensuring proper modulation of
difficult. Second, the dimensionality of the flattened pa-        SIREN weights.
rameter vector Φ scales poorly with the INR’s width and
depth, leading to significant computational and optimization      3.2.1. H YPER -T RANSFORMER D ECODER
challenges.
                                                                  The Hyper-Transformer Decoder (HD) is a central compo-
A common approach in prior works (Koyuncu et al., 2023;           nent of our autoencoding framework for generating INRs,
Dupont et al., 2022b;a) is to model Φ implicitly using an         referred to as I-VAE and illustrated in Figure 2. Its inter-

                                                               4
                                        Hyper-Transforming Latent Diffusion Models




Figure 3: Diagram of the Hyper-Transformer Decoder (HD). The latent variable z is tokenized and processed by a
Transformer Encoder. A Transformer Decoder, initialized with learnable grouped weights W̄li , cross-attends to the latent
tokens to generate the set of grouped weights Wlo . The full weight matrices Wl are then reconstructed by combining the
grouped weights with learnable template weights W̄lb . Biases bl are learned as global parameters.

nal architecture is detailed in Figure 3. Mathematically, it         Let W ∈ Rdout ×din represent a weight matrix of an INR
is defined as a function of the latent tensor that produces          layer (omitting the layer index l for simplicity), where each
the parameters Φ = gϕ (z) of the INR. We elaborate on                column is denoted as wc for c ∈ {1, . . . , din }. Directly
previous work that proposed Vision Transformers (Doso-               mapping a Transformer token to every column is compu-
vitskiy et al., 2021) for meta-learning of INR parameters            tationally expensive, as it would require processing long
from images (Chen & Wang, 2022), to design an efficient              sequences. Instead, we define G groups per weight matrix,
full Transformer architecture (Vaswani et al., 2017) that            where each group represents k = dGin columns (assuming
processes latent variables into INR parameters.                      divisibility). This results in a Transformer working with
                                                                     grouped weight matrices W̄i , Wo ∈ Rdout ×G , since W̄i
Tokenizer The HD decoder begins by splitting tensor-                 (input tokens) and Wo (output tokens) have the same di-
                                                  2
shaped latent variables into N patches zp ∈ RP ×dz of                mensions. The full weight matrix is reconstructed as:
                                          2
fixed size (P, P ), where N = Hz · Wz /P . Each patch is                                        o
                                                                                        wc = R(w⌈c/k⌉ , w̄cb )                 (7)
then flattened and projected into a lower-dimensional em-
bedding space using a shared linear transformation. The              where R is the reconstruction operator, wc denotes the
embedding for each patch serves as an input token for the            cth column of W, and w̄cb is the corresponding column of
Transformer.                                                         W̄b ∈ Rdout ×din —a set of learnable base parameters that
                                                                     serve as a weight template.
Transformer Encoder Following tokenization, the first                In Trans-INR (Chen & Wang, 2022), the Transformer-based
half of the HD decoder, a Transformer Encoder, applies               hypernetwork generates normalized weights using the fol-
multi-head self-attention mechanism, repeated for several            lowing reconstruction method:
layers, outputting tokenized embeddings that we referred to
                                                                                                      o
as latent tokens.                                                                                  w⌈c/k⌉ ⊙ w̄cb
                                                                                      o
                                                                             R(norm) w⌈c/k⌉ , w̄cb =               .           (8)
                                                                                                      o
                                                                                                     w⌈c/k⌉ ⊙ w̄cb
Transformer Decoder Unlike prior work (Chen & Wang,
2022) that only employs Transformer Encoders, we intro-              However, we found this approach unsuitable for generating
duce a Transformer Decoder that cross-attends to latent              weights in INRs with periodic activations. We hypothesize
tokens to generate output tokens, which are then mapped to           that the normalization in Equation (8) causes the resulting
                                                                                                                     o
the column weights of the INR weight matrices. The input             weights and their gradients to vanish when ||w⌈c/k⌉  || ≈ 0,
to the Transformer Decoder consists of a globally shared,            leading to training instability.
learnable set of initial weight tokens, denoted as W̄i , which
                                                                     To address this, we introduce a new reconstruction oper-
serve as queries. The decoder processes these queries via
                                                                     ator that removes the normalization constraint, yielding
cross-attention with the latent tokens, which act as keys and
                                                                     significantly more stable training, particularly for INRs with
values to obtain the output set of column weights, Wo .
                                                                     periodic activations:
                                                                                                  
Weight Grouping Following Chen et al. (2021), we adopt                      R(scale) w⌈c/k⌉
                                                                                        o                      o
                                                                                             , w̄cb = (1 + w⌈c/k⌉    ) ⊙ w̄cb . (9)
a similar weight grouping strategy to balance precision and
                                                                                                           o
computational efficiency in INR parameter generation. How-           This formulation ensures that when ||w⌈c/k⌉ || ≈ 0, the
ever, our approach differs in the reconstruction strategy ap-        base weights remain unchanged, preventing instability in
plied to the Transformer-generated weights.                          the generated INR parameters.

                                                                 5
                                          Hyper-Transforming Latent Diffusion Models

It is essential to distinguish between the two sets of globally
                                                  i
shared learnable parameters. The sequence W̄1:L      (of length
G × L) serves as the initialization for the grouped weight
tokens and is provided as input to the Transformer Decoder.
                               b
In contrast, the sequence W̄1:L    (of length din × L) acts as a
global reference for the full set of INR weights and is used
exclusively for the reconstruction in Equation (9).
                                                                        Figure 4: Schematic of the DDIM-based latent diffusion.
This weight grouping mechanism allows the HD decoder
to dynamically adjust the trade-off between precision and
efficiency by tuning G. As a result, our method scales ef-             choice facilitates smooth interpolations and improves the
fectively across different model sizes while preserving the            quality of inferred representations.
benefits of Transformer-based hypernetwork parameteriza-
                                                                       In addition, following Rombach et al. (2022), for the case
tion.
                                                                       of images, we incorporate perception losses (Zhang et al.,
                                                                       2018), and patch-based (Isola et al., 2017) adversarial ob-
3.3. Variational Inference                                             jectives (Dosovitskiy & Brox, 2016; Esser et al., 2021; Yu
Given our implicit modelling of INR parameters, the objec-             et al., 2022).
tive is to learn a structured and compact probabilistic latent         However, while this training strategy ensures effective infer-
space pθ (z) that enables meaningful posterior inference via           ence, direct generation remains poor due to the discrepancy
Bayesian principles. Specifically, we seek to approximate              between the expressive encoder distribution and the simplis-
the true posterior p(z|X, Y ), facilitating accurate and flex-         tic Gaussian prior. To address this mismatch, we introduce
ible inference. To achieve this, we extend the Variational             a second training stage, where a diffusion-based model is
Autoencoder (VAE) framework (Kingma & Welling, 2013)                   fitted to the marginal posterior distribution, enhancing the
to the efficient generation of INRs, which we refer to as              generative capacity of the learned latent space.
I-VAE (depicted in Figure 2).
The complexity of the likelihood function makes the true               3.4. Latent Diffusion
posterior p(z|X, Y ) intractable. To address this, VAEs in-
                                                                       In this stage, we leverage the pre-trained I-VAE and the
troduce an encoder network that approximates the posterior
                                                                       highly structured latent space encoding INRs to fit a DDPM
through a learned variational distribution. Our encoder, de-
                                                                       (Ho et al., 2020) to the aggregate posterior:
noted as Eψ (X, Y ), processes both coordinate inputs X
and signal values Y , outputting the parameters of a Gaus-                                                          
                                                                                  qψ (z) = Epdata (X,Y ) qψ (z|X, Y ) .         (12)
sian approximation:

           qψ (z|X, Y ) = N z; Eψ (X, Y ) .
                                              
                                                       (10)            In other words, we fit a learnable prior over the latent space
                                                                       to approximate the structured posterior induced by the en-
This formulation enables training via amortized variational            coder. Specifically, we minimize the Kullback-Leibler di-
inference, optimising a lower bound on the log-marginal                vergence
likelihood log p(Y |X), known as the Evidence Lower
                                                                                                               
                                                                                         DKL qψ (z) ∥ pθ (z) ,                   (13)
Bound (ELBO):
                                                                     where pθ (z) represents the learned diffusion-based prior
    LVAE (ϕ, ψ) = Eqψ (z|X,Y ) log pΦ (Y |X)                           over the latent space. We instantiate the following variation
                                                       (11)
                                                                       of the Denoising Score Matching (DSM; Vincent, 2011)
                                                 
                  − β · DKL qψ (z|X, Y ) ∥ p(z) ,
                                                                       objective presented in Equation (1):
where we omit the explicit dependence of Φ on ϕ and z for                                      h                      i
clarity. The hyperparameter β, introduced by Higgins et al.                 LDDPM = EX,Y ,z,ϵ,t λ(t)∥ϵ − ϵθ (zt , t)∥2 ,        (14)
(2017), controls the trade-off between reconstruction fidelity
and latent space regularization, regulating the amount of
                                                                       which is approximated via Monte Carlo sampling. Specifi-
information compression in the latent space. The case β = 1
                                                                       cally, we draw (X, Y ) ∼ pdata (X, Y ), z ∼ qψ (z|X, Y ),
corresponds to the standard definition of the ELBO.
                                                                       ϵ ∼ N (0, I), and t ∼ U (1, T ), where T denotes the num-
During the first stage of training, following LDMs (Rom-               ber of diffusion steps. The weighting function λ(t) mod-
bach et al., 2022), we impose a simplistic standard Gaussian           ulates the training objective; in our case, we set λ(t) = 1,
prior p(z) = N (0, I), and we set a low β value to en-                 corresponding to an unweighted variational bound that en-
courage high reconstruction accuracy while promoting a                 hances sample quality. The complete training procedure for
structured latent space that preserves local continuity. This          LDMI is outlined in Appendix B.

                                                                   6
                                         Hyper-Transforming Latent Diffusion Models
  GASP
  Functa




                                                                 Ours
  Ours




                 (a) CelebA-HQ 64 × 64                                            (b) CelebA-HQ 256 × 256
Figure 5: Uncurated samples from GASP, Functa (diffusion-based) and our LDMI trained with CelebA-HQ at 64×64
resolution (a). In (b), our model was trained on CelebA-HQ at 256×256 using the hyper-transforming approach.

3.5. Hyper-Transforming Latent Diffusion Models                      Our evaluations1 span multiple domains: (1) natural image
                                                                     datasets, including CelebA-HQ (Liu et al., 2015) at sev-
As an alternative to full training, we introduce a highly
                                                                     eral resolutions and ImageNet (Russakovsky et al., 2015);
efficient approach for training LDMI when a pre-trained
                                                                     (2) 3D objects, specifically the Chairs subclass from the
LDM for discretized data is available. In this setting, we
                                                                     ShapeNet repository (Chang et al., 2015), which provides
eliminate the need for two-stage training by leveraging the
                                                                     approximately 6,778 chair models for 3D reconstruction
structured latent space learned by the pre-trained LDM.
                                                                     and shape analysis; and (3) polar climate data, using the
Specifically, we freeze the VAE encoder and the LDM and
                                                                     ERA5 temperature dataset (Hersbach et al., 2019) to ana-
train only the HD decoder to maximize the log-likelihood of
                                                                     lyze global climate dynamics. In our hyper-transforming
the decoded outputs, using the objective
                                                                     setup, we leverage publicly available pre-trained Latent Dif-
                                 
          LHT (ϕ) = Eqψ (z|X,Y ) log pΦ (Y |X) ,
                                                
                                                       (15)          fusion Models from Rombach et al. (2022), specifically the
                                                                     LDM-VQ-4 variants trained on CelebA-HQ at 256 × 256
optionally combined with perceptual and adversarial objec-           resolution and ImageNet, respectively.
tives. The HD decoder is sufficiently expressive to extract
meaningful information from the pre-trained latent space.               4.2. Generation
We refer to this strategy as hyper-transforming, as it enables       Figure 1 shows samples generated by LDMI across diverse
efficient adaptation of a standard LDM to an INR-based               data modalities and resolutions. To obtain these, we sam-
framework without retraining the latent encoder or diffusion         ple from the latent diffusion model, decode the latents into
prior. Notably, this approach is compatible with LDMs                INRs using our HD decoder, and evaluate the resulting func-
based on VAEs, VQVAEs, or VQGANs—since all that is                   tions on different coordinate grids. Notably, CelebA-HQ at
required is access to a pre-trained encoder and diffusion            (256 × 256) is a challenging dataset not addressed by prior
model. The full procedure is outlined in Algorithm 1.                baselines.
                                                                     In Figure 5, we provide samples from LDMI trained on
4. Experiments                                                       CelebA at 64×64 and 256×256, demonstrating its ability
                                                                     to generate high-quality and diverse images across different
4.1. Training Setup
                                                                     scales, and the qualitative superiority against the baselines.
Depending on the nature of the data, we utilize different ar-        Additionally, in Table 1, we report FID scores of our sam-
chitectures for the encoder. For image and climate data, we                1
                                                                           The code for reproducing our experiments can be found at
employ ResNets (He et al., 2016), while for 3D occupancy                https://github.com/ipeis/LDMI.
data, we employ 3D-convolutional networks.

                                                                 7
                                                    Hyper-Transforming Latent Diffusion Models
   GT
   Functa
   VAMoH
   Ours




                        (a) CelebA-HQ                                 (b) ERA5                            (c) ShapeNet Chairs
GT
Ours




                             (d) ImageNet                                                 (e) CelebA-HQ (256 × 256)
Figure 6: Reconstructions from Functa (diffusion-based), VAMoH, and our LDMI compared to ground truth (GT) across
three datasets (a)–(c). In (d) and (e) LDMI was trained by hyper-transforming pre-trained LDMs.


Model                                 PSNR (dB) ↑    FID ↓    HN Params ↓        construction performance across diverse object categories
CelebA-HQ (64 × 64)                                                              and scenes, including textures, object boundaries and colour
GASP (Dupont et al., 2022b)                     -      7.42         25.7M        distributions.
Functa (Dupont et al., 2022a)              ≤ 30.7     40.40              -
VAMoH (Koyuncu et al., 2023)                23.17     66.27         25.7M        Quantitative evaluations in Table 1 indicate competitive
LDMI                                        24.80     18.06         8.06M
                                                                                 performance compared to existing INR-based generative
ImageNet (256 × 256)
Spatial Functa (Bauer et al., 2023)        ≤ 38.4    ≤ 8.5               -       models. For CelebA-HQ 64 × 64, we achieve a PSNR value
LDMI                                        20.69     6.94        102.78M        of 24.80 dB, which compares competitively to the previous
                                                                                 methods. The high PSNR score suggests there is mini-
            Table 1: Metrics on CelebA-HQ and ImageNet.                          mal information loss during the encoding-decoding process
                                                                                 while maintaining perceptual quality. It is important to note
                                                                                 several key distinctions when interpreting the comparative
ples for CelebA and ImageNet, highlighting the model’s                           results in this Table. While Functa exhibits higher PSNR val-
performance in terms of image quality and reconstruction                         ues, this advantage stems from its test-time optimization pro-
accuracy. Importantly, while GASP achieves a lower FID                           cedure—fitting a separate modulation vector per test image
score on CelebA-HQ, it cannot perform reconstructions due                        using ground truth information—rather than the amortized
to its adversarial design. In contrast, our LDMI supports                        inference approach employed by our model. This funda-
both high-quality sampling and accurate reconstructions, as                      mental methodological difference undermines a direct com-
demonstrated in the following experiment.                                        parison, though we include these results for completeness.
                                                                                 As for generation, our model enables seamless reconstruc-
4.3. Reconstruction
                                                                                 tion at arbitrary resolutions. Figures 9 and 10 show re-
Figure 6 presents a qualitative comparison between origi-                        sults from LDMI trained on CelebA-HQ at (256 × 256) and
nal images from the test split and their reconstructions by                      (64 × 64), respectively. To achieve this, we encode the
our model. As shown in the figure, our model successfully                        observations, sample from the posterior distribution, and
preserves fine details and global structures across different                    transform these latent samples into INRs using our HD de-
images. On ImageNet, our model demonstrates robust re-

                                                                             8
                                        Hyper-Transforming Latent Diffusion Models

coder. The resulting INRs are then evaluated on grids of
varying resolutions to produce reconstructions ranging from




                                                                    Input
×1/8 to ×4. Importantly, such flexible resolution control is
not supported by methods like GASP, which cannot perform
reconstructions due to their adversarial design.
To further validate our claims regarding cross-modality
generalization, we evaluate LDMI on two additional, di-




                                                                    Samples
verse datasets: ShapeNet Chairs and ERA5 climate data.
As shown in Table 2, while Functa achieves better per-
formance on Chairs—possibly due to being optimization-
based—LDMI attains higher reconstruction quality than VA-
MoH (inference-based) across both datasets, outperforming
it by 0.5% on Chairs and 5.6 dB on ERA5. The substantial
performance gain on the ERA5 climate dataset highlights
LDMI’s exceptional capability in representing complex, con-
tinuous spatio-temporal signals beyond standard visual data,        Figure 7: Conditional inpainting results on CelebA-HQ at
further supporting our argument for a truly general-purpose         256 × 256. The second and third rows present two con-
INR-based generative framework.                                     ditional samples generated by our LDMI for the missing
                                                                    regions at the centre.
Model                           Chairs (%) ↑   ERA5 (dB) ↑
Functa (Dupont et al., 2022a)          99.51            34.9
VAMoH (Koyuncu et al., 2023)           96.75            39.0        4.5. Data Completion
LDMI                                   97.25            44.6
                                                                    We evaluate our model on structured completion tasks,
Table 2: Reconstruction quality (accuracy in % and PSNR             where parts of the input are masked with predefined pat-
in dB) on ShapeNet Chairs and ERA5 climate data, demon-             terns. For each case, we show the masked input and two
strating LDMI’s strong generalization capabilities across           samples drawn from the posterior. As shown in Figure 7,
modalities. Note that GASP is omitted as it is not applicable       the model uses visible context to produce realistic, coherent
to INR reconstruction tasks.                                        outputs. On CelebA-HQ 256 × 256, it reconstructs missing
                                                                    features—such as eyes, mouth, or hairline—while preserv-
The dual capability of high-quality generation and accurate         ing consistency with the unmasked regions. These results
reconstruction positions LDMI as a versatile foundation for         highlight its ability to generalize from partial observations.
various downstream tasks requiring both generative and
reconstructive abilities, a unique advantage over specialized       5. Conclusion
alternatives optimized for only one of these objectives.
                                                                    We introduced Latent Diffusion Models of Implicit Neural
                                                                    Representations (LDMI), a framework that combines the
4.4. Hyper-Transforming
                                                                    expressiveness of INRs with the generative power of Latent
On ImageNet and CelebA-HQ at 256 × 256, our LDMI was                Diffusion Models. Our hyper-transforming approach al-
trained using the hyper-transforming strategy. As discussed         lows efficient adaptation of pre-trained LDMs to INR-based
in Section 3.5, instead of training the model from scratch,         generation without retraining the full model. Experiments
we reuse the encoder and diffusion model from a pre-trained         on CelebA-HQ, ImageNet, ShapeNet Chairs, and ERA5
LDM, training only the Hyper-Transformer Decoder. This              demonstrate strong performance in both quantitative and
approach leverages both the structured latent space learned         qualitative evaluations.
by the autoencoder and the diffusion model already fitted to
                                                                    Importantly, LDMI overcomes limitations of prior hypernet-
it. Training then focuses solely on transforming latent codes
                                                                    works through a modular, probabilistic Transformer decoder
into the function space of INR parameters, enabling efficient
                                                                    that supports scalable, expressive INR generation. While
specialization without retraining the generative backbone.
                                                                    MLP-based methods struggle with dense parameter outputs
Our method is agnostic to the latent encoder—VAE, VQ-               and Transformer-based ones are typically deterministic, our
VAE, or VQGAN—highlighting the flexibility of the hyper-            design enables probabilistic modelling and efficient synthe-
transforming framework. These results demonstrate its scal-         sis. Integrating INRs with latent diffusion yields a flexible,
ability for INR-based synthesis and adaptation of pre-trained       resolution-agnostic framework—advancing generative tasks
LDMs to resolution-agnostic generation.                             requiring structural consistency, fidelity, and scalability.

                                                                9
                                        Hyper-Transforming Latent Diffusion Models

Acknowledgements                                                     Dhariwal, P. and Nichol, A. Diffusion Models Beat GANs
                                                                       on Image Synthesis. In Advances in Neural Information
This research was supported by the Villum Foundation                  Processing Systems, volume 34, pp. 8780–8794, 2021.
through the Synergy project number 50091, by the Novo
Nordisk Foundation through the Center for Basic Ma-                  Dosovitskiy, A. and Brox, T. Generating Images with Per-
chine Learning Research in Life Science (MLLS, grant                   ceptual Similarity Metrics Based on Deep Networks. In
NNF20OC0062606) and by the European Union (ERC-                       Advances in Neural Information Processing Systems, vol-
2021-STG, SAML, 101040177).                                            ume 29, 2016.
Ignacio Peis acknowledges support by Danish Data Science
                                                                     Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn,
Academy, which is funded by the Novo Nordisk Foundation
                                                                       D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M.,
(NNF21SA0069429). Batuhan Koyuncu is supported by
                                                                       Heigold, G., Gelly, S., et al. An Image is Worth 16x16
the Konrad Zuse School of Excellence in Learning and
                                                                      Words: Transformers for Image Recognition at Scale. In
Intelligent Systems (ELIZA) through the DAAD programme
                                                                      International Conference on Learning Representations,
Konrad Zuse Schools of Excellence in Artificial Intelligence,
                                                                       2021.
sponsored by the Federal Ministry of Education. The views
and opinions expressed are those of the author(s) only and           Dupont, E., Kim, H., Eslami, S. A., Rezende, D. J., and
do not necessarily reflect those of the European Union or              Rosenbaum, D. From data to functa: Your data point
the European Research Council Executive Agency. Neither                is a function and you can treat it like one. In Interna-
the European Union nor the granting authority can be held              tional Conference on Machine Learning, pp. 5694–5725.
responsible.                                                           PMLR, 2022a.

Impact Statement                                                     Dupont, E., Teh, Y. W., and Doucet, A. Generative Models
                                                                       as Distributions of Functions. In International Confer-
This paper presents work whose goal is to advance the field            ence on Artificial Intelligence and Statistics, pp. 2989–
of Machine Learning. There are many potential societal                 3015. PMLR, 2022b.
consequences of our work, none which we feel must be
specifically highlighted here.                                       Dutordoir, V., Saul, A., Ghahramani, Z., and Simpson, F.
                                                                       Neural Diffusion Processes. In International Conference
References                                                             on Machine Learning, pp. 8990–9012. PMLR, 2023.

Bauer, M., Dupont, E., Brock, A., Rosenbaum, D., Schwarz,            Esser, P., Rombach, R., and Ommer, B. Taming Transform-
  J. R., and Kim, H. Spatial Functa: Scaling Functa to                 ers for High-Resolution Image Synthesis. In Proceedings
  ImageNet Classification and Generation. arXiv preprint               of the IEEE/CVF Conference on Computer Vision and
  arXiv:2302.03130, 2023.                                              Pattern Recognition, pp. 12873–12883, 2021.
Chang, A. X., Funkhouser, T., Guibas, L., Hanrahan, P.,              Gloeckler, M., Deistler, M., Weilbach, C. D., Wood, F.,
  Huang, Q., Li, Z., Savarese, S., Savva, M., Song, S.,                and Macke, J. H. All-in-one Simulation-based Inference.
  Su, H., Xiao, J., Yi, L., and Yu, F. ShapeNet: An                    In International Conference on Machine Learning, pp.
  Information-Rich 3D Model Repository. Technical Re-                  15735–15766. PMLR, 2024.
  port arXiv:1512.03012 [cs.GR], Stanford University —
  Princeton University — Toyota Technological Institute at           Ha, D., Dai, A. M., and Le, Q. V. Hypernetworks. In
  Chicago, 2015.                                                       International Conference on Learning Representations,
                                                                       2017.
Chen, Y. and Wang, X. Transformers as Meta-Learners for
  Implicit Neural Representations. In European Conference            He, K., Zhang, X., Ren, S., and Sun, J. Deep Residual Learn-
  on Computer Vision, pp. 170–187. Springer, 2022.                     ing for Image Recognition. In Proceedings of the IEEE
Chen, Y., Liu, S., and Wang, X. Learning Continuous Image              Conference on Computer Vision and Pattern Recognition,
  Representation with Local Implicit Image Function. In                pp. 770–778, 2016.
  Proceedings of the IEEE/CVF conference on computer
  vision and pattern recognition, pp. 8628–8638, 2021.               Hersbach, H., Bell, B., Berrisford, P., Biavati, G., Horányi,
                                                                       A., Muñoz Sabater, J., Nicolas, J., Peubey, C., Radu, R.,
Chen, Y., Wang, O., Zhang, R., Shechtman, E., Wang, X.,                Rozum, I., et al. ERA5 Monthly Averaged Data on Single
  and Gharbi, M. Image Neural Field Diffusion Models. In               Levels from 1979 to Present. Copernicus Climate Change
  Proceedings of the IEEE/CVF Conference on Computer                   Service (C3S) Climate Data Store (CDS), 10:252–266,
  Vision and Pattern Recognition, pp. 8007–8017, 2024.                 2019.

                                                                10
                                         Hyper-Transforming Latent Diffusion Models

Higgins, I., Matthey, L., Pal, A., Burgess, C., Glorot, X.,            Park, D., Kim, S., Lee, S., and Kim, H. J. DDMI: Domain-
  Botvinick, M., Mohamed, S., and Lerchner, A. β-VAE:                    Agnostic Latent Diffusion Models for Synthesizing High-
  Learning Basic Visual Concepts with a Constrained Varia-               Quality Implicit Neural Representations. In The Twelfth
  tional Framework. In International Conference on Learn-                International Conference on Learning Representations,
  ing Representations, 2017.                                             2023.
Ho, J., Jain, A., and Abbeel, P. Denoising Diffusion Proba-            Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and Om-
  bilistic Models. Advances in Neural Information Process-               mer, B. High-Resolution Image Synthesis with Latent
  ing Systems, 33:6840–6851, 2020.                                       Diffusion Models. In Proceedings of the IEEE/CVF Con-
                                                                         ference on Computer Vision and Pattern Recognition, pp.
Hou, X., Shen, L., Sun, K., and Qiu, G. Deep Feature Con-                10684–10695, 2022.
  sistent Variational Autoencoder. In 2017 IEEE Winter
 Conference on Applications of Computer Vision (WACV),                 Ruiz, N., Li, Y., Jampani, V., Wei, W., Hou, T., Pritch, Y.,
  pp. 1133–1141. IEEE, 2017.                                             Wadhwa, N., Rubinstein, M., and Aberman, K. Hyper-
                                                                         DreamBooth: HyperNetworks for Fast Personalization of
Hou, X., Sun, K., Shen, L., and Qiu, G. Improving Vari-                  Text-to-Image Models. In Proceedings of the IEEE/CVF
  ational Autoencoder with Deep Feature Consistent and                   Conference on Computer Vision and Pattern Recognition,
  Generative Adversarial Training. Neurocomputing, 341:                  pp. 6527–6536, 2024.
 183–194, 2019.
                                                                       Russakovsky, O., Deng, J., Su, H., Krause, J., Satheesh, S.,
Isola, P., Zhu, J.-Y., Zhou, T., and Efros, A. A. Image-                 Ma, S., Huang, Z., Karpathy, A., Khosla, A., Bernstein,
   to-Image Translation with Conditional Adversarial Net-                M., et al. ImageNet Large Scale Visual Recognition
  works. In Proceedings of the IEEE Conference on Com-                   Challenge. International Journal of Computer Vision,
   puter Vision and Pattern Recognition, pp. 1125–1134,                  115:211–252, 2015.
   2017.
                                                                       Saharia, C., Ho, J., Chan, W., Salimans, T., Fleet, D. J.,
Johnson, J., Alahi, A., and Fei-Fei, L. Perceptual Losses                and Norouzi, M. Image Super-Resolution via Iterative
  for Real-Time Style Transfer and Super-Resolution. In                  Refinement. IEEE Transactions on Pattern Analysis and
  Computer Vision – ECCV 2016, pp. 694–711. Springer,                    Machine Intelligence, 45(4):4713–4726, 2022.
  2016.
                                                                       Sitzmann, V., Martel, J., Bergman, A., Lindell, D., and Wet-
Kingma, D. P. and Welling, M. Auto-encoding Variational                   zstein, G. Implicit Neural Representations with Periodic
  Bayes. arXiv preprint arXiv:1312.6114, 2013.                            Activation Functions. Advances in Neural Information
Koyuncu, B., Martin, P. S., Peis, I., Olmos, P. M., and Valera,           Processing Systems, 33:7462–7473, 2020.
  I. Variational mixture of hypergenerators for learning               Song, J., Meng, C., and Ermon, S. Denoising Diffusion Im-
  distributions over functions. In International Conference              plicit Models. In International Conference on Learning
  on Machine Learning, pp. 17660–17683. PMLR, 2023.                      Representations, 2021a.
Larsen, A. B. L., Sønderby, S. K., Larochelle, H., and                 Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Er-
  Winther, O. Autoencoding Beyond Pixels Using a                         mon, S., and Poole, B. Score-Based Generative Modeling
  Learned Similarity Metric. In International Conference                 through Stochastic Differential Equations. In Interna-
  on Machine Learning, pp. 1558–1566. PMLR, 2016.                        tional Conference on Learning Representations, 2021b.
Liu, Z., Luo, P., Wang, X., and Tang, X. Deep Learning                 Tancik, M., Srinivasan, P., Mildenhall, B., Fridovich-Keil,
  Face Attributes in the Wild. In Proceedings of the IEEE                S., Raghavan, N., Singhal, U., Ramamoorthi, R., Barron,
  International Conference on Computer Vision, pp. 3730–                 J., and Ng, R. Fourier Features Let Networks Learn
  3738, 2015.                                                            High Frequency Functions in Low Dimensional Domains.
                                                                         In Advances in Neural Information Processing Systems,
Mescheder, L., Oechsle, M., Niemeyer, M., Nowozin, S.,
                                                                         volume 33, pp. 7537–7547, 2020.
 and Geiger, A. Occupancy Networks: Learning 3D Re-
 construction in Function Space. In Proceedings of the                 van den Oord, A., Vinyals, O., and kavukcuoglu, k. Neural
 IEEE/CVF conference on computer vision and pattern                      Discrete Representation Learning. In Advances in Neural
 recognition, pp. 4460–4470, 2019.                                       Information Processing Systems, volume 30, 2017.
Mildenhall, B., Srinivasan, P. P., Tancik, M., Barron, J. T.,          Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones,
 Ramamoorthi, R., and Ng, R. NeRF: Representing Scenes                   L., Gomez, A. N., Kaiser, L. u., and Polosukhin, I. Atten-
 as Neural Radiance Fields for View Synthesis. Commu-                    tion Is All You Need. In Advances in Neural Information
 nications of the ACM, 65(1):99–106, 2021.                               Processing Systems, volume 30, 2017.

                                                                  11
                                          Hyper-Transforming Latent Diffusion Models

Vincent, P. A Connection Between Score Matching and
  Denoising Autoencoders. Neural Computation, 23(7):
  1661–1674, 2011.
Yu, J., Li, X., Koh, J. Y., Zhang, H., Pang, R., Qin, J., Ku, A.,
  Xu, Y., Baldridge, J., and Wu, Y. Vector-Quantized Im-
  age Modeling with Improved VQGAN. In International
  Conference on Learning Representations, 2022.

Zhang, R., Isola, P., Efros, A. A., Shechtman, E., and Wang,
  O. The Unreasonable Effectiveness of Deep Features as
  a Perceptual Metric. In Proceedings of the IEEE/CVF
  Conference on Computer Vision and Pattern Recognition,
  pp. 586–595, 2018.

Zhmoginov, A., Sandler, M., and Vladymyrov, M. Hyper-
  Transformer: Model Generation for Supervised and Semi-
  Supervised Few-Shot Learning. In International Confer-
  ence on Machine Learning, pp. 27075–27098. PMLR,
  2022.




                                                                    12
                                         Hyper-Transforming Latent Diffusion Models

A. Background Extension
A.1. Autoencoding-based Models
When opting by β-VAE (Higgins et al., 2017) for the first stage of LDMs (Rombach et al., 2022), a weak regularization
encourages accurate likelihoods pλ (y|z) parameterized by the decoder Dλ (·) while preserving latent expressiveness. This
is achieved by assuming p(z) = N (0, I) and maximizing the Evidence Lower Bound (ELBO):
                                                                                       
                              LVAE = Eqψ (z|y) log pλ (y|z) − β · DKL qψ (z|y) ∥ p(z)                                (16)

and setting β is set to a small value to encourage accurate reconstructions.
In contrast, VQVAE replaces the continuous latent representation with a discrete codebook. During training, the encoder
output is quantized using the closest embedding from the codebook, enabling a more structured representation. The objective
becomes:
                        LVQVAE = ∥y − Dλ (Eϕ (y))∥2 + ∥sg[Eϕ (y)] − z∥2 + ∥sg[z] − Eϕ (y)∥2                            (17)
where sg[·] indicates a stop-gradient operation that prevents the encoder from directly updating the codebook embeddings.

A.2. Diffusion Models
In DDPM, the forward diffusion process incrementally corrupts the observed variable z0 using a Markovian noise process
with latent variables z1:T
                                                            T
                                                            Y
                                            q(z1:T |z0 ) :=   q(zt |zt−1 ),                                       (18)
                                                                  t=1
                              √
where q(zt |zt−1 ) := N (zt ; 1 − βt zt−1 , βt I), and βt is a noise schedule controlling the variance at each time step.
The reverse generative process is defined by the following Markov chain
                                                                      T
                                                                      Y
                                              pθ (z0:T ) := p(zT )          pθ (zt−1 |zt )                                  (19)
                                                                      t=1
                                          
where pθ (zt−1 |zt ) := N µθ (zt , t), σt2 is defined as a Gaussian whose mean
                                                                                       
                                                        1             βt
                                         µθ (zt , t) = √      zt − √         ϵθ (zt , t)                                    (20)
                                                         αt          1 − ᾱt
is obtained by a neural network that predicts the added noise using a neural network ϵθ (zt , t).
A more suitable inference distribution for ending with a compact objective can be expressed via the reverse posterior
conditioning on the observation z0 :
                                                                                       
                                     q(zt−1 |zt , z0 ) = N zt−1 ; µ̃t (zt , z0 ) , β̃t I ,                       (21)

The model is learned by minimizing the variational bound on negative log-likelihood, which can be expressed as a sum of
terms,
                                                         const                  L0
                                           z        }|              { z        }|  {
                                   LDDPM = DKL q(zT |z0 ) ∥ p(zT ) + − log p(z0 |z1 ) +
                                                                                                                           (22)
                                           DKL q(zt−1 |zt , z0 ) ∥ pθ (zt−1 |zt )
                                           |               {z                     }
                                                                 Lt−1

Efficient training is achieved by uniformly sampling t ∼ U (1, T ) and optimizing the corresponding Lt−1 , which, by
deriving Equation (22), can be further simplified to a denoising score-matching loss:
                                                              h                i
                                           LDDPM = Ez0 ,t,ϵ ∥ϵ − ϵθ (zt , t)∥2                                  (23)

where ϵ ∼ N (0, I).

                                                                 13
                                          Hyper-Transforming Latent Diffusion Models

A.2.1. I NFERENCE
The reverse posterior density defined in Equation (21) is no longer Markovian and coincides with the inference model
proposed in DDIM (Song et al., 2021a), where it is demonstrated that faster sampling can be achieved without retraining,
simply by redefining the generative process as:
                                                                          
                                                     N f (1) (z1 ) , σ12 I        if t = 1
                                    pθ (zt−1 |zt ) =     θ                                                                   (24)
                                                     qσ zt−1 |zt , f (t) (zt )    otherwise,
                                                                     θ


and considering that an estimation of ẑ0 = fθ (zt , t) can be computed as:

                                                        1       √                     
                                         fθ (zt , t) = √     zt − 1 − ᾱt · ϵθ (zt , t) ,                                      (25)
                                                         ᾱt
              Qt
where ᾱt =     i=1 αi . This formulation enables deterministic sampling with improved efficiency using fewer steps.


B. Training LDMI

Algorithm 1 Hyper-Transforming LDM
  Input: Dataset {(Xi , Yi )}N
                             i=1 , pre-trained LDM (frozen encoder Eψ , frozen diffusion model pθ ), Hyper-Transformer decoder pΦ


  repeat
    Sample batch (X, Y ) ∼ pdata (X, Y )
    Sample latent using frozen encoder: z ∼ qψ (z|Xm , Ym )
    Compute likelihood loss: LHT (ϕ) using Equation (15)
    if image data then
       Add perceptual loss: Lpercept
       Add adversarial loss: Ladv
    end if
    Update decoder parameters ϕ to minimize total loss
  until convergence



Algorithm 2 Training LDMI
  Input: Dataset (Xi , Yi )i = 1N , encoder Eψ , decoder pΦ , diffusion model pθ

  Stage 1: Training I-VAE
  repeat
    Sample batch (X, Y ) ∼ pdata (X, Y )
    Sample latent: z ∼ qψ (z|X, Y )
    Compute ELBO loss: LVAE (ϕ, ψ) using Equation (11)
    if image data then
       Add perceptual loss: Lpercept
       Add adversarial loss: Ladv
    end if
    Update parameters ϕ, ψ to minimize total loss
  until convergence

  Stage 2: Training DDPM
  repeat
    Sample batch (X, Y ) ∼ pdata (X, Y )
    Sample latent: z ∼ qψ (z|X, Y )
    Sample noise: ϵ ∼ N (0, I)
    Sample timestep: t ∼ U (1, T )
    Compute DDPM loss: LDDPM using Equation (14)
    Update parameters θ to minimize LDDPM
  until convergence


                                                                  14
                                       Hyper-Transforming Latent Diffusion Models

In addition to the hyper-transforming approach described in the main text, LDMI can also be trained from scratch using
a two-stage process. This follows the standard Latent Diffusion Model (LDM) training pipeline but incorporates our
Hyper-Transformer Decoder (HD) for INR generation. The training procedure consists of:

 1. Stage 1: Learning the Latent Space with I-VAE — We train a Variational Autoencoder for INRs (I-VAE) to encode
    continuous signals into a structured latent space. The encoder learns an approximate posterior qψ (z|X, Y ), while
    the decoder reconstructs signals from the latent variables. The training objective follows the Evidence Lower Bound
    (ELBO) as defined in Equation (11). To enhance reconstruction quality, additional perceptual or adversarial losses may
    be applied for certain data types.
 2. Stage 2: Training the Latent Diffusion Model (LDM) — Given the structured latent space obtained in Stage 1, we fit
    a diffusion-based generative model pθ (z) to the aggregate posterior qψ (z). This stage follows the standard DDPM
    framework, minimizing the objective in Equation (14). The learned diffusion prior enables generative sampling in the
    latent space, from which the HD decoder infers INR parameters.

The full training procedure is summarized in Algorithm 2.

C. Additional Experiments
C.1. Scalability of LDMI
A key strength of our approach lies in its parameter efficiency and scalability when compared to alternative methods. As
shown in Table 3, while previous approaches such as GASP (Dupont et al., 2022b) or VAMoH (Koyuncu et al., 2023) require
substantial hypernetwork parameters (25.7M) to generate relatively small INR weights (50K), LDMI achieves superior
performance with only 8.06M hypernetwork parameters while generating 330K INR weights for a 5-layer network.

                                Method          HN Params     INR Weights   Ratio (INR/HN)
                                GASP/VAMoH         25.7M          50K             0.0019
                                LDMI               8.06M         330K             0.0409

                   Table 3: Parameter efficiency of hypernetworks (HN) in GASP/VaMoH and LDMI.

We confirm this efficiency effect through an ablation study comparing our transformer-based HD decoder against a standard
MLP design, as MLPs are commonly used in hypernetwork implementations despite their limitations in modeling complex
dependencies. Table 4 shows that on CelebA-HQ, our HD architecture not only achieves superior reconstruction quality
(with a 2.79 dB improvement in PSNR) but does so with significantly fewer parameters—less than half compared to the
MLP architecture.

                                          Method        HN Params       PSNR (dB)
                                          LDMI-MLP         17.53M         24.93
                                          LDMI-HD          8.06M          27.72

              Table 4: Ablation study comparing MLP and hyper-transformer HD decoders on CelebA-HQ.


This parameter efficiency highlights a crucial advantage of our approach: hyper-transformer’s ability to capture complex
inter-dimensional dependencies translates to more effective weight generation with a more compact architecture. The
superior scaling properties of LDMI suggest that it can handle larger and more complex INR architectures without prohibitive
parameter growth, making it particularly suitable for high-resolution generation tasks that demand larger INRs.

C.2. Samples at Multiple Resolutions
To further demonstrate the flexibility of our model, we present additional qualitative results showcasing unconditional
samples generated at varying resolutions. As described in the main text, we sample from the latent diffusion prior, decode
the latents into INRs using our HD decoder, and evaluate them on coordinate grids of increasing resolution.

                                                            15
                                                   Hyper-Transforming Latent Diffusion Models

   CelebA-HQ (256 × 256)
   CelebA-HQ (64 × 64)
      ERA5
      3D Chairs




                           ×0.125          ×0.25              ×0.5               ×1                ×2           ×4

                                    Figure 8: Additional uncurated samples from LDMI at multiple resolutions.



Figure 8 displays generations from LDMI trained on data across different modalities, rendered at scales ranging from ×0.125
to ×4. These results highlight the resolution-agnostic nature of our approach and its ability to produce coherent, high-quality
outputs across a wide range of spatial resolutions.

C.3. Reconstructions at Multiple Resolutions
We provide additional reconstruction results to further illustrate LDMI’s ability to operate seamlessly across a wide range of
output resolutions. Each input image is encoded into a latent representation, sampled from the posterior, and decoded into
an INR using our HD decoder. The resulting INR is then evaluated over coordinate grids of increasing density to generate
reconstructions at progressively higher resolutions.
Figures 9 and 10 present reconstructions from LDMI trained on CelebA-HQ at (256 × 256) and (64 × 64), respectively.
Reconstructions are rendered at resolutions ranging from ×0.125 to ×4, showcasing the model’s ability to maintain spatial
coherence and fine details even under extreme upsampling. Notably, such flexible reconstruction is not supported by baseline
methods like GASP due to architectural limitations. Furthermore, datasets of this complexity are not even addressed by
other reconstruction-capable baselines such as VAMoH (Koyuncu et al., 2023), Functa (Dupont et al., 2022b), or Spatial
Functa (Bauer et al., 2023).

D. Experimental Details
This section outlines the hyperparameter settings used to train LDMI across datasets. We describe key components, including
the encoder, decoder, diffusion model, and dataset settings. Table 5 summarizes the hyperparameters used in our experiments,

                                                                       16
                                         Hyper-Transforming Latent Diffusion Models

covering both stages of the generative framework: (i) the first-stage autoencoder—either a VQVAE or β-VAE, depending on
the dataset—and (ii) the second-stage latent diffusion model. It lists architectural choices such as latent dimensionality,
diffusion steps, attention resolutions, and optimization settings (e.g., batch size, learning rate), along with details of the HD
decoder, tokenizer, Transformer modules, and INR architecture. For image-based tasks, we use perceptual and adversarial
losses to improve sample quality, following Esser et al. (2021). All models were trained on NVIDIA H100 GPUs.




                                                              17
                                        Hyper-Transforming Latent Diffusion Models

   GT
  ×0.125
  ×0.25
  ×0.5
  ×1
  ×2
  ×4




Figure 9: Reconstructions of test CelebA-HQ (256 × 256) images by LDMI at multiple resolutions. The ground truth image
is first passed through the encoder, which produces the parameters of the posterior distribution. A latent code is then sampled
and transformed into the parameters of the INR using our HD decoder. By simply evaluating the INRs at denser coordinate
grids, we can generate images at increasingly higher resolutions.




                                                              18
                                        Hyper-Transforming Latent Diffusion Models

   GT
  ×0.125
  ×0.25
  ×0.5
  ×1
  ×2
  ×4




Figure 10: Reconstructions of test CelebA-HQ (64 × 64) images by LDMI at multiple resolutions. The ground truth image
is first passed through the encoder, which produces the parameters of the posterior distribution. A latent code is then sampled
and transformed into the parameters of the INR using our HD decoder. By simply evaluating the INRs at denser coordinate
grids, we can generate images at increasingly higher resolutions.




                                                              19
                                      Hyper-Transforming Latent Diffusion Models

                       CelebA       CelebA-HQ 64 × 64    CelebA-HQ 256 × 256        ImageNet          ERA5           Chairs
resolution             64 × 64           64 × 64              256 × 256            256 × 256         46 × 90      32 × 32 × 32
modality                image             image                 image                image            polar        occupancy
first stage model      β-VAE             β-VAE                 VQVAE                VQVAE            β-VAE           β-VAE
Encoder
codebook size             -                 -                     8192                8192               -              -
latent channels           3                 3                       3                   3                3             64
base channels            64                64                     128                 128               32             32
ch mult                 1,2,4             1,2,4                   1,2,4               1,2,4            1,2,4          1,2,4
num blocks                2                 2                       2                   2                2              -
dropout                   -                0.1                      -                   -                -             0.2
kl weight               1e-05             1e-04                     -                   -             1.0e-6         1.0e-6
perc weight               1.                1.                      1.                  1.               -              -

Discriminator
layers                   2                 2                       3                    3               -              -
n filters                32                64                      64                  64               -              -
dropout                   -               0.2                       -                   -               -              -
disc weight             0.75              0.75                    0.75                 0.6              -              -
HD decoder

Tokenizer
latent size            16 × 16           16 × 16               64 × 64              64 × 64          11 × 22         4×4
patch size                 2                2                     4                    4                1              1
heads                     4                 4                     4                    4                4             4
head dim                  32               32                    32                   32               32             32

Transformer
token dim                192               192                     384                 768             136            128
encoder layers             6                 6                       5                   6               4              3
decoder layers             6                 6                       5                   6               4              3
heads                      6                 6                      6                   12               4              4
head dim                  48                48                      64                  64              32             32
feedforward dim          768               768                    1536                3072             512            512
groups                    64                64                     128                 128              64             64
dropout                    -               0.1                     0.1                   -               -            0.2

INR
type                   SIREN             SIREN                  SIREN                 MLP            SIREN
layers                    5                 5                      5                   5               5               5
hidden dim              256               256                    256                  256             256             256
point enc dim             -                 -                      -                   -              256              -
ω                        30.               30.                    30.                 30.               -             30.
Latent Diffusion
shape z              3 × 16 × 16       3 × 16 × 16            3 × 64 × 64         3 × 64 × 64      3 × 11 × 22     64 × 4 × 4
—z—                      768               768                   12288               12288             726            1024
diffusion steps          1000              1000                   1000                1000            1000            1000
noise schedule          linear            linear                 linear               linear          linear         linear
base channels             64                32                     224                 192              64            128
ch mult                1,2,3,4           1,2,3,4                 1,2,3,4             1,2,3,5         1,2,3,4           1,2
attn resolutions        2, 4, 8           2, 4, 8               8, 16, 32           8, 16, 32            -              4
head channels             32                32                      32                 192              32             64
num blocks                 2                 2                      2                    2               2              2
class cond                 -                 -                       -              crossattn            -              -
context dim                -                 -                       -                 512               -              -
transformers depth         -                 -                       -                   1               -              -
Training
batch size                64                64                      32                 32               64            128
iterations            300k, 400k        300k, 200k                 1M                1.4M           400k, 500k     300k, 60k
lr                   1e-06, 2e-06      1e-06, 2e-06               4.5e-6             1.0e-6        1e-06, 2e-06   1e-06, 2e-06
hyper-transforming         -                 -                      ✓                  ✓                 -             -
LDM version               -                 -               VQ-F4 (no-attn)      VQ-F4 (no-attn)        -              -

                                                Table 5: Architecture details.

                                                             20
