Introduction
Generating graphs with optimized properties—such as potent drug molecules or high-performance neural network architectures—is a cornerstone of modern scientific discovery. However, the search space for these structures is vast, and evaluating a single candidate often requires expensive "real-world" feedback. In chemistry, a high-fidelity simulation can consume hours of CPU time; in AI research, training a single neural network to verify its accuracy can take weeks and result in significant carbon emissions.
Existing deep generative models, typically based on Reinforcement Learning (RL) or Variational Autoencoders (VAEs), often require between 3,000 and 100,000 evaluations to converge. This creates a massive bottleneck for resource-constrained research. CAGG (Cost-Aware Graph Generation) addresses this by framing graph generation as a Bayesian Optimization (BO) problem, reducing evaluation costs by over 95% through a "dummy landscape" hallucination strategy.
Methodology
The CAGG framework treats graph generation as an iterative optimization process designed to minimize expensive evaluations. It consists of three primary components that work in a closed loop:
- The Surrogate Model: A Bayesian Graph Neural Network (BGNN) that approximates the expensive evaluation function. By employing Monte Carlo dropout, it provides both property predictions and a measure of uncertainty, which is critical for balancing exploration and exploitation.
- The Generation Model: A deconvolutional neural network trained in two stages. First, it undergoes unsupervised pre-training to learn the structural rules of valid graphs (e.g., chemical valency). Second, it undergoes goal-oriented training against the surrogate model’s "dummy landscape." This allows the generator to "dream" of optimal structures without consuming real-world resources.
- The Acquisition Function: Utilizing Expected Improvement (EI), this component analyzes the surrogate's predictions to select the single most promising candidate from the generated search space for actual, costly evaluation.
Experimental Setup
The framework was validated across two distinct domains to demonstrate its versatility:
- Molecular Discovery: Utilizing the QM9 dataset (134k small molecules), the model aimed to optimize for drug-likeness (QED) and synthetic accessibility (SA).
- Neural Architecture Search (NAS): Evaluated on NASBench201 (image classification on CIFAR-100 and ImageNet) and the Indoor & Slice datasets (multi-branch architectures for regression tasks).
Results and Discussion
CAGG demonstrates substantial improvements in efficiency and environmental impact compared to state-of-the-art baselines.
Performance and Cost Efficiency
In molecular discovery tasks, CAGG reached optimal property scores in only 128–144 evaluations. In contrast, established methods like GCPN and Gentrl failed to converge even after 3,000 evaluations. This efficiency translates directly into reduced computational overhead and environmental sustainability.
For the $logP-SA$ task, CAGG reduced estimated $CO_2$ emissions from approximately 412 lbs to just 17.7 lbs and slashed cloud computing costs from over $1,200 to roughly $60. In the NAS domain, CAGG identified architectures with superior accuracy while reducing total search time by 75% (from 205 hours to 50.3 hours).
Key Insights
- The "Dummy Landscape" Strategy: By guiding the generator through a predicted landscape rather than the real one, CAGG focuses expensive evaluations only on the most promising regions of the graph space.
- Uncertainty Quantification: The use of a Bayesian surrogate prevents the generator from being misled by overconfident but inaccurate predictions, a common failure mode in standard neural networks.
- Domain Agnosticism: CAGG learns graph features automatically, making it applicable to any field where data can be represented as a graph without requiring hand-crafted kernels.
Limitations and Future Work
While CAGG represents a significant leap in efficiency, several avenues for future research remain. The current model utilizes a fixed maximum node limit, which may constrain the discovery of larger, more complex structures. Additionally, the framework currently assumes uniform evaluation costs; future iterations could incorporate "cost-per-evaluation" awareness to handle scenarios where some graphs are inherently more difficult to evaluate than others. Finally, extending the framework to handle more complex multi-objective optimization scenarios remains a priority.
Summary updated