SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.07999 · ICLR · 2024

NetInfoF Framework: Measuring and Exploiting Network Usable Information

Jian Zhang, Haiyang Yu, Christos Faloutsos, Da Zheng, Vassilis Ioannidis, Xiang Song, Meng-Chieh Lee, Soji Adeshina

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 3 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 2 failures of our instrument; 2 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.07999.json · badge: /api/ran/2402.07999.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
amazon-science/Network-Usable-Info-Framework canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran, honoured the contract we drafted
amazon-science/Network-Usable-Info-Framework/src/models/nui.py
code served (permissive licence) · get_code("95796f34819366d5")
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 float64, ndim 0, 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 numpy as np

# Analyze the function:
# - Takes parameter X
# - Converts X to np.array
# - Calls .sum() on the array
# - Iterates through len(X) rows
# - Calls .sum() on each row
# - Calls np.max() on each row
# - Performs arithmetic operations

# X should be a 2D array-like structure (list of lists, numpy array, etc.)
# with numeric values that support sum() and max() operations

# Create a simple 2D list of numbers
X = [
    [1, 2, 3, 4],
    [5, 6, 7, 8],
    [0, 0, 0, 0]
]

ARGS = {
    'X': X
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
compatibility Ran
ran; our contract draft was wrong, not the code
amazon-science/Network-Usable-Info-Framework/src/models/cm.py
code served (permissive licence) · get_code("7d6863779e746749")
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 (5, 4) 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
import numpy as np

torch.manual_seed(0)
np.random.seed(0)

# Create small feature matrix: n=5 nodes, d=4 feature dimensions
n = 5
d = 4
features = torch.randn(n, d).float()

# Create edge_index: shape (2, num_edges)
# We need at least a few edges, some with degree >= 2 for two_core filtering
edge_index = torch.tensor([
    [0, 0, 1, 1, 2, 3],
    [1, 2, 2, 3, 3, 4]
], dtype=torch.long)

ARGS = {
    "features": features,
    "edge_index": edge_index,
    "two_core": True,
    "sample_num": int(200000.0)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sklearn, 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 (5, 4) — shape (5, 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
compatibility_cheap Ran
ran, honoured the contract we drafted
amazon-science/Network-Usable-Info-Framework/src/models/cm.py
code served (permissive licence) · get_code("e97b5b2a3d6beb7e")
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 ndarray, ndim 2, dtype family float, shape (3, 4) 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
import numpy as np
from sklearn.linear_model import Ridge

torch.manual_seed(0)

# The function accesses features[row] and features[col]
# and passes them as X, y to Ridge.fit(X, y)
# Ridge.fit expects 2D array-like for X and 1D or 2D for y
# So features should be a dict or list-like where each entry is a 2D array

# Create small feature arrays with distinct dimensions
feature_1 = np.random.randn(2, 4)  # 2 samples, 4 features
feature_2 = np.random.randn(2, 3)  # 2 samples, 3 features

features = {
    'row_key': feature_1,
    'col_key': feature_2
}

ARGS = {
    'features': features,
    'row': 'row_key',
    'col': 'col_key'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (3, 4) — shape (3, 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
compute_netinfo Ran
ran on a synthesized input
amazon-science/Network-Usable-Info-Framework/src/models/nui.py
code served (permissive licence) · get_code("19e53ec474e131a9")
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 torch
import numpy as np
from torch_geometric.data import Data

torch.manual_seed(0)
np.random.seed(0)

# Create small tensors
n = 5  # number of nodes
d = 4  # feature dimension

# x_c: continuous features for nodes
x_c = torch.randn(n, d)

# x_t: target features for nodes
x_t = torch.randn(n, d)

# edge_index: positive edges (undirected graph)
# Create a few edges where row < col to ensure we get undirected pairs
edge_index = torch.tensor([
    [0, 1, 2],
    [1, 3, 4]
], dtype=torch.long)

# edge_index_valid: validation edges (pairs of node indices)
edge_index_valid = torch.tensor([
    [0, 1, 2, 3],
    [2, 3, 0, 1]
], dtype=torch.long)

# y_valid: binary labels for validation edges
y_valid = torch.tensor([1, 1, 0, 0], dtype=torch.long)

# bins parameter
bins = 8

ARGS = {
    'x_c': x_c,
    'x_t': x_t,
    'edge_index': edge_index,
    'edge_index_valid': edge_index_valid,
    'y_valid': y_valid,
    'bins': bins
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch, torch_geometric — 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
conditional_entropy Ran
ran, honoured the contract we drafted
amazon-science/Network-Usable-Info-Framework/src/models/nui.py
code served (permissive licence) · get_code("bb87d07524918839")
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 float32, ndim 0, dtype family float, shape () 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 numpy as np

# The function conditional_entropy takes a single parameter X
# which should be array-like and gets converted to a numpy array.
# It expects X to be 2D (n_row, n_col) based on shape unpacking.
# The function computes conditional entropy by iterating over rows and columns,
# using sum() operations and indexing operations.

# Create a small 2D array with distinct dimensions to avoid ambiguity
X = np.array([
    [10, 20, 15],
    [5, 25, 10],
    [8, 12, 7]
], dtype=np.float32)

ARGS = {
    "X": X
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float32, 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
to_adj_matrix Ran
ran; our contract draft was wrong, not the code
amazon-science/Network-Usable-Info-Framework/src/models/utils.py
code served (permissive licence) · get_code("ba389f6c0c854018")
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 torch

torch.manual_seed(0)

# edge_index: a 2D tensor where first row is source node indices, second row is target node indices
# For a bipartite graph with num_nodes_1=3 and num_nodes_2=4, we need edges connecting nodes in set 1 to set 2
edge_index = torch.tensor([
    [0, 1, 2, 0],  # source nodes (must be < num_nodes_1)
    [0, 1, 2, 3]   # target nodes (must be < num_nodes_2)
], dtype=torch.long)

num_nodes_1 = 3
num_nodes_2 = 4

ARGS = {
    "edge_index": edge_index,
    "num_nodes_1": num_nodes_1,
    "num_nodes_2": num_nodes_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, shape (3, 4) — shape (3, 4) 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
to_regularizer Not yet run
unverified (harvested, no recorded run)
amazon-science/Network-Usable-Info-Framework/src/main_batch.py
code served (permissive licence) · get_code("82f8f935aca38c57")
How it ran

no invocation recorded.

train_model Not yet run
unverified (harvested, no recorded run)
amazon-science/Network-Usable-Info-Framework/src/main_batch.py
code served (permissive licence) · get_code("993f2e66f60cbc89")
How it ran

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, 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 8 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

Given a node-attributed graph, and a graph task (link prediction or node classification), can we tell if a graph neural network (GNN) will perform well? More specifically, do the graph structure and the node features carry enough usable information for the task? Our goals are (1) to develop a fast tool to measure how much information is in the graph structure and in the node features, and (2) to exploit the information to solve the task, if there is enough. We propose NET-INFOF, a framework including NETINFOF PROBE and NETINFOF ACT, for the measurement and the exploitation of network usable information (NUI), respectively. Given a graph data, NETINFOF PROBE measures NUI without any model training, and NETINFOF ACT solves link prediction and node classification, while two modules share the same backbone. In summary, NETINFOF has following notable advantages: (a) General, handling both link prediction and node classification; (b) Principled, with theoretical guarantee and closed-form solution; (c) Effective, thanks to the proposed adjustment to node similarity; (d) Scalable, scaling linearly with the input size. In our carefully designed synthetic datasets, NETINFOF correctly identifies the ground truth of NUI and is the only method being robust to all graph scenarios. Applied on real-world datasets, NETINFOF wins in 11 out of 12 times on link prediction compared to general GNN baselines.

For agents

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

get_harvested_code_for_paper("2402.07999")
get_code_for_paper("2402.07999")
have("2402.07999")

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

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

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

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

Connect an agent — have() is free.