Lune

KDD2025Top-tier venue

GCoT: Chain-of-Thought Prompt Learning for Graphs

Xingtong Yu, Chang Zhou, Zhongwei Kuai, Xinming Zhang, Yuan Fang

Abstract

Chain-of-thought (CoT) prompting has achieved remarkable success in natural language processing (NLP). However, its vast potential remains largely unexplored for graphs. This raises an interesting question: How can we design CoT prompting for graphs to guide graph models to learn step by step? On one hand, unlike natural languages, graphs are non-linear and characterized by complex topological structures. On the other hand, many graphs lack textual data, making it difficult to formulate language-based CoT prompting. %Therefore we cannot directly adopt the CoT prompting methods used in the language domain. In this work, we propose the first CoT prompt learning framework for text-free graphs, GCoT. Specifically, we decompose the adaptation process for each downstream task into a series of inference steps, with each step consisting of prompt-based inference, ''thought'' generation, and thought-conditioned prompt learning. While the steps mimic CoT prompting in NLP, the exact mechanism differs significantly. Specifically, at each step, an input graph, along with a prompt, is first fed into a pre-trained graph encoder for prompt-based inference. We then aggregate the hidden layers of the encoder to construct a ''thought'', which captures the working state of each node in the current step. Conditioned on this thought, we learn a prompt specific to each node based on the current state. These prompts are fed into the next inference step, repeating the cycle. To evaluate and analyze the effectiveness of GCoT, we conduct comprehensive experiments on eight public datasets, which demonstrate the advantage of our approach.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Graph Positional Autoencoders as Self-supervised Learners cites Strategies for Pre-training Graph Neural Networks
  • Graph Positional Autoencoders as Self-supervised Learners cites Graph Contrastive Learning with Augmentations
  • Tree of Thoughts: Deliberate Problem Solving with Large Language Models cites Language Models are Few-Shot Learners
  • Tree of Thoughts: Deliberate Problem Solving with Large Language Models cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Advancing Molecular Graph-Text Pre-training via Fine-grained Alignment cites Strategies for Pre-training Graph Neural Networks
  • Advancing Molecular Graph-Text Pre-training via Fine-grained Alignment cites Graph Contrastive Learning with Augmentations
  • Decompose and Transfer: CoT-Prompting Enhanced Alignment for Open-Vocabulary Temporal Action Detection cites Tree of Thoughts: Deliberate Problem Solving with Large Language Models
  • Decompose and Transfer: CoT-Prompting Enhanced Alignment for Open-Vocabulary Temporal Action Detection cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Beyond Single-Granularity Prompts: A Multi-Scale Chain-of-Thought Prompt Learning for Graph cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Beyond Single-Granularity Prompts: A Multi-Scale Chain-of-Thought Prompt Learning for Graph cites Graph Contrastive Learning with Augmentations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Graph Positional Autoencoders as Self-supervised LearnersYang Liu, Deyu Bo, Wenxuan Cao, Yuan Fang et al.KDD 2025 · 2 citations
  2. Beyond Single-Granularity Prompts: A Multi-Scale Chain-of-Thought Prompt Learning for GraphZiyu Zheng, Yaming Yang, Ziyu Guan, Wei Zhao et al.WWW 2026 · 1 citation
  3. PP-Brep: Few-Shot B-rep Classification with Hybrid Graph RepresentationJiacheng Hao, Chunying Liu, Hao Guo, Ruohan Wang et al.CVPR 2026
  4. Advancing Molecular Graph-Text Pre-training via Fine-grained AlignmentYibo Li, Yuan Fang, Mengmei Zhang, Chuan ShiKDD 2025
  5. Decompose and Transfer: CoT-Prompting Enhanced Alignment for Open-Vocabulary Temporal Action DetectionSa Zhu, Wanqian Zhang, Lin Wang, Xiaohua Chen et al.CVPR 2026

Builds on38

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  3. Tree of Thoughts: Deliberate Problem Solving with Large Language ModelsShunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran et al.NeurIPS 2023 · 5,068 citations
  4. Graph Contrastive Learning with AugmentationsYuning You, Tianlong Chen, Yongduo Sui, Ting Chen et al.NeurIPS 2020 · 3,042 citations
  5. Strategies for Pre-training Graph Neural NetworksWeihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik et al.ICLR 2020 · 1,744 citations

Related papers

  1. Clustering as Reasoning: A kk-Means Interpretation of Chain-of-Thought Graph LearningXuanting Xie, Zhaochen Guo, Bingheng Li, Xingtong Yu et al.ICML 2026
  2. LaRS: Latent Reasoning Skills for Chain-of-Thought ReasoningZifan Xu, Haozhu Wang, Dmitriy Bespalov, Xian Wu et al.EMNLP Findings 2024 · 4 citations
  3. Why Prompt Design Matters and Works: A Complexity Analysis of Prompt Search Space in LLMsXiang Zhang, Juntai Cao, Chenyu You, Dujian DingACL 2025 · 21 citations
  4. GraphPrompt: Unifying Pre-Training and Downstream Tasks for Graph Neural NetworksZemin Liu, Xingtong Yu, Yuan Fang, Xinming ZhangWWW 2023 · 263 citations
  5. All in One: Multi-Task Prompting for Graph Neural NetworksXiangguo Sun, Hong Cheng, Jia Li, Bo Liu et al.KDD 2023 · 149 citations
Dusk over the sea between two cliffs drawn in fine vertical lines