TL;DR
Real-world interactions rarely happen purely in pairs—people chat in group threads, scientists co-author papers in teams, and shoppers buy bundles of items. Modeling and synthesizing these group dynamics requires hypergraphs, yet generating realistic ones from scratch is notoriously intractable. Enter JANUS: a framework that maps discrete group structures into smooth latent spaces and uses dual-stream diffusion to generate remarkably lifelike, multi-scale hypergraphs.
What Problem Does This Paper Address?
Standard graphs connect two nodes with an edge. Hypergraphs generalize this by allowing a single "hyperedge" to connect any number of nodes simultaneously. Synthesizing realistic hypergraphs is vital when real-world data is partially observed, hard to collect, or too sensitive to share (like medical or communication records).
However, generating hypergraphs is a combinatorial minefield. With $N$ nodes, there are $2^N$ possible hyperedges, making direct discrete generation computationally intractable. Historically, researchers relied on rigid, rule-based algorithms (like preferential attachment) that hit a few target statistics while missing complex, multi-scale patterns. Deep generative models offer more flexibility, but hypergraphs consist of two distinct, coupled entities—nodes and hyperedges—that are difficult to model jointly without blowing up memory.
Methods
Named after the two-faced Roman god of duality, JANUS sidesteps discrete combinatorial explosion by moving generation into a continuous latent space using a local-to-global strategy:
- Sub-hypergraph Decomposition: Instead of swallowing a massive hypergraph whole, JANUS uses biased random walks to sample overlapping local sub-hypergraphs. This turns one giant network into a rich training set of local structural patterns.
- Dual-View $\beta$-VAE: Standard autoencoders compress data into a single latent space. JANUS introduces a novel dual-view $\beta$-Variational Autoencoder with hypergraph attention layers to learn two separate but coupled latent spaces: one for nodes and one for hyperedges. An incidence decoder reconstructs connections from their element-wise interactions.
- Paired Latent Diffusion: To generate new samples, JANUS runs two parallel Diffusion Transformers (DiTs)—one denoising node latents, the other denoising hyperedge latents. Crucially, they don't work in isolation: cross-attention links the two streams at every reverse timestep so nodes and hyperedges co-evolve coherently.
- Entity Resolution: How do you stitch generated sub-hypergraphs back into one global network? JANUS trains a dedicated node decoder using a contrastive InfoNCE loss, pulling representations of the same node across different sub-views close together. At inference, standard $K$-means clustering merges recurring node identities.
JANUS operates in two modes: unconstrained (generating nodes and hyperedges from scratch given a target node count $K$) and node-set-constrained (JANUSNC) (generating hyperedges over a fixed set of known nodes, omitting node diffusion). The authors also introduce a standardized multi-scale evaluation protocol measuring micro- (e.g., node degree), meso- (e.g., communities, triangles), and macro-scale (e.g., diameter, transitivity) fidelity.
Datasets
No new datasets are introduced, though the authors propose a comprehensive multi-scale evaluation benchmark. They evaluate JANUS on five real-world hypergraphs (nodes, hyperedges):
- email-Enron / EE (143, 1,512) and email-Eu / EEu (998, 25,027): Email communication networks.
- contact-high-school / CHS (327, 7,818) and contact-primary-school / CPS (242, 12,704): Human face-to-face proximity interactions.
- NDC-classes / NDC (1,161, 1,088): Drug classification networks.
Key Insights and Ideas
- A good autoencoder isn't enough: When the authors bypassed diffusion and sampled directly from the $\beta$-VAE’s Gaussian prior, structural errors skyrocketed—latent diffusion reduced Hyper NetSimile (HNS) and Hyperedge Portrait Divergence (HPD) errors by ~89% and ~85% on email-Enron. Smooth latent spaces still need diffusion to find the manifold of valid structures.
- Nodes and hyperedges must "talk" during denoising: Ablating the cross-attention between the two Diffusion Transformers degraded performance across all metrics by roughly 50% on average, proving that independent plausible latents don't guarantee a valid bipartite incidence matrix.
- Contrastive glue works—until networks fragment: Training the node decoder without InfoNCE severely hurt global fidelity (increasing HNS error by ~58%). However, clustering-based entity resolution struggles when the original dataset is highly disconnected (like NDC, which has 183 separate components), making global node identity ambiguous.
Key Results
Tested against nine baselines, JANUS delivers the most consistent performance across scales, shining brightest in mesoscopic (community/motif) organization and high-order similarity.
- Unconstrained Generation: JANUS achieves the #1 overall aggregated rank on 4 out of 5 datasets (NDC, CHS, CPS, EE) and #1 in macroscopic fidelity and HNS across all datasets. On CHS, it slashes Node Degree Distribution (NDD) Wasserstein distance from $13.51$ (THERA) down to $2.95$. On EEu, it places a close second overall (2.3 average rank vs. 2.1 for SUBSETSAMPLING).
- Node-Set-Constrained (
JANUSNC): Ranks #1 overall on all five datasets. For exact hyperedge reconstruction (HR) on EEu,JANUSNCrecovers 14,693 true hyperedges compared to just 3,297 for the runner-up (HYPERPLR), while boosting Jaccard similarity on EE from $0.1613$ to $0.9215$. It also slashes open-triangle count error on NDC from $3,509$ (HYPERDK00) to $11.6$.
Limitations and Future Work
- Transductive Constraint: In the node-set-constrained setting (
JANUSNC), initial node features are computed vianode2vecon the observed hypergraph's clique expansion. Because this leaks pairwise co-occurrence structure,JANUSNCperforms structure-conditioned reconstruction rather than purely inductive generation from raw, topology-free node attributes. - Fragmentation Bottlenecks: Local-to-global merging via $K$-means degrades on fragmented hypergraphs with many disconnected components.
- Future Directions: The authors plan to explore alternative sub-hypergraph sampling strategies and integrate classifier-free guidance, which would allow users to steer generation toward specific, novel structural properties on demand.
Summary updated