Feature-Aware (Hyper)graph Generation via Next-Scale Prediction

Dorian Gailhard, Enzo Tartaglione, Lirida Naviner, Jhony H. Giraldo

TL;DR

This paper introduces FAHNES, a novel hierarchical framework for generating featured graphs and hypergraphs that scales to large, complex structures. By jointly modeling topology and features across multiple scales, FAHNES overcomes limitations of existing methods and achieves state-of-the-art performance on diverse datasets.

What Problem Does This Paper Address?

Generating complex structured data like graphs and hypergraphs is crucial for many applications, from molecular design to 3D shape modeling. While existing methods can generate these structures, they often struggle with scalability, especially when dealing with large datasets or when node and edge features are important. Hierarchical approaches offer better scalability but typically ignore these features, leading to incomplete representations. Hypergraphs, which model higher-order relationships, are particularly challenging due to their complex structure and the need to capture multi-way interactions along with features. FAHNES aims to bridge this gap by providing a scalable, feature-aware hierarchical generation framework for both graphs and hypergraphs.

Methods

FAHNES employs a coarsening-expansion strategy for hierarchical generation. During training, input hypergraphs are progressively coarsened into multi-scale representations. The model then learns to reverse this process through expansion (upsampling) and refinement, generating topology and features simultaneously at each scale.

Key novelties include:

  • Hierarchical Scale Encoding: This novel component guides the generation process by encoding local growth constraints and ensuring cross-scale consistency. It controls granularity and helps manage uneven growth rates across different regions of the graph.
  • Feature-Aware Joint Generation: Unlike previous hierarchical methods that focused solely on topology, FAHNES jointly predicts both topology and features at each scale, ensuring that features are integrated throughout the generation process.
  • Multi-Scale Graph Optimal-Transport (OT) Coupling: This technique generalizes minibatch OT coupling to the hierarchical graph setting, improving training stability and coherence by aligning predicted and target structures across scales.
  • Flow Matching Framework: The model is trained using a conditional flow-matching framework, which is known for its effectiveness in generative modeling.

Datasets

FAHNES is evaluated on a variety of datasets, including:

  • Unfeatured Hypergraphs: Stochastic Block Model (SBM), Ego, Tree.
  • Featured Hypergraphs (3D Meshes): ManifoldNet Airplane and Bench (derived from ModelNet40).
  • Unfeatured Graphs: SBM, Tree, Planar, Protein, Point Cloud.
  • Featured Graph Point Clouds: Sampled from ManifoldNet Airplane and Bench meshes.

The paper also references datasets used in prior work for comparison, such as ModelNet40 for meshes.

Key Insights and Ideas

  • Jointly modeling topology and features is crucial for complex structures: The paper demonstrates that separating topology and feature generation, or generating them in a disjoint manner, leads to suboptimal results, especially for featured hypergraphs. FAHNES's integrated approach is key to its success.
  • Hierarchical scale encoding is vital for controlling granularity and consistency: This novel component allows for fine-grained control over local growth and significantly improves global consistency, addressing a key challenge in hierarchical generation.
  • Scalability is achieved through hierarchy and efficient feature integration: By breaking down the generation process into manageable hierarchical steps and efficiently integrating features, FAHNES can handle much larger and more complex structures than flat models.
  • Multi-scale OT coupling stabilizes training for hierarchical generation: This technique is essential for aligning predicted and target structures across different scales, leading to more robust and efficient training.

Key Results

  • State-of-the-art performance: FAHNES achieves competitive or state-of-the-art performance across various datasets for both featured and unfeatured graphs and hypergraphs.
  • Scalability: The method uniquely scales to featured large-scale graphs and hypergraphs, outperforming prior methods that struggle with quadratic complexity. For instance, it shows strong performance on 3D mesh and point cloud datasets where flat models fail.
  • Improved generation quality: Ablation studies show that both the hierarchical scale encoding and the multi-scale graph OT coupling components significantly improve generation quality.
  • Efficiency: The hierarchical approach leads to quasi-linear complexity, making it practical for larger datasets.

Limitations and Future Work

  • Scalability for extremely large structures: While FAHNES significantly improves scalability, it still struggles with extremely large hypergraphs (e.g., ModelNet Bookshelf and Piano) and graphs (e.g., point cloud datasets). This highlights the ongoing challenge of handling both large node counts and high structural complexity simultaneously.
  • Handling richer feature modalities: The current framework primarily handles continuous features (like 3D coordinates). Extending it to domains with richer or heterogeneous node and hyperedge attributes (e.g., categorical or multi-modal features) is a potential future direction.
  • Computational cost of training: Despite its efficiency gains, training FAHNES remains computationally expensive for large-scale datasets, which might limit its applicability in resource-constrained settings.

Future work could explore more advanced modeling components to address these limitations, potentially leading to even more powerful and versatile generative models for structured data.

Summary updated

BibTeX
@inproceedings{gailhard2026feature,
  author = {Dorian Gailhard and Enzo Tartaglione and Lirida Naviner and Jhony H. Giraldo},
  title = {{Feature-Aware (Hyper)graph Generation via Next-Scale Prediction}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=19ksKPfJcT},
}
Figure