TL;DR
This paper introduces Dynamic Convolution Decomposition (DCD), a method that significantly reduces the parameter overhead of dynamic convolutions while improving accuracy. By reframing dynamic kernel aggregation as a matrix decomposition problem, the authors replace expensive multi-kernel attention with efficient "dynamic channel fusion" in a low-dimensional latent space.
What Problem Does This Paper Address?
Standard "static" convolutions use the same weights for every input. Dynamic convolutions, on the other hand, change their weights based on the input, typically by learning $K$ different static kernels and blending them using an attention mechanism. While this provides a massive boost to "lightweight" networks (like MobileNet), it suffers from two major flaws:
- Parameter Explosion: Storing $K$ kernels increases the model size by $K$ times, making it less "lightweight" in terms of storage.
- Optimization Difficulty: Jointly training the attention mechanism and the static kernels is hard. If the attention score for a specific kernel is low during early training, that kernel never learns useful features—a "rich get richer" problem that slows convergence.
Methods
The authors revisit dynamic convolution through the lens of Matrix Decomposition. They reformulate the dynamic weight matrix $W(x)$ as a static base kernel plus a dynamic residual:
$$W(x) = \Lambda(x)W_0 + P\Phi(x)Q^T$$
Key components of this formulation include:
- Dimensionality Reduction ($Q$ and $P$): Instead of working in the high-dimensional space of all channels ($C$), the input is projected into a much smaller latent space ($L \ll C$) via a static matrix $Q$. After processing, it is projected back via $P$.
- Dynamic Channel Fusion ($\Phi(x)$): Instead of just assigning a single weight to a whole kernel (attention), DCD uses a full dynamic matrix $\Phi(x)$ to fuse channels in the latent space. This is significantly more expressive than simple attention.
- Channel-wise Attention ($\Lambda(x)$): A diagonal matrix that applies input-dependent scaling to the base static kernel $W_0$.
- The Dynamic Branch: A tiny sub-network (Global Average Pooling followed by two Fully Connected layers) generates the coefficients for $\Lambda$ and $\Phi$ on the fly.
By sharing the static matrices $P$ and $Q$ across all dynamic coefficients, the model becomes much more compact and easier to optimize. Every part of the static weights receives gradients from multiple dynamic coefficients, preventing the "dead kernel" issue.
Datasets
The authors evaluated their method exclusively on ImageNet, the gold standard for image classification, using 1,000 classes and over 1.2 million training images. They applied DCD to several backbone architectures, including ResNet-10, 18, and 50, as well as MobileNetV2 (at various width scales: x1.0, x0.5, x0.35).
Key Insights and Ideas
- Redundancy in Vanilla Dynamic Conv: The authors show that standard dynamic convolution effectively projects inputs into a very high-dimensional space ($K \times C$) before reducing them back. DCD proves that you can achieve better results by projecting into a lower dimensional space ($L < \sqrt{C}$) and using more complex fusion.
- Solving the Optimization Bottleneck: In previous methods, a small attention score could "kill" a kernel's learning. In DCD, because the static matrices $P$ and $Q$ are associated with many dynamic coefficients in $\Phi(x)$, they are much less likely to be suppressed during training.
- Expressivity vs. Parameters: DCD uses a full matrix for fusion in the latent space. This allows for more complex interactions between channels than the scalar-based attention used in prior work (like CondConv or DY-Conv).
Key Results
- Efficiency: On MobileNetV2 x1.0, DCD achieved the same accuracy as previous state-of-the-art dynamic convolutions (DY-Conv) while using 50% fewer parameters. Compared to CondConv, it used 75% fewer parameters.
- Accuracy Boost: On the tiny MobileNetV2 x0.5, DCD improved Top-1 accuracy by 4.4% over the static baseline. On ResNet-18, it improved accuracy by 2.7%.
- Faster Convergence: DCD converges significantly faster than DY-Conv and does not require "temperature annealing" or other training tricks to make the attention mechanism behave.
- Inference Trade-off: While DCD is parameter-efficient, it does add a small amount of computational overhead (MAdds). For MobileNetV2 x0.5, it resulted in a ~14% increase in actual CPU latency, though the authors argue this is a fair trade for the significant accuracy gains.
Limitations and Future Work
- Inference Latency: Although FLOPs (floating point operations) are low, the overhead of the dynamic branch (global pooling and FC layers) can be disproportionately high on some hardware compared to standard convolutions.
- Hyperparameter Sensitivity: The choice of the latent dimension $L$ and the reduction ratio $r$ in the dynamic branch are empirical. While the authors provide a default formula, these might need tuning for different tasks.
- Scope: The paper focuses on image classification. Future work could explore how DCD performs in more complex tasks like object detection or segmentation, where spatial dynamics might play a larger role.
Summary updated