SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.18758 · 2023

Task-Equivariant Graph Few-shot Learning

arXiv · PDF · Open in the Atlas

Code that ran

5 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, 1 violated it and 2 have no contract verdict; 2 failures of our instrument; 2 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.18758.json · badge: /api/ran/2305.18758.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
sung-won-kim/teg canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
diff_mean Ran
ran on a synthesized input
sung-won-kim/teg/layers/EGNN.py
code served (permissive licence) · get_code("dc7309307f3e3fa9")
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 (3, 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 sample data
# data: shape (num_edges, feature_dim) - represents edge features or node updates
data = torch.randn(6, 4)

# segment_ids: shape (num_edges,) - maps each edge to a node index
# Values should be in range [0, num_nodes)
segment_ids = torch.tensor([0, 0, 1, 1, 2, 2])

# num_nodes: number of nodes in the graph
num_nodes = 3

ARGS = {
    "data": data,
    "segment_ids": segment_ids,
    "num_nodes": num_nodes,
}
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 (3, 4) — shape (3, 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
enumerateConfig Ran
ran; our contract draft was wrong, not the code
sung-won-kim/teg/argument.py
pointer only (licence: MIT); the stored copy get_code serves, from Namkyeong/PCRL, is pointer only (licence: NONE) · get_code("98ffc3b33f629509")
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 Namkyeong/PCRL, and GitHub detected no licence in that repository when it was checked. 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.

msg_collect Ran
ran on a synthesized input
sung-won-kim/teg/layers/EGNN.py
code served (permissive licence) · get_code("c3b3e1c258e0cd8f")
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 (3, 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)

# Construct arguments for msg_collect function
# The function performs a scatter_add operation to aggregate data by segment_ids

# data: tensor of shape (batch_size, feature_dim)
data = torch.randn(2, 4)

# segment_ids: tensor of shape (batch_size,) with values in range [0, num_nodes)
segment_ids = torch.tensor([0, 1])

# num_nodes: number of output nodes (determines output shape)
num_nodes = 3

ARGS = {
    "data": data,
    "segment_ids": segment_ids,
    "num_nodes": num_nodes
}
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 (3, 4) — shape (3, 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
normalize Ran
ran, violated the contract we drafted
sung-won-kim/teg/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from songw-sw/x-fnc, is pointer only (licence: NONE) · get_code("aa9c29936dee40a7")
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 songw-sw/x-fnc, and GitHub detected no licence in that repository when it was checked. 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.

normalize_adj Ran
ran; our contract draft was wrong, not the code
sung-won-kim/teg/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from songw-sw/x-fnc, is pointer only (licence: NONE) · get_code("21b0199200507ff0")
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 songw-sw/x-fnc, and GitHub detected no licence in that repository when it was checked. 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.

config2string Not yet run
unverified (harvested, no recorded run)
sung-won-kim/teg/argument.py
code served (permissive licence) · get_code("a854bd6e4fc6bd4b")
How it ran

no invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
sung-won-kim/teg/utils.py
code served (permissive licence) · get_code("5171ea536dc67533")
How it ran

no invocation recorded.

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, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 3 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
normalize 24 other papers
17 dated earlier, 7 later
1609.02907 (2016-09)
Semi-Supervised Classification with Graph Convolutional Networks
1803.03735 (2018-03)
Attention-based Graph Neural Network for Semi-supervised Learning
1805.09112 (2018-05)
Hyperbolic Neural Networks
and 21 more not named here
normalize_adj 14 other papers
11 dated earlier, 3 later
1812.00971 (2018-12)
Learning to Learn How to Learn: Self-Adaptive Visual Navigation Using Meta-Learning
2003.06749 (2020-03)
Learning hierarchical relationships for object-goal navigation
2104.09807 (2021-04)
Visual Navigation with Spatial Attention
and 11 more not named here
enumerateConfig 4 other papers
2 the same month, 2 later
2305.01520 (2023-05)
Conditional Graph Information Bottleneck for Molecular Relational Learning
2305.18451 (2023-05)
Shift-Robust Molecular Relational Learning with Causal Substructure
2307.10037 (2023-07)
Single-cell RNA-seq data imputation using Feature Propagation
and 1 more not named here

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

Although Graph Neural Networks (GNNs) have been successful in node classification tasks, their performance heavily relies on the availability of a sufficient number of labeled nodes per class. In real-world situations, not all classes have many labeled nodes and there may be instances where the model needs to classify new classes, making manual labeling difficult. To solve this problem, it is important for GNNs to be able to classify nodes with a limited number of labeled nodes, known as few-shot node classification. Previous episodic meta-learning based methods have demonstrated success in few-shot node classification, but our findings suggest that optimal performance can only be achieved with a substantial amount of diverse training meta-tasks. To address this challenge of meta-learning based few-shot learning (FSL), we propose a new approach, the Task-Equivariant Graph few-shot learning (TEG) framework. Our TEG framework enables the model to learn transferable task-adaptation strategies using a limited number of training meta-tasks, allowing it to acquire meta-knowledge for a wide range of meta-tasks. By incorporating equivariant neural networks, TEG can utilize their strong generalization abilities to learn highly adaptable task-specific strategies. As a result, TEG achieves state-of-the-art performance with limited training meta-tasks. Our experiments on various benchmark datasets demonstrate TEG's superiority in terms of accuracy and generalization ability, even when using minimal meta-training data, highlighting the effectiveness of our proposed approach in addressing the challenges of meta-learning based few-shot node classification. Our code is available at the following link: https://github.com/sung-won-kim/TEG

For agents

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

get_harvested_code_for_paper("2305.18758")
get_code_for_paper("2305.18758")
have("2305.18758")

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

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

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

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

Connect an agent — have() is free.