Introduction
Scene understanding is a fundamental challenge in computer vision, requiring models to not only identify objects but also understand their spatial extent and their relationships with one another. Traditionally, this has been represented through Scene Graphs (SGs), which typically utilize bounding boxes to localize objects. However, bounding boxes are inherently imprecise, often including irrelevant background pixels. Panoptic Scene Graphs (PSG) address this by using pixel-level masks, providing a much richer and more accurate representation of the scene.
Despite their advantages, PSG datasets are notoriously difficult and expensive to create, requiring meticulous manual annotation of masks and relationships. To overcome this bottleneck, the researchers behind TextPSG introduce a novel task: Caption-to-PSG. This task aims to learn panoptic scene graph generation using only image-caption pairs—a form of "free" supervision readily available on the web.
The Challenges of Caption-to-PSG
Learning structured scene graphs from unstructured text is difficult because the model must operate without several traditional advantages:
- Lack of Location Priors: Unlike supervised datasets, captions do not provide coordinates or bounding boxes to guide the model.
- Alignment Ambiguity: There is no explicit mapping between specific words in a caption and specific pixel groups in an image.
- Open Vocabulary: Captions use natural language, requiring the model to handle an unrestricted set of object and relationship categories rather than a fixed list.
The TextPSG Framework
To address these challenges, the authors propose TextPSG, a modular framework designed to bridge the gap between raw pixels and structured textual descriptions.
1. Region Grouper
The process begins with a Region Grouper based on GroupViT. This module hierarchically groups pixels into segments without any manual supervision. It starts with small image patches and merges them into meaningful visual entities (e.g., a "dog" or a "tree") based on visual similarity and context.
2. Entity Grounder
Once segments are formed, the Entity Grounder aligns these visual regions with specific words (entities) in the caption. Using a fine-grained contrastive learning strategy, the model learns to associate visual segments with their corresponding textual descriptions, effectively "grounding" the text in the image.
3. Segment Merger
To refine the output, the Segment Merger uses the grounding results as pseudo-labels. This allows the model to learn which small segments belong to the same object. During inference, spectral clustering is employed to merge these segments into cohesive, object-level masks.
4. Label Generator
Rather than using a fixed-category classifier, TextPSG employs a pre-trained BLIP decoder for label prediction. By treating labeling as an auto-regressive generation task and using a Prompt-Embedding-based Technique (PET) (e.g., "a photo of [ENT]"), the model leverages the extensive "common sense" knowledge embedded in large vision-language models. This allows for open-vocabulary predictions for both objects and relations.
Experimental Evaluation
The model was trained on the COCO Caption dataset, which contains approximately 118,000 images with human-generated descriptions but no scene graph annotations. Evaluation was conducted using the Panoptic Scene Graph (PSG) dataset as the ground truth, consolidated into 127 object categories and 56 relation predicates.
Key Results
TextPSG demonstrates a significant leap in performance over existing weakly-supervised methods:
- State-of-the-Art Performance: On the Scene Graph Detection (SGDet) task, TextPSG achieved a score of 5.48 (N5R100), nearly doubling the performance of the previous leading weakly supervised method, SGGNLS-o (2.7).
- Out-of-Distribution (OOD) Robustness: A major strength of TextPSG is its ability to generalize. When tested on objects and relations outside the standard training distribution, traditional supervised models often fail. In contrast, TextPSG maintained its performance, indicating a genuine understanding of concepts rather than simple pattern memorization.
- Qualitative Precision: Visualizations indicate that TextPSG produces high-quality, fine-grained masks for irregular shapes—such as foliage or complex backgrounds—that bounding-box-based methods fail to capture accurately.
Limitations and Future Directions
While TextPSG represents a significant advancement, the authors note several areas for improvement:
- Instance Ambiguity: The model currently struggles to distinguish between overlapping instances of the same category (e.g., two sheep standing together may be merged into a single mask).
- Small Object Detection: Due to the resolution constraints of the grouping strategy, very small objects are often missed.
- Relation Bias: The label generator can sometimes be biased by object pairs (e.g., assuming a "person" and "horse" implies "riding") rather than relying purely on visual evidence of the interaction.
Conclusion
TextPSG demonstrates that image captions, despite being a "weak" form of supervision, provide a rich source of information for learning complex scene structures. By moving from classification to generation and leveraging large-scale vision-language pre-training, TextPSG achieves superior robustness and open-vocabulary capabilities, paving the way for more scalable and flexible scene understanding systems.
Summary updated