Less is More: Learning Graph Tasks with Just LLMs

Sola Shirai, Kavitha Srinivas, Julian Dolby, Michael Katz, Horst Samulowitz +1 more
8/13/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

For large language models (LLMs), reasoning over graphs could help solve many problems. Prior work has tried to improve LLM graph reasoning by examining how best to serialize graphs as text and by combining GNNs and LLMs. However, the merits of such approaches remain unclear, so we empirically answer the following research questions: (1) Can LLMs learn to solve fundamental graph tasks without specialized graph encoding models?, (2) Can LLMs generalize learned solutions to unseen graph structures or tasks?, and (3) What are the merits of competing approaches to learn graph tasks? We show that even small LLMs can learn to solve graph tasks by training them with instructive chain-of-thought solutions, and this training generalizes, without specialized graph encoders, to new tasks and graph structures.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shirai2025less,
  title  = {Less is More: Learning Graph Tasks with Just LLMs},
  author = {Sola Shirai and Kavitha Srinivas and Julian Dolby and Michael Katz and Horst Samulowitz and Shirin Sohrabi},
  year   = {2025},
  eprint = {2508.10115},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.10115v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.10115.svg)](https://codeofpaper.com/paper/2508.10115)

Discussion