Dynamic Prompting of Frozen Text-to-Image Diffusion Models for Panoptic Narrative Grounding

Hongyu Li, Tianrui Hui, Zihan Ding, Jing Zhang, Bin Ma, Xiaoming Wei, Jizhong Han, Si Liu

TL;DR

This paper tackles the challenge of Panoptic Narrative Grounding (PNG) by proposing a novel method that dynamically adapts frozen text-to-image diffusion models. By introducing an Extractive-Injective Phrase Adapter (EIPA) and a Multi-Level Mutual Aggregation (MLMA) module, the authors achieve state-of-the-art performance, enabling more precise image-text alignment for segmentation tasks.

What Problem Does This Paper Address?

Panoptic Narrative Grounding (PNG) is a complex task that requires precisely aligning multiple noun phrases within a narrative caption to their corresponding objects and "stuff" regions in an image. Existing methods often struggle with this fine-grained alignment, either relying on weak pretraining strategies or adapting models like CLIP, which are not inherently designed for pixel-level localization. While recent text-to-image diffusion models show promise for image-text alignment, directly using their capabilities with static prompts for PNG leads to a significant "task gap" and limited vision-language interaction. This means the diffusion models' powerful generative knowledge isn't fully leveraged for the discriminative segmentation task.

Methods

The core innovation lies in the Extractive-Injective Phrase Adapter (EIPA). This module acts as a bypass within the diffusion model's UNet architecture. Unlike static prompting, EIPA dynamically updates phrase features by incorporating image features. This creates a bidirectional flow of information: image features inform phrase representations, and then these enriched phrase features are injected back to refine the image features. This process effectively bridges the gap between the diffusion model's generative pretraining and the discriminative PNG task.

To further enhance segmentation, the Multi-Level Mutual Aggregation (MLMA) module is introduced. MLMA fuses multi-level image and phrase features extracted from different layers of the diffusion model and EIPA. This allows for a more comprehensive understanding of both low-level details and high-level semantic concepts, leading to improved mask predictions. The fused features are then processed by a Transformer decoder for final segmentation.

Datasets

The experiments were conducted on the Panoptic Narrative Grounding (PNG) benchmark. This benchmark is built upon existing datasets, combining narrative captions from the Localized Narratives dataset with panoptic segmentation annotations from the COCO dataset.

Key Insights and Ideas

  • Diffusion Models as Segmentation Backbones: The paper highlights the untapped potential of large-scale text-to-image diffusion models for segmentation tasks, moving beyond their primary generative role.
  • Dynamic Prompting is Crucial: Static prompts are insufficient for PNG. Dynamically updating phrase features with image context is key to bridging the task gap and effectively transferring knowledge from diffusion models.
  • Bidirectional Vision-Language Interaction: The EIPA's design, enabling information flow in both directions between image and text features within the diffusion UNet, is critical for robust alignment.
  • Multi-Level Feature Fusion: Combining features from different layers of the model (multi-level) is essential for capturing both fine details and broader semantic context, leading to more accurate segmentation.

Key Results

The proposed method, combining EIPA and MLMA, achieves state-of-the-art performance on the PNG benchmark. Specifically, the "Ours" entry with both EIPA and MLMA (CLIP text encoder, diffusion pretraining) achieved an overall Average Recall (AR) of 67.1%, outperforming previous methods. Ablation studies demonstrated the significant contributions of both EIPA and MLMA, with EIPA alone improving performance substantially and MLMA further refining it. Qualitative results show accurate segmentation masks that closely match ground truth, even in challenging cases where previous methods faltered.

Limitations and Future Work

The paper acknowledges that while their method significantly improves performance, there's still room for enhancement. The authors suggest that further exploration of adapter positions within the UNet could yield even better results, as indicated by their ablation studies showing benefits from inserting EIPA in both encoder and decoder stages. Future work could also focus on exploring more advanced fusion mechanisms within MLMA or investigating the application of this dynamic prompting approach to other vision-language tasks.

Summary updated

BibTeX
@inproceedings{li2024dynamic,
  author = {Hongyu Li and Tianrui Hui and Zihan Ding and Jing Zhang and Bin Ma and Xiaoming Wei and Jizhong Han and Si Liu},
  title = {{Dynamic Prompting of Frozen Text-to-Image Diffusion Models for Panoptic Narrative Grounding}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3686836},
}
Figure