Research map / Label-efficient and robust learning / Recognition and long-tail
Deep Edge Filter: Return of the Human-Crafted Layer in Deep Learning
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes Deep Edge Filter, which subtracts a low-pass filtered version of intermediate deep features (high-pass residual) inserted between network blocks, and reports gains on test-time adaptation, GLUE, few-shot NeRF, and audio classification.
Problem
Deep networks generalize poorly under domain shift and perturbations, partly because they encode domain-specific low-frequency biases in deep features; classical edge filters on inputs lose fine detail and are limited to images.
Approach
Apply a high-pass residual (feature minus mean/median/Gaussian low-pass output) directly to intermediate deep features as a single non-learnable inserted layer, using 2D kernels for CNNs and 1D kernels over tokens/rays for transformers and MLPs, with the LPF branch detached.
Key results
- On CIFAR-10C with WRN28-10, Direct accuracy rises from 49.6% to 57.7% (+8.0) with the Edge Filter, and TENT rises from 74.6% to 75.8%.
- On SST-2 with BERT, accuracy improves from 79.36% to 80.85% (+1.49), and GLUE average improves by +0.81.
- On few-shot NeRF (8 views, Blender), average PSNR rises from 22.95 to 23.39 and LPIPS falls from 0.126 to 0.112, though ficus drops in PSNR by 0.21.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add mean Edge Filter | WRN28-10 · CIFAR-10C Direct | accuracy: 49.6 -> 57.7 (+8.0) | Helped |
| Add mean Edge Filter | WRN28-10 · CIFAR-100C Direct | accuracy: 26.2 -> 36.4 (+10.2) | Helped |
| Add mean Edge Filter | ViT-B/32 · CIFAR-10C TENT | accuracy: 60.9 -> 69.4 (+8.5) | Helped |
| Add mean Edge Filter | Transformer · SST-2 | accuracy: 79.36 -> 80.85 (+1.49) | Helped |
| Add mean Edge Filter | Transformer · QQP | accuracy: 83.42 -> 83.46 (+0.04) | No clear effect |
| Add Edge Filter | NeRF · Blender ficus | PSNR: 22.33 -> 22.12 (-0.21) | Hurt |
| Add Edge Filter | NeRF · Blender 8-view Avg | PSNR: 22.95 -> 23.39 (+0.44) | Helped |
| Add Edge Filter | UrbanSound8K CNN · UrbanSound8K | accuracy: 77.42% to 81.72% | Helped |
| Replace mean LPF with median LPF inside the Edge Filter (ablation) | WRN · CIFAR-10C Direct | accuracy: 49.64 -> 59.69 (+10.05) | Helped |
| Replace mean LPF with Gaussian LPF inside the Edge Filter (ablation) | ViT · CIFAR-10C Direct | accuracy: 60.84 -> 56.37 (-4.47) | Hurt |
| Replace Edge Filter with direct mean low-pass filtering (ablation) | WRN, ViT, and BERT · CIFAR-10C Direct and SST-2 | accuracy: 49.64 -> 39.69; 60.84 -> 47.96; 79.36 -> 57.56 | Hurt |
| Vary Edge Filter attachment position and kernel size (ablation) | WRN28-10 · CIFAR-10C Direct | accuracy gain: maximum improvement of 9.6%p | Helped |
Surprising findings
- Replacing the Edge Filter with a trainable convolution of equal computation reduced corrupted-data accuracy (Direct 46.9 vs 49.6 baseline), suggesting the gain is not just extra compute.
- Applying the mean low-pass filter directly to features (instead of the high-pass residual) substantially degraded performance across tasks, e.g. -9.95 on WRN CIFAR-10C and -26.68 on ViT.
Limitations
- Experiments were limited to small or older models (WRN28-10, ResNet18, ViT-B/32, BERT); LLMs and state-of-the-art models were not tested.
- Models must be retrained from scratch with the filter attached, which limits applicability.
- Gains are inconsistent across configurations; e.g. ViT degrades with early-layer filters and Gaussian LPF, and the audio ablation fluctuates from -2.0 to +3.6 points.
Experimental setup
Datasets: CIFAR-10 CIFAR-100 ImageNet200 CIFAR-10C CIFAR-100C ImageNet200-C GLUE SST-2 GLUE QQP GLUE QNLI Blender (NeRF synthetic) UrbanSound8K LAION2B
Benchmarks: CIFAR-10C CIFAR-100C ImageNet200-C GLUE SST-2 GLUE QQP GLUE QNLI Blender few-shot NeRF UrbanSound8K PACS DomainNet
Metrics: accuracy PSNR SSIM LPIPS MAE activation density
Baselines: NORM TENT Direct (no adaptation) NeRF LPF-only variant trainable Conv layer control
Builds on: Tent NORM Neural Radiance Fields BERT
Closest papers by meaning
- CNN Filter DB: An Empirical Investigation of Trained Convolutional Filters (CVPR 2022 · similarity 0.90)
- RePr: Improved Training of Convolutional Filters (CVPR 2019 · similarity 0.88)
- The Master Key Filters Hypothesis: Deep Filters Are General (AAAI 2025 · similarity 0.87)
- Deep Learning as Neural Low-Degree Filtering: A Spectral Theory of Hierarchical Feature Learning (NeurIPS 2026 · similarity 0.87)
- PICNN: A Pathway towards Interpretable Convolutional Neural Networks (AAAI 2024 · similarity 0.86)
- Data Filtering Networks (ICLR 2024 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
