Text-to-graph Generation with Conditional Diffusion Models Guided by Graph-aligned LLMs

Yang Yao, Xin Wang, Yijian Qin, Zeyang Zhang, Wenwu Zhu, Hong MeiOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

Text-to-graph generation, aiming for controlled graph generation based on natural language instructions, holds significant application potentials in real-world scenarios such as drug discoveries. However, existing generative models fail to achieve text-to-graph generation in the following two aspects: i) language model-based generative models struggle with generating complex graph structures, and ii) graph-based generative models mainly focus on unconditional graph generation or conditional generation with simple conditions, falling short in understanding as well as following human instructions. In this paper, we tackle the text-to-graph generation problem by employing graph diffusion models with guidance from large language models (LLMs) for the first time, to the best of our knowledge. The problem is highly non-trivial with the following challenges: 1) How to align LLMs for understanding the irregular graph structures and the graph properties hidden in human instructions, 2) How to align graph diffusion models for following natural language instructions in order to generate graphs with expected relational semantics from human. To address these challenges, we propose a novel LLM-aligned Graph Diffusion Model (LLM-GDM), which is able to generate graphs based on natural language instructions. In particular, we first propose the self-supervised text-graph alignment to empower LLMs with the ability to accurately understand graph structures and properties by finetuning LLMs with several specially designed alignment tasks involving various graph components such as nodes, edges, and subgraphs. Then, we propose a structure-aware cross-attention mechanism guiding the diffusion model to follow human instructions through inherently capturing the relational semantics among texts and structures. Extensive experiments on both synthetic and real-world molecular datasets demonstrate the effectiveness of our proposed LLM-GDM model over existing baseline methods.
BibTeX
@misc{yao2025text,
  author = {Yang Yao and Xin Wang and Yijian Qin and Zeyang Zhang and Wenwu Zhu and Hong Mei},
  title = {{Text-to-graph Generation with Conditional Diffusion Models Guided by Graph-aligned LLMs}},
  year = {2025},
  url = {https://openreview.net/forum?id=ciSW6Jczvo},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}

Loading related content...

Figure