LLMs Prompted for Graphs: Hallucinations and Generative Capabilities

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Richardeau, Gurvan, Chali, Samy, Merrer, Erwan Le, Penzo, Camilla, Tredan, Gilles
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917976445288448
author Richardeau, Gurvan
Chali, Samy
Merrer, Erwan Le
Penzo, Camilla
Tredan, Gilles
author_facet Richardeau, Gurvan
Chali, Samy
Merrer, Erwan Le
Penzo, Camilla
Tredan, Gilles
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2409_00159
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LLMs Prompted for Graphs: Hallucinations and Generative Capabilities
Richardeau, Gurvan
Chali, Samy
Merrer, Erwan Le
Penzo, Camilla
Tredan, Gilles
Computation and Language
Artificial Intelligence
Social and Information Networks
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.
title LLMs Prompted for Graphs: Hallucinations and Generative Capabilities
topic Computation and Language
Artificial Intelligence
Social and Information Networks
url https://arxiv.org/abs/2409.00159