Controllable Graph Generation with Diffusion Models via Inference-Time Tree Search Guidance

Jiachi Zhao, Zehong Wang, Yamei Liao, Chuxu Zhang, Yanfang YearXiv 2025 · DOI

Introduction

Generating graphs with specific target properties is a fundamental challenge in drug discovery and materials science. While diffusion models have set new benchmarks for generating high-quality and diverse data, they often struggle with controllable generation in discrete, sensitive domains like molecular graphs. Standard diffusion processes are typically unconditional or rely on "greedy" local guidance, which can lead to structural invalidity or sub-optimal property optimization.

TreeDiff addresses these limitations by treating the denoising process as a global planning problem. By integrating Monte Carlo Tree Search (MCTS) into the inference phase, TreeDiff enables diffusion models to explore multiple potential trajectories, resulting in state-of-the-art performance that scales effectively with increased computational resources.

The Challenge of Controllable Graph Generation

Graph generation faces two primary hurdles in the context of diffusion models:

  1. Lack of Control: Steering a model toward specific goals (e.g., maximizing a molecule's binding affinity) often requires expensive retraining. Existing inference-time methods are frequently "short-sighted," making corrections based only on the immediate next step without considering long-term structural consequences.
  2. Structural Fragility: Graphs are discrete and highly sensitive to small perturbations. A minor error in a single denoising step can cascade into a chemically impossible or biologically inactive structure.

Methodology: The TreeDiff Framework

TreeDiff reimagines the sequential denoising process as a search tree, allowing for global planning rather than local optimization. To maintain computational efficiency while ensuring structural validity, the framework introduces three key innovations:

Macro-Step Expansion

Standard diffusion involves hundreds of fine-grained steps. To make MCTS feasible, TreeDiff groups multiple denoising updates into a single "macro-step." This reduces the depth of the search tree, allowing the model to "look ahead" significantly further into the generation process.

The standard sequential denoising process which TreeDiff optimizes via global search.

Dual-Space Denoising and Verification

TreeDiff operates across two spaces to balance efficiency and validity. The bulk of the search occurs in a continuous latent space, which is smooth and easier to navigate. Periodically, the state is projected into a discrete graph space to apply structural corrections and ensure chemical validity.

To avoid the cost of completing every potential molecule during the search, TreeDiff employs a Dual-Space Verifier. This trained neural network predicts the final reward of a partially denoised graph, allowing the MCTS to prune unproductive branches early in the search process.

Experimental Evaluation

The researchers evaluated TreeDiff across several 2D and 3D molecular benchmarks, including BACE, BBBP, and HIV for biological properties, and QM9 and GEOM-Drugs for quantum chemical properties. The framework was compared against standard diffusion, Best-of-N sampling, and existing inference-time state-of-the-art (SOTA) guidance methods.

Results and Scaling Analysis

TreeDiff achieved the best average rank (1.9) across 2D molecular tasks and significantly reduced Mean Absolute Error (MAE) for quantum properties on the QM9 benchmark.

Inference-Time Scaling

A standout feature of TreeDiff is its favorable scaling behavior. Unlike traditional guidance methods that often plateau, TreeDiff's performance continues to improve as more computational budget (measured in Number of Function Evaluations, or NFE) is allocated to the MCTS rollouts.

Performance scaling of TreeDiff (red) compared to baselines across 2D and 3D molecular generation tasks.

Robustness and Global Planning

By navigating multi-objective landscapes through global planning, TreeDiff maintains stability even in "Out-of-Distribution" (OOD) settings. It successfully balances realistic molecular structure with specific target properties, such as high Quantitative Estimate of Drug-likeness (QED) or low Synthetic Accessibility Score (SAS).

Conclusion

TreeDiff demonstrates that integrating search-based planning into diffusion models can overcome the inherent limitations of local guidance in graph generation. While MCTS introduces higher computational costs per generation, the resulting improvements in precision and scaling make it a powerful tool for high-stakes discovery tasks. Future work may extend this framework to other structured data types, such as program synthesis or circuit design, where long-term planning is equally vital.

Summary updated

BibTeX
@misc{zhao2025controllable,
  author = {Jiachi Zhao and Zehong Wang and Yamei Liao and Chuxu Zhang and Yanfang Ye},
  title = {{Controllable Graph Generation with Diffusion Models via Inference-Time Tree Search Guidance}},
  year = {2025},
  eprint = {2510.10402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.10402},
}
Figure