Jack of All Tasks, Master of Many: Designing General-purpose Coarse-to-Fine Vision-Language Model

Shraman Pramanick, Guangxing Han, Rui Hou, Sayan Nag, Ser-Nam Lim, Nicolas Ballas, Qifan Wang, Rama Chellappa, Amjad Almahairi

Introduction

While Large Language Models (LLMs) have successfully unified various text-based tasks, the vision-language domain remains fragmented. Existing Multimodal LLMs (MLLMs) often suffer from a "granularity gap," excelling at either coarse-level tasks like image captioning or fine-grained tasks like object detection and segmentation, but rarely both. Furthermore, most models are constrained to single-image inputs, struggling with tasks that require reasoning across multiple images.

VistaLLM is designed to bridge these gaps. It is a powerful general-purpose vision-language model that handles both coarse and fine-grained tasks across single and multiple images. By utilizing a task-aware image tokenizer and a novel adaptive mask sampling technique, VistaLLM achieves state-of-the-art performance across 15 different benchmarks.

Methods

VistaLLM employs a three-part architecture designed to handle the disparity of input and output formats across different levels of granularity.

VistaLLM Architecture featuring the Instruction-Guided Image Tokenizer and Vicuna LLM backbone.

Instruction-guided Image Tokenizer

Unlike standard models that pass all visual features to the LLM, VistaLLM utilizes a QFormer-based tokenizer that incorporates the user's natural language instruction as an input. This allows the model to dynamically "filter" visual features, focusing on specific regions for fine-grained tasks or global features for coarse ones. This mechanism is particularly effective for compressing features when dealing with multiple input images, ensuring the LLM receives only the most relevant information.

Gradient-aware Adaptive Sampling

A significant challenge in visual grounding is representing complex segmentation masks as text tokens without losing geometric detail. Standard uniform sampling often misses sharp details like thin limbs or ears. VistaLLM introduces Gradient-aware Adaptive Sampling, which samples more points in regions with high contour curvature and fewer points in straight sections.

Comparison between Uniform and Adaptive Sampling for mask representation.

As shown in the figure above, this approach preserves fine details much more effectively within the same token budget compared to uniform sampling, leading to more accurate mask reconstructions.

LLM Backbone

The model leverages Vicuna (7B or 13B) as its core reasoning engine. To enable the LLM to process spatial information, the authors introduced special quantized tokens (ranging from 10 to 999) to represent coordinates, allowing the model to output precise points and bounding boxes.

Datasets and Training

To train such a versatile model, the authors curated CoinIt (Coarse-to-fine Instruction-tuning), a massive dataset containing 6.8 million samples derived from 14 existing benchmarks.

Additionally, they introduced a new task and dataset: AttCoSeg (Attribute-level Co-Segmentation). This dataset contains 804,000 samples and requires the model to identify and segment objects sharing common attributes (e.g., "find all red objects") across multiple images. This task specifically evaluates the model's ability to perform multi-image reasoning and grounding.

Key Results

VistaLLM achieved consistent state-of-the-art (SOTA) results across 15 benchmarks, demonstrating the synergy between coarse and fine-grained training:

  • Captioning: Outperformed the Shikra-13B baseline by 10.9 CIDEr points on COCO.
  • Segmentation: Improved mIoU upper bounds from 94.70 (uniform) to 97.26 (adaptive) on RefCOCO.
  • Grounding: Achieved a 20.7% N-acc improvement over the MDETR baseline in Generalized Referring Expression Segmentation (GRES).
  • Multi-Image Reasoning: Set new SOTA marks for NLVR2 and the AttCoSeg task.

The results suggest that fine-grained supervision (like segmentation) forces the model to learn richer visual representations that ultimately benefit coarse-level tasks like captioning.

Conclusion and Future Work

VistaLLM demonstrates that a single model can effectively master a wide range of vision-language tasks. However, some limitations remain. Compared to massive models like GPT-4V, VistaLLM shows a slight knowledge gap in general-domain question answering. It can also struggle in extremely cluttered environments with very small objects. Future work will focus on scaling the LLM backbone and incorporating more diverse multi-image datasets to further enhance general-purpose reasoning.

Summary updated

BibTeX
@inproceedings{pramanick2023jack,
  author = {Shraman Pramanick and Guangxing Han and Rui Hou and Sayan Nag and Ser-Nam Lim and Nicolas Ballas and Qifan Wang and Rama Chellappa and Amjad Almahairi},
  title = {{Jack of All Tasks, Master of Many: Designing General-purpose Coarse-to-Fine Vision-Language Model}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure