SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.15729 · IJCAI · 2024

Gradformer: Graph Transformer with Exponential Decay

Shirui Pan, Yibing Zhan, Xueqi Ma, Chuang Liu, Wenbin Hu, Zelin Yao

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 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/2404.15729.json · badge: /api/ran/2404.15729.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
LiuChuang0059/Gradformer canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
accuracy_sbm Ran
ran; our contract draft was wrong, not the code
LiuChuang0059/Gradformer/criterion/weight_loss.py
pointer only (licence: NONE) · get_code("9c678e872e30ebb8")
How it ran

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

attention Ran
ran; our contract draft was wrong, not the code
LiuChuang0059/Gradformer/model/Attention.py
pointer only (licence: NONE) · get_code("2936d5ee68562846")
How it ran

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

clones Ran
ran; our contract draft was wrong, not the code
LiuChuang0059/Gradformer/model/Attention.py
pointer only (licence: NONE) · get_code("1b1a4e44524606fc")
How it ran

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

drop_path Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
LiuChuang0059/Gradformer/utils/droppath.py
pointer only (licence: NONE) · get_code("65b113a451720c90")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LiuChuang0059/Gradformer 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_scheduler Ran
ran; our contract draft was wrong, not the code
LiuChuang0059/Gradformer/optimizer/ultra_optimizer.py
pointer only (licence: NONE) · get_code("f46f264157437aa0")
How it ran

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

weighted_cross_entropy Ran
ran; our contract draft was wrong, not the code
LiuChuang0059/Gradformer/criterion/weight_loss.py
pointer only (licence: NONE) · get_code("205244c3de692745")
How it ran

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

cal_full_pinv Not yet run
unverified (harvested, no recorded run)
LiuChuang0059/Gradformer/utils/commute.py
pointer only (licence: NONE) · get_code("0826732a2a55c72d")
How it ran

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

cal_pinv Not yet run
unverified (harvested, no recorded run)
LiuChuang0059/Gradformer/utils/commute.py
pointer only (licence: NONE) · get_code("450ae523bd9c18c9")
How it ran

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

fn Not yet run
unverified (harvested, no recorded run)
LiuChuang0059/Gradformer/data_utils/load_data.py
pointer only (licence: NONE) · get_code("9b87967cea992aa0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LiuChuang0059/Gradformer 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 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, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 8 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
clones 79 other papers
60 dated earlier, 2 the same month, 16 later, 1 same year, order not determinable · 11 only as an assembly brick
1411.4555 (2014-11)
Show and Tell: A Neural Image Caption Generator
1612.00563 (2016-12)
Self-critical Sequence Training for Image Captioning
1706.03762 (2017-06)
Attention Is All You Need
and 76 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-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

Graph Transformers (GTs) have demonstrated their advantages across a wide range of tasks. However, the self-attention mechanism in GTs overlooks the graph's inductive biases, particularly biases related to structure, which are crucial for the graph tasks. Although some methods utilize positional encoding and attention bias to model inductive biases, their effectiveness is still suboptimal analytically. Therefore, this paper presents Gradformer, a method innovatively integrating GT with the intrinsic inductive bias by applying an exponential decay mask to the attention matrix. Specifically, the values in the decay mask matrix diminish exponentially, correlating with the decreasing node proximities within the graph structure. This design enables Gradformer to retain its ability to capture information from distant nodes while focusing on the graph's local details. Furthermore, Gradformer introduces a learnable constraint into the decay mask, allowing different attention heads to learn distinct decay masks. Such an design diversifies the attention heads, enabling a more effective assimilation of diverse structural information within the graph. Extensive experiments on various benchmarks demonstrate that Gradformer consistently outperforms the Graph Neural Network and GT baseline models in various graph classification and regression tasks. Additionally, Gradformer has proven to be an effective method for training deep GT models, maintaining or even enhancing accuracy compared to shallow models as the network deepens, in contrast to the significant accuracy drop observed in other GT models. Codes are available at https://github.com/LiuChuang0059/Gradformer.

For agents

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

get_harvested_code_for_paper("2404.15729")
get_code_for_paper("2404.15729")
have("2404.15729")

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

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

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

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

Connect an agent — have() is free.