PSALM: Pixelwise SegmentAtion with Large Multi-modal Model

Zheng Zhang, Yeyao Ma, Enming Zhang, Xiang Bai

Abstract

Large Multi-modal Models (LMMs) have revolutionized visual reasoning but face an "output bottleneck" when tasked with pixel-level spatial precision. PSALM (Pixelwise SegmentAtion with Large Multi-modal Model) is a novel framework that extends LMMs to perform image segmentation by incorporating a mask decoder and a flexible input schema. PSALM creates a unified model capable of handling diverse tasks—from panoptic and referring segmentation to interactive and zero-shot video object segmentation—achieving state-of-the-art results with high efficiency.

Introduction

While models like LLaVA have brought "GPT-like" reasoning to the visual domain, they primarily generate text. This limitation makes them ill-suited for pixel-level tasks like image segmentation. Existing attempts to bridge this gap often suffer from a narrow scope, focusing solely on referring expression segmentation, or lack a architectural flexibility to handle different input types such as category lists, interactive points, or bounding boxes. PSALM addresses these issues by providing a single model with a shared set of weights that can generalize across virtually any segmentation task.

Methodology

PSALM is built on top of the efficient Phi-1.5 (1.3B parameters) LMM and a Swin Transformer visual encoder. The core innovation lies in its Flexible Input Schema and Decoupled Mask Generation.

Flexible Input Schema

PSALM processes four distinct inputs simultaneously to accommodate various tasks:

  • Image: The visual scene to be segmented.
  • Task Instruction: A text prompt defining the goal (e.g., "Segment all objects").
  • Condition Prompt: Task-specific data, such as category names for panoptic tasks or a [REF] token for referring tasks.
  • Mask Tokens: A set of learnable embeddings that act as "placeholders" for potential masks.

Architecture and Decoupled Mask Generation

Unlike previous models that feed tokens directly into a decoder, PSALM passes the mask tokens through the LMM first. This allows the LMM to update the tokens with high-level task awareness. The system then utilizes two parallel paths:

  1. Mask Generator: A Mask2Former-style decoder takes the updated mask tokens and multi-scale visual features to propose spatial masks.
  2. Dynamic Classifier: PSALM uses the LMM’s output embeddings of the condition prompts as weights for a linear classifier. This allows the model to label the proposed masks based on the text instructions provided.

Experimental Evaluation

The model was trained on in-domain benchmarks and evaluated on out-of-domain tasks to test zero-shot generalization.

PSALM's performance on in-domain tasks including panoptic, referring, and interactive segmentation.

Key Results

  • Referring Segmentation: On RefCOCO, PSALM achieved 83.6 cIoU, outperforming much larger models like LISA and GLaMM.
  • Panoptic Performance: It achieved 55.9 PQ on COCO Panoptic, matching specialized, vision-centric models like Mask2Former.
Zero-shot generalization of PSALM on out-of-domain tasks such as video object segmentation and ego-exo correspondence.
  • Zero-Shot Generalization: Without specific training for video, PSALM successfully performed video object segmentation and handled generalized referring expressions (where a sentence might refer to multiple objects or none).
  • Interactive Versatility: PSALM leads in performance across various interactive inputs, including points, scribbles, and masks.

Discussion

A key insight from this research is that feeding mask tokens through the LLM—rather than just the decoder—significantly boosts performance, allowing the model to "reason" about object locations. Furthermore, joint training on multiple tasks was found to be synergistic, improving performance on individual tasks by learning a more robust visual vocabulary. Despite using a smaller LLM (1.3B parameters), PSALM achieved superior results compared to 7B or 13B parameter models, highlighting the importance of architectural design.

Conclusion and Future Work

PSALM represents a major step toward a universal segmentation model. Future work will focus on closing the performance gap in open-vocabulary tasks compared to specialized models, scaling to larger datasets like LVIS, and streamlining the training process into a more end-to-end pipeline.

Summary updated

BibTeX
@inproceedings{zhang2024psalm,
  author = {Zheng Zhang and Yeyao Ma and Enming Zhang and Xiang Bai},
  title = {{PSALM: Pixelwise SegmentAtion with Large Multi-modal Model}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72754-2\_5},
}
Figure