GiT: Towards Generalist Vision Transformer Through Universal Language Interface

Haiyang Wang, Hao Tang, Li Jiang, Shaoshuai Shi, Muhammad Ferjad Naeem, Hongsheng Li, Bernt Schiele, Liwei Wang

Introduction

In the landscape of Large Language Models (LLMs), a single Transformer architecture has become the standard for handling diverse linguistic tasks. In contrast, computer vision has historically relied on "generalist" models that still utilize task-specific "heads"—specialized sub-networks for bounding boxes, segmentation masks, or pixel encoding. These modules create an architectural gap that complicates model scaling and simultaneous multi-task training.

GiT (Generalist Vision Transformer) addresses this by introducing a minimalist framework that proves a vanilla Vision Transformer (ViT) can handle a wide array of vision tasks—from image captioning to fine-grained object detection—without any specialized heads. By treating all visual outputs as a language-like sequence, GiT achieves state-of-the-art performance and demonstrates that multi-task training can actually enhance individual task performance.

Architecture and the Universal Language Interface

The core innovation of GiT is its Universal Language Interface. Rather than employing a dedicated detection or segmentation head, the model is designed to "speak" the answer in a unified tokenized format.

Comparison between prior Large Vision Models (LVMs) with task-specific heads and the proposed GiT architecture using a universal transformer.

As shown in the architecture comparison, GiT simplifies the pipeline by using a standard ViT followed by a multi-layer GPT-style Transformer. It eliminates specialized decoders, instead relying on a unified representation where every task is converted into a sequence of tokens:

  • Text: Standard WordPiece subwords.
  • Sparse Perception (Detection): Bounding boxes are represented as discretized coordinate tokens (e.g., [x1, y1, x2, y2]).
  • Dense Perception (Segmentation): Pixel labels are flattened into a 1D sequence in raster order.

To manage the computational load of dense predictions, GiT employs Parallel Decoding, partitioning images into subregions processed in parallel. Additionally, an Out-of-Vocabulary Compression layer uses a small attention mechanism to condense multi-word concepts into single "universal tokens" before they enter the main transformer.

Unified Task Representation

By representing coordinates and pixels as tokens, the architectural gap between vision and language is virtually eliminated. This allows the model to treat object detection as a sequence generation problem, similar to how an LLM generates a sentence.

Object detection represented as a sequence of discrete coordinate and class tokens.

Large-Scale Multi-Task Training

GiT was trained on a massive scale using 27 datasets from 16 sources, totaling 17 million samples. This includes image-level tasks (CC12M, Visual Genome), object-level tasks (COCO, Objects365, LVIS), and pixel-level tasks (ADE20K).

Key Insights

  • The "LLM Effect" in Vision: GiT exhibits "mutual enhancement," where training on detection improves performance in grounding and segmentation. Multi-task training improved detection by +1.6 AP compared to single-task baselines.
  • Efficiency and Scaling: GiT-Base outperforms previous generalist models like VisionLLM while using 50x fewer parameters. Furthermore, performance scales predictably with model size (from Base to Huge), following laws similar to those observed in language modeling.

Results and Generalization

GiT-Base achieved 46.7 AP on COCO detection and 47.8 mIoU on ADE20K segmentation in multi-task settings. Its zero-shot capabilities are particularly noteworthy; without seeing the Cityscapes dataset during training, GiT-Huge achieved 34.1 AP on detection and 61.8 mIoU on segmentation, demonstrating robust generalization across domains like medical imaging and remote sensing.

Conclusion and Future Work

While GiT represents a significant step toward a truly universal vision model, some limitations remain. Its polygon-based approach for instance segmentation currently trails traditional mask-based methods in raw accuracy, and auto-regressive inference is generally slower than feed-forward networks. Future research will focus on optimizing inference speed and incorporating more advanced label assignment strategies to further bridge the performance gap with specialized models.

Summary updated

BibTeX
@inproceedings{wang2024git,
  author = {Haiyang Wang and Hao Tang and Li Jiang and Shaoshuai Shi and Muhammad Ferjad Naeem and Hongsheng Li and Bernt Schiele and Liwei Wang},
  title = {{GiT: Towards Generalist Vision Transformer Through Universal Language Interface}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73397-0\_4},
}
Figure