SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.11821 · NeurIPS · 2024

Microstructures and Accuracy of Graph Recall by Large Language Models

Yanbang Wang, Hejie Cui, Jon Kleinberg

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2402.11821.json · badge: /api/ran/2402.11821.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
abel0828/llm-graph-recall canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
FunctionStatusWhere it lives
concatenate_segments Ran
ran; our contract draft was wrong, not the code
abel0828/llm-graph-recall/utils.py
pointer only (licence: NONE) · get_code("5b8ea2946ba61652")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, abel0828/llm-graph-recall when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_fname Ran
ran; our contract draft was wrong, not the code
abel0828/llm-graph-recall/network_recall.py
pointer only (licence: NONE) · get_code("11cba458079c4ef0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, abel0828/llm-graph-recall when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_response Ran
ran; our contract draft was wrong, not the code
abel0828/llm-graph-recall/network_recall.py
pointer only (licence: NONE) · get_code("190871a24a3d1816")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, abel0828/llm-graph-recall when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_string Ran
ran; our contract draft was wrong, not the code
abel0828/llm-graph-recall/utils.py
pointer only (licence: NONE) · get_code("0976b2f534ca72a4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, abel0828/llm-graph-recall when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

set_up_logger Ran
ran; our contract draft was wrong, not the code
abel0828/llm-graph-recall/utils.py
pointer only (licence: NONE) · get_code("a17be44fe4aba8a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, abel0828/llm-graph-recall when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_all_pairs Not yet run
unverified (harvested, no recorded run)
abel0828/llm-graph-recall/network_recall.py
pointer only (licence: NONE) · get_code("298f32909bb3e9c7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, abel0828/llm-graph-recall when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

num_tokens_from_messages Not yet run
unverified (harvested, no recorded run)
abel0828/llm-graph-recall/api.py
pointer only (licence: NONE) · get_code("0f72adf8ddbb5ec1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, abel0828/llm-graph-recall when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

num_tokens_from_prompt Not yet run
unverified (harvested, no recorded run)
abel0828/llm-graph-recall/api.py
pointer only (licence: NONE) · get_code("b66ff4988d3f6fe1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, abel0828/llm-graph-recall when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
num_tokens_from_messages 2 other papers
2 later
2406.14228 (2024-06)
EvoAgent: Towards Automatic Multi-Agent Generation via Evolutionary Algorithms
2408.12787 (2024-08)
LLM-PBE: Assessing Data Privacy in Large Language Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Graphs data is crucial for many applications, and much of it exists in the relations described in textual format. As a result, being able to accurately recall and encode a graph described in earlier text is a basic yet pivotal ability that large language models (LLMs) need to demonstrate if they are to perform reasoning tasks that involve graph-structured information. Human performance at graph recall by has been studied by cognitive scientists for decades, and has been found to often exhibit certain structural patterns of bias that align with human handling of social relationships. To date, however, we know little about how LLMs behave in analogous graph recall tasks: do their recalled graphs also exhibit certain biased patterns, and if so, how do they compare with humans and affect other graph reasoning tasks? In this work, we perform the first systematical study of graph recall by LLMs, investigating the accuracy and biased microstructures (local subgraph patterns) in their recall. We find that LLMs not only underperform often in graph recall, but also tend to favor more triangles and alternating 2-paths. Moreover, we find that more advanced LLMs have a striking dependence on the domain that a real-world graph comes from -by yielding the best recall accuracy when the graph is narrated in a language style consistent with its original domain.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.11821")
get_code_for_paper("2402.11821")
have("2402.11821")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2402.11821.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2402.11821.svg)](https://syntology.ai/paper/2402.11821)

Connect an agent — have() is free.