SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.12946 · AAAI · 2024

Cell Graph Transformer for Nuclei Classification

Guanbin Li, Wei Lou, Xiang Wan, Haofeng Li

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 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, 2 violated it and 0 have no contract verdict; 3 failures of our instrument; 4 no recorded run), measured 2026-11-22; 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/2402.12946.json · badge: /api/ran/2402.12946.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
lhaof/CGT canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
bilinear_interpolation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lhaof/CGT/models/CGT/bilinear.py
pointer only (licence: NONE) · get_code("c746aab94c030ee1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lhaof/CGT 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.

eig Ran
ran; our contract draft was wrong, not the code
lhaof/CGT/models/CGT/algos.py
pointer only (licence: NONE) · get_code("aaf58366ac53cb6c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lhaof/CGT 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.

get_array_value Ran
ran, violated the contract we drafted
lhaof/CGT/models/CGT/bilinear.py
pointer only (licence: NONE) · get_code("34c757a96922d1f6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lhaof/CGT 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.

interpolate Ran
ran, honoured the contract we drafted
lhaof/CGT/models/CGT/bilinear.py
pointer only (licence: NONE) · get_code("be6bea42d689b3f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lhaof/CGT 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.

lap_eig Ran
ran; our contract draft was wrong, not the code
lhaof/CGT/models/CGT/algos.py
pointer only (licence: NONE) · get_code("e21da4ba3aeb7919")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lhaof/CGT 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.

process Ran
ran, violated the contract we drafted
lhaof/CGT/models/CGT/post_proc.py
pointer only (licence: NONE) · get_code("a17cf7de69cc2b7c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lhaof/CGT 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.

convert_to_single_emb Not yet run
unverified (harvested, no recorded run)
lhaof/CGT/models/CGT/query2label.py
pointer only (licence: NONE) · get_code("dc1329d9e5dd3eec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lhaof/CGT 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. No invocation recorded.

infer_step Not yet run
unverified (harvested, no recorded run)
lhaof/CGT/models/CGT/run_desc.py
pointer only (licence: NONE) · get_code("f3a9656c0f11f020")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lhaof/CGT 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. No invocation recorded.

train_step Not yet run
unverified (harvested, no recorded run)
lhaof/CGT/models/CGT/run_desc.py
pointer only (licence: NONE) · get_code("2f4c495b7d47dc55")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lhaof/CGT 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. No invocation recorded.

valid_step Not yet run
unverified (harvested, no recorded run)
lhaof/CGT/models/CGT/run_desc.py
pointer only (licence: NONE) · get_code("e5360de2ad18b9bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lhaof/CGT 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. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 9 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
eig 1 other paper
1 later
2404.05767 (2024-04)
CSA-Trans: Code Structure Aware Transformer for AST

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

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Nuclei classification is a critical step in computer-aided diagnosis with histopathology images. In the past, various methods have employed graph neural networks (GNN) to analyze cell graphs that model inter-cell relationships by considering nuclei as vertices. However, they are limited by the GNN mechanism that only passes messages among local nodes via fixed edges. To address the issue, we develop a cell graph transformer (CGT) that treats nodes and edges as input tokens to enable learnable adjacency and information exchange among all nodes. Nevertheless, training the transformer with a cell graph presents another challenge. Poorly initialized features can lead to noisy self-attention scores and inferior convergence, particularly when processing the cell graphs with numerous connections. Thus, we further propose a novel topology-aware pretraining method that leverages a graph convolutional network (GCN) to learn a feature extractor. The pre-trained features may suppress unreasonable correlations and hence ease the finetuning of CGT. Experimental results suggest that the proposed cell graph transformer with topology-aware pretraining significantly improves the nuclei classification results, and achieves the stateof-the-art performance. Code and models are available at https://github.com/lhaof/CGT

For agents

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

get_harvested_code_for_paper("2402.12946")
get_code_for_paper("2402.12946")
have("2402.12946")

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

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

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

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

Connect an agent — have() is free.