AISFormer: Amodal Instance Segmentation with Transformer

Minh Tran, Khoa Vo, Kashu Yamazaki, Arthur Fernandes, Michael Kidd, Ngan Le

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.

Figure 2: A comparison between Instance Segmentation (IS) and Amodal Instance Segmen- tation (AIS). Given an image with ROI (a), IS aims to extract the visible mask instance (b) whereas AIS aims to extract both the visible mask and occluded parts (c).

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:

  1. 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.
  2. 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.
  3. 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.
  4. Mask Predicting: The final segmentation masks are generated by calculating the dot product between these query embeddings and per-pixel ROI embeddings.
Figure 3: The overall flowchart of our proposed AISFormer. AISFormer consists of four modules corresponding to (i) feature encoding: after obtaining the region of interest (ROI) feature from the backbone Bφ and ROIAlign algorithm ϕ, CNN-based layers and a trans- former encoder are applied to learn both short-range and long-range features of the given ROI.(ii) mask transformer decoding Dβ: generate the occluder, visible, and amodal mask query embeddings by a transformer decoder (iii) invisible mask embedding Iθ to model the coherence between the amodal and visible masks by computing the invisible mask embed- ding, and (iv) segmentation to estimate output masks including occluder (Mo), visible (Mv), amodal (Ma)and invisible (Mi).

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.

Table 1: Performance comparison on KINS dataset. † indicates our reproduced results. On each backbone, the best scores are in bold and the second best scores are in underlines.

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

BibTeX
@misc{tran2022aisformer,
  author = {Minh Tran and Khoa Vo and Kashu Yamazaki and Arthur Fernandes and Michael Kidd and Ngan Le},
  title = {{AISFormer: Amodal Instance Segmentation with Transformer}},
  year = {2022},
  eprint = {2210.06323},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.06323},
}
Figure