TVConv: Efficient Translation Variant Convolution for Layout-aware Visual Processing
About
As convolution has empowered many smart applications, dynamic convolution further equips it with the ability to adapt to diverse inputs. However, the static and dynamic convolutions are either layout-agnostic or computation-heavy, making it inappropriate for layout-specific applications, e.g., face recognition and medical image segmentation. We observe that these applications naturally exhibit the characteristics of large intra-image (spatial) variance and small cross-image variance. This observation motivates our efficient translation variant convolution (TVConv) for layout-aware visual processing. Technically, TVConv is composed of affinity maps and a weight-generating block. While affinity maps depict pixel-paired relationships gracefully, the weight-generating block can be explicitly overparameterized for better training while maintaining efficient inference. Although conceptually simple, TVConv significantly improves the efficiency of the convolution and can be readily plugged into various network architectures. Extensive experiments on face recognition show that TVConv reduces the computational cost by up to 3.1x and improves the corresponding throughput by 2.3x while maintaining a high accuracy compared to the depthwise convolution. Moreover, for the same computation cost, we boost the mean accuracy by up to 4.21%. We also conduct experiments on the optic disc/cup segmentation task and obtain better generalization performance, which helps mitigate the critical data scarcity issue. Code is available at https://github.com/JierunChen/TVConv.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Optic Cup / Disc Segmentation | Fundus Domain 3 | DC (Cup)86.11 | 53 | |
| Optic Cup / Disc Segmentation | Fundus Domain 4 | DC (Cup)84.08 | 53 | |
| Optic Cup / Disc Segmentation | Fundus Domain 2 | DC (Cup)76.55 | 53 | |
| Optic disc and cup segmentation | Drishti-GS (target domain) | Dice (Disc)0.9574 | 15 | |
| Optic Disc and Optic Cup Segmentation | Domain Generalization Average Across 4 Domains | Average OD DSC93.48 | 6 | |
| Optic Disc and Optic Cup Segmentation | Multi-domain Retinal Fundus Image Benchmark Domains 1-4 | Domain 1 Optic Disc (ASD)7.56 | 6 | |
| Optic Disc and Optic Cup Segmentation | Target Domains 1-4 | Domain 1 OD Score15.81 | 6 |