AB
AiBoss
project

Sa2VA - A multimodal large language model open-sourced by ByteDance and other organizations.

Sa2VA is a multimodal large language model jointly developed by ByteDance, the University of California, Merced, Wuhan University, and Peking University. It combines SAM2 and LLaVA to achieve dense, fine-grained understanding of images and videos.

What is Sa2VA?

Sa2VA is a multimodal large language model jointly developed by ByteDance, UC Merced, Wuhan University, and Peking University. It combines SAM2 and LLaVA to achieve dense, fine-grained understanding of images and videos. Based on a unified task representation, Sa2VA integrates tasks such as image or video referencing segmentation, visual dialogue, and visual cue understanding into a single framework. It uses spatial-temporal cues generated by LLM to guide SAM2 in generating accurate segmentation masks. Sa2VA employs a decoupled design, retaining the perceptual capabilities of SAM2 and the language understanding capabilities of LLaVA, and incorporates the Ref-SAV dataset to improve referencing segmentation performance in complex video scenarios.

Main functions of Sa2VA

  • Image and video referential segmentationAccurately segment target objects in images or videos based on natural language descriptions.
  • Image and video dialogueIt supports image- or video-based conversations with users, answering questions related to visual content.
  • Visual cues comprehensionIt supports processing visual cues (such as boxes and points in images) and combining them with language descriptions to generate corresponding segmentation masks or responses.
  • Command-based video editingEdit the video content according to user instructions.
  • Dense visual understandingSa2VA can understand the overall content of images and videos, and can also analyze and manipulate pixel-level visual details, supporting fine-grained tasks in complex scenarios, such as video object segmentation with long text descriptions.
  • Zero-shot inferenceIt supports reasoning on unseen videos, directly generating segmentation masks or answering questions based on language descriptions, without requiring additional training.

Sa2VA technical principles

  • Model ArchitectureThis approach combines SAM2 and LLaVA. SAM2 handles the spatiotemporal segmentation of the video, while LLaVA provides language understanding and generation capabilities. The two are connected based on a special [SEG] token, with the output of LLaVA serving as input to SAM2 to guide the generation of the segmentation mask.
  • Unified task representationThis approach unifies multiple tasks (such as referential segmentation, visual dialogue, and visual cue understanding) into a single instruction adjustment process. All inputs (images, videos, and text) are encoded as visual tokens, input into the LLM, and output as text or a segmentation mask.
  • Decoupling designBased on a decoupled design, the decoder and memory module of SAM2 are frozen, while retaining its sensing and tracking capabilities.
  • Ref-SAV datasetIntroducing the Ref-SAV dataset, which contains object representations from over 72k complex video scenes. Generated using an automatic annotation pipeline, the dataset includes long text descriptions and complex scenes, improving model performance in complex environments.
  • Spacetime HintsThe [SEG] token generated based on LLaVA serves as a spatiotemporal cue for SAM2, guiding the generation of an accurate segmentation mask.
  • Joint trainingJoint training is performed on multiple datasets, including image QA, video QA, image segmentation, and video segmentation data.

Sa2VA's project address

Application scenarios of Sa2VA

  • Video editingQuickly remove or replace objects in a video based on language instructions, improving creative efficiency.
  • Intelligent monitoringBased on language descriptions, it can identify and track targets in real time in the monitoring screen, thus assisting in security monitoring.
  • Robot InteractionTo understand and operate instructions, such as "pick up the red cup," thereby enhancing the robot's interaction with its environment.
  • Content creationGenerate descriptions and questions and answers for images or videos to aid in education or creative writing.
  • autonomous drivingIt identifies and segments pedestrians, vehicles, and other elements in road scenes to assist driving decisions.