TL;DR
AISFormer is a novel framework for Amodal Instance Segmentation that uses a Transformer-based mask head to "see" occluded parts of objects. By treating visible, occluded, and full object masks as learnable queries, it effectively models the complex spatial relationships between overlapping objects, achieving state-of-the-art performance on major benchmarks like KINS and COCOA-cls.
What Problem Does This Paper Address?
Standard Instance Segmentation (IS) is like a silhouette artist: it only cares about the visible parts of an object. However, in the real world, objects are frequently hidden behind one another. Amodal Instance Segmentation (AIS) aims to predict the entire shape of an object, including the parts tucked away behind occluders.
Previous AIS methods were largely built on CNN architectures like Mask R-CNN. While effective, these models suffer from a "limited receptive field"—they struggle to understand long-range spatial relationships across an image. When one car is half-hidden behind another, a CNN might struggle to connect the visible front and back ends into a single coherent object. AISFormer addresses this by leveraging Transformers to model high-level feature coherence across the entire region of interest.
Methods
The core innovation of AISFormer is its Transformer-based mask head, which treats different aspects of an object as learnable queries. The architecture consists of four main modules:
- Feature Encoding: After extracting a Region of Interest (ROI) using a standard backbone (like ResNet), the model uses a Transformer encoder to capture both short-range and long-range visual features.
- Mask Transformer Decoding: This is the heart of the system. It uses three learnable queries—Occluder ($Q_o$), Visible ($Q_v$), and Amodal ($Q_a$). Through self-attention and cross-attention, these queries learn how the occluding object, the visible part of the target, and the full target object relate to one another.
- Invisible Mask Embedding: Since an amodal mask is essentially the union of the visible and invisible parts, this module explicitly models the coherence between $Q_v$ and $Q_a$ to derive an embedding for the hidden (invisible) part.
- Mask Predicting: The final segmentation masks are generated by calculating the dot product between these query embeddings and per-pixel ROI embeddings.
Datasets
The authors evaluated AISFormer on three challenging benchmarks:
- KINS: A large-scale traffic dataset based on KITTI, featuring cars and pedestrians in complex street scenes.
- D2SA: A "Densely Segmented Supermarket" dataset where supermarket items are intentionally overlapped to create occlusion.
- COCOA-cls: A subset of the famous COCO dataset annotated specifically for amodal segmentation across 80 object classes.
Key Insights and Ideas
- Masks as Queries: Instead of just regressing pixels, treating masks as learnable queries allows the model to learn the "logic" of occlusion. The model learns that if it sees an "occluder" query in one spot, the "invisible" part of the target object is likely located right behind it.
- Overcoming CNN Limitations: By using a Transformer encoder for the ROI features, the model gains a global view of the object's region, helping it maintain shape consistency even when large portions of the object are hidden.
- Explicit Invisible Modeling: Rather than hoping the model learns the hidden parts implicitly, the "Invisible Mask Embedding" module enforces the mathematical relationship: Amodal = Visible + Invisible.
Key Results
AISFormer achieved state-of-the-art (SOTA) results across all three datasets.
On the KINS dataset (using a ResNet-50 backbone), AISFormer reached 33.8 AP, significantly outperforming previous leaders like ASN (32.2 AP) and Mask R-CNN (30.0 AP). When scaled to a RegNet backbone, it reached 35.6 AP, matching or exceeding other top-tier models.
In ablation studies, the authors found that adding the occluder query was particularly impactful, improving performance by 2.46% AP on the D2SA dataset. This confirms that understanding what is doing the blocking is key to understanding what is being blocked.
Limitations and Future Work
While AISFormer is highly effective, the authors noted a few areas for growth:
- Shape Priors: Some competing methods use "shape priors" (pre-learned knowledge of what a car or bottle should look like). AISFormer is currently "shape-free," and the authors suggest that integrating shape priors could further improve results on datasets with very consistent object shapes (like D2SA).
- Temporal Data: The current model works on static images. Extending this Transformer-based approach to video or time-lapse data—where motion can provide even more clues about hidden parts—is a promising next step.
Summary updated