SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · aaai_29328 · AAAI · 2024

NodeMixup: Tackling Under-Reaching for Graph Neural Networks

Yaming Yang, Long Jin, Wei Zhao, Ziyu Guan, Weigang Lu

Open in the Atlas

Code that ran

7 of 7 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; 7 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/aaai_29328.json · badge: /api/ran/aaai_29328.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
WeigangLu/NodeMixup canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
Accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
WeigangLu/NodeMixup/utils.py
code served (permissive licence) · get_code("01fe608f304f43c8")
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

torch.manual_seed(0)

# Construct arguments for the Accuracy function
# x: logits tensor with shape (batch_size, num_classes)
# target: ground truth labels with shape (batch_size,)
# mask: boolean mask with shape (batch_size,)

batch_size = 2
num_classes = 4

x = torch.randn(batch_size, num_classes)
target = torch.tensor([0, 2], dtype=torch.long)
mask = torch.tensor([True, True], dtype=torch.bool)

ARGS = {
    "x": x,
    "target": target,
    "mask": mask
}
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 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
Cross_entropy_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
WeigangLu/NodeMixup/utils.py
code served (permissive licence) · get_code("cea0e3de8fd3ce1e")
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 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 torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for testing
# x should be logits/unnormalized scores with shape (batch, num_classes)
batch_size = 2
num_classes = 4
x = torch.randn(batch_size, num_classes)

# target should be class indices with shape (batch,)
target = torch.tensor([0, 2], dtype=torch.long)

# mask should be a boolean tensor with shape (batch,)
mask = torch.tensor([True, True], dtype=torch.bool)

# weight is optional, set to None for basic case
weight = None

ARGS = {
    "x": x,
    "target": target,
    "mask": mask,
    "weight": weight,
}
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 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
cosine_similarity_matrix Ran
ran; our contract draft was wrong, not the code
WeigangLu/NodeMixup/mixer.py
code served (permissive licence) · get_code("463f1b1322eb1a81")
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, 3) 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 two small tensors with distinct dimensions
# A: shape (2, 4) - 2 vectors of dimension 4
# B: shape (3, 4) - 3 vectors of dimension 4
A = torch.randn(2, 4)
B = torch.randn(3, 4)

ARGS = {
    "A": A,
    "B": B,
}
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, 3) — shape (2, 3) 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
index_to_mask Ran
ran; our contract draft was wrong, not the code
WeigangLu/NodeMixup/dataset.py
pointer only (licence: MIT); the stored copy get_code serves, from divelab/Non-Local-GNN, is pointer only (licence: GPL-3.0) · get_code("da80a2b9fd449bd2")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from divelab/Non-Local-GNN, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

random_splits Ran
ran; our contract draft was wrong, not the code
WeigangLu/NodeMixup/dataset.py
code served (permissive licence) · get_code("7a3d133bfad4e522")
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 2, 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

torch.manual_seed(0)

# Create small labels tensor with multiple classes
# We need enough samples per class to support percls_trn=20
# num_classes=3, so create 100 total nodes (enough for train/val/test splits)
num_nodes = 100
num_classes = 3
labels = torch.tensor([i % num_classes for i in range(num_nodes)])

ARGS = {
    "labels": labels,
    "num_classes": num_classes,
    "percls_trn": 20,
    "val_size": 500,
    "test_size": 1000,
}
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 tuple, ndim 2, 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
random_splits_CS Ran
ran; our contract draft was wrong, not the code
WeigangLu/NodeMixup/dataset.py
code served (permissive licence) · get_code("91e85d5760e9546f")
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 2, 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

torch.manual_seed(0)

# Create a small labels tensor with multiple classes
# We need at least num_classes distinct labels
# Let's create 12 nodes with 3 classes (4 nodes per class)
labels = torch.tensor([0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2])

num_classes = 3
percls_trn = 2
percls_val = 1

ARGS = {
    "labels": labels,
    "num_classes": num_classes,
    "percls_trn": percls_trn,
    "percls_val": percls_val,
}
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 tuple, ndim 2, 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
sharpen Ran
ran; our contract draft was wrong, not the code
WeigangLu/NodeMixup/utils.py
code served (permissive licence) · get_code("05a6e0bd80de935b")
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

torch.manual_seed(0)

# Create a small batch of log probabilities
# Shape: (batch_size=2, num_classes=4)
logs = torch.tensor([
    [1.0, 2.0, 3.0, 4.0],
    [0.5, 1.5, 2.5, 3.5]
], dtype=torch.float32)

# Temperature parameter for sharpening
temp = 2.0

ARGS = {
    "logs": logs,
    "temp": temp
}
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

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 1 later) and 0 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
index_to_mask 12 other papers
10 dated earlier, 1 later, 1 same year, order not determinable
2005.14612 (2020-05)
Non-Local Graph Neural Networks
2007.09296 (2020-07)
Towards Deeper Graph Neural Networks
2111.07337 (2021-11)
p-Laplacian Based Graph Neural Networks
and 9 more not named here
Accuracy 1 other paper
1 dated earlier
2312.13032 (2023-12)
NodeMixup: Tackling Under-Reaching for Graph Neural Networks
Cross_entropy_loss 1 other paper
1 dated earlier
2312.13032 (2023-12)
NodeMixup: Tackling Under-Reaching for Graph Neural Networks
cosine_similarity_matrix 1 other paper
1 dated earlier
2312.13032 (2023-12)
NodeMixup: Tackling Under-Reaching for Graph Neural Networks
random_splits 1 other paper
1 dated earlier
2312.13032 (2023-12)
NodeMixup: Tackling Under-Reaching for Graph Neural Networks
random_splits_CS 1 other paper
1 dated earlier
2312.13032 (2023-12)
NodeMixup: Tackling Under-Reaching for Graph Neural Networks
sharpen 1 other paper
1 dated earlier
2312.13032 (2023-12)
NodeMixup: Tackling Under-Reaching for Graph Neural 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-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

Graph Neural Networks (GNNs) have become mainstream methods for solving the semi-supervised node classification problem. However, due to the uneven location distribution of labeled nodes in the graph, labeled nodes are only accessible to a small portion of unlabeled nodes, leading to the under-reaching issue. In this study, we firstly reveal underreaching by conducting an empirical investigation on various well-known graphs. Then, we demonstrate that underreaching results in unsatisfactory distribution alignment between labeled and unlabeled nodes through systematic experimental analysis, significantly degrading GNNs' performance. To tackle under-reaching for GNNs, we propose an architecture-agnostic method dubbed NodeMixup. The fundamental idea is to (1) increase the reachability of labeled nodes by labeled-unlabeled pairs mixup, (2) leverage graph structures via fusing the neighbor connections of intra-class node pairs to improve performance gains of mixup, and (3) use neighbor label distribution similarity incorporating node degrees to determine sampling weights for node mixup. Extensive experiments demonstrate the efficacy of NodeMixup in assisting GNNs in handling under-reaching. The source code is available at https://github.com/WeigangLu/NodeMixup.

For agents

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

get_harvested_code_for_paper("aaai_29328")
get_code_for_paper("aaai_29328")
have("aaai_29328")

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

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

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

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

Connect an agent — have() is free.