Papers
Topics
Authors
Recent
Search
2000 character limit reached

Global Depthwise Convolution (GDConv)

Updated 18 July 2026
  • Global Depthwise Convolution (GDConv) is defined as a depthwise operator concept that ideally uses full spatial support across the feature map.
  • It contrasts global kernels with localized depthwise filters that approximate self-attention in Vision Transformers and standard convolutions in CNNs.
  • Empirical studies highlight trade-offs in latency and accuracy when replacing attention heads with static, local depthwise kernels in pretrained models.

Global Depthwise Convolution (GDConv) commonly denotes a depthwise operator with global spatial support, such as an m×mm \times m depthwise kernel spanning the full feature map. In the two arXiv works most directly relevant here, however, that operator is distinguished rather than introduced. "Accelerating Vision Foundation Models with Drop-in Depthwise Convolution" studies a drop-in depthwise convolution replacement for selected self-attention heads in pretrained Vision Transformers, but explicitly uses a finite-kernel, local, static, content-independent depthwise convolution rather than a true global one (Scribano et al., 21 May 2026). "Generalized Depthwise-Separable Convolutions for Adversarially Robust and Efficient Neural Networks" introduces Generalized Depthwise-Separable (GDWS) convolution, where "G" stands for generalized, not global; the method remains a factorization of standard local K×KK \times K convolution rather than a full-spatial depthwise operator (Dbouk et al., 2021). The resulting literature position is terminologically delicate: GDConv, in the strict global-spatial sense, is not the object implemented in either paper, but both works clarify neighboring regimes in which depthwise operators approximate either self-attention or standard convolution.

1. Terminological scope and formal distinction

The central distinction is between global spatial support and local spatial support. A true GDConv would typically use a kernel spanning the full feature map, such as m×mm \times m depthwise kernels, so that spatial aggregation is globally supported but remains channelwise. By contrast, the Vision Transformer acceleration work replaces certain attention heads with a local operator defined on a neighborhood Δk⊂Δm\Delta_k \subset \Delta_m, with experiments fixing k=3k=3. The replacement is therefore neither global by kernel size nor global in the sense of a fully connected token mixer (Scribano et al., 21 May 2026).

A second distinction concerns the meaning of the initialism itself. In the CNN approximation work, the term is GDWS, not GDConv, and its expansion is Generalized Depthwise-Separable. The operator allows each input channel to have multiple depthwise filters before a pointwise mixing stage, but the spatial kernels remain ordinary local K×KK \times K kernels. There is no notion of full-image support or global filtering in that formulation (Dbouk et al., 2021).

This terminological separation matters because superficially similar names can conceal materially different operators. In one case, depthwise convolution is used as a local surrogate for selected self-attention heads; in the other, it is used as a generalized factorization of pretrained convolutional weights. Neither mechanism, as defined, is equivalent to GDConv in the full-spatial sense.

2. Attention as a precursor to convolutional structure

The transformer-based analysis begins from standard self-attention on a ViT token matrix X∈Rn×dX \in \mathbb{R}^{n \times d}, with n=m2n=m^2 patch tokens arranged on an m×mm \times m grid. For head hh,

K×KK \times K0

The attention output is

K×KK \times K1

with attention matrix

K×KK \times K2

and full multi-head output

K×KK \times K3

After reshaping tokens to spatial form, the head output at location K×KK \times K4 is written as

K×KK \times K5

This formulation exposes the bridge to convolution: attention is a weighted spatial aggregation over values. The crucial difference is that the weights depend on the input and on the query position. The proposed approximation replaces these input-dependent weights with a learned local kernel,

K×KK \times K6

where K×KK \times K7 and K×KK \times K8. This establishes a convolutional relation, but only over a truncated local support and with static rather than input-generated coefficients (Scribano et al., 21 May 2026).

The paper formalizes when an attention head becomes convolution-like through three properties of the attention matrix K×KK \times K9: locality, translation invariance, and input invariance. For a receptive field m×mm \times m0,

m×mm \times m1

m×mm \times m2

m×mm \times m3

Under these conditions, the head becomes equivalent to a fixed local operator on values. These conditions imply convolutional structure, but not global convolutional structure.

3. Local depthwise replacement inside pretrained Vision Transformers

The ViT acceleration method derives two convolutional realizations. A full convolution form folds the local kernel into the value projection: m×mm \times m4 with

m×mm \times m5

where m×mm \times m6. This corresponds to a standard spatial convolution after merging value projection and local mixing.

The implemented replacement is the depthwise decomposition

m×mm \times m7

with

m×mm \times m8

and

m×mm \times m9

Each output channel within head Δk⊂Δm\Delta_k \subset \Delta_m0 therefore receives its own Δk⊂Δm\Delta_k \subset \Delta_m1 spatial filter. In the reported experiments, Δk⊂Δm\Delta_k \subset \Delta_m2, so the operational module is a Δk⊂Δm\Delta_k \subset \Delta_m3 depthwise convolution on the value features of selected heads (Scribano et al., 21 May 2026).

This operator is static and content-independent: the kernel is a learned parameter rather than a function of the input. It is also explicitly local, since Δk⊂Δm\Delta_k \subset \Delta_m4 is a subset of the full attention support Δk⊂Δm\Delta_k \subset \Delta_m5. Any apparent relation to global mixing comes only from the fact that the module replaces a mechanism—self-attention—that originally had full token-to-token connectivity. The replacement itself remains a finite-kernel local DWConv.

Architecturally, the substitution occurs inside a standard MHSA block at the head level. The method does not remove the entire MHSA mechanism uniformly across the network. Instead, it replaces either selected heads across the model or all heads in selected blocks. The unensembled formulation preserves concatenation and output projection Δk⊂Δm\Delta_k \subset \Delta_m6, while an ensembled variant merges multiple heads into one effective depthwise-convolution branch.

4. Selection criteria, head ensembling, and approximation regime

The viability of the replacement depends on identifying heads whose attention is already close to a static convolution. The selection criterion is based on the pointwise standard deviation of the attention matrix Δk⊂Δm\Delta_k \subset \Delta_m7 across data. For each head Δk⊂Δm\Delta_k \subset \Delta_m8, an online estimate of the standard deviation tensor Δk⊂Δm\Delta_k \subset \Delta_m9 is computed across k=3k=30 samples using Welford’s algorithm, and summarized by

k=3k=31

For blockwise replacement,

k=3k=32

Heads or blocks with the smallest scores are selected. Small k=3k=33 indicates that the attention pattern changes little across inputs and is interpreted as evidence for approximate input invariance (Scribano et al., 21 May 2026).

This criterion does not test for global support. It tests whether a head is static across inputs. The conceptual target is therefore the opposite of a richly content-dependent global mixer: the replaceable heads are those that behave in a localized, nearly translation-like, and largely positional fashion. The paper explicitly motivates the approximation in terms of heads learning highly localized, static patterns.

The work also introduces a head-ensembling mechanism with learnable head weights k=3k=34,

k=3k=35

and defines

k=3k=36

The paper argues that SPViT corresponds to a special case under strong assumptions, but the resulting branch remains a local-kernel depthwise module rather than a GDConv. A stochastic-gating selection approach adapted from Differentiable Subset Pruning is also discussed, yet the simpler k=3k=37 criterion is reported to work better empirically.

5. Generalized depthwise-separable convolution and its non-global character

The second relevant operator is the k=3k=38 Generalized Depthwise-Separable (GDWS) convolution. For input k=3k=39, output channels K×KK \times K0, and kernel size K×KK \times K1, GDWS introduces a channel distribution vector

K×KK \times K2

and consists of two stages: a generalized depthwise convolution, where input channel K×KK \times K3 is convolved with K×KK \times K4 depthwise filters, followed by a K×KK \times K5 pointwise convolution mapping the resulting

K×KK \times K6

intermediate channels to the final output (Dbouk et al., 2021).

The method is most naturally understood through its matrix factorization. A standard convolution with vectorized filters K×KK \times K7 is written as

K×KK \times K8

with MAC complexity

K×KK \times K9

GDWS factorizes the weight matrix as

X∈Rn×dX \in \mathbb{R}^{n \times d}0

where X∈Rn×dX \in \mathbb{R}^{n \times d}1 and X∈Rn×dX \in \mathbb{R}^{n \times d}2. Channelwise partitioning yields blocks X∈Rn×dX \in \mathbb{R}^{n \times d}3, each satisfying

X∈Rn×dX \in \mathbb{R}^{n \times d}4

This means GDWS approximates a standard convolution by independently low-rank approximating each channel block.

Several special cases are explicit. Setting

X∈Rn×dX \in \mathbb{R}^{n \times d}5

reduces GDWS to standard MobileNet-style depthwise-separable convolution. Setting

X∈Rn×dX \in \mathbb{R}^{n \times d}6

permits exact representation of any standard convolution. The construction remains local throughout: the novelty lies in generalized factorization and per-channel-block rank allocation, not in any global receptive field.

Approximation is optimized by truncated SVD. For fixed X∈Rn×dX \in \mathbb{R}^{n \times d}7,

X∈Rn×dX \in \mathbb{R}^{n \times d}8

with error

X∈Rn×dX \in \mathbb{R}^{n \times d}9

The weighted objective is

n=m2n=m^20

The algorithms MEGO and LEGO solve, respectively, minimum-error approximation under a complexity budget and minimum-complexity approximation under an error budget. These results make GDWS a rigorously characterized post-training approximation of standard 2D convolution, but not a GDConv in the global-spatial sense.

6. Efficiency regimes, empirical behavior, and implications for GDConv research

The local DWConv replacement in pretrained ViTs is motivated partly by complexity. The full-convolution form has complexity n=m2n=m^21, whereas the depthwise decomposition reduces this to

n=m2n=m^22

For a single MHSA block with n=m2n=m^23 and n=m2n=m^24 tokens, the reported benchmarks are: standard MHSA at n=m2n=m^25 GFLOPs, n=m2n=m^26 ms, and n=m2n=m^27 MB; full convolution replacement at n=m2n=m^28 GFLOPs, n=m2n=m^29 ms, and m×mm \times m0 MB; depthwise replacement at m×mm \times m1 GFLOPs, m×mm \times m2 ms, and m×mm \times m3 MB; SPViT-style at m×mm \times m4 GFLOPs and m×mm \times m5 ms; and Ens+DW at m×mm \times m6 GFLOPs and m×mm \times m7 ms (Scribano et al., 21 May 2026).

At model scale, replacing 12 of 24 blocks in DINOv2-ViT-L reduces latency from m×mm \times m8 ms to m×mm \times m9 ms, a hh0 speedup, with hh1 mIoU on COCO segmentation; replacing 16 of 24 blocks gives hh2 ms, a hh3 speedup, with hh4 mIoU. The reported method targets pretrained foundation models through a two-stage procedure: first fine-tune the original backbone on the target task with normal MHSA, then replace selected heads or blocks with convolutional layers, then fine-tune again for half the original number of epochs. The learned convolution kernels are introduced in the second phase, while hh5 and hh6 retain pretrained information.

The GDWS work presents a different efficiency profile. Its MAC count is

hh7

compared with

hh8

for standard convolution. A central claim is improved actual FPS on an NVIDIA Jetson Xavier NX. Reported examples include ResNet-18 on CIFAR-10 from 28 FPS to 104 FPS with GDWS (hh9); VGG-16 on CIFAR-10 from 36 FPS to 129 FPS with GDWS (K×KK \times K00); WRN-28-4 on CIFAR-10 from 17 FPS to 65 FPS; and ResNet-50 on ImageNet from 15 FPS to 19 FPS (Dbouk et al., 2021). The same paper emphasizes that GDWS is a post-training approximation that does not require any additional training for its main results, and that adversarial robustness is usually preserved within about K×KK \times K01.

For GDConv research, the combined implication is narrow but useful. The transformer work provides evidence that many pretrained ViT heads can be replaced by static depthwise spatial filtering, yet the successful regime is explicitly local rather than global. The CNN work shows that depthwise factorization can be generalized and made provably optimal as a post-training approximation of local convolution, but again without any global-spatial operator. A plausible implication is that future work on strict GDConv would need to establish not only input invariance and translation-like behavior, but also sufficiently broad spatial support to justify full-map depthwise kernels. The evidence here addresses the easier and more hardware-friendly case: local depthwise operators that substitute for either selected attention heads or standard convolutions.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Global Depthwise Convolution (GDConv).