SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.13510 · ICML · 2022

Structural Entropy Guided Graph Hierarchical Pooling

Ke Xu, Junran Wu, Xueyuan Chen, Shangzhe Li

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 6 failures 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/2206.13510.json · badge: /api/ran/2206.13510.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
wu-junran/sep canonical (classifier label)
classifier basis not recorded on the link
8 ran · 1 no recorded run
FunctionStatusWhere it lives
child_tree_deepth Ran
ran, honoured the contract we drafted
wu-junran/sep/SEPG/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from Rooooyy/HiTIN, is pointer only (licence: NONE) · get_code("b16d0d091d08f27f")
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 Rooooyy/HiTIN, 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.

cut_volume Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wu-junran/sep/SEPG/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from Rooooyy/HiTIN, is pointer only (licence: NONE) · get_code("721b31dc7e862365")
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 Rooooyy/HiTIN, 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.

extract_tree Ran
ran on a synthesized input
wu-junran/sep/SEPG/data.py
code served (permissive licence) · get_code("c07d4aca97e06e10")
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 dict. 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 networkx as nx
import copy

torch.manual_seed(0)

# Build a small NetworkX graph
G = nx.Graph()
G.add_node(0, tag=1)
G.add_node(1, tag=2)
G.add_node(2, tag=3)
G.add_node(3, tag=4)
G.add_edge(0, 1)
G.add_edge(1, 2)
G.add_edge(2, 3)

# Build a tree structure that represents hierarchical grouping
# tree_depth will be 2, so we need depth 0 (leaves), depth 1 (intermediate), depth 2 (root)
tree = {
    0: {
        'ID': 0,
        'depth': 0,
        'graphID': 0,
        'children': []
    },
    1: {
        'ID': 1,
        'depth': 0,
        'graphID': 1,
        'children': []
    },
    2: {
        'ID': 2,
        'depth': 0,
        'graphID': 2,
        'children': []
    },
    3: {
        'ID': 3,
        'depth': 0,
        'graphID': 3,
        'children': []
    },
    4: {
        'ID': 4,
        'depth': 1,
        'children': [0, 1]
    },
    5: {
        'ID': 5,
        'depth': 1,
        'children': [2, 3]
    },
    6: {
        'ID': 6,
        'depth': 2,
        'children': [4, 5]
    }
}

graph = {
    'G': G,
    'label': 0,
    'tree': tree
}

tree_depth = 2

ARGS = {
    'graph': graph,
    'tree_depth': tree_depth
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
get_layer_graph Ran
ran; our contract draft was wrong, not the code
wu-junran/sep/SEPG/data.py
code served (permissive licence) · get_code("3626d54c9c119c8f")
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 list. 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 networkx as nx

# Build a minimal tree structure that the function expects
# tree is a dict where keys are node identifiers and values are dicts with 'depth', 'children', and optionally 'graphID'
tree = {
    0: {'depth': 0, 'children': [1, 2], 'graphID': 0},
    1: {'depth': 1, 'children': [3, 4], 'graphID': 1},
    2: {'depth': 1, 'children': [5], 'graphID': 2},
    3: {'depth': 2, 'children': [], 'graphID': 3},
    4: {'depth': 2, 'children': [], 'graphID': 4},
    5: {'depth': 2, 'children': [], 'graphID': 5},
}

# Build a base graph with nodes corresponding to leaf nodes
# The function will create quotient graphs by partitioning nodes
base_graph = nx.Graph()
base_graph.add_nodes_from([0, 1, 2, 3, 4, 5])
base_graph.add_edges_from([(0, 1), (0, 2), (1, 3), (1, 4), (2, 5)])

# Tree depth determines how many layers will be built
tree_depth = 3

ARGS = {
    'tree': tree,
    'graph': base_graph,
    'tree_depth': tree_depth,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
graph_parse Ran
ran; our contract draft was wrong, not the code
wu-junran/sep/SEPG/utils.py
code served (permissive licence) · get_code("21dda7ecf92b5b2c")
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
import numpy as np

torch.manual_seed(0)

# Create a small adjacency matrix
# The function expects a matrix where adj_matrix[i, j] represents edge weight from node i to node j
# Using a 4x4 matrix for a small graph
adj_matrix = np.array([
    [0, 1, 2, 0],
    [1, 0, 0, 3],
    [2, 0, 0, 1],
    [0, 3, 1, 0]
], dtype=np.float32)

ARGS = {
    'adj_matrix': adj_matrix
}
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 — 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
integrate_label Ran
ran; our contract draft was wrong, not the code
wu-junran/sep/SEPG/data.py
code served (permissive licence) · get_code("2f01cf160b34a636")
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 list, 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

# Construct trees - a list of dicts, each with a 'label' key
trees = [
    {'label': 'cat', 'data': [1, 2, 3]},
    {'label': 'dog', 'data': [4, 5, 6]},
    {'label': 'cat', 'data': [7, 8, 9]},
    {'label': 'bird', 'data': [10, 11, 12]},
]

ARGS = {
    'trees': trees
}
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 list, ndim 1, dtype family float — a list 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
trans_to_adj Ran
ran; our contract draft was wrong, not the code
wu-junran/sep/SEPG/trans_graph.py
pointer only (licence: MIT); the stored copy get_code serves, from ringbdstack/sisa, is pointer only (licence: NONE) · get_code("cb653477a7fefad1")
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 ringbdstack/sisa, 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.

update_node Ran
ran; our contract draft was wrong, not the code
wu-junran/sep/SEPG/trans_graph.py
pointer only (licence: MIT); the stored copy get_code serves, from ringbdstack/sisa, is pointer only (licence: NONE) · get_code("1bc1bd0cbe71477b")
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 ringbdstack/sisa, 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.

trans_to_tree Not yet run
unverified (harvested, no recorded run)
wu-junran/sep/SEPN/prepare_nodeData.py
code served (permissive licence) · get_code("b8bbf925e3fd324e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 7 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 3 the same month, 7 later) and 2 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
child_tree_deepth 7 other papers
1 the same month, 6 later · 3 only as an assembly brick
2206.02404 (2022-06)
A Simple yet Effective Method for Graph Classification
2304.12000 (2023-04)
Hierarchical State Abstraction Based on Structural Information Principles
2305.04501 (2023-05)
SEGA: Structural Entropy Guided Anchor View for Graph Contrastive Learning
and 4 more not named here
cut_volume 6 other papers
1 the same month, 5 later · 3 only as an assembly brick
2206.02404 (2022-06)
A Simple yet Effective Method for Graph Classification
2304.12000 (2023-04)
Hierarchical State Abstraction Based on Structural Information Principles
2305.04501 (2023-05)
SEGA: Structural Entropy Guided Anchor View for Graph Contrastive Learning
and 3 more not named here
graph_parse 6 other papers
1 the same month, 5 later · 2 only as an assembly brick
2206.02404 (2022-06)
A Simple yet Effective Method for Graph Classification
2304.12000 (2023-04)
Hierarchical State Abstraction Based on Structural Information Principles
2305.04501 (2023-05)
SEGA: Structural Entropy Guided Anchor View for Graph Contrastive Learning
and 3 more not named here
trans_to_adj 3 other papers
3 later
2304.12000 (2023-04)
Hierarchical State Abstraction Based on Structural Information Principles
2405.11225 (2024-05)
SeBot: Structural Entropy Guided Multi-View Contrastive Learning for Social Bot Detection
2406.09031 (2024-06)
A Comprehensive Graph Pooling Benchmark: Effectiveness, Robustness and Generalizability
update_node 3 other papers
3 later
2304.12000 (2023-04)
Hierarchical State Abstraction Based on Structural Information Principles
2405.11225 (2024-05)
SeBot: Structural Entropy Guided Multi-View Contrastive Learning for Social Bot Detection
2406.09031 (2024-06)
A Comprehensive Graph Pooling Benchmark: Effectiveness, Robustness and Generalizability
get_layer_graph 1 other paper
1 later
2405.11225 (2024-05)
SeBot: Structural Entropy Guided Multi-View Contrastive Learning for Social Bot Detection
integrate_label 1 other paper
1 later
2405.11225 (2024-05)
SeBot: Structural Entropy Guided Multi-View Contrastive Learning for Social Bot Detection

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

Following the success of convolution on non-Euclidean space, the corresponding pooling approaches have also been validated on various tasks regarding graphs. However, because of the fixed compression quota and stepwise pooling design, these hierarchical pooling methods still suffer from local structure damage and suboptimal problem. In this work, inspired by structural entropy, we propose a hierarchical pooling approach, SEP, to tackle the two issues. Specifically, without assigning the layer-specific compression quota, a global optimization algorithm is designed to generate the cluster assignment matrices for pooling at once. Then, we present an illustration of the local structure damage from previous methods in the reconstruction of ring and grid synthetic graphs. In addition to SEP, we further design two classification models, SEP-G and SEP-N for graph classification and node classification, respectively. The results show that SEP outperforms state-of-the-art graph pooling methods on graph classification benchmarks and obtains superior performance on node classifications.

For agents

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

get_harvested_code_for_paper("2206.13510")
get_code_for_paper("2206.13510")
have("2206.13510")

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

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

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

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

Connect an agent — have() is free.