[Paper Review] Hierarchical Opacity Propagation for Image Matting
This paper proposes Hierarchical Opacity Propagation (HOP), a novel deep learning framework for image matting that explicitly models opacity message passing across multi-scale feature maps using global and local attention-based propagation blocks. By integrating scale-insensitive positional encoding and random interpolation augmentation, HOP achieves state-of-the-art performance on both Composition-1k and alphamatting.com benchmarks, outperforming prior methods in accuracy and robustness.
Natural image matting is a fundamental problem in computational photography and computer vision. Deep neural networks have seen the surge of successful methods in natural image matting in recent years. In contrast to traditional propagation-based matting methods, some top-tier deep image matting approaches tend to perform propagation in the neural network implicitly. A novel structure for more direct alpha matte propagation between pixels is in demand. To this end, this paper presents a hierarchical opacity propagation (HOP) matting method, where the opacity information is propagated in the neighborhood of each point at different semantic levels. The hierarchical structure is based on one global and multiple local propagation blocks. With the HOP structure, every feature point pair in high-resolution feature maps will be connected based on the appearance of input image. We further propose a scale-insensitive positional encoding tailored for image matting to deal with the unfixed size of input image and introduce the random interpolation augmentation into image matting. Extensive experiments and ablation study show that HOP matting is capable of outperforming state-of-the-art matting methods.
Motivation & Objective
- To address the limitation of implicit opacity propagation in existing deep learning-based matting methods by introducing explicit, structured propagation across semantic levels.
- To improve matting accuracy on high-resolution images by enabling long-range and local context-aware opacity transfer through dedicated HOP blocks.
- To handle variable input image sizes effectively using a scale-insensitive positional encoding mechanism.
- To enhance generalization and robustness through a novel random interpolation data augmentation strategy for image matting.
- To validate the effectiveness of hierarchical propagation, positional encoding, and data augmentation via ablation studies and benchmark evaluations.
Proposed method
- The method employs a dual-branch network with an appearance encoder and a HOP decoder, where opacity features are propagated across multi-scale feature maps using global and local HOP blocks.
- Each HOP block uses a two-source attention mechanism: query from appearance features and key/value from opacity features, enabling appearance-aware opacity propagation.
- The global HOP block aggregates long-range context from low-resolution, semantically rich features to guide initial alpha prediction.
- The local HOP blocks refine high-resolution features by propagating opacity using local neighborhood attention, reducing blurring artifacts.
- A scale-insensitive positional encoding is introduced based on relative positional encoding to maintain performance across varying input sizes.
- Random interpolation augmentation is applied during training to simulate diverse image scales and improve robustness.
Experimental results
Research questions
- RQ1Can explicit hierarchical opacity propagation across semantic levels improve image matting performance compared to implicit or self-attention-based methods?
- RQ2How does the integration of scale-insensitive positional encoding affect matting accuracy on variable-sized inputs?
- RQ3To what extent does random interpolation augmentation improve generalization in deep image matting models?
- RQ4How do global and local HOP blocks contribute differently to the final alpha matte quality?
- RQ5What is the relative contribution of each component (HOP blocks, positional encoding, augmentation) to the overall performance gain?
Key findings
- HOP matting achieves a SAD of 28.12 and MSE of 5.8 × 10⁻³ on the Composition-1k test set with all components, outperforming previous state-of-the-art methods.
- The ablation study shows that removing any HOP block degrades performance, with the full HOP structure (global + three local blocks) yielding the best SAD (34.82) and MSE (8.99).
- The combination of scale-insensitive positional encoding, trimap embedding, and random interpolation augmentation reduces SAD from 34.82 to 28.12 and MSE from 9.0 to 5.8 × 10⁻³.
- Visualization of gradient maps confirms that HOP models attend to globally similar appearance regions, while models without HOP focus only locally, validating the hierarchical propagation mechanism.
- On the alphamatting.com benchmark, HOP matting achieves the best average rank across all metrics and trimap types, confirming its robustness and superiority.
- The method requires less than 11GB GPU memory, enabling inference on high-resolution images without downsampling, unlike Context-aware Matting and Deep Matting.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.