TL;DR
DISK introduces a fully differentiable framework that decomposes large, complex, and spatially-variant dense convolution kernels into a sequence of highly efficient, natively sparse layers. By replacing traditional heuristic searches with gradient-based optimization and introducing a shape-aware initialization strategy, DISK achieves high-fidelity approximations with up to a 20× speedup, enabling real-time complex filtering on mobile devices.
What Problem Does This Paper Address?
Large convolution kernels are essential in computer graphics and vision for rendering realistic effects like depth-of-field, bokeh, and simulating the point spread functions (PSFs) of optical systems. However, dense 2D convolution suffers from a quadratic computational cost ($O(M^2)$ relative to kernel size), making it prohibitively expensive for real-time applications, especially on mobile or resource-constrained hardware.
Existing acceleration methods fall short:
- Analytic approximations (like Kawase or Dual Filtering) are fast but restricted to simple shapes like Gaussian blurs.
- Low-rank matrix decompositions support arbitrary shapes but reduce the operation to smaller dense convolutions, capping potential efficiency gains and introducing blocky artifacts.
- Heuristic sparse sampling (e.g., parallel simulated annealing) can find sparse patterns for arbitrary shapes but converges slowly, requires heavy hyperparameter tuning, and often gets trapped in poor local minima due to the non-convex optimization landscape.
Furthermore, spatially-varying (SV) filtering—where the kernel changes at every pixel—traditionally requires generating or storing unique dense kernels on the fly, creating a massive computational bottleneck that scales linearly with image resolution.
Methods
DISK reformulates kernel decomposition as an end-to-end differentiable optimization problem. Instead of searching heuristically, it directly optimizes the continuous 2D spatial offsets and scalar weights of a sequence of sparse layers using gradient descent.
Key components include:
- Differentiable Multi-Layer Kernel Complex: The framework passes a discrete Dirac delta function ($\delta$) through a sequence of sparse layers to synthesize an impulse response ($K_{syn}$). It then minimizes the Charbonnier L1 loss between $K_{syn}$ and the target dense kernel ($K_{tgt}$).
- Shape-Aware Initialization: To prevent gradient descent from getting stuck in local minima when dealing with non-convex shapes, the authors propose a two-part strategy:
- Radial Initialization: Uniformly distributes sampling points on concentric circles that expand linearly with the layer index, ensuring the receptive field grows progressively.
- Sparse Sampling via Rejection Sampling: Restricts initial samples directly to the non-zero support region of arbitrary target shapes.
- Filter-Space Interpolation: For spatially-varying filtering, DISK precomputes a compact basis of optimized sparse filters across a 1D parameter space (e.g., blur intensity). At runtime, per-pixel kernels are synthesized via a simple convex combination (linear interpolation) of the basis filters' offsets and weights, decoupling the kernel generation cost from the image resolution.
Datasets
The method was evaluated using a diverse suite of target kernels and images:
- Analytical Kernels: Standard Gaussian blurs with standard deviations ($\sigma$) ranging from 5 to 11.
- Arbitrary & Non-Convex Kernels: Geometric primitives (disks, rings), regular polygons, complex non-convex shapes (a heart, a star, an ampersand, animal silhouettes), and real-world optical aberrations (coma and spherical aberration).
- Evaluation Images: Five high-resolution photographs chosen to represent complex textures under both 1D and 2D spatial variations.
Key Insights and Ideas
- Gradients Beat Heuristics: Moving from heuristic search (simulated annealing) to gradient-based optimization allows the framework to find higher-fidelity sparse configurations in a fraction of the time (requiring only 1/100th of the iterations).
- Linearity in Filter Space: A crucial discovery is that optimized sparse kernels vary surprisingly linearly across the parameter space. This allows simple linear interpolation between a few base kernels to yield sharp, complex, and structurally accurate intermediate filters at runtime without introducing noise.
- Drastic Sample Reduction: Natively sparse multi-layer structures can approximate dense filters using orders of magnitude fewer samples (e.g., replacing 4,489 dense samples with just 48 sparse samples), as visualized in the bubble chart below.
Key Results
- Speedup: DISK achieves up to a 20× speedup over dense ground truth convolutions. For instance, a spatially-varying effect that takes 241.33ms with dense convolution runs in just 12.66ms using DISK.
- Fidelity: Across both Gaussian and complex non-convex shapes (like stars and coma aberrations), DISK consistently delivers lower LPIPS scores and higher PSNR than Parallel Simulated Tempering (PST) and Low-Rank methods.
- Real-Time Mobile Performance: When benchmarked on a mobile device equipped with a Qualcomm Snapdragon 8 Gen 3 SoC, DISK successfully rendered complex 1D tilt-shift, 2D rotational bokeh, and 2D radial motion blurs at real-time frame rates.
Limitations and Future Work
The primary constraint of DISK is that it requires explicit access to the target dense kernel during the offline optimization phase. It cannot dynamically approximate completely unknown or unparameterized kernels on the fly.
For future work, the authors point toward expanding the framework to support multi-dimensional parameter maps (e.g., simultaneously controlling blur radius, orientation, and shape attributes) and leveraging neural architecture search (NAS) to automatically discover hardware-optimized sparse layer configurations.
Summary updated