Papers › ALGM: Adaptive Local-then-Global Token Merging for Efficient Semantic Segmentation...

ALGM: Adaptive Local-then-Global Token Merging for Efficient Semantic Segmentation with Plain Vision Transformers

14 Jun 2024CVPR 2024 1arXiv:2406.09936archive 2025-07-28

Narges Norouzi, Svetlana Orlova, Daan de Geus, Gijs Dubbelman

This work presents Adaptive Local-then-Global Merging (ALGM), a token reduction method for semantic segmentation networks that use plain Vision Transformers. ALGM merges tokens in two stages: (1) In the first network layer, it merges similar tokens within a small local window and (2) halfway through the network, it merges similar tokens across the entire image. This is motivated by an analysis in which we found that, in those situations, tokens with a high cosine similarity can likely be merged without a drop in segmentation quality. With extensive experiments across multiple datasets and network configurations, we show that ALGM not only significantly improves the throughput by up to 100%, but can also enhance the mean IoU by up to +1.1, thereby achieving a better trade-off between segmentation quality and efficiency than existing methods. Moreover, our approach is adaptive during inference, meaning that the same model can be used for optimal efficiency or accuracy, depending on the application. Code is available at https://tue-mps.github.io/ALGM.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.09936")

Code

Syntology Ran 6 of 12 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · honoured contract; 5 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tue-mps/algm-segmenter officialpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 6 ran; 1 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
5ran
6unverified

Licence: 12 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from tue-mps/algm-segmenter. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

dataset_prepare tue-mps/algm-segmenter/segm/flops.py official repository ran licence not identified · pointer only · f63b55edf664ebb2 · report
do_nothing tue-mps/algm-segmenter/algm/algm/global_merge.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 969e8250d805a154 · report
generate_colormap tue-mps/algm-segmenter/algm/algm/vis.py official repository ran fingerprinted licence not identified · pointer only · 3869ab58c2773dbd · report
get_dataset_validaion_path tue-mps/algm-segmenter/segm/flops.py official repository ran licence not identified · pointer only · 6a84e03ae16e5898 · report
merge_source tue-mps/algm-segmenter/algm/algm/local_merge.py official repository ran licence not identified · pointer only · 7de1b6333a4490bc · report
parse_r tue-mps/algm-segmenter/algm/algm/utils.py official repository ran fingerprinted licence not identified · pointer only · 94e8f254ce489a4b · report
accuracy tue-mps/algm-segmenter/segm/metrics.py official repository unverified no licence file found · pointer only · 2cc3699f9a695af9 · report
benchmark tue-mps/algm-segmenter/algm/algm/utils.py official repository unverified licence not identified · pointer only · eaef07a98678e866 · report
conditional_pooling tue-mps/algm-segmenter/algm/algm/local_merge.py official repository unverified licence not identified · pointer only · 4c1e01e17e20d12d · report
make_visualization tue-mps/algm-segmenter/algm/algm/vis.py official repository unverified licence not identified · pointer only · 9726524f57061ce3 · report
merge_wavg tue-mps/algm-segmenter/algm/algm/local_merge.py official repository unverified licence not identified · pointer only · 4b48cbe3332fcb0c · report
turbo_matching tue-mps/algm-segmenter/algm/algm/global_merge.py official repository unverified licence not identified · pointer only · 6c05551946f3b904 · report

Tasks

SegmentationSemantic SegmentationToken Reduction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections