SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.02089 · ICLR · 2021

CopulaGNN: Towards Integrating Representational and Correlational Roles of Graphs in Graph Neural Networks

Bo Chang, Jiaqi Ma, Qiaozhu Mei, Xuefei Zhang

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 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; 0 no recorded run), measured 2026-11-24; 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/2010.02089.json · badge: /api/ran/2010.02089.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
jiaqima/CopulaGNN canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
jiaqima/copulagnn canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
generate_lsn Ran
ran on a synthesized input
jiaqima/CopulaGNN/data.py
code served (permissive licence) · get_code("7686d5da79d80a9d")
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 os
import numpy as np

ARGS = {
    'n': 300,
    'd': 10,
    'm': 1500,
    'gamma': 0.1,
    'tau': 1.0,
    'seed': 1,
    'lsn_mode': 'xw',
    'root': './data',
    'load_file': False,
    'save_file': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, six — 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
grad_x_gammainc Ran
ran; our contract draft was wrong, not the code
jiaqima/copulagnn/models.py
code served (permissive licence) · get_code("d1f466dc42c6673f")
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) 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 small tensors for the function parameters
a = torch.tensor([[1.5, 2.0, 2.5, 3.0], [1.2, 1.8, 2.2, 2.8]], dtype=torch.float32)
x = torch.tensor([[0.5, 1.0, 1.5, 2.0], [0.8, 1.2, 1.8, 2.5]], dtype=torch.float32)
grad_output = torch.tensor([[0.1, 0.2, 0.3, 0.4], [0.15, 0.25, 0.35, 0.45]], dtype=torch.float32)

ARGS = {
    "a": a,
    "x": x,
    "grad_output": grad_output
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
read_wiki Ran
ran on a synthesized input
jiaqima/CopulaGNN/data.py
code served (permissive licence) · get_code("1af3dd84d1e6a652")
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 os
import numpy as np
import torch
import tempfile
import shutil

torch.manual_seed(0)

# Create a temporary directory to hold mock data files
temp_dir = tempfile.mkdtemp()

# Create mock data files
data_path = os.path.join(temp_dir, 'count')
os.makedirs(data_path, exist_ok=True)

# Create small mock numpy arrays
n_nodes = 12
n_features = 4
n_classes = 3
n_edges = 20

x = np.random.randn(n_nodes, n_features).astype(np.float32)
y = np.random.randint(0, n_classes, n_nodes).astype(np.float32)
edge_index = np.random.randint(0, n_nodes, (2, n_edges)).astype(np.int64)

# Save mock data files
np.save(os.path.join(data_path, 'wiki-chameleon-x.npy'), x)
np.save(os.path.join(data_path, 'wiki-chameleon-y.npy'), y)
np.save(os.path.join(data_path, 'wiki-chameleon-edge.npy'), edge_index)

ARGS = {
    'path': temp_dir,
    'name': 'chameleon',
    'seed': 1
}
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 Data — a Data 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
to_data Ran
ran on a synthesized input
jiaqima/CopulaGNN/data.py
code served (permissive licence) · get_code("719f2be78789a0ab")
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 numpy as np
import torch
from scipy.sparse import csr_matrix

torch.manual_seed(0)

# Create small node features: 5 nodes, 4 features
x = np.random.randn(5, 4).astype(np.float32)

# Create small labels: 5 nodes, 3 output dimensions
y = np.random.randn(5, 3).astype(np.float32)

# Create adjacency matrix as sparse matrix: 5x5
adj_dense = np.array([
    [0, 1, 1, 0, 0],
    [1, 0, 1, 1, 0],
    [1, 1, 0, 1, 1],
    [0, 1, 1, 0, 1],
    [0, 0, 1, 1, 0]
])
adj = csr_matrix(adj_dense)

# Alternative: edge_index format (2, num_edges)
edge_index = np.array([
    [0, 1, 0, 2, 1, 2, 3, 2, 4, 3],
    [1, 0, 2, 0, 2, 1, 2, 3, 2, 4]
], dtype=np.int64)

# Train/valid/test indices
train_idx = [0, 1]
valid_idx = [2, 3]
test_idx = [4]

ARGS = {
    "x": x,
    "y": y,
    "adj": adj,
    "edge_index": None,
    "train_idx": train_idx,
    "valid_idx": valid_idx,
    "test_idx": test_idx,
    "train_size": 1.0 / 3,
    "valid_size": 1.0 / 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch, torch_geometric — 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
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 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 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 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.

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-24.

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-structured data are ubiquitous. However, graphs encode diverse types of information and thus play different roles in data representation. In this paper, we distinguish the representational and the correlational roles played by the graphs in node-level prediction tasks, and we investigate how Graph Neural Network (GNN) models can effectively leverage both types of information. Conceptually, the representational information provides guidance for the model to construct better node features; while the correlational information indicates the correlation between node outcomes conditional on node features. Through a simulation study, we find that many popular GNN models are incapable of effectively utilizing the correlational information. By leveraging the idea of the copula, a principled way to describe the dependence among multivariate random variables, we offer a general solution. The proposed Copula Graph Neural Network (CopulaGNN) can take a wide range of GNN models as base models and utilize both representational and correlational information stored in the graphs. Experimental results on two types of regression tasks verify the effectiveness of the proposed method 1 .

For agents

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

get_harvested_code_for_paper("2010.02089")
get_code_for_paper("2010.02089")
have("2010.02089")

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

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

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

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

Connect an agent — have() is free.