Bayesian Optimisation of Functions on Graphs

Xingchen Wan, Pierre Osselin, Henry Kenlay, Binxin Ru, Michael A Osborne, Xiaowen Dong

Abstract

Optimizing expensive-to-evaluate functions on large-scale graphs is a critical challenge in domains ranging from epidemiology to social network analysis. Traditional Bayesian Optimisation (BO) methods struggle with the discrete nature of graphs and the cubic computational complexity of Gaussian Process (GP) surrogates. This paper introduces BayesOptG, a framework that combines flexible spectral kernels with an adaptive local modeling approach (trust regions). BayesOptG enables efficient optimization on networks with millions of nodes, even when the full graph topology is not known a priori. Our results demonstrate superior sample efficiency and scalability across diverse real-world and synthetic datasets.

Introduction

In modern data science, many problems involve finding a specific node that maximizes an objective function within a complex network—such as identifying "patient zero" in an outbreak or locating critical bottlenecks in a power grid. Standard search algorithms like Breadth-First Search (BFS) are topology-aware but value-blind, while traditional BO is designed for continuous domains.

Optimizing on graphs presents three primary hurdles: the lack of gradients in discrete spaces, the prohibitive $O(N^3)$ scaling of GPs on large networks, and the reality that full graph structures are often only partially observable. BayesOptG addresses these by reformulating graph optimization as a local, adaptive search process.

Methodology

Flexible Spectral Kernels

To model functions on graphs, BayesOptG utilizes spectral learning on the graph Laplacian to define kernels. The authors introduce novel Polynomial and Sum-of-inverse polynomial kernels. Unlike standard diffusion kernels, these spectral kernels use a limited set of learnable parameters to adapt to the specific "smoothness" of the target function across the graph topology, preventing overfitting while maintaining flexibility.

Adaptive Local Modeling (Trust Regions)

To overcome scalability limits, BayesOptG employs a trust-region strategy. Instead of modeling the entire graph, it constructs a local surrogate model on a small "ego-network" (subgraph) centered around the current best node.

An illustration of one iteration of BayesOptG: (a) constructing a local subgraph, (b) placing a GP surrogate to pick the next query, and (c) updating the center if a better node is found.

As illustrated above, the algorithm adaptively resizes this trust region based on search success. This local approach reduces complexity to $O(Q^3)$, where $Q$ is the subgraph size, making the computation time independent of the total number of nodes $N$. This also allows the algorithm to operate on graphs where the global structure is discovered on-the-fly.

Experimental Evaluation

BayesOptG was evaluated on several challenging tasks:

  • Epidemiology: Identifying the source of an infection using Bluetooth proximity data.
  • Social Networks: Finding influential nodes in Enron, Facebook, and Twitch networks.
  • Synthetic Graphs: Testing on Barabási–Albert and Watts–Strogatz models to simulate real-world network properties.

Results and Discussion

Scalability and Efficiency

The trust-region approach provides a massive computational advantage. While "Full" graph BO becomes prohibitively slow as network size increases, the wall-clock time for BayesOptG remains nearly constant relative to the total graph size.

Wall-clock time comparison showing that trust regions (TR) enable efficient optimization on large graphs compared to full-graph modeling.

Performance

In maximizing centrality and influence scores, BayesOptG consistently outperformed BFS, DFS, and standard local search heuristics. It reached lower regret (closer proximity to the true optimum) with significantly fewer function evaluations. Notably, the framework successfully scaled to graphs containing one million nodes, a milestone for Bayesian optimization in discrete spaces.

Conclusion

BayesOptG represents a significant advancement in graph optimization, turning "needle in a haystack" problems into guided, efficient searches. By focusing on local ego-networks and employing adaptive spectral kernels, it bridges the gap between topological search and probabilistic modeling. Future work may extend this framework to directed graphs, weighted edges, and hypergraph structures.

Summary updated

BibTeX
@inproceedings{wan2023bayesian,
  author = {Xingchen Wan and Pierre Osselin and Henry Kenlay and Binxin Ru and Michael A Osborne and Xiaowen Dong},
  title = {{Bayesian Optimisation of Functions on Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=UuNd9A6noD},
}
Figure