SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.10371 · NeurIPS · 2025

Geometric Imbalance in Semi-Supervised Node Classification

Zengfeng Huang, Yutong Xie, Menglin Yang, Min Zhou, Liang Yan, Shengzhong Zhang, Bisheng Li, Chen Yang, Weiyang Ding

arXiv · PDF · Open in the Atlas

Code that ran

10 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 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; 6 failures of our instrument; 5 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/2303.10371.json · badge: /api/ran/2303.10371.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
yanliang3612/UNREAL marked official in Papers with Code
Papers with Code archive
10 ran · 5 no recorded run
FunctionStatusWhere it lives
Classifier Ran
ran on a synthesized input · constructed an object; no result was computed
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("21b8e2937b061ca5")
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 an instance of its own class, Classifier: the run constructed the object and did not call it, so no result was computed. 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
from torch import nn

torch.manual_seed(0)

# The Classifier.__init__ takes hidden_size and num_class
# Looking at the forward method:
# - embeddings is passed to self.linear which is nn.Linear(hidden_size, num_class)
# - so embeddings should have shape (batch_size, hidden_size)
# - argmax is called on dim=1, so we need at least 2D tensor
# - logits will have shape (batch_size, num_class)

hidden_size = 4
num_class = 3

ARGS = {
    "hidden_size": hidden_size,
    "num_class": num_class,
}
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 Classifier — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Classifier 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
GNN Ran
ran on a synthesized input · constructed an object; no result was computed
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("a0f51d43b2936c11")
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 an instance of its own class, GNN: the run constructed the object and did not call it, so no result was computed. 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
from torch_geometric.data import Data

torch.manual_seed(0)

# Create a minimal graph data object that the forward method expects
num_nodes = 2
num_features = 4
num_edges = 3

x = torch.randn(num_nodes, num_features)
edge_index = torch.tensor([[0, 1, 0], [1, 0, 1]], dtype=torch.long)

data = Data(x=x, edge_index=edge_index)

ARGS = {
    'layer_sizes': [4, 8, 6],
    'batchnorm_mm': 0.99,
    'net': 'GCN',
    'n_heads': 8,
    'chebyshev_order': 2,
}
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 GNN — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GNN 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
Imbalance Ran
ran on a synthesized input · constructed an object; no result was computed
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("d0e375f51c18030a")
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 an instance of its own class, Imbalance: the run constructed the object and did not call it, so no result was computed. 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)

# Create a minimal data object that satisfies the Imbalance class requirements
class MockData:
    def __init__(self):
        # Create 10 nodes total, 4 classes
        self.x = torch.randn(10, 4)  # 10 nodes, 4 features
        self.y = torch.tensor([0, 0, 0, 1, 1, 2, 2, 3, 3, 3])  # 10 labels across 4 classes
        # Create train_mask: select nodes 0-5 for training (covers all classes)
        self.train_mask = torch.tensor([True, True, True, True, True, True, False, False, False, False])

data = MockData()

ARGS = {
    'name': 'Cora',
    'data': data,
    'ratio': 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 Imbalance — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Imbalance 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
Summer Ran
ran on a synthesized input · constructed an object; no result was computed
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("1cc5c8c084587cd8")
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 an instance of its own class, Summer: the run constructed the object and did not call it, so no result was computed. 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
from torch import nn

torch.manual_seed(0)

# Create a simple encoder module
class SimpleEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, data):
        return self.linear(data)

# Create a simple classifier module
class SimpleClassifier(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(3, 2)
    
    def forward(self, data):
        return self.linear(data)

# Instantiate encoder and classifier
encoder = SimpleEncoder()
classifier = SimpleClassifier()

ARGS = {
    'encoder': encoder,
    'classifier': classifier
}
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 Summer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Summer 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
_resolve_device Ran
ran; our contract draft was wrong, not the code
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("0314bb33efbb8ff6")
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 device. 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 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)

# The function _resolve_device takes a single parameter: device_name (str)
# It processes device strings like 'auto', 'cpu', 'cuda:0', etc.
# We'll test with a CPU device string since we're CPU-only

ARGS = {
    'device_name': 'cpu'
}
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 device — a device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a device 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
_split_metrics Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("00ae29dfec5bcea4")
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

torch.manual_seed(0)

# Create predictions tensor (batch_size=2, num_classes=4)
# Using long type since these will be compared with labels
predictions = torch.tensor([0, 1, 2, 3], dtype=torch.long)

# Create labels tensor (same shape, matching values for comparison)
labels = torch.tensor([0, 1, 2, 1], dtype=torch.long)

# Create mask tensor (boolean, selecting first 2 elements)
mask = torch.tensor([True, True, False, False], dtype=torch.bool)

ARGS = {
    "predictions": predictions,
    "labels": labels,
    "mask": mask,
}
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 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
compute_accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("00a374c740d0efb3")
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

torch.manual_seed(0)

# Create small tensors for testing
num_samples = 10
num_classes = 3

# predictions: should be class indices (for comparison with labels)
predictions = torch.randint(0, num_classes, (num_samples,))

# labels: true class indices
labels = torch.randint(0, num_classes, (num_samples,))

# Create masks for train/val/test splits
train_mask = torch.tensor([True, True, False, False, False, False, False, False, False, False])
val_mask = torch.tensor([False, False, True, True, True, False, False, False, False, False])
test_mask = torch.tensor([False, False, False, False, False, True, True, True, True, True])

ARGS = {
    "predictions": predictions,
    "labels": labels,
    "train_mask": train_mask,
    "val_mask": val_mask,
    "test_mask": test_mask,
}
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 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
config_to_string Ran
ran; our contract draft was wrong, not the code
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("862acaca85666e46")
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 str. 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 argparse
import torch
import torch.nn as nn

torch.manual_seed(0)

# The function takes an argparse.Namespace object and serializes its attributes
# It iterates through vars(args).items() and filters out False values
# So we need to create a Namespace with various attributes that are not False

ARGS = {
    'args': argparse.Namespace(
        learning_rate=0.001,
        batch_size=32,
        epochs=10,
        model_name='resnet50',
        optimizer='adam',
        use_dropout=True,
        weight_decay=1e-5,
        verbose=True,
        seed=42,
        dataset='cifar10',
        hidden_dim=256,
        skip_validation=False,  # This will be filtered out since it's False
        num_layers=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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
random_seed Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("2ebbc35773aa6632")
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 int, ndim 0, dtype family int, 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
import sys
from unittest.mock import MagicMock

# Mock the src.args module to avoid import errors
class MockArgs:
    def __init__(self, dataset='Cora'):
        self.dataset = dataset

def mock_parse_args():
    return MockArgs(dataset='Cora')

# Create a mock module
mock_src_args = MagicMock()
mock_src_args.parse_args = mock_parse_args

sys.modules['src'] = MagicMock()
sys.modules['src.args'] = mock_src_args

# Now define the arguments
ARGS = {
    'repetition': 2,
    'dataset': 'Cora'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
src, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
rbo_score Ran
ran; our contract draft was wrong, not the code
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("3c7f729e8b77f2e8")
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. 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)

# Analyze the function:
# - first_ranking: used with .any(), indexing via [depth], and add() to set
# - second_ranking: used with .any(), indexing via [depth], and add() to set
# - persistence: used in math.pow()
# These appear to be array-like sequences of hashable items

# Create two rankings as numpy arrays containing distinct hashable elements
first_ranking = np.array([0, 1, 2, 3, 4])
second_ranking = np.array([1, 0, 3, 2, 5])

persistence = 0.9

ARGS = {
    "first_ranking": first_ranking,
    "second_ranking": second_ranking,
    "persistence": persistence,
}
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 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
Embedder Not yet run
unverified (harvested, no recorded run)
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("68c3a90607b726f4")
How it ran

no invocation recorded.

Planetoid Not yet run
unverified (harvested, no recorded run)
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("fbb5df7d27b6feca")
How it ran

no invocation recorded.

SummerTrainer Not yet run
unverified (harvested, no recorded run)
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("1a38e65656984fc5")
How it ran

no invocation recorded.

reset Not yet run
unverified (harvested, no recorded run)
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("8988d78678494da0")
How it ran

no invocation recorded.

set_random_seeds Not yet run
unverified (harvested, no recorded run)
yanliang3612/UNREAL/models/Summer.py
code served (permissive licence) · get_code("497de9f0b9677508")
How it ran

no invocation recorded.

Also present in other papers' code

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

Class imbalance in graph data presents a significant challenge for effective node classification, particularly in semi-supervised scenarios. In this work, we formally introduce the concept of geometric imbalance, which captures how message passing on class-imbalanced graphs leads to geometric ambiguity among minority-class nodes in the riemannian manifold embedding space. We provide a rigorous theoretical analysis of geometric imbalance on the riemannian manifold and propose a unified framework that explicitly mitigates it through pseudo-label alignment, node reordering, and ambiguity filtering. Extensive experiments on diverse benchmarks show that our approach consistently outperforms existing methods, especially under severe class imbalance. Our findings offer new theoretical insights and practical tools for robust semi-supervised node classification.

For agents

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

get_harvested_code_for_paper("2303.10371")
get_code_for_paper("2303.10371")
have("2303.10371")

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

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

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

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

Connect an agent — have() is free.