SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.16148 · NeurIPS · 2024

Accelerating Transformers with Spectrum-Preserving Token Merging

James Zou, Mathias Niepert, Pengtao Xie, Binh Nguyen, Duy Nguyen, Daniel Sonntag, Trungtin Nguyen, Ngan Le, Hoai-Chau Tran

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 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/2405.16148.json · badge: /api/ran/2405.16148.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
hchautran/PiToMe canonical (classifier label)
classifier basis: classifier_2025
6 ran · 1 no recorded run
FunctionStatusWhere it lives
bsm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hchautran/PiToMe/algo/pitome/merge.py
pointer only (licence: NOASSERTION) · get_code("4c11239b70cdc49f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, hchautran/PiToMe (NOASSERTION). 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.

calculate_cross_flops Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hchautran/PiToMe/main_itr.py
pointer only (licence: NOASSERTION) · get_code("5d873f7e40563e31")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, hchautran/PiToMe (NOASSERTION). 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.

do_nothing Ran
ran, honoured the contract we drafted
hchautran/PiToMe/algo/pitome/merge.py
pointer only (licence: NOASSERTION) · get_code("6543fa3e4bfa285f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, hchautran/PiToMe (NOASSERTION). 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_gflops Ran
ran, honoured the contract we drafted
hchautran/PiToMe/main_itr.py
pointer only (licence: NOASSERTION) · get_code("3231510f96e375d9")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, hchautran/PiToMe (NOASSERTION). 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.

pitome Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hchautran/PiToMe/algo/pitome/merge.py
pointer only (licence: NOASSERTION) · get_code("20d1c468c053d9be")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, hchautran/PiToMe (NOASSERTION). 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.

pitome Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hchautran/PiToMe/algo/pitome/merge.py
pointer only (licence: NOASSERTION) · get_code("75bb9bdb28dd163f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, hchautran/PiToMe (NOASSERTION). 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_image Not yet run
unverified (harvested, no recorded run)
hchautran/PiToMe/main_ic.py
pointer only (licence: NOASSERTION) · get_code("3d5861107eab1eed")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, hchautran/PiToMe (NOASSERTION). 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 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 5 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
do_nothing 13 other papers
7 dated earlier, 6 later · 4 only as an assembly brick
2210.09461 (2022-10)
Token Merging: Your ViT But Faster
2307.10780 (2023-07)
Learned Thresholds Token Merging and Pruning for Vision Transformers
2310.01812 (2023-10)
PPT: Token Pruning and Pooling for Efficient Vision Transformers
and 10 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-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

Increasing the throughput of the Transformer architecture, a foundational component used in numerous state-of-the-art models for vision and language tasks (e.g., GPT, LLaVa), is an important problem in machine learning. One recent and effective strategy is to merge token representations within Transformer models, aiming to reduce computational and memory requirements while maintaining accuracy. Prior works have proposed algorithms based on Bipartite Soft Matching (BSM), which divides tokens into distinct sets and merges the top k similar tokens. However, these methods have significant drawbacks, such as sensitivity to tokensplitting strategies and damage to informative tokens in later layers. This paper presents a novel paradigm called PITOME, which prioritizes the preservation of informative tokens using an additional metric termed the energy score. This score identifies large clusters of similar tokens as high-energy, indicating potential candidates for merging, while smaller (unique and isolated) clusters are considered as low-energy and preserved. Experimental findings demonstrate that PITOME saved from 40-60% FLOPs of the base models while exhibiting superior off-the-shelf performance on image classification (0.5% average performance drop of ViT-MAEH compared to 2.6% as baselines), image-text retrieval (0.3% average performance drop of CLIP on Flickr30k compared to 4.5% as others), and analogously in visual questions answering with LLaVa-7B. Furthermore, PITOME is theoretically shown to preserve intrinsic spectral properties to the original token space under mild conditions. Our implementation is available at this link.

For agents

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

get_harvested_code_for_paper("2405.16148")
get_code_for_paper("2405.16148")
have("2405.16148")

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

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

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

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

Connect an agent — have() is free.