SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.07337 · ICML · 2022

p-Laplacian Based Graph Neural Networks

Peilin Zhao, Yatao Bian, Guoji Fu

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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 3 have no contract verdict; 1 failure 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/2111.07337.json · badge: /api/ran/2111.07337.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
guoji-fu/pGNNs canonical (classifier label)
classifier basis not recorded on the link
4 ran · 1 no recorded run
FunctionStatusWhere it lives
generate_random_edges Ran
ran on a synthesized input
guoji-fu/pGNNs/data_proc.py
code served (permissive licence) · get_code("94bdd206051654d1")
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, 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
import numpy as np
from torch_geometric.data import Data

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

# Create a minimal Data object with edge_index attribute
# edge_index should be a 2 x num_edges tensor
edge_index = torch.LongTensor([
    [0, 1, 2, 1],
    [1, 2, 3, 3]
])

data = Data(edge_index=edge_index)

ARGS = {
    "data": data,
    "random_rate": 0.5,
    "seed": 2021
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, torch_geometric — 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, 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
generate_split Ran
ran on a synthesized input
guoji-fu/pGNNs/data_proc.py
code served (permissive licence) · get_code("7e43b77d6fc59c07")
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
import numpy as np

torch.manual_seed(0)

class MockData:
    def __init__(self):
        # Create labels for multiple classes
        # num_classes=3, so we need labels 0, 1, 2
        # Make enough samples: we need at least train_num_per_c + val_num_per_c per class
        # train_num_per_c=20, val_num_per_c=30, so 50 per class minimum
        # Create 60 samples per class = 180 total
        labels = torch.cat([
            torch.zeros(60, dtype=torch.long),
            torch.ones(60, dtype=torch.long),
            torch.full((60,), 2, dtype=torch.long)
        ])
        self.y = labels

data = MockData()
num_classes = 3

ARGS = {
    "data": data,
    "num_classes": num_classes,
    "seed": 2021,
    "train_num_per_c": 20,
    "val_num_per_c": 30
}
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 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
index_to_mask Ran
ran; our contract draft was wrong, not the code
guoji-fu/pGNNs/cSBM_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_planetoid_splits Ran
ran on a synthesized input
guoji-fu/pGNNs/cSBM_dataset.py
code served (permissive licence) · get_code("319940b150558f96")
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 Data. 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 with required attributes
class Data:
    def __init__(self, num_nodes, num_classes):
        self.num_nodes = num_nodes
        self.y = torch.tensor([0, 0, 1, 1, 2, 2, 3, 3])  # 8 nodes, 4 classes, 2 per class
        self.train_mask = None
        self.val_mask = None
        self.test_mask = None

# Create data object with 8 nodes and 4 classes
data = Data(num_nodes=8, num_classes=4)

ARGS = {
    "data": data,
    "num_classes": 4,
    "percls_trn": 1,
    "val_lb": 2,
    "Flag": 0
}
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 Data — a Data output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Data 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
ContextualSBM Not yet run
unverified (harvested, no recorded run)
guoji-fu/pGNNs/cSBM_dataset.py
code served (permissive licence) · get_code("484a252bfc0570bd")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 3 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
2 dated earlier, 10 later
2005.14612 (2020-05)
Non-Local Graph Neural Networks
2007.09296 (2020-07)
Towards Deeper Graph Neural Networks
2112.11628 (2021-12)
SkipNode: On Alleviating Performance Degradation for Deep Graph Convolutional Networks
and 9 more not named here
random_planetoid_splits 1 other paper
1 later
2206.09144 (2022-06)
Beyond Real-world Benchmark Datasets: An Empirical Study of Node Classification with GNNs

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 demonstrated superior performance for semi-supervised node classification on graphs, as a result of their ability to exploit node features and topological information. However, most GNNs implicitly assume that the labels of nodes and their neighbors in a graph are the same or consistent, which does not hold in heterophilic graphs, where the labels of linked nodes are likely to differ. Moreover, when the topology is noninformative for label prediction, ordinary GNNs may work significantly worse than simply applying multi-layer perceptrons (MLPs) on each node. To tackle the above problem, we propose a new p-Laplacian based GNN model, termed as p GNN, whose message passing mechanism is derived from a discrete regularization framework and can be theoretically explained as an approximation of a polynomial graph filter defined on the spectral domain of p-Laplacians. The spectral analysis shows that the new message passing mechanism works as low-high-pass filters, thus rendering p GNNs effective on both homophilic and heterophilic graphs. Empirical studies on real-world and synthetic datasets validate our findings and demonstrate that p GNNs significantly outperform several state-of-the-art GNN architectures on heterophilic benchmarks while achieving competitive performance on homophilic benchmarks. Moreover, p GNNs can adaptively learn aggregation weights and are robust to noisy edges.

For agents

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

get_harvested_code_for_paper("2111.07337")
get_code_for_paper("2111.07337")
have("2111.07337")

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

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

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

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

Connect an agent — have() is free.