SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.16257 · ICML · 2023

Fast Online Node Labeling for Very Large Graphs

Yifan Sun, Reza Babanezhad, Baojian Zhou

arXiv · PDF · Open in the Atlas

Code that ran

5 of 9 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 4 have no contract verdict; 1 failure 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/2305.16257.json · badge: /api/ran/2305.16257.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
baojian/FastONL canonical (classifier label)
classifier basis: census
4 ran · 4 no recorded run
baojian/fastonl canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
get_karate_graph Ran
ran on a synthesized input
baojian/FastONL/figs/draw_fig2_karate.py
code served (permissive licence) · get_code("e55b48638bcf235f")
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 tempfile
import os

# Create a temporary karate club adjacency list file
temp_dir = tempfile.mkdtemp()
f_path = os.path.join(temp_dir, 'karate.adjlist')

# Write a minimal karate club adjacency list in the expected format
# Each line: node_id neighbor1 neighbor2 ...
karate_adjlist_content = """1 2 3 4 5
2 1 6 7
3 1 8 9
4 1 10 11
5 1 12 13
6 2 14 15
7 2 16 17
8 3 18 19
9 3 20 21
10 4 22 23
11 4 24 25
12 5 26 27
13 5 28 29
14 6 30 31
15 6 32 33
16 7 34
17 7
18 8
19 8
20 9
21 9
22 10
23 10
24 11
25 11
26 12
27 12
28 13
29 13
30 14
31 14
32 15
33 15
34 16"""

with open(f_path, 'w') as f:
    f.write(karate_adjlist_content)

ARGS = {
    'f_path': f_path,
    'start_index': 0
}
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 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
laplacian_mat Ran
ran on a synthesized input
baojian/FastONL/utils.py
code served (permissive licence) · get_code("d4008bc9f9720173")
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 csr_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 (4x4)
# Using a simple undirected graph representation
row = np.array([0, 0, 1, 1, 2, 2, 3, 3])
col = np.array([1, 3, 0, 2, 1, 3, 0, 2])
data = np.array([1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0])
adj_mat = sp.csr_matrix((data, (row, col)), shape=(4, 4))

# Test with normalized laplacian type
lap_type = 'normalized'

ARGS = {
    'adj_mat': adj_mat,
    'lap_type': lap_type
}
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 csr_matrix — a csr_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a csr_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
load_graph_data Ran
ran; our contract draft was wrong, not the code
baojian/fastonl/fastonc.py
code served (permissive licence) · get_code("c2ae7619ebe09c44")
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) 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 numpy as np
import scipy.sparse as sp
import tempfile
import os

# Create a temporary directory and mock dataset file
temp_dir = tempfile.mkdtemp()
dataset_path = os.path.join(temp_dir, 'citeseer.npz')

# Create mock sparse matrix data
n_nodes = 10
n_features = 5
data = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
indices = np.array([0, 1, 2, 3, 4])
indptr = np.array([0, 2, 3, 5, 5, 5, 5, 5, 5, 5, 5])
shape = (n_nodes, n_features)
labels = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1])

# Save the mock dataset
np.savez(dataset_path, data=data, indices=indices, indptr=indptr, shape=shape, labels=labels)

# Patch the datasets function to use our temp directory
original_load = __import__('builtins').__import__

def mock_import(name, *args, **kwargs):
    return original_load(name, *args, **kwargs)

# Create datasets directory structure
datasets_dir = os.path.join(temp_dir, 'datasets')
os.makedirs(datasets_dir, exist_ok=True)

# Move the npz file to the datasets directory
import shutil
shutil.move(dataset_path, os.path.join(datasets_dir, 'citeseer.npz'))

# Change working directory temporarily for the function call
original_cwd = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'dataset': 'citeseer'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, scipy — 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
load_graph_data Ran
ran on a synthesized input
baojian/FastONL/utils.py
code served (permissive licence) · get_code("abd904e313a43bb1")
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 numpy as np
from scipy.sparse import csr_matrix
import tempfile
import os

# Create temporary directory and mock dataset files
temp_dir = tempfile.mkdtemp()
datasets_dir = os.path.join(temp_dir, 'datasets')
os.makedirs(datasets_dir, exist_ok=True)

# Create mock .npz files for citeseer dataset
# Build a small sparse matrix in CSR format
data = np.array([1.0, 2.0, 3.0, 4.0], dtype=np.float32)
indices = np.array([0, 2, 1, 3], dtype=np.int32)
indptr = np.array([0, 2, 2, 4], dtype=np.int32)
shape = (3, 4)
labels = np.array([0, 1, 0], dtype=np.int64)

citeseer_path = os.path.join(datasets_dir, 'citeseer.npz')
np.savez(citeseer_path, data=data, indices=indices, indptr=indptr, shape=shape, labels=labels)

# Create mock .npz files for flickr dataset (uses different path)
dataset_dir = os.path.join(temp_dir, 'dataset')
os.makedirs(dataset_dir, exist_ok=True)

flickr_path = os.path.join(dataset_dir, 'flickr.npz')
np.savez(flickr_path, data=data, indices=indices, indptr=indptr, shape=shape, labels=labels)

# Patch the working directory for the function
import sys
original_cwd = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'dataset': 'citeseer'
}
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 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
run_inverse_approx Ran
ran on a synthesized input
baojian/FastONL/figs/draw_nnz_rate.py
code served (permissive licence) · get_code("f78c094f3793f293")
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 numpy as np
import scipy.sparse as sp

# Create a small sparse CSR matrix (5x5 for simplicity)
n = 5
# Create a simple sparse matrix with some non-zero entries
row = np.array([0, 1, 2, 3, 4, 0, 1, 2])
col = np.array([0, 1, 2, 3, 4, 1, 2, 3])
data = np.array([1.0, 1.0, 1.0, 1.0, 1.0, 0.5, 0.5, 0.5])
csr_mat = sp.csr_matrix((data, (row, col)), shape=(n, n))

# Create dataset name (string)
dataset = "test_dataset"

# Create kappa parameter (scalar)
kappa = 0.1

# Create y (labels/targets for nodes)
y = np.array([0, 1, 0, 1, 0])

# Create nodes (list of node indices)
nodes = [0, 1, 2, 3, 4]

# Create num_iter (number of iterations)
num_iter = 3

# Construct the parameter tuple
para = (csr_mat, dataset, kappa, y, nodes, num_iter)

# Define ARGS dict
ARGS = {
    "para": para
}
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 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
get_fast_onc Not yet run
unverified (harvested, no recorded run)
baojian/FastONL/figs/draw_error_rate.py
code served (permissive licence) · get_code("9baab8080929e57f")
How it ran

no invocation recorded.

get_fast_onc Not yet run
unverified (harvested, no recorded run)
baojian/FastONL/figs/draw_fast_onc.py
code served (permissive licence) · get_code("5d302f5696c21b5a")
How it ran

no invocation recorded.

get_inverse_approx Not yet run
unverified (harvested, no recorded run)
baojian/FastONL/figs/draw_error_rate.py
code served (permissive licence) · get_code("b0fc90ebbaabc2b4")
How it ran

no invocation recorded.

get_weighted_majority Not yet run
unverified (harvested, no recorded run)
baojian/FastONL/figs/draw_error_rate.py
code served (permissive licence) · get_code("b10b50d23fc3f568")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 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 9 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

This paper studies the online node classification problem under a transductive learning setting. Current methods either invert a graph kernel matrix with O(n 3 ) runtime and O(n 2 ) space complexity or sample a large volume of random spanning trees, thus are difficult to scale to large graphs. In this work, we propose an improvement based on the online relaxation technique introduced by a series of works (Rakhlin et al., 2012;Rakhlin & Sridharan, 2015; 2017). We first prove an effective regret O( √ n 1+γ ) when suitable parameterized graph kernels are chosen, then propose an approximate algorithm FASTONL enjoying O(k √ n 1+γ ) regret based on this relaxation. The key of FASTONL is a generalized local push method that effectively approximates inverse matrix columns and applies to a series of popular kernels. Furthermore, the per-prediction cost is O(vol (S) log 1/ϵ) locally dependent on the graph with linear memory cost. Experiments show that our scalable method enjoys a better tradeoff between local and global consistency.

For agents

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

get_harvested_code_for_paper("2305.16257")
get_code_for_paper("2305.16257")
have("2305.16257")

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

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

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

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

Connect an agent — have() is free.