SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.11518 · 2024

Large Language Model-driven Meta-structure Discovery in Heterogeneous Information Network

arXiv · PDF · Open in the Atlas

Code that ran

4 of 13 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; 4 failures of our instrument; 9 no recorded run), measured 2026-11-22; 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.11518.json · badge: /api/ran/2402.11518.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
linchen-65/restruct canonical (classifier label)
classifier basis: census
4 ran · 9 no recorded run
FunctionStatusWhere it lives
get_state_list Ran
ran; our contract draft was wrong, not the code
linchen-65/restruct/llm_explanation.py
code served (permissive licence) · get_code("3553371f3e45595d")
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 int; 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 networkx as nx

# Create a simple directed graph for testing
G = nx.DiGraph()
# Add edges to form a tree structure
G.add_edges_from([
    (0, 1),
    (0, 2),
    (1, 3),
    (1, 4),
    (2, 5)
])

# Define target node for BFS
target = 0

ARGS = {
    "G": G,
    "target": target
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx — 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 int — 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
normalize_row Ran
ran; our contract draft was wrong, not the code
linchen-65/restruct/preprocess_node_classification.py
code served (permissive licence) · get_code("fbdd0e21bd4c2b07")
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 coo_matrix. 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 numpy as np
import scipy.sparse as sp

# Create a small sparse matrix for testing
# The function expects a sparse matrix with row-wise operations
# Create a 4x3 sparse matrix with some non-zero values
data = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
row = np.array([0, 0, 1, 2, 3])
col = np.array([0, 1, 2, 1, 0])
mx = sp.csr_matrix((data, (row, col)), shape=(4, 3))

ARGS = {
    "mx": mx
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coo_matrix — a coo_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coo_matrix output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
normalize_sym Ran
ran; our contract draft was wrong, not the code
linchen-65/restruct/preprocess_node_classification.py
code served (permissive licence) · get_code("04bb317b2ecbb18a")
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 coo_matrix. 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 numpy as np
import scipy.sparse as sp

# Create a small sparse adjacency matrix
# Using a 4x4 sparse matrix to test the normalize_sym function
np.random.seed(0)
adj_dense = np.random.rand(4, 4)
adj_dense = (adj_dense > 0.5).astype(float)  # Make it sparse-like
adj_sparse = sp.csr_matrix(adj_dense)

ARGS = {
    "adj": adj_sparse
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coo_matrix — a coo_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coo_matrix output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
sparse_mx_to_torch_sparse_tensor Ran
ran; our contract draft was wrong, not the code
linchen-65/restruct/preprocess_node_classification.py
code served (permissive licence) · get_code("9378be67198d5141")
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. 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 numpy as np
import torch
from scipy import sparse

torch.manual_seed(0)

# Create a small scipy sparse matrix in COO format
# The function expects sparse_mx to have .row, .col, .data, and .shape attributes
row = np.array([0, 1, 2])
col = np.array([1, 2, 0])
data = np.array([1.5, 2.5, 3.5])
sparse_mx = sparse.coo_matrix((data, (row, col)), shape=(3, 3))

ARGS = {
    "sparse_mx": sparse_mx
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, shape (3, 3) — shape (3, 3) as a later run recorded it
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
infer Not yet run
unverified (harvested, no recorded run)
linchen-65/restruct/llm_explanation.py
code served (permissive licence) · get_code("8a4221b235104213")
How it ran

no invocation recorded.

infer Not yet run
unverified (harvested, no recorded run)
linchen-65/restruct/main_node_classification.py
code served (permissive licence) · get_code("6ff20f91d7446742")
How it ran

no invocation recorded.

infer Not yet run
unverified (harvested, no recorded run)
linchen-65/restruct/main_recommendation.py
code served (permissive licence) · get_code("9fa530fd2d673ee7")
How it ran

no invocation recorded.

infer Not yet run
unverified (harvested, no recorded run)
linchen-65/restruct/train_node_classification.py
code served (permissive licence) · get_code("5df7b0b3c118b3e9")
How it ran

no invocation recorded.

infer Not yet run
unverified (harvested, no recorded run)
linchen-65/restruct/train_recommendation.py
code served (permissive licence) · get_code("f07f0444cc96191d")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
linchen-65/restruct/llm_explanation.py
code served (permissive licence) · get_code("d51fc24587a2e7ad")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
linchen-65/restruct/main_node_classification.py
code served (permissive licence) · get_code("d38f5abbcff90e3f")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
linchen-65/restruct/main_recommendation.py
code served (permissive licence) · get_code("c9fb469d7cae0cc7")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
linchen-65/restruct/train_node_classification.py
code served (permissive licence) · get_code("af4a97546a274d98")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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
normalize_row 1 other paper
1 dated earlier
aaai_26026 (2023 (year only))
Differentiable Meta Multigraph Search with Partial Message Propagation on Heterogeneous Information Networks
normalize_sym 1 other paper
1 dated earlier
aaai_26026 (2023 (year only))
Differentiable Meta Multigraph Search with Partial Message Propagation on Heterogeneous Information Networks
sparse_mx_to_torch_sparse_tensor 1 other paper
1 dated earlier
aaai_26026 (2023 (year only))
Differentiable Meta Multigraph Search with Partial Message Propagation on Heterogeneous Information Networks

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-22.

Repositories linked to this paper

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

Abstract

Heterogeneous information networks (HIN) have gained increasing popularity in recent years for capturing complex relations between diverse types of nodes. Meta-structures are proposed as a useful tool to identify the important patterns in HINs, but hand-crafted meta-structures pose significant challenges for scaling up, drawing wide research attention towards developing automatic search algorithms. Previous efforts primarily focused on searching for meta-structures with good empirical performance, overlooking the importance of human comprehensibility and generalizability. To address this challenge, we draw inspiration from the emergent reasoning abilities of large language models (LLMs). We propose ReStruct, a meta-structure search framework that integrates LLM reasoning into the evolutionary procedure. ReStruct uses a grammar translator to encode the meta-structures into natural language sentences, and leverages the reasoning power of LLMs to evaluate their semantic feasibility. Besides, ReStruct also employs performance-oriented evolutionary operations. These two competing forces allow ReStruct to jointly optimize the semantic explainability and empirical performance of meta-structures. Furthermore, ReStruct contains a differential LLM explainer to generate and refine natural language explanations for the discovered meta-structures by reasoning through the search history. Experiments on eight representative HIN datasets demonstrate that ReStruct achieves state-of-the-art performance in both recommendation and node classification tasks. Moreover, a survey study involving 73 graduate students shows that the discovered meta-structures and generated explanations by ReStruct are substantially more comprehensible. Our code and questionnaire are available at https://github.com/LinChen-65/ReStruct.

For agents

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

get_harvested_code_for_paper("2402.11518")
get_code_for_paper("2402.11518")
have("2402.11518")

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

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

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

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

Connect an agent — have() is free.