SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.18771 · 2025

Exploring Graph Learning Tasks with Pure LLMs: A Comprehensive Benchmark and Investigation

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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 8 have no contract verdict; 0 failures of our instrument; 4 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/2502.18771.json · badge: /api/ran/2502.18771.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
myflashbarry/LLM-benchmarking canonical (classifier label)
classifier basis not recorded on the link
8 ran · 4 no recorded run
FunctionStatusWhere it lives
evaluate_with_neighbor_loader Ran
ran on a synthesized input
myflashbarry/LLM-benchmarking/baseline/Arxiv_to_product.py
code served (permissive licence) · get_code("fba7d27f4f0b5438")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torch_geometric.data import Data

torch.manual_seed(0)

# Define a minimal GNN model
class SimpleGNN(nn.Module):
    def __init__(self, input_dim, output_dim):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x, edge_index):
        # Simple linear transformation as embedding
        return self.linear(x)

# Create a minimal model
model = SimpleGNN(input_dim=4, output_dim=3)
model.eval()

# Create sample batch data
# Create node features (2 nodes, 4 features each)
x = torch.randn(2, 4)

# Create edge index (edges between nodes)
edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long).t().contiguous()

# Create a Data object
batch_data = Data(x=x, edge_index=edge_index, num_nodes=2)

# Create a simple loader (list of batches)
loader = [batch_data]

# Set device to CPU
device = torch.device('cpu')

# Threshold for classification
threshold = 0.5

ARGS = {
    'model': model,
    'loader': loader,
    'device': device,
    'threshold': threshold
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_data_and_text Ran
ran on a synthesized input
myflashbarry/LLM-benchmarking/baseline/Arxiv_to_product.py
code served (permissive licence) · get_code("5ee8c70828d72599")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import torch
import pickle
import tempfile
import shutil

torch.manual_seed(0)

# Create a temporary directory structure for the dataset
temp_dir = tempfile.mkdtemp()
dataset_dir = os.path.join(temp_dir, 'dataset')
os.makedirs(dataset_dir, exist_ok=True)

# Create minimal data and text files
data_path = os.path.join(dataset_dir, 'product_data.pt')
text_path = os.path.join(dataset_dir, 'product_text.pkl')

# Create a small tensor as data
data_tensor = torch.randn(2, 4)
torch.save(data_tensor, data_path)

# Create a small pickle file with text
text_data = ['sample text 1', 'sample text 2']
with open(text_path, 'wb') as f:
    pickle.dump(text_data, f)

# Change to temp directory so relative paths work
original_dir = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'dataset_name': 'product',
    'train_perc': 0.6,
    'val_perc': 0.2,
    'test_perc': 0.2,
    'use_text': True,
    'seed': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mask_features Ran
ran on a synthesized input
myflashbarry/LLM-benchmarking/baseline/Arxiv_to_cora_graphmae.py
code served (permissive licence) · get_code("3a0569b001641d5a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small input tensor
# The function uses x.size(0) to get batch size and x.device to get device
# So we need a tensor with batch dimension
x = torch.randn(2, 4)

ARGS = {
    "x": x,
    "mask_rate": 0.3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
process_combination Ran
ran on a synthesized input
myflashbarry/LLM-benchmarking/LLM/utils.py
code served (permissive licence) · get_code("8f73d2f2f0fad30d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# Define the combinations to pass to the function
combinations = [
    # Valid: not is_train, zero_shot_CoT=True, BAG=False, few_shot=False (zero_shot_CoT=1)
    ('dataset1', False, 'rel', True, False, False, 1, False),
    # Valid: is_train=True, zero_shot_CoT=False, BAG=False, few_shot=False (sum=0)
    ('dataset2', True, 'rel', False, False, False, 1, False),
    # Valid: not is_train, zero_shot_CoT=False, BAG=True, few_shot=False (BAG=1)
    ('dataset3', False, 'rel', False, True, False, 2, False),
    # Valid: not is_train, zero_shot_CoT=False, BAG=False, few_shot=True (few_shot=1)
    ('dataset4', False, 'rel', False, False, True, 1, False),
    # Valid: mode='ego' with hop=1, include_label=False
    ('dataset5', False, 'ego', False, False, False, 1, False),
    # Invalid: is_train=True and zero_shot_CoT=True (should be filtered)
    ('dataset6', True, 'rel', True, False, False, 1, False),
    # Invalid: is_train=True and BAG=True (should be filtered)
    ('dataset7', True, 'rel', False, True, False, 1, False),
    # Invalid: is_train=True and few_shot=True (should be filtered)
    ('dataset8', True, 'rel', False, False, True, 1, False),
    # Invalid: sum of flags = 2 (should be filtered)
    ('dataset9', False, 'rel', True, True, False, 1, False),
    # Invalid: mode='ego' with hop=2 (should be filtered)
    ('dataset10', False, 'ego', False, False, False, 2, False),
    # Invalid: mode='ego' with include_label=True (should be filtered)
    ('dataset11', False, 'ego', False, False, False, 1, True),
]

ARGS = {
    'combinations': combinations
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
process_combination Ran
ran on a synthesized input
myflashbarry/LLM-benchmarking/LLM/llama/Llama_Instruct_node.py
code served (permissive licence) · get_code("bd51f5433db414b2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct valid combinations
combinations = [
    ('dataset1', 'ego', False, 1, False),
    ('dataset2', 'ego', True, 1, False),
    ('dataset3', 'ego', False, 2, False),
    ('dataset4', 'ego', False, 1, True),
    ('dataset5', 'non_ego', False, 1, False),
    ('dataset6', 'non_ego', True, 2, True),
    ('dataset7', 'non_ego', False, 3, False),
]

ARGS = {
    'combinations': combinations
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
random_node_feature_masking Ran
ran on a synthesized input
myflashbarry/LLM-benchmarking/baseline/GraphCL_link.py
code served (permissive licence) · get_code("4db581253b100901")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with distinct dimensions
# Shape: (2, 4) - batch size 2, feature dimension 4
x = torch.randn(2, 4)

ARGS = {
    "x": x,
    "mask_prob": 0.2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_input_text Ran
ran on a synthesized input
myflashbarry/LLM-benchmarking/LLM/utils.py
code served (permissive licence) · get_code("0feefffe83da0dea")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# The function splits input_text by the separator '## Target node'
# It expects input_text to be a string containing this separator at least once

input_text = """This is the system prompt with some instructions.
Some more system content here.

## Target node
This is the user content after the separator.
More user content can go here."""

ARGS = {
    'input_text': input_text
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_input_text_link Ran
ran on a synthesized input
myflashbarry/LLM-benchmarking/LLM/utils.py
code served (permissive licence) · get_code("988ab2719fa85cc9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Analyze the function: split_input_text_link takes one parameter: input_text
# It expects input_text to be a string that contains '## Target node1' as a separator
# The function splits on this separator and processes the resulting parts

# Create a valid input_text string with the required separator
input_text = """This is some system content
that appears before the separator.

## Target node1 This is the user content
that appears after the separator and should be preserved."""

ARGS = {
    "input_text": input_text
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_completion_from_messages Not yet run
unverified (harvested, no recorded run)
myflashbarry/LLM-benchmarking/LLM/deepseek_V3/deepseek_v3_for_heterophily_node.py
code served (permissive licence) · get_code("ce3a0ae50cac1fb8")
How it ran

no invocation recorded.

get_completion_from_messages Not yet run
unverified (harvested, no recorded run)
myflashbarry/LLM-benchmarking/LLM/llama/Llama_Instruct_link.py
code served (permissive licence) · get_code("91d87b3d6bcd5bab")
How it ran

no invocation recorded.

get_completion_from_messages Not yet run
unverified (harvested, no recorded run)
myflashbarry/LLM-benchmarking/LLM/qwen/qwen_plus_for_link.py
code served (permissive licence) · get_code("a350b1d6962bd121")
How it ran

no invocation recorded.

get_completion_from_messages Not yet run
unverified (harvested, no recorded run)
myflashbarry/LLM-benchmarking/LLM/qwen/qwen_plus_for_node.py
code served (permissive licence) · get_code("51b821d0781ed401")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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.

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

In recent years, large language models (LLMs) have emerged as promising candidates for graph tasks. Many studies leverage natural language to describe graphs and apply LLMs for reasoning, yet most focus narrowly on performance benchmarks without fully comparing LLMs to graph learning models or exploring their broader potential. In this work, we present a comprehensive study of LLMs on graph learning tasks, evaluating both off-the-shelf and instruction-tuned models across a variety of scenarios. Beyond accuracy, we discuss data leakage concerns and computational overhead, and assess their performance under few-shot/zero-shot settings, domain transfer, structural understanding, and robustness. Our findings show that LLMs, particularly those with instruction tuning, greatly outperform traditional graph learning models in few-shot settings, exhibit strong domain transferability, and demonstrate excellent generalization and robustness. Our study highlights the broader capabilities of LLMs in graph learning and provides a foundation for future research.

For agents

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

get_harvested_code_for_paper("2502.18771")
get_code_for_paper("2502.18771")
have("2502.18771")

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

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

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

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

Connect an agent — have() is free.