mlsanityData to 14 Oct 2026

LLMs Prompted for Graphs: Hallucinations and Generative Capabilities

arXiv 2409.00159 ↗First posted 30 Aug 2024cs.CL cs.AI cs.SIcited by 3

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) are nowadays prompted for a wide variety of tasks. In this article, we investigate their ability in reciting and generating graphs. We first study the ability of LLMs to regurgitate well known graphs from the literature (e.g. Karate club or the graph atlas)4. Secondly, we question the generative capabilities of LLMs by asking for Erdos-Renyi random graphs. As opposed to the possibility that they could memorize some Erdos-Renyi graphs included in their scraped training set, this second investigation aims at studying a possible emergent property of LLMs. For both tasks, we propose a metric to assess their errors with the lens of hallucination (i.e. incorrect information returned as facts). We most notably find that the amplitude of graph hallucinations can characterize the superiority of some LLMs. Indeed, for the recitation task, we observe that graph hallucinations correlate with the Hallucination Leaderboard, a hallucination rank that leverages 10, 000 times more prompts to obtain its ranking. For the generation task, we find surprisingly good and reproducible results in most of LLMs. We believe this to constitute a starting point for more in-depth studies of this emergent capability and a challenging benchmark for their improvements. Altogether, these two aspects of LLMs capabilities bridge a gap between the network science and machine learning communities.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 17 of its 39 references that are in the map. First posted on arXiv 30 Aug 2024.

Builds on

17 of 39 references.

References · 17

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2022Emergent Abilities of Large Language Modelscited by 2,512
  3. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  4. 2022Survey of Hallucination in Natural Language Generationcited by 2,075
  5. 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 698
  6. 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 523
  7. 2023State of What Art? A Call for Multi-Prompt LLM Evaluationcited by 310
  8. 2024A Comprehensive Survey of Hallucination Mitigation Techniques in Large Language Modelscited by 269
  9. 2022Emergent Analogical Reasoning in Large Language Modelscited by 240
  10. 2018NetLSD: Hearing the Shape of a Graphcited by 52
  11. 2023Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language Modelscited by 38
  12. 2024GraphEval: A Knowledge-Graph Based LLM Hallucination Evaluation Frameworkcited by 30
5 more
  1. 2024Heads, Tails, and AI Fails: LLMs, Randomness, and Human Judgmentscited by 26
  2. 2024Automatic Prompt Selection for Large Language Modelscited by 9
  3. 2024Benchmarking Llama2, Mistral, Gemma and GPT for Factuality, Toxicity, Bias and Propensity for Hallucinationscited by 8
  4. 2024Leveraging Graph Structures to Detect Hallucinations in Large Language Modelscited by 7
  5. 2024A Comparison of Large Language Model and Human Performance on Random Number Generation Taskscited by 7

Built on by

Cited by year (2026 to 14 Oct)

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

3 papers.