Introduction
Deep image matting—the process of precisely extracting a foreground object from its background via an alpha matte ($\alpha$)—is a fundamental task in computer vision. However, high-quality, human-annotated alpha mattes are notoriously difficult and expensive to produce. To compensate, researchers typically use composition styles: rules for synthetically combining limited foregrounds with random backgrounds to create massive training sets.
Current standards, such as DIM-style and GCA-style composition, rely on "naive" foreground combination (NCF). This paper identifies two major flaws in this approach:
- Artifacts: Naive combination often treats the second foreground as a background, failing to filter out noise and creating unrealistic artifacts.
- Lost Relationships: These styles pick foregrounds randomly. A model might see a complex combined foreground but never see the simpler "parent" foregrounds it was made from, missing a crucial opportunity to learn how complex patterns are formed.
Methodology
Reasonable Combination of Foregrounds (RCF)
Instead of the standard NCF, which ignores the alpha matte of the second foreground, the authors propose Reasonable Combination of Foregrounds (RCF). RCF treats the combination as a two-stage overlay process. By incorporating the alpha mattes of both source foregrounds, RCF effectively filters out noise and produces much cleaner synthetic images.
Triplet and Quadruplet-Style Composition
The core innovation lies in moving from purely random data augmentation to structured relationships.
- Triplet-Style Composition: Inspired by chemical reactions ($F_A + F_B \rightleftharpoons F_{AB}$), the authors argue that the model should see the "parents" and the "child" together. They group samples into triplets $(F_A, F_B, F_{AB})$. This ensures the network learns the underlying patterns of the source objects alongside their more complex combined versions.
- Quadruplet-Style Composition: The authors prove that in image composition, order matters. Overlaying object A on object B ($F_{AB}$) results in a different pattern than B on A ($F_{BA}$), even if they share the same total alpha matte. They expand the triplet into a quadruplet $(F_A, F_B, F_{AB}, F_{BA})$, providing the model with "twin" combinations that further boost pattern diversity.
Evaluation and Results
The researchers evaluated their methods using standard benchmarks including Composition-1K, AIM-500 (real-world generalization), and PPM-100 (high-resolution portraits). The proposed composition styles were tested on four major baselines: IndexNet, GCA Matting, A2U Matting, and MatteFormer.
Key Findings
- Significant Error Reduction: On IndexNet, the methods achieved a 12.7% to 17.9% relative improvement in the gradient metric.
- Consistency: Across all four models, the Triplet and Quadruplet styles consistently outperformed the standard DIM and GCA styles.
- Robustness: The proposed styles are more robust to small datasets. A model trained with the Triplet style using only half the available foregrounds can perform as well as a model trained with the full dataset using standard styles.
- Visual Quality: Qualitative results show that models trained with these new styles are much better at recovering fine, complex textures like spider webs and thin wires.
Conclusion
By rethinking how synthetic data is generated, this work demonstrates that "definiteness"—structured relationships between training samples—helps models learn the "rules" of matting more effectively than pure randomness. Because these are changes to the data loader rather than the model architecture, these benefits are "plug-and-play" and can be applied to virtually any existing deep matting network.
Summary updated