Abstract
Interactive edit propagation for high-resolution images and videos is often constrained by the "memory wall" of affinity-based optimization methods. We present a scalable approach using sparse dictionary learning that decouples computational complexity from image resolution. By optimizing a compact dictionary of representative samples—comprising as little as 0.01% of the total pixels—using Kullback-Leibler (KL) divergence, our method achieves significant memory reductions (up to two orders of magnitude) while maintaining high visual fidelity. Qualitative and quantitative evaluations demonstrate that our approach effectively eliminates halo artifacts and maintains temporal consistency in high-resolution video sequences.
Introduction
Interactive image and video editing often relies on edit propagation, where a user applies sparse scribbles to a few pixels and the algorithm spreads those changes to all similar regions. Traditionally, this is solved via global optimization based on pixel affinities. However, as image resolutions climb into the tens of megapixels and videos reach 4K/8K, these methods hit a significant scalability barrier. A standard implementation can require over 20GB of RAM to process a single 60MP image because it models relationships between every single pixel. While approximations exist, they frequently introduce visual artifacts like flickering in videos or "halos" around complex object boundaries. This research seeks a way to make edit propagation both scalable and artifact-free.
Methodology
The proposed method shifts the computational burden from the full image to a compact "dictionary" of features through a three-stage pipeline:
- Dictionary Initialization: Online dictionary learning is used to identify an initial set of representative samples ($D_{init}$) from the image or video.
- Dictionary Optimization: To ensure the dictionary is as small and diverse as possible, it is optimized using Kullback-Leibler (KL) divergence. By treating the sparse coding coefficients of pixels as probability distributions, the method measures the dissimilarity between samples. Maximizing this divergence removes redundant samples and retains only the most informative ones.
- Edit Propagation & Reconstruction: User edits are applied only to the sparse samples. An energy minimization function is solved on this small set to ensure edits are smooth and respect the underlying image manifold. Finally, the full image is reconstructed by mapping the edited samples back to the pixels using pre-calculated linear coding coefficients.
Key Results and Performance
The core innovation is the realization that high-resolution images are naturally sparse in feature space. By solving the propagation on a dictionary ($n \approx 200$) rather than the full pixel set ($N \approx 30,000,000$), the most expensive part of the algorithm becomes independent of image resolution.
Memory and Compression
For the "Peony" video (30M pixels), this method required only 6.5MB of RAM, compared to 825MB for Diffusion Maps and 350MB for AppProp. The authors achieved high-quality results with a sample-to-pixel ratio of roughly 0.01%. For a 970M pixel video, they utilized only 240 sparse samples.
Visual Fidelity
Qualitative comparisons show that this method avoids the "halo" artifacts common in affinity-based methods, particularly around complex boundaries like flower petals. By including 8D texture features alongside 3D RGB features, the method can distinguish between regions with identical colors but different patterns.
Discussion and Limitations
While the propagation phase is nearly instantaneous, the initial dictionary learning and KL-divergence optimization still require significant time (e.g., 425 seconds for a 96M pixel video). Furthermore, the current model is purely feature-based and lacks spatial locality; editing one object may inadvertently affect an identical-looking object elsewhere in the frame. Future work may involve incorporating spatial coordinates into the dictionary learning and utilizing GPU acceleration to reduce initialization overhead.
Conclusion
This paper demonstrates that sparse dictionary learning is a powerful tool for scaling interactive editing to ultra-high-resolution content. By decoupling optimization from pixel count, the method provides a path forward for real-time, high-fidelity editing of 4K and 8K media without the prohibitive memory costs of traditional affinity-based approaches.
Summary updated