Image classifiers face a known dilemma about image frequencies. Training a model to ignore fine, high-frequency detail makes it robust to pixel noise but fragile to smooth, low-frequency changes such as fog or reduced contrast, and the reverse is also true. One published fix trains two specialist networks, one for each end of the spectrum, and ensembles them. That fix doubles inference cost, which rules it out on phones, where robustness is arguably most needed.
We propose to keep one network and duplicate only the small part that does spatial filtering. Mobile networks are built from depthwise separable convolutions. Each such layer splits ordinary convolution into two steps: a cheap per-channel spatial filter (the depthwise step) and a per-pixel mixing of channels (the pointwise step, which holds most of the parameters and compute). We hypothesize that a network's frequency preferences are carried mostly by the depthwise filters. If that is true, two sets of depthwise filters with opposite frequency preferences can share one set of pointwise mixers. A tiny gate that reads the input's frequency content then blends the two filter sets per image. Because depthwise convolution is linear, blending the kernels costs the same as running a single depthwise layer.
Core Claim
The claim has two parts, and each can be tested on its own. The first is a mechanistic claim. In depthwise separable networks, the high- versus low-frequency robustness tradeoff can be moved almost entirely by changing the depthwise filters while the pointwise mixers stay fixed. The second is an engineering claim. Exploiting this gives most of the benefit of a two-specialist ensemble at close to single-model cost.
Improving robustness against common corruptions with frequency biased models (RoHL) motivates the work. It shows that pairing a high-frequency-robust expert with a low-frequency-robust expert breaks the zero-sum tradeoff, reaching an ImageNet-C mean corruption error of 47.9 against 53.6 for AugMix+DeepAugment on ResNet-50. It pays for this with two full networks at inference. Depthwise Convolution Is All You Need for Learning Multiple Visual Domains supplies the structural precedent. It shows that pointwise mixers can be shared across visual domains while only depthwise filters are specialized. We transfer that finding from "domains" to "frequency regimes," which that paper never considered. Depthwise Separable Convolutions Allow for Fast and Memory-Efficient Spectral Normalization supplies the method. It shows that a depthwise kernel's frequency response is exactly its 2D discrete Fourier transform under periodic boundaries and can be computed with about 2% training overhead. That paper uses the response only to cap its maximum. We use it to shape the response band by band.
Research Program
The work proceeds in three stages. The first stage is a diagnostic that decides whether the idea is worth building. We take a standard-trained MobileNetV2 (MobileNetV2: Inverted Residuals and Linear Bottlenecks) and fine-tune it under Gaussian-noise augmentation in three ways: all weights free, only depthwise weights free, and only pointwise weights free. We compare each resulting model's Fourier heat map, following the probing protocol of A Fourier Perspective on Model Robustness in Computer Vision. We also report its per-corruption error on ImageNet-C and CIFAR-10-C. If the depthwise-only condition reproduces most of the full shift toward low frequencies, meaning noise error falls and fog and contrast error rise, the mechanistic claim holds. If the pointwise-only condition reproduces it instead, the design should be inverted, and we will report that outcome.
The second stage builds the architecture. Every depthwise layer gets two kernel banks, $W_H$ and $W_L$, over shared pointwise and normalization layers. A per-image gate $a(x) \in [0,1]$ forms the kernel $a W_H + (1-a) W_L$. The gate is a very small network that reads the radially binned log power spectrum of the input image, optionally together with pooled features from the first stage. Training alternates between two kinds of mini-batches, and on each the gate is hard-set to one bank. High-frequency-robust batches use noise augmentation, with a total-variation penalty on early feature maps as in RoHL. Low-frequency-robust batches use contrast augmentation, again as in RoHL. The shared pointwise weights receive gradients from both kinds of batch.
We add an explicit band penalty on each bank's kernel spectrum. Let $\hat{W}(\omega)$ be the 2D Fourier transform of a depthwise kernel at frequency $\omega$, and let $\Omega_{hi}$ and $\Omega_{lo}$ be fixed high and low radial bands. We add $\lambda \sum_{\omega \in \Omega_{hi}} |\hat{W}_H(\omega)|^2$ for the high-frequency-robust bank. For the low-frequency-robust bank we add an analogous floor term that discourages suppressing $\Omega_{hi}$. That floor matters because of the tension raised by GmNet: Revisiting Gating Mechanisms From A Frequency View: lightweight networks already lean toward low frequencies, so a bank that only low-passes would cost clean accuracy. A final phase freezes the banks and trains the gate on mixed clean and corrupted data.
One constraint shapes the design. A 3×3 kernel has a very coarse frequency response, so band shaping may have little room to act. We therefore also run a 7×7-depthwise variant, the size GmNet uses and the size at which MixConv: Mixed Depthwise Convolutional Kernels finds uniform-kernel accuracy still near its peak. The cost accounting follows the file's formula. Depthwise cost is $K^2 M$ against $MN$ for pointwise, where $K$ is kernel size, $M$ input channels and $N$ output channels. Doubling the depthwise bank therefore adds a fraction of parameters roughly $K^2/N$ relative to the pointwise weights. Because of kernel blending, it adds essentially no inference FLOPs beyond the gate.
The third stage is analysis. We run critical band masking (Spatial-frequency channels, shape bias, and adversarial robustness) to see whether the gated model's effective frequency channel changes with input. We plot the gate's value against corruption type to check that it routes fog toward $W_L$ and noise toward $W_H$ without being told the corruption label.
Baselines
The naive reference is a standard-trained MobileNetV2, which reaches 72.0% ImageNet top-1 at 300M multiply-adds according to its paper. There is no reported result found on Lacuna for MobileNetV2 on ImageNet-C, so we measure it ourselves. The first strong single-model competitor is the same MobileNetV2 trained with AugMix+DeepAugment. That recipe has the best single-model ImageNet-C number in the file, mCE 53.6, though on ResNet-50. It is the honest bar, because it requires no architectural change.
The strongest existing method is RoHL, with mCE 47.9 and clean error 22.7% on ResNet-50. We re-implement it as two full MobileNetV2 specialists trained with the identical high- and low-frequency recipes we use for our two banks, and ensemble their outputs. This gives an upper-reference at twice the cost. All methods use the same ImageNet data, the same total training epochs counted in images seen, and the same augmentation pool. Each gets the same hyperparameter search budget, a fixed number of runs over learning rate and regularization strength.
Two ablations isolate the key ingredient. The first is a dynamic-kernel ablation: two depthwise banks with the same gate and training budget, but no enforced spectral roles, meaning ordinary mixed batches and no band penalty. This tests whether the gain comes from spectral specialization or merely from input-conditioned kernels. The second is a static band-penalty ablation: a single depthwise bank trained with the band penalty alone, which is the obvious version of this intersection. Beating the baselines means reaching an ImageNet-C mCE lower than MobileNetV2+AugMix+DeepAugment, with no increase in clean error. It also means closing at least most of the gap to the two-network RoHL reproduction while adding under 5% latency on a mobile CPU. We also require that both the noise group and the weather/contrast group improve, not just one.
Why not just…?
Why not just blur the input? A fixed low-pass filter at the input is cheap. Improving Adversarial Robustness via Frequency Regularization and Li et al. report that simple filtering can emulate heavier defenses. However, Towards Building More Robust Models with Frequency Bias reports 4–5% clean accuracy loss and shows that high frequencies re-accumulate inside network stages. Blurring is also a one-sided move, so by the Fourier-perspective results it should worsen fog and contrast. We include input blur as a reference and report its per-group errors to show this directly.
Why not just use strong augmentation on a single MobileNet? This is the real threat. If AugMix+DeepAugment alone gets within noise of our model, the architecture is not worth it. The evidence for a gap is RoHL's improvement over that same recipe (47.9 versus 53.6) on ResNet-50. That result shows explicit frequency specialization adds something beyond augmentation, but it has not been shown for mobile networks. The main comparison in this proposal settles the question, and we will stack our method on top of AugMix to check that the effects are complementary.
Why not just use two full specialist networks, or larger kernels? Two networks double memory and compute, and that is exactly what edge deployment cannot afford; we measure how much of their benefit we keep. Large kernels, per Revealing the Dark Secrets of Extremely Large Kernel ConvNets on Robustness, flatten the frequency tradeoff at 31×31. MixConv, however, finds that mobile-scale accuracy drops beyond 7×7 or 9×9, and 31×31 kernels need special reparameterization. We include MixNet-style mixed kernels at matched FLOPs as a competitor.
Why not just use GmNet-style gating? GmNet widens the spectrum with ReLU6 gating but reports weaker PGD robustness, so it moves the model along the tradeoff rather than escaping it. We test our banks on a GmNet backbone as well, to see whether the two ideas compose.
Decisive Checks
The first decisive check is the stage-one freezing diagnostic. If fine-tuning only the depthwise filters under noise augmentation does not move the Fourier heat map and the noise-versus-fog errors most of the way that full fine-tuning does, the premise fails and we stop. The second is the dynamic-kernel ablation. If unconstrained two-bank gating matches the spectrally assigned banks, the contribution reduces to ordinary dynamic convolution. The third is shared versus unshared pointwise weights: our model against the two-network reproduction, per corruption group. If sharing costs the low-frequency group much more than the noise group, it would suggest that some of the frequency preference lives in channel mixing after all, which is itself informative against the depthwise-pointwise decoupling story. Evaluation covers ImageNet-C and CIFAR-10-C broken down by corruption family, ImageNet-P flip rates, DAWN for real weather, clean ImageNet top-1, and measured phone latency.
References
- Improving robustness against common corruptions with frequency biased models
- Depthwise Convolution Is All You Need for Learning Multiple Visual Domains
- Depthwise Separable Convolutions Allow for Fast and Memory-Efficient Spectral Normalization
- MobileNetV2: Inverted Residuals and Linear Bottlenecks
- A Fourier Perspective on Model Robustness in Computer Vision
- GmNet: Revisiting Gating Mechanisms From A Frequency View
- MixConv: Mixed Depthwise Convolutional Kernels
- Spatial-frequency channels, shape bias, and adversarial robustness
- Improving Adversarial Robustness via Frequency Regularization
- Robust deep learning object recognition models rely on low frequency information in natural images
- Towards Building More Robust Models with Frequency Bias
- Revealing the Dark Secrets of Extremely Large Kernel ConvNets on Robustness