TL;DR
AmodalCG is a novel, training-free framework that injects real-world common-sense knowledge from Multimodal Large Language Models (MLLMs) into the task of amodal completion (reconstructing the hidden parts of occluded objects). By providing both geometric and semantic guidance to a visual generative model (Stable Diffusion), it prevents unnatural hallucinations and over-extended object generation. This approach achieves state-of-the-art performance on real-world datasets without requiring expensive task-specific training.
What Problem Does This Paper Address?
When an object in a photo is partially blocked by something else, humans can easily infer its full shape and appearance using common sense and prior experience. In computer vision, teaching machines to do this is called amodal completion. It is a crucial capability for downstream applications like autonomous vehicles and robotics, where understanding the true extent of a partially hidden pedestrian or vehicle is a matter of safety.
Existing approaches heavily rely on the raw generation capabilities of visual diffusion models. However, these models lack explicit physical knowledge about real-world entities. Without explicit guidance, they often suffer from "extraneous generation"—hallucinating completely unrelated objects or creating physically impossible structures (such as unnaturally stretching a bus or failing to deduce a proper human pose based on context).
Methods
To bridge this gap, the authors introduce AmodalCG (Amodal Completion via MLLM Guidance). Instead of relying solely on a generative model to guess the hidden regions, AmodalCG uses an MLLM to reason about the extent (geometry) and content (semantics) of the missing parts before generating the final image.
The pipeline consists of five core components:
- Occluder Detection Module: Identifies the blocking objects using semantic segmentation and geometric order prediction to establish an initial inpainting mask.
- Guidance Decision Module: To minimize computational overhead, a lightweight MLLM assesses the level of occlusion. If the target object is only minimally occluded, it skips the large MLLM pipeline entirely.
- Geometric Guidance Module: If extensive completion is required, a larger MLLM predicts the bounding box of the full target object at three distinct scales: tight, moderate, and coarse. This prevents the generative model from bleeding out and creating massive, unintended objects.
- Semantic Guidance Module: The MLLM generates a detailed textual prompt describing what should be in the hidden area. Crucially, the authors use a visual prompt that masks out the occluders, which prevents the MLLM from accidentally incorporating the blocking objects into its description.
- Inpainting Module: Stable Diffusion performs the final reconstruction using a multi-scale expansion strategy. It starts with the tightest mask and progressively expands to larger scales only if the generated object touches the mask boundary, ensuring a highly controlled and accurate completion.
Datasets
The authors evaluated AmodalCG across several standard benchmarks representing real-world scenarios:
- Amodal Segmentation: Evaluated on COCO-A, BSDS-A, and MP3D-A datasets using mean Intersection-over-Union (mIoU).
- Occluded Object Recognition: Evaluated on the Occluded COCO and Separated COCO datasets, utilizing CLIP as a classification model to measure how well the appearance of the occluded object was restored.
Key Insights and Ideas
- Masking Occluders Eliminates Bias: Standard MLLMs suffer from a co-occurrence bias; if they see a rider on a horse, their description of the "hidden horse" will often mistakenly include details about the rider. Masking the occluder's appearance while preserving the background context allows the MLLM to focus purely on imagining the hidden parts of the target object.
- Multi-Scale Bounding Boxes Handle Uncertainty: Directly predicting an exact bounding box for a hidden object is incredibly difficult due to inherent visual ambiguity. Providing three candidate scales (tight, moderate, coarse) and letting the generative model iteratively verify them creates a robust, self-correcting loop.
- Selective Invocation Saves Compute: Not every image needs a massive, expensive LLM call. Using a smaller model to filter out simple, low-occlusion cases makes the framework much more viable for practical deployment.
Key Results
- Amodal Segmentation: AmodalCG significantly outperformed existing baselines, particularly in "hard" scenarios where objects were heavily occluded (>50%). On COCO-A (Hard), it achieved 75.09% mIoU, compared to 64.77% for pix2gestalt and 59.01% for MC Diffusion. Across all test sets, it improved amodal segmentation by an average of 5.49%.
- Object Recognition: On the highly challenging Separated COCO dataset (where occluded objects are split into multiple segments), AmodalCG achieved a 40.01% Top-1 accuracy using CLIP, outperforming the next best method (MC Diffusion at 34.50%) and proving that the generated details are semantically accurate.
Limitations and Future Work
- Boundary Truncation Failures: The Guidance Decision Module occasionally fails to skip guidance when an object is cut off by the edge of the image frame or belongs to ambiguous background regions (like trees). Because the occlusion ratio is calculated strictly within the image boundary, the model perceives low occlusion despite the object being highly incomplete.
- Conservative Geometric Estimation: In some failure cases, the geometric module avoids overly aggressive size estimations. For instance, if a fence is exceptionally long, the model might only predict a short fence segment. The authors note that this can be alleviated by incorporating more scales into the multi-scale expansion, though at the expense of efficiency.
Summary updated