SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.13277 · 2025

SeqPE: Transformer with Sequential Position Encoding

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 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, 2 violated it and 0 have no contract verdict; 7 failures of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2506.13277.json · badge: /api/ran/2506.13277.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
ghrua/seqpe canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
FunctionStatusWhere it lives
is_image_file Ran
ran, violated the contract we drafted
ghrua/seqpe/image_seqpe/eval/prepare_imagenet_c.py
pointer only (licence: NONE); the stored copy get_code serves, from tmlr-group/cover, is pointer only (licence: NONE) · get_code("89c2cf3b97685684")
How it ran

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

agreement Ran
ran; our contract draft was wrong, not the code
ghrua/seqpe/image_seqpe/consistency.py
pointer only (licence: NONE) · get_code("165c5336f89f847c")
How it ran

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

auc Ran
ran, violated the contract we drafted
ghrua/seqpe/image_seqpe/eval/cal_imagenet_c.py
pointer only (licence: NONE) · get_code("7a93b4bf9b9553b9")
How it ran

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

build_scheduler Ran
ran; our contract draft was wrong, not the code
ghrua/seqpe/image_seqpe/lr_scheduler.py
pointer only (licence: NONE) · get_code("c02cc4e0b5720211")
How it ran

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

conver_to_numpy Ran
ran; our contract draft was wrong, not the code
ghrua/seqpe/image_seqpe/models/analysis_utils.py
pointer only (licence: NONE) · get_code("c62cad01937c7c94")
How it ran

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

create_logger Ran
ran; our contract draft was wrong, not the code
ghrua/seqpe/image_seqpe/logger.py
pointer only (licence: NONE) · get_code("80450600f7f09b0a")
How it ran

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

find_classes Ran
ran; our contract draft was wrong, not the code
ghrua/seqpe/image_seqpe/eval/prepare_imagenet_c.py
pointer only (licence: NONE); the stored copy get_code serves, from tmlr-group/cover, is pointer only (licence: NONE) · get_code("9347fb42c15d6687")
How it ran

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

grad_loss_breaching Ran
ran; our contract draft was wrong, not the code
ghrua/seqpe/image_seqpe/gradvit/gradvit_losses.py
pointer only (licence: NONE) · get_code("e2db69c3a1bd384a")
How it ran

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

make_dataset Ran
ran; our contract draft was wrong, not the code
ghrua/seqpe/image_seqpe/eval/prepare_imagenet_c.py
pointer only (licence: NONE); the stored copy get_code serves, from tmlr-group/cover, is pointer only (licence: NONE) · get_code("87889f77c597efa2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ghrua/seqpe 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_config Not yet run
unverified (harvested, no recorded run)
ghrua/seqpe/image_seqpe/config.py
pointer only (licence: NONE) · get_code("a4c21041d0740a79")
How it ran

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

image_loss Not yet run
unverified (harvested, no recorded run)
ghrua/seqpe/image_seqpe/gradvit/gradvit_losses.py
pointer only (licence: NONE) · get_code("04948c144e3d948f")
How it ran

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

l2_norm_anl Not yet run
unverified (harvested, no recorded run)
ghrua/seqpe/image_seqpe/models/analysis_utils.py
pointer only (licence: NONE) · get_code("4cd3558621f0286a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ghrua/seqpe 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 1 the same month, 1 later) and 3 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
get_config 51 other papers
47 dated earlier, 1 the same month, 1 later, 2 same year, order not determinable
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 48 more not named here
create_logger 35 other papers
33 dated earlier, 2 same year, order not determinable
2104.13840 (2021-04)
Twins: Revisiting the Design of Spatial Attention in Vision Transformers
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 32 more not named here
find_classes 30 other papers
30 dated earlier
1406.2661 (2014-06)
Generative Adversarial Networks
1612.06321 (2016-12)
Large-Scale Image Retrieval with Attentive Deep Local Features
1809.04729 (2018-09)
A Less Biased Evaluation of Out-of-distribution Sample Detectors
and 27 more not named here
is_image_file 22 other papers
22 dated earlier
1406.2661 (2014-06)
Generative Adversarial Networks
1603.08511 (2016-03)
Colorful Image Colorization
1805.08318 (2018-05)
Self-Attention Generative Adversarial Networks
and 19 more not named here
build_scheduler 13 other papers
13 dated earlier
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
2106.04263 (2021-06)
On the Connection between Local Attention and Dynamic Depth-wise Convolution
and 10 more not named here
make_dataset 5 other papers
5 dated earlier
1911.07205 (2019-11)
REFIT: A Unified Watermark Removal Framework For Deep Learning Systems With Limited Data
2001.03994 (2020-01)
Fast is better than free: Revisiting adversarial training
Ren_Masked_Jigsaw_Puzzle_A_Versatile_Position_Embedding_for_Vision_Transformers_CVPR_2023_paper (2023 (year only))
Masked Jigsaw Puzzle: A Versatile Position Embedding for Vision Transformers
and 2 more not named here
auc 3 other papers
3 dated earlier
2001.03994 (2020-01)
Fast is better than free: Revisiting adversarial training
2110.13771 (2021-10)
AugMax: Adversarial Composition of Random Augmentations for Robust Training
Ren_Masked_Jigsaw_Puzzle_A_Versatile_Position_Embedding_for_Vision_Transformers_CVPR_2023_paper (2023 (year only))
Masked Jigsaw Puzzle: A Versatile Position Embedding for Vision Transformers
agreement 1 other paper
1 dated earlier
Ren_Masked_Jigsaw_Puzzle_A_Versatile_Position_Embedding_for_Vision_Transformers_CVPR_2023_paper (2023 (year only))
Masked Jigsaw Puzzle: A Versatile Position Embedding for Vision Transformers
image_loss 1 other paper
1 dated earlier
Ren_Masked_Jigsaw_Puzzle_A_Versatile_Position_Embedding_for_Vision_Transformers_CVPR_2023_paper (2023 (year only))
Masked Jigsaw Puzzle: A Versatile Position Embedding for Vision Transformers

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

Since self-attention layers in Transformers are permutation invariant by design, positional encodings must be explicitly incorporated to enable spatial understanding. However, fixed-size lookup tables used in traditional learnable position embeddings (PEs) limit extrapolation capabilities beyond pre-trained sequence lengths. Expert-designed methods such as ALiBi and RoPE, mitigate this limitation but demand extensive modifications for adapting to new modalities, underscoring fundamental challenges in adaptability and scalability. In this work, we present SeqPE, a unified and fully learnable position encoding framework that represents each $n$-dimensional position index as a symbolic sequence and employs a lightweight sequential position encoder to learn their embeddings in an end-to-end manner. To regularize SeqPE's embedding space, we introduce two complementary objectives: a contrastive objective that aligns embedding distances with a predefined position-distance function, and a knowledge distillation loss that anchors out-of-distribution position embeddings to in-distribution teacher representations, further enhancing extrapolation performance. Experiments across language modeling, long-context question answering, and 2D image classification demonstrate that SeqPE not only surpasses strong baselines in perplexity, exact match (EM), and accuracy--particularly under context length extrapolation--but also enables seamless generalization to multi-dimensional inputs without requiring manual architectural redesign. We release our code, data, and checkpoints at https://github.com/ghrua/seqpe.

For agents

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

get_harvested_code_for_paper("2506.13277")
get_code_for_paper("2506.13277")
have("2506.13277")

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

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

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

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

Connect an agent — have() is free.