Papers › ENACT: Entropy-based Clustering of Attention Input for Improving the Computational...

ENACT: Entropy-based Clustering of Attention Input for Improving the Computational Performance of Object Detection Transformers

11 Sep 2024arXiv:2409.07541archive 2025-07-28

Giorgos Savathrakis, Antonis Argyros

Transformers demonstrate competitive performance in terms of precision on the problem of vision-based object detection. However, they require considerable computational resources due to the quadratic size of the attention weights. In this work, we propose to cluster the transformer input on the basis of its entropy. The reason for this is that the self-information of each pixel (whose sum is the entropy), is likely to be similar among pixels corresponding to the same objects. Clustering reduces the size of data given as input to the transformer and therefore reduces training time and GPU memory usage, while at the same time preserves meaningful information to be passed through the remaining parts of the network. The proposed process is organized in a module called ENACT, that can be plugged-in any transformer architecture that consists of a multi-head self-attention computation in its encoder. We ran extensive experiments using the COCO object detection dataset, and three detection transformers. The obtained results demonstrate that in all tested cases, there is consistent reduction in the required computational resources, while the precision of the detection task is only slightly reduced. The code of the ENACT module will become available at https://github.com/GSavathrakis/ENACT

PaperPDFCodeCode 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="2409.07541")

Code

Syntology Ran 6 of 7 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · violated contract; 1 ran · our draft was wrong; 4 ran with no contract checked.

By repository: official repository: 7 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.

gsavathrakis/enact officialmentioned in papermentioned on GitHubpytorch 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

7 samples harvested; 6 ran; 0 honoured the contract we drafted; 1 has 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 · violated contract
1ran · our draft was wrong
4ran
1unverified

Licence: 7 of the 7 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 gsavathrakis/enact. “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.

dice_loss gsavathrakis/enact/Anchor-DETR-ENACT/models/segmentation.py official repository ran · violated contract fingerprinted no licence file found · pointer only · ac8fe530cdad4d8c · report
fmt_res gsavathrakis/enact/Anchor-DETR-ENACT/compute_speeds.py official repository ran fingerprinted no licence file found · pointer only · 96700f4fbea456b4 · report
measure_time gsavathrakis/enact/Anchor-DETR-ENACT/compute_speeds.py official repository ran no licence file found · pointer only · 60bb6b80d631b409 · report
pos2posemb1d gsavathrakis/enact/Anchor-DETR-ENACT/models/transformer.py official repository ran fingerprinted no licence file found · pointer only · b4a2dd35394d50d6 · report
pos2posemb2d gsavathrakis/enact/Anchor-DETR-ENACT/models/transformer.py official repository ran fingerprinted no licence file found · pointer only · b7f23e7c2f412bd5 · report
sigmoid_focal_loss gsavathrakis/enact/Anchor-DETR-ENACT/models/segmentation.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 5c0711aada67957e · report
multi_head_rcda_forward_dec gsavathrakis/enact/Anchor-DETR-ENACT/models/row_column_decoupled_attention.py official repository unverified no licence file found · pointer only · e6ecb133c6711c02 · report

Tasks

Object Detectionobject-detection

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionSoftmax

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