arXiv:2611.08788cs.LGNov 2026

Manuscript Offprint

arXiv:2611.08788

Not All Latents Are Equal: Importance-Weighted Latent Graph Generation

Biraaj Rout, Jay Revolinsky, Han Liu, Harry Shomer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Graph generation has shown tremendous effectiveness in modeling complex scientific tasks ranging from molecule generation to optimized circuit design. Most recent advancements have developed models that learn to denoise noisy graphs using either discrete diffusion or flow matching. However, discrete graph diffusion scales quadratically with the number of nodes, making it difficult to use such models on larger graphs. On the other hand, latent graph generation instead seeks to denoise noisy graph latents, which scale better to more nodes due to their lower dimension. However, in practice, latent graph generation models lag behind their discrete counterparts in performance. We study this problem, finding that it is caused by the unequal distribution of that different latent dimensions have on graph reconstruction. the impact. We observe that the vast majority of impact is contained in only a smaller number of latent dimensions. Since equal emphasis is placed on reconstructing the entire latent in the loss function, existing models are optimized to reconstruct information irrelevant to the downstream task. To tackle this problem, we propose Latent Importance Reweighting (LIR) which weights each latent dimensions via it's importance to final graph reconstruction. Importance is calculated as the relative influence of a single latent unit on graph reconstruction, which is represented via the Jacobian of the decoder relative to the latent. Our method is model-agnostic and requires no additional model parameters or hyperparameters. Experiments show that LIR can boost performance and lead to faster training convergence when applied to two different autoencoders on various benchmark datasets.

Code: https://github.com/biraaj/GraphGenLatentReweight

1 INTRODUCTION

Graph generation focuses on generating new and novel graphs from a learnt distribution Liu et al. (2023). Traditionally, simple models were used for generating graphs that did not really rely on deep neural networks Leskovec et al. (2007); Newman et al. (2001). More recently, methods have been proposed that use diffusion Yang et al. (2023) or flow matching Lipman et al. (2023) models to generate graphs.

Existing methods can be separated into two groups. Discrete methods operates solely on the discrete adjacency structure of the graph, which is directly denoised Vignac et al. (2022); Qin et al. (2024); Xu et al. (2024); Revolinsky et al. (2026). However, because these methods operate on the adjacency matrix, they struggle when the number of nodes increases as each denoising steps needs to infer O(N2)O(N^2) entries, resulting in a prohibitively high complexity. To account for this, latent methods operate on latent graph representations instead. These methods Zhou et al. (2024); Siraudin & Morris (2026); Boget et al. (2025) first project the node to a latent space via an autoencoder Kipf & Welling (2016). Denoising is then done on the individual latents, avoiding the quadratic scaling seen with discrete diffusion.

However, in practice we observe that latent graph generation lags behind their discrete counterparts. We give an example in Figure 1, where we can observe that on the Tree dataset (64 nodes) Bergmeister et al. (2023) the discrete models perform much better than the latent models. This is as opposed to vision models, where latent models tend to perform well on their own right Rombach et al. (2022). This leads to an obvious question, why does latent graph generation struggle compared to discrete graph generation?

In this paper, we first study this question. In Section 4.1 we find that for existing graph latents, most dimensions have no impact on the final reconstructed graph. Latent impact is measured by taking the magnitude of the Jacobian of the decoder relative to the input latent. An example can be seen in Figure 3 where on multiple datasets, the vast majority of latent dimensions have minimal to no impact on the graph reconstruction. We further empirically demonstrate this in Section 4.2, where using only the influential latent dimensions in the decoder are enough for near perfect reconstruction. This is problematic, because latent diffusion is optimized to reconstruct the original latents via MSE loss, where each latent dimensions is weighed equally. However, this analysis demonstrates that some latent dimensions are much more important than others.

Figure

Figure 1: Accuracy plot on the tree dataset Bergmeister et al. (2023) for multiple models. Note that “VGAE” substitutes VGAE Kipf & Welling (2016) for LG-VAE in Siraudin & Morris (2026). Observe that the latent models lag behind their discrete counterparts.

To overcome this problem, we propose steering the model to primarily focus on reconstructing latent that has a bigger impact on graph reconstruction. This is achieved by simply weighting each dimension in the latent diffusion loss by its importance to reconstruction, which is determined by using our prior definition of latent dimension importance via the Jacobian of the decoder relative to the input latent. We refer to this method as Latent Importance Reweighting (LIR) and detail how it is used in Figure 2. LIR is a model-agnostic solution that purely involves modifying the loss function. We perform experiments on 5 datasets and two autoencoders (i.e., latent models), showing that it can substantially improve performance while allowing for faster model convergence. Our contributions include:

  • We propose measuring the impact of specific latent dimensions on the reconstructed graph via the Jacobian of the latent relative to the decoder output, demonstrating that most of the latent impact is concentrated in a few dimensions.

  • We propose reweighting the loss for each latent dimension via its measured importance (LIR). LIR is model-agnostic and incurs no additional model parameters or hyperparameters.

  • We show that applying LIR to 2 separate autoencoders can improve performance on 5 datasets by up to 70% while improving convergence speed.

References (37)