UnifiedVisionGPT: Streamlining Vision-Oriented AI through Generalized Multimodal Framework

Chris Kelly, Luhui Hu, Cindy Yang, Yu Tian, Deshun Yang, Bang Yang, Zaoshan Huang, Zihao Li, Yuexian ZouarXiv 2023 · DOI

Abstract

UnifiedVisionGPT is a novel framework that utilizes Large Language Models (LLMs), such as Llama 2, as an orchestrator to automatically select and deploy specialized computer vision models (e.g., YOLO, SAM) for complex visual tasks. By treating state-of-the-art (SOTA) vision models as modular tools, it streamlines the development of vision-oriented AI, avoiding the high costs associated with training massive multimodal models from scratch.

Introduction

The current Artificial Intelligence landscape faces a unique challenge: an abundance of specialized, high-performing models. While Large Language Models (LLMs) like GPT-4 provide a unified interface for text, the Computer Vision (CV) domain remains fragmented. Specialized models like YOLO excel at object detection, Meta’s Segment Anything Model (SAM) provides precise segmentation, and DINO offers robust feature extraction.

Training a single "universal" model to perform all these tasks perfectly is computationally and financially prohibitive. Furthermore, real-world tasks often require chaining these models (e.g., "locate an object, then mask it"). Manually constructing these pipelines is inefficient. UnifiedVisionGPT addresses this by introducing a "glue" layer that automates the integration and selection of specialized models based on natural language prompts.

Methodology: The Unified Vision Framework

The core of UnifiedVisionGPT is a four-stage control flow that translates user text prompts into visual outputs.

High-level architecture of the Unified Vision Framework, illustrating the orchestration of SOTA models by an LLM.

1. Vision Pre-processing

An LLM (specifically Llama 2) serves as the "Director." It interprets the user’s natural language request and decomposes it into a sequence of atomic actions. For example, a request to "Find the lemons and highlight them" is broken down into localization and segmentation tasks.

2. Foundation Model Selection

The system automatically identifies the optimal tool for each sub-task. It might select YOLO-NAS for high-speed object localization and then pass the resulting coordinates to SAM for precise mask generation.

3. Execution and Integration

The selected models are executed on the input images. The framework manages the data flow between these disparate models, ensuring that outputs from one (like bounding boxes) are correctly formatted as inputs for the next (like segmentation prompts).

The four-stage execution pipeline, showing the transition from a natural language prompt to a processed visual output.

4. Post-Processing and Verification

A unique "Verify and Generate" step checks the final output against the original user requirements. If the result is unsatisfactory or a model choice was suboptimal, the system can iterate, employing secondary tools like OpenCV or Generative AI to refine the results.

Key Insights

  • LLM as a Reasoning Engine: Instead of forcing an LLM to process pixels directly, UnifiedVisionGPT leverages its linguistic reasoning to manage "expert" models that are already optimized for vision.
  • Synergistic Efficiency: Models can enhance each other's performance. For instance, using YOLO to provide a bounding box allows SAM to focus on a specific region, significantly increasing segmentation speed and accuracy compared to running SAM in isolation.
  • Zero-Shot Versatility: By relying on pre-trained SOTA models, the framework exhibits strong zero-shot generalization, handling novel objects and abstract concepts (like "anomalies") without task-specific training.

Results and Discussion

Qualitative evaluations across diverse cases demonstrate the framework's robustness. It successfully handles complex instructions, multi-model collaboration, and abstract tasks like anomaly detection on industrial equipment.

However, several challenges remain. The rapid pace of CV research necessitates a high maintenance burden to keep the model registry updated. Additionally, managing data flow between multiple large models introduces computational complexity, and errors in early-stage "expert" models can propagate through the pipeline. Future developments will focus on tighter integration with multimodal LLMs and enhancing the verification loop to support more subjective or creative user requests.

Summary updated

BibTeX
@misc{kelly2023unifiedvisiongpt,
  author = {Chris Kelly and Luhui Hu and Cindy Yang and Yu Tian and Deshun Yang and Bang Yang and Zaoshan Huang and Zihao Li and Yuexian Zou},
  title = {{UnifiedVisionGPT: Streamlining Vision-Oriented AI through Generalized Multimodal Framework}},
  year = {2023},
  eprint = {2311.10125},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.10125},
}
Figure