Papers › Revisiting the Integration of Convolution and Attention for Vision Backbone

Revisiting the Integration of Convolution and Attention for Vision Backbone

21 Nov 2024arXiv:2411.14429archive 2025-07-28

Lei Zhu, Xinjiang Wang, Wayne Zhang, Rynson W. H. Lau

Convolutions (Convs) and multi-head self-attentions (MHSAs) are typically considered alternatives to each other for building vision backbones. Although some works try to integrate both, they apply the two operators simultaneously at the finest pixel granularity. With Convs responsible for per-pixel feature extraction already, the question is whether we still need to include the heavy MHSAs at such a fine-grained level. In fact, this is the root cause of the scalability issue w.r.t. the input resolution for vision transformers. To address this important problem, we propose in this work to use MSHAs and Convs in parallel \textbf{at different granularity levels} instead. Specifically, in each layer, we use two different ways to represent an image: a fine-grained regular grid and a coarse-grained set of semantic slots. We apply different operations to these two representations: Convs to the grid for local features, and MHSAs to the slots for global features. A pair of fully differentiable soft clustering and dispatching modules is introduced to bridge the grid and set representations, thus enabling local-global fusion. Through extensive experiments on various vision tasks, we empirically verify the potential of the proposed integration scheme, named \textit{GLMix}: by offloading the burden of fine-grained features to light-weight Convs, it is sufficient to use MHSAs in a few (e.g., 64) semantic slots to match the performance of recent state-of-the-art backbones, while being more efficient. Our visualization results also demonstrate that the soft clustering module produces a meaningful semantic grouping effect with only IN1k classification supervision, which may induce better interpretability and inspire new weakly-supervised semantic segmentation approaches. Code will be available at \url{https://github.com/rayleizhu/GLMix}.

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="2411.14429")

Code

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

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

rayleizhu/glmix officialmentioned in papermentioned on GitHubpytorchMIT 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

16 samples harvested; 6 ran; 3 honoured the contract we drafted; 10 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.

3ran · honoured contract
3ran
10unverified

Licence: 0 of the 16 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 rayleizhu/GLMix. “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.

count_params rayleizhu/GLMix/benchmark.py official repository ran · honoured contract MIT (permissive) · 410bffb8a07b52e3 · report
GLMixBlock rayleizhu/glmix/models/glnet.py official repository ran MIT (permissive) · 750a1fb4a8be9fd9 · report
LayerScale rayleizhu/glmix/models/glnet.py official repository ran fingerprinted MIT (permissive) · 3f3123c5b41c1bda · report
ResDWConvNCHW rayleizhu/glmix/models/glnet.py official repository ran MIT (permissive) · 7eca7076f186820a · report
cuda_timestamp rayleizhu/GLMix/benchmark.py official repository ran · honoured contract fingerprinted MIT (permissive) · 50d653ee6a59955c · report
timestamp rayleizhu/GLMix/benchmark.py official repository ran · honoured contract fingerprinted MIT (permissive) · 475160c5a1a1225a · report
build_dataset rayleizhu/GLMix/datasets.py official repository unverified MIT (permissive) · 9153241c4331eb1a · report
build_transform rayleizhu/GLMix/datasets.py official repository unverified MIT (permissive) · 3bc74137ab36aa79 · report
dumps_pyarrow rayleizhu/GLMix/folder2lmdb.py official repository unverified MIT (permissive) · f4e3f81ce11955a1 · report
evaluate rayleizhu/GLMix/ConvNextV2/engine_finetune.py official repository unverified MIT (permissive) · 6ab1c8b0afb86428 · report
get_dist_url rayleizhu/GLMix/slurm_wrapper.py official repository unverified MIT (permissive) · 41f6df8410217556 · report
get_init_file rayleizhu/GLMix/slurm_wrapper.py official repository unverified MIT (permissive) · 4229711f1a52b2cd · report
get_shared_folder rayleizhu/GLMix/slurm_wrapper.py official repository unverified MIT (permissive) · d07269a1ef6fc528 · report
prefetch rayleizhu/GLMix/prefetch_generator.py official repository unverified MIT (permissive) · 6b3e468a3a7b483b · report
rand_bbox rayleizhu/GLMix/models/glnet_tklb.py official repository unverified MIT (permissive) · bd61d1e4d25b3c45 · report
raw_reader rayleizhu/GLMix/folder2lmdb.py official repository unverified MIT (permissive) · 51738010a21f76a1 · report

Tasks

Semantic SegmentationWeakly supervised Semantic SegmentationWeakly-Supervised Semantic Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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