mlsanityData to 7 Oct 2026

GraphiT: Efficient Node Classification on Text-Attributed Graphs with Prompt Optimized LLMs

arXiv 2502.10522 ↗First posted 14 Feb 2025cs.AI cs.LGcited by 4

Not on the map. Why?

Abstract (arXiv)

The application of large language models (LLMs) to graph data has attracted a lot of attention recently. LLMs allow us to use deep contextual embeddings from pretrained models in text-attributed graphs, where shallow embeddings are often used for the text attributes of nodes. However, it is still challenging to efficiently encode the graph structure and features into a sequential form for use by LLMs. In addition, the performance of an LLM alone, is highly dependent on the structure of the input prompt, which limits their effectiveness as a reliable approach and often requires iterative manual adjustments that could be slow, tedious and difficult to replicate programmatically. In this paper, we propose GraphiT (Graphs in Text), a framework for encoding graphs into a textual format and optimizing LLM prompts for graph prediction tasks. Here we focus on node classification for text-attributed graphs. We encode the graph data for every node and its neighborhood into a concise text to enable LLMs to better utilize the information in the graph. We then further programmatically optimize the LLM prompts using the DSPy framework to automate this step and make it more efficient and reproducible. GraphiT outperforms our LLM-based baselines on three datasets and we show how the optimization step in GraphiT leads to measurably better results without manual prompt tweaking. We also demonstrated that our graph encoding approach is competitive to other graph encoding methods while being less expensive because it uses significantly less tokens for the same task.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 17 of its 31 references that are in the map. First posted on arXiv 14 Feb 2025.

Builds on

17 of 31 references.

References · 17

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  2. 2017Graph Attention Networkscited by 8,854
  3. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  4. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  6. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
  7. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  8. 2023Exploring the Potential of Large Language Models (LLMs) in Learning on Graphscited by 271
  9. 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
  10. 2023Can Language Models Solve Graph Problems in Natural Language?cited by 249
  11. 2023Language is All a Graph Needscited by 219
  12. 2024Let Your Graph Do the Talking: Encoding Structured Data for LLMscited by 112
5 more
  1. 2022A Survey on Graph Representation Learning Methodscited by 66
  2. 2024Efficient Tuning and Inference for Large Language Models on Textual Graphscited by 54
  3. 2019A Review of Keyphrase Extractioncited by 33
  4. 2015Homophily and missing links in citation networkscited by 21
  5. 2022PatternRank: Leveraging Pretrained Language Models and Part of Speech for Unsupervised Keyphrase Extractioncited by 19

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 1.

4 papers.