Neural Dispersion on Graphs

Ryien Hosseini, Pouya Mahdi Gholami, Filippo Simini, Venkatram Vishwanath, Rebecca Willett, Henry HoffmannICML 2026

TL;DR

This paper introduces Neural Graph Dispersion (NGD), a novel method for generating diverse sets of graphs by directly optimizing for structural dissimilarity. NGD overcomes the limitations of prior approaches by treating graph generation as a continuous optimization problem, enabling scalable and flexible generation of structurally varied graphs.

What Problem Does This Paper Address?

Generating sets of graphs that are structurally diverse is crucial for various machine learning tasks, such as developing robust combinatorial solvers, assessing the expressivity of graph neural networks (GNNs), and creating challenging benchmarks. However, existing methods struggle with this problem. Classical random graph models produce graphs from limited structural families, while iterative search methods and generative bootstrapping pipelines are computationally expensive and scale poorly with graph size and the desired number of diverse graphs. A key challenge is that graph dispersion problems don't naturally fit the standard supervised learning paradigm, which relies on samples from a target distribution. This paper aims to bridge this gap by proposing a direct neural optimization approach for graph diversity.

Methods

The core of Neural Graph Dispersion (NGD) lies in treating graph generation as a continuous optimization problem. Instead of fitting a distribution, NGD optimizes an ensemble of neural generators to produce diverse graphs by minimizing a repulsive potential in a learned graph feature space.

Here's a breakdown of the key components:

  • Neural Generators: An ensemble of neural networks (MLPs) that map random noise vectors to adjacency probability matrices, effectively inducing relaxed graphs.
  • Spectral-Moment Feature Map: A differentiable, isomorphism-invariant feature map that represents graphs using normalized spectral moment ratios. This provides a general structural representation.
  • Directional Graph Metrics: To avoid overemphasizing specific features, NGD uses random projections of the feature vectors. Each generator is optimized using a directional metric derived from these projections, encouraging dispersion in different "directions" of the feature space.
  • Trajectory-Based Generation: Graphs are sampled during the optimization process, as the generators' representations are pushed apart by the repulsive potential. This means the optimization dynamics themselves become the generative mechanism.
  • Bounded Candidate Selection: After generating a pool of relaxed graphs, they are discretized (e.g., via temperature sampling) and a final set of k diverse graphs is selected using a greedy approach based on a chosen evaluation metric. This allows for refinement under specific downstream metrics without retraining.

Datasets

The paper does not introduce new datasets. Instead, it focuses on generating synthetic graphs. The evaluation uses standard graph metrics and downstream tasks that rely on existing graph datasets or generated graph ensembles.

Key Insights and Ideas

  • Diversity as an Optimization Objective: The most significant insight is reframing graph diversity not as a sampling problem from a target distribution, but as a direct optimization objective. This allows for neural methods to be applied where traditional generative models fail.
  • Optimization Dynamics as Generation: The idea that the process of optimizing a repulsive potential itself generates diverse outputs is powerful. The trajectories of the generators in the feature space directly lead to structurally varied graphs.
  • Ensemble of Directional Metrics: Using an ensemble of generators, each optimized with respect to a different random projection of the graph features, is crucial for achieving broad structural coverage. This prevents the model from becoming overly specialized to a single metric.
  • Scalability through Continuous Optimization: By avoiding combinatorial search and iterative refinement on discrete graphs, NGD achieves significant scalability improvements, particularly for larger graph sizes and target cardinalities.

Key Results

  • Competitive Diversity: NGD achieves competitive or superior performance compared to prior state-of-the-art methods on small-scale graph dispersion tasks across multiple standard evaluation metrics (GCD, Heat, Wave, Portrait Divergence).
  • Scalability: NGD demonstrates remarkable scalability, maintaining high structural diversity for graph sizes (N) and target set cardinalities (k) an order of magnitude larger than previously feasible. For example, it scales to N=128 and beyond, where combinatorial methods become intractable.
  • Downstream Performance: Graphs generated by NGD expose structural regimes that are inaccessible to standard parametric ensembles. This leads to significantly higher errors in GNN regression tasks and more challenging instances for greedy graph coloring, indicating that NGD generates graphs that truly stress-test models and algorithms.
  • Efficiency: NGD requires less memory and computation than methods like IGGM, especially at larger scales, and is amenable to multi-GPU training.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the Coulomb-style repulsive potential, while effective for optimization, is unbounded and ill-suited for direct evaluation.
  • While NGD achieves broad structural coverage, the specific "dispersion" achieved is guided by the chosen surrogate metrics and ensemble directions.
  • Future Work:
    • Extending NGD to other combinatorial domains beyond graphs (e.g., sets of permutations, matchings).
  • Exploring alternative dispersive potentials or generator architectures.
  • Developing theoretical characterizations of graphs generated along or at convergence of the optimization trajectories.

Summary updated

BibTeX
@inproceedings{hosseini2026neural,
  author = {Ryien Hosseini and Pouya Mahdi Gholami and Filippo Simini and Venkatram Vishwanath and Rebecca Willett and Henry Hoffmann},
  title = {{Neural Dispersion on Graphs}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=dtvCOsy3ie},
}
Figure