SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.09870 · ICLR · 2025

IGL-Bench: Establishing the Comprehensive Benchmark for Imbalanced Graph Learning

Hao Peng, Philip Yu, Qingyun Sun, Xingcheng Fu, Jianxin Li, Haonan Yuan, Jiawen Qin, Lyujin Xu, Jiaqi Yuan, Pengfeng Huang, Zhaonan Wang

arXiv · PDF · Open in the Atlas

Code that ran

8 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, 2 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 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/2406.09870.json · badge: /api/ran/2406.09870.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
RingBDStack/IGL-Bench canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
AcontainsB Ran
ran, violated the contract we drafted
RingBDStack/IGL-Bench/IGL_Bench/algorithm/COLDBREW/norm_tricks.py
code served (permissive licence) · get_code("19511295442b8b8a")
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 bool, 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 torch

torch.manual_seed(0)

# A can be a string, list, set, or other container that supports 'in' operator
A = "hello world"

# listB should be a list of items that can be checked with 'in' operator against A
listB = ["o", "x", "z"]

ARGS = {
    "A": A,
    "listB": listB
}
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 bool, 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
adj2edgeindex Ran
ran; our contract draft was wrong, not the code
RingBDStack/IGL-Bench/IGL_Bench/algorithm/DPGNN/utils.py
code served (permissive licence) · get_code("742082b98cf22cc4")
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 int, shape (2, 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

torch.manual_seed(0)

# Create a small adjacency matrix with shape (4, 4)
# This is a sparse binary adjacency matrix where 1 indicates an edge
adj = torch.zeros(4, 4, dtype=torch.long)
adj[0, 1] = 1
adj[1, 2] = 1
adj[2, 3] = 1
adj[3, 0] = 1

ARGS = {
    "adj": adj
}
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 int, 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
random_mask Ran
ran, violated the contract we drafted
RingBDStack/IGL-Bench/IGL_Bench/algorithm/COLDBREW/utils.py
code served (permissive licence) · get_code("4d6df03aa2af1f80")
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 1, dtype family float, shape (10,) 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

np.random.seed(0)

ARGS = {
    "L": 10,
    "true_prob": 0.9
}
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 ndarray, ndim 1, dtype family float, shape (10,) — shape (10,) 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
reset_weight_GroupNorm Ran
ran; our contract draft was wrong, not the code
RingBDStack/IGL-Bench/IGL_Bench/algorithm/COLDBREW/norm_tricks.py
code served (permissive licence) · get_code("a5483c4f44a5f81a")
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 SimpleArgs. 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 torch.nn as nn

class SimpleArgs:
    def __init__(self):
        self.num_groups = None
        self.miss_rate = 0.5
        self.dataset = 'Cora'
        self.type_model = 'GCN'
        self.num_layers = 4
        self.skip_weight = None
        self.epochs = 100

ARGS = {
    'args': SimpleArgs()
}
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 SimpleArgs — a SimpleArgs output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleArgs 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
run_norm_if_any Ran
ran; our contract draft was wrong, not the code
RingBDStack/IGL-Bench/IGL_Bench/algorithm/COLDBREW/norm_tricks.py
code served (permissive licence) · get_code("429df79768882322")
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. 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

torch.manual_seed(0)

class MockArgs:
    def __init__(self, type_trick):
        self.type_trick = type_trick

class MockNormLayer(nn.Module):
    def __init__(self):
        super().__init__()
    
    def forward(self, x):
        return x

class MockNet(nn.Module):
    def __init__(self, type_trick='BatchNorm'):
        super().__init__()
        self.args = MockArgs(type_trick=type_trick)
        self.layers_norm = nn.ModuleList([
            MockNormLayer(),
            MockNormLayer(),
            MockNormLayer()
        ])
    
    def forward(self, x):
        return x

net = MockNet(type_trick='BatchNorm')
x = torch.randn(2, 4)
ilayer = 0

ARGS = {
    'net': net,
    'x': x,
    'ilayer': ilayer
}
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
sample_mask Ran
ran; our contract draft was wrong, not the code
RingBDStack/IGL-Bench/IGL_Bench/algorithm/DEMONet/util.py
code served (permissive licence) · get_code("03c26d27b6d12de7")
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 1, dtype family float, shape (7,) 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

# Construct arguments for sample_mask function
# The function takes:
# - idx: indices to set to 1 in the mask
# - l: length of the mask

idx = np.array([0, 2, 4])  # indices to set to 1
l = 7  # length of the mask

ARGS = {
    "idx": idx,
    "l": l
}
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 ndarray, ndim 1, dtype family float, shape (7,) — shape (7,) 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
sparse_to_tuple Ran
ran; our contract draft was wrong, not the code
RingBDStack/IGL-Bench/IGL_Bench/algorithm/DEMONet/util.py
code served (permissive licence) · get_code("eaa82e9c7a22e930")
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 matrix
row = np.array([0, 1, 2, 3])
col = np.array([1, 2, 0, 3])
data = np.array([1.0, 2.0, 3.0, 4.0])
sparse_matrix = sp.coo_matrix((data, (row, col)), shape=(4, 4))

# Test with single sparse matrix
ARGS = {
    "sparse_mx": sparse_matrix
}

# Also test with a list of sparse matrices to verify the list branch
sparse_matrix_2 = sp.csr_matrix(([5.0, 6.0], ([0, 1], [1, 2])), shape=(3, 4))
sparse_matrix_3 = sp.lil_matrix((2, 5))
sparse_matrix_3[0, 1] = 7.0
sparse_matrix_3[1, 3] = 8.0

ARGS_list = {
    "sparse_mx": [sparse_matrix, sparse_matrix_2, sparse_matrix_3]
}

# Use the single matrix version as default
ARGS = {
    "sparse_mx": sparse_matrix
}
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
tonp Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
RingBDStack/IGL-Bench/IGL_Bench/algorithm/COLDBREW/GCN.py
code served (permissive licence) · get_code("18d569c66cbe1eda")
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 (2, 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 as th
import numpy as np

th.manual_seed(0)

# The function tonp takes one parameter 'arr' which can be either a torch.Tensor or something convertible to numpy array
# It checks if arr is a th.Tensor, and if so calls detach().cpu().data.numpy() on it
# Otherwise it calls np.asarray on it

# Test case 1: a torch.Tensor
tensor_arg = th.randn(2, 4)

ARGS = {
    "arr": tensor_arg
}
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 ndarray, 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
test Not yet run
unverified (harvested, no recorded run)
RingBDStack/IGL-Bench/IGL_Bench/algorithm/DPGNN/learn.py
code served (permissive licence) · get_code("41233a7e838d93ea")
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, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 1 the same month, 0 later) and 4 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
sparse_to_tuple 7 other papers
6 dated earlier, 1 the same month
1903.04154 (2019-03)
Fisher-Bures Adversary Graph Convolutional Networks
aaai_20388 (2022 (year only))
RepBin: Constraint-Based Graph Representation Learning for Metagenomic Binning
ijcai2022_0310 (2022 (year only))
Beyond Homophily: Structure-aware Path Aggregation Graph Neural Network
and 4 more not named here
AcontainsB 2 other papers
2 dated earlier
2111.04840 (2021-11)
Cold Brew: Distilling Graph Node Representations with Incomplete or Missing Neighborhoods
2308.06801 (2023-08)
SAILOR: Structural Augmentation Based Tail Node Representation Learning
reset_weight_GroupNorm 2 other papers
2 dated earlier
2111.04840 (2021-11)
Cold Brew: Distilling Graph Node Representations with Incomplete or Missing Neighborhoods
2308.06801 (2023-08)
SAILOR: Structural Augmentation Based Tail Node Representation Learning
run_norm_if_any 2 other papers
2 dated earlier
2111.04840 (2021-11)
Cold Brew: Distilling Graph Node Representations with Incomplete or Missing Neighborhoods
2308.06801 (2023-08)
SAILOR: Structural Augmentation Based Tail Node Representation Learning
tonp 1 other paper
1 dated earlier
2111.04840 (2021-11)
Cold Brew: Distilling Graph Node Representations with Incomplete or Missing Neighborhoods

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

Deep graph learning has gained grand popularity over the past years due to its versatility and success in representing graph data across a wide range of domains. However, the pervasive issue of imbalanced graph data distributions, where certain parts exhibit disproportionally abundant data while others remain sparse, undermines the efficacy of conventional graph learning algorithms, leading to biased outcomes. To address this challenge, Imbalanced Graph Learning (IGL) has garnered substantial attention, enabling more balanced data distributions and better task performance. Despite the proliferation of IGL algorithms, the absence of consistent experimental protocols and fair performance comparisons pose a significant barrier to comprehending advancements in this field. To bridge this gap, we introduce IGL-Bench, a foundational comprehensive benchmark for imbalanced graph learning, embarking on 17 diverse graph datasets and 24 distinct IGL algorithms with uniform data processing and splitting strategies. Specifically, IGL-Bench systematically investigates state-of-the-art IGL algorithms in terms of effectiveness, robustness, and efficiency on node-level and graph-level tasks, with the scope of class-imbalance and topology-imbalance. Extensive experiments demonstrate the potential benefits of IGL algorithms on various imbalanced conditions, offering insights and opportunities in the IGL field. Further, we have developed an open-sourced and unified package to facilitate reproducible evaluation and inspire further innovative research, available at: https://github.com/RingBDStack/IGL-Bench.

For agents

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

get_harvested_code_for_paper("2406.09870")
get_code_for_paper("2406.09870")
have("2406.09870")

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

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

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

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

Connect an agent — have() is free.