TL;DR
This research introduces Malleable Convolution (MalleConv), a novel layer designed to bridge the efficiency of static convolutions with the expressiveness of per-pixel dynamic filters. By predicting a sparse grid of kernels and applying them via an efficient "on-the-fly slicing" operator, the authors developed MalleNet. This denoising network achieves up to 8.9× speedups over state-of-the-art methods while maintaining competitive visual quality.
Addressing the Efficiency-Expressivity Trade-off
Standard convolutional neural networks (CNNs) are typically "spatially invariant," meaning they apply the same filter across the entire image. While computationally efficient, this is sub-optimal for natural images which are inherently heterogeneous; a filter optimized for a smooth sky patch is unlikely to perform well on a high-frequency texture like grass.
Previous attempts to solve this involved "dynamic convolutions" or "hypernetworks" that generate unique filters for every pixel. However, generating and storing a unique $3 \times 3$ kernel for every pixel in high-resolution images (e.g., 12MP) creates a massive memory and processing bottleneck, making such approaches impractical for real-time applications on mobile devices.
Methods: Malleable Convolution
The authors propose Malleable Convolution (MalleConv) to achieve spatial variance without the prohibitive overhead of per-pixel generation. The architecture is defined by three core innovations:
- Efficient Predictor Network: A lightweight network processes a downsampled version of the input to predict a grid of kernels at a significantly lower spatial resolution (e.g., $1/8$th of the original dimensions).
- Depth-wise Prediction: To minimize parameter count, the network predicts kernels for depth-wise convolutions rather than full 3D convolutions.
- On-the-fly Slicing: This is the primary technical contribution. Instead of upsampling the low-resolution kernels to a full-resolution map—which would consume excessive RAM—the system uses a "slicing" operator. For any specific pixel, it bilinearly interpolates the four nearest kernels from the sparse grid and applies the result to the feature map in a single, memory-efficient pass.
The authors integrated MalleConv into MalleNet, an architecture utilizing an image pyramid structure to process features across multiple scales.
Key Insights: The Local Smoothness Heuristic
A central observation of this work is that while image content varies globally, it typically changes slowly at a local level. This "Local Smoothness" suggests that a unique kernel for every single pixel is redundant. Instead, a sparse grid of kernels is sufficient if the system can intelligently interpolate between them.
Furthermore, because the kernel predictor operates on a downsampled image, it inherently possesses a larger receptive field. This allows the model to incorporate global context when deciding how to filter a specific local region, even without a deep or complex architecture.
Key Results and Performance
The model was evaluated on synthetic benchmarks (CBSD68, Kodak24) and real-world datasets (SIDD, DND).
- Efficiency Gains: MalleNet-L achieves image quality (PSNR) comparable to SwinIR but operates 8.9× faster.
- Backbone Acceleration: Replacing a single standard convolution in a DnCNN backbone with a MalleConv layer allowed the network to match baseline quality while being 22.2× faster.
- Real-World Latency: On the SIDD benchmark, MalleNet-R recorded a latency of just 13.58ms on a high-end GPU, outperforming high-performance denoisers like MIRNet or MPRNet.
- Memory Optimization: The on-the-fly slicing operator reduces memory consumption by orders of magnitude compared to traditional per-pixel kernel prediction methods.
Limitations and Future Directions
While MalleConv is highly effective for lightweight and medium-weight networks, its relative benefits diminish for extremely deep or wide architectures that already possess significant representational power. Future research may explore combining MalleConv with attention mechanisms for longer-range dependencies, or utilizing deformable kernel shapes to better adapt to complex geometric structures in images.
Summary updated