HyperGen: Learning Structure-Aware Spectral Flows for Hypergraph Generation

Yu Xie, Junqi Liu, Hangyuan Du, Zhiqiang Wang, Ming LiNeurIPS 2026

TL;DR

Real-world networks often involve group interactions (hypergraphs) rather than simple pairwise links, yet privacy and collection hurdles make this data scarce. HyperGen solves the tricky problem of generating realistic synthetic hypergraphs by transporting random noise through a phase-enhanced spectral space using flow matching, and then decoding those continuous frequencies back into discrete group structures. By side-stepping a classic mathematical trap—that you can't uniquely invert a hypergraph's spectrum—it recovers complex group dynamics with near-perfect fidelity.

What Problem Does This Paper Address?

Standard graphs connect pairs of nodes, like two people shaking hands. Hypergraphs generalize this: a single "hyperedge" can connect any number of nodes simultaneously, like five co-authors on a paper or three molecules in a chemical reaction. Because real-world hypergraph data is often locked behind privacy walls or expensive to annotate, we need generative models to create realistic synthetic stand-ins.

Existing generators mostly rely on structural rules-of-thumb—like growing networks via "forest fire" propagation or flattening the hypergraph into a standard pairwise graph and guessing where the cliques are. They rarely model the incidence matrix (the direct table of which nodes belong to which hyperedges) head-on.

A natural alternative is to work in the spectral domain—using eigenvalues and eigenvectors of the network's Laplacian matrix to capture global and local structure, much like a Fourier transform captures low- and high-frequency audio waves. Here’s the catch: hypergraph spectra are non-invertible. Just as two differently shaped drums can theoretically "sound" the same (cospectrality), multiple distinct hypergraphs can share the exact same spectrum. You cannot simply generate a spectrum and algebraically invert it to get a unique discrete hypergraph.

Methods

Instead of trying to mathematically invert an un-invertible spectrum, the authors design HyperGen to learn a structure-aware bridge between continuous spectral space and discrete hyperedges. The pipeline has three main stages:

Figure 1: An overview of HyperGen, which consists of three key modules. The Phase-Aware Hypergraph Spectral Encoder (top-left) encodes the input hypergraph into a phase-aware spectral latent space (right). The Conditioned Hypergraph Spectral Vector Field in Continuous Latent Space (right) learns the continuous generation of high- and low-frequency spectral components from latent noise. Furthermore, the resulting spectral representations are fed into the Hyperedge Decoder & Denoised Hypergraph Generator (bottom-left), which reconstructs discrete hypergraphs.
  1. Phase-Aware Spectral Encoder (What's New): Standard incidence matrices only use 0s and 1s, discarding directional or role nuances. Inspired by quantum mechanics (specifically Peierls phases), HyperGen attaches a learnable complex phase $e^{i\phi}$ to each node–hyperedge link and embeds this into a block-structured Hermitian matrix (the complex-valued cousin of a symmetric matrix, which nicely guarantees real eigenvalues). It then extracts the lowest-frequency eigenpairs (global big-picture structure) and highest-frequency eigenpairs (local neighborhood details) to form a rich latent target.
  2. Conditioned Spectral Flow Matching: Using standard flow matching—a cousin of diffusion models that learns straight, continuous paths from Gaussian noise to data—HyperGen trains a hypergraph convolutional network to act as a velocity field, steering noisy latent states into valid spectral embeddings.
  3. Dual-Decoder & Denoising (What's New): Once new spectral latents are generated, HyperGen splits off the hyperedge embeddings and passes them through a dual decoder: an amplitude decoder (predicting hyperedge weights) and a structure decoder (predicting node memberships). Finally, a confidence-thresholding denoising step sweeps away low-probability, spurious connections.

Datasets

The authors evaluate HyperGen in a fixed-node setting across five real-world benchmark datasets representing temporal higher-order interaction networks (no new datasets are introduced):

  • Social contact networks: contact-high-school and contact-primary-school
  • Email communication networks: email-Enron and email-Eu
  • Pharmaceutical classifications: NDC-classes

Key Insights and Ideas

  • Complex phases break spectral symmetries: The authors prove theoretically that adding learnable complex phases strictly enlarges the expressive power of the spectral operator. Without phases, distinct structural interactions get squashed together; with phases, the vector field can tell them apart.
  • Deterministic flow does the heavy lifting: In an ablation study where the authors turned off random noise injection along the training path (w/o noise), performance barely budged. This reveals that the deterministic transport trajectory learned by flow matching is doing almost all the work, rather than relying on stochastic exploration.
  • Low frequencies matter more than high frequencies: Removing low-frequency components hurt structural recovery noticeably more than removing high-frequency ones, confirming that nailing the global scaffold of a hypergraph is priority number one before filling in local details.
  • Raw spectral decoding is noisy—and that's okay: Before denoising, HyperGen captures 100% of true incidences (Recall = 1.00) on every dataset, but hallucinates millions of extra, low-confidence links. Because the underlying signal is cleanly separated from the chaff, a simple threshold filter completely cleans it up.

Key Results

HyperGen (specifically its denoised output, HyperGen_DN) substantially outperforms static, temporal, and projection-based baselines like HyperPLR, HyperDK11, THERA, and HyperFF.

Table 1: Structural performance comparison on temporal higher-order interaction networks.
  • Structural Recovery: Across all five benchmarks, HyperGen_DN achieves 1.00 Recall, 1.00 Precision, and 1.00 F1, with 0 missing and 0 extra node–hyperedge incidences. For comparison, on contact-high-school (18,192 true incidences), the strongest baseline F1 is HyperPLR at 0.32 (matching 6,207 links while hallucinating 14,891), while HyperDK11 hits 0.49 Recall but only 0.09 Precision.
  • Spectral & Geometric Fidelity: When measuring eigenvalue deviations (Rel-Spec, TopK-Spec, Wasserstein distance) and subspace alignment (Frobenius norm, SCC), HyperGen_DN drives errors down to 0.00 (or 0.01 in two isolated cells), whereas baselines suffer Wasserstein distances ranging from 2.11 up to 1,000+.

Limitations and Future Work

  • The Eigendecomposition Bottleneck: Computing full eigendecompositions on a $(n+m) \times (n+m)$ Hermitian matrix (where $n$ is nodes and $m$ is hyperedges) gets expensive in both compute time and memory as hypergraphs grow, limiting scalability on massive networks.
  • Fixed-Node Setup: The current framework assumes a shared node set and matched hyperedge budget with the observed hypergraph.
  • Next Steps: Future work aims to speed things up with approximate eigensolvers and lighter-weight vector fields, expand to variable-size hypergraph generation, and bake formal privacy guarantees directly into the training objective.

Summary updated

Abstract

Hypergraphs provide a natural representation for high-order relations, but real-world hypergraph data is often difficult to share or collect due to privacy, access, and annotation constraints. Hypergraph generation is therefore useful for constructing surrogate high-order relational data. Existing generators, however, typically build hyperedges through structural heuristics, propagation rules, or projected graph spaces, and thus do not directly model the incidence relation between nodes and hyperedges. Spectral representations offer a principled way to encode global and local relational patterns, but hypergraph spectra are intrinsically non-invertible: a spectral representation does not determine a unique discrete incidence structure. We propose HyperGen, a structure-aware generative framework that models hypergraph generation as continuous dynamics in a phase-enhanced spectral latent space. HyperGen constructs a Hermitian node--hyperedge spectral operator with learnable incidence phases, learns a conditional vector field that transports noise toward target spectral embeddings, and decodes the generated latents into node--hyperedge incidence matrices through a learned spectrum-to-structure mapping with denoising. Experiments on benchmark hypergraphs show that HyperGen more accurately recovers node--hyperedge incidences and better preserves spectral and geometric characteristics than existing baselines.
BibTeX
@inproceedings{xie2026hypergen,
  author = {Yu Xie and Junqi Liu and Hangyuan Du and Zhiqiang Wang and Ming Li},
  title = {{HyperGen: Learning Structure-Aware Spectral Flows for Hypergraph Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=etKi0VBHKP},
}
Figure