3 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 0 have no contract verdict; 3 failures of our instrument; 1 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/2106.00515.json · badge: /api/ran/2106.00515.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.
| Repository | Role | Ran |
|---|---|---|
| damo-cv/kvt | canonical (classifier label) classifier basis not recorded on the link |
3 ran · 1 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| build_transform | Ran ran; our contract draft was wrong, not the code |
damo-cv/kvt/datasets.py code served (permissive licence) · get_code("3bc74137ab36aa79") How it ranRan 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 Compose. 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.
|
| checkpoint_filter_fn | Ran ran; our contract draft was wrong, not the code |
damo-cv/kvt/KNN_VisionTransformer.py code served (permissive licence) · get_code("0b3795f9775ce118") How it ranRan 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.
|
| resize_pos_embed | Ran ran; our contract draft was wrong, not the code |
damo-cv/kvt/KNN_VisionTransformer.py code served (permissive licence) · get_code("109c74bc1997c975") How it ranRan 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 Tensor, ndim 3, dtype family float, shape (1, 10, 8) 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.
|
| build_dataset | Not yet run unverified (harvested, no recorded run) |
damo-cv/kvt/datasets.py code served (permissive licence) · get_code("9153241c4331eb1a") How it ranno invocation recorded. |
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, 4 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 2 the same month, 4 later) and 0 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.
| Function | Also present in | Earliest-dated | Others named |
|---|---|---|---|
| build_transform | 37 other papers 2 dated earlier, 1 the same month, 34 later |
2104.05707 (2021-04) LocalViT: Analyzing Locality in Vision Transformers |
2104.13840 (2021-04) Twins: Revisiting the Design of Spatial Attention in Vision Transformers 2106.01401 (2021-06) Container: Context Aggregation Network and 34 more not named here |
| build_dataset | 25 other papers 1 dated earlier, 1 the same month, 23 later |
2104.05707 (2021-04) LocalViT: Analyzing Locality in Vision Transformers |
2106.01401 (2021-06) Container: Context Aggregation Network 2108.01390 (2021-08) Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformer and 22 more not named here |
| resize_pos_embed | 8 other papers 8 later |
2107.00645 (2021-07) Global Filter Networks for Image Classification |
2108.01390 (2021-08) Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformer 2112.05230 (2021-12) Injecting Semantic Concepts into End-to-End Image Captioning and 5 more not named here |
| checkpoint_filter_fn | 7 other papers 7 later |
2107.00645 (2021-07) Global Filter Networks for Image Classification |
2108.01390 (2021-08) Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformer 2112.05230 (2021-12) Injecting Semantic Concepts into End-to-End Image Captioning and 4 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.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Convolutional Neural Networks (CNNs) have dominated computer vision for years, due to its ability in capturing locality and translation invariance. Recently, many vision transformer architectures have been proposed and they show promising performance. A key component in vision transformers is the fully-connected self-attention which is more powerful than CNNs in modelling long range dependencies. However, since the current dense self-attention uses all image patches (tokens) to compute attention matrix, it may neglect locality of images patches and involve noisy tokens (e.g., clutter background and occlusion), leading to a slow training process and potential degradation of performance. To address these problems, we propose the $k$-NN attention for boosting vision transformers. Specifically, instead of involving all the tokens for attention matrix calculation, we only select the top-$k$ similar tokens from the keys for each query to compute the attention map. The proposed $k$-NN attention naturally inherits the local bias of CNNs without introducing convolutional operations, as nearby tokens tend to be more similar than others. In addition, the $k$-NN attention allows for the exploration of long range correlation and at the same time filters out irrelevant tokens by choosing the most similar tokens from the entire image. Despite its simplicity, we verify, both theoretically and empirically, that $k$-NN attention is powerful in speeding up training and distilling noise from input tokens. Extensive experiments are conducted by using 11 different vision transformer architectures to verify that the proposed $k$-NN attention can work with any existing transformer architectures to improve its prediction performance. The codes are available at \url{https://github.com/damo-cv/KVT}.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2106.00515")
get_code_for_paper("2106.00515")
have("2106.00515")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2106.00515.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2106.00515)
Connect an agent — have() is free.