Abstract: In this paper, we design and train a Generative Image-to-text Transformer, GIT, to unify vision-language tasks such as image/video captioning and question answering. While generative models provide a flexible interface for diverse tasks, traditional architectures often rely on complex, multi-modal fusion modules or external OCR engines. GIT simplifies this by using a single image encoder and a single text decoder, achieving state-of-the-art results across numerous benchmarks through massive-scale pre-training.
Introduction
Vision-Language (VL) research has historically relied on "Frankenstein" architectures. To enable a model to both "see" and "talk," researchers often combined pre-trained object detectors (like Faster R-CNN), optical character recognition (OCR) engines, and complex multi-modal fusion modules. While effective, these structures suffer from computational inefficiency, difficulty in scaling to massive datasets, and a significant discrepancy between pre-training and fine-tuning objectives.
The Generative Image-to-text Transformer (GIT) addresses these issues by simplifying the architecture. The authors ask a fundamental question: Can we achieve superior results by throwing away the complexity and treating every vision-language task as a simple "image-to-text" generation problem?
Architecture and Methods
The GIT architecture is elegantly minimalist, consisting of only two primary components:
- Image Encoder: A Swin-like Vision Transformer (ViT) pre-trained on massive image-text pairs using a contrastive loss (similar to CLIP). It transforms an image into a set of visual features.
- Text Decoder: A standard Transformer decoder.
Instead of using complex cross-attention layers to merge vision and language, GIT projects the image features into the same dimension as text embeddings. These visual "tokens" are then concatenated to the front of the text sequence. The model is trained using a Language Modeling (LM) objective: given the image tokens and preceding text tokens, predict the next word. This allows the model to be trained end-to-end on a massive scale (0.8 billion image-text pairs) without needing bounding boxes or external OCR.
Key Insights: Scaling and Emergent OCR
A primary finding of the GIT research is the impact of scaling. The authors observed that scaling the image encoder yields significantly larger performance gains than scaling the text decoder, suggesting that visual representation is currently the primary bottleneck in VL tasks.
Furthermore, GIT exhibits "emergent OCR." Despite lacking a dedicated text-reading module, the model learned to read text within images through exposure to vast amounts of data. This capability is most evident in its performance on the TextCaps benchmark, where it achieved a CIDEr score of 138.2, becoming the first model to surpass the human baseline of 125.5.
Results and Performance
GIT established new state-of-the-art (SOTA) benchmarks across almost every task it was tested on:
- Image Captioning: Reached 144.8 CIDEr on COCO, outperforming much larger models like Flamingo.
- Video Captioning: On MSVD, performance jumped from a prior SOTA of 120.6 to 180.2 CIDEr.
- Generative Classification: On ImageNet-1K, the model reached 88.79% top-1 accuracy by simply "writing out" class names. This proves that generative labeling is a viable and flexible alternative to traditional N-way softmax classification.
Conclusion
By unifying vision-language tasks under a single generative framework, GIT demonstrates that simplicity and scale can overcome the limitations of complex, modular architectures. While challenges remain in controlling hallucinations and improving in-context learning, GIT represents a significant step toward more efficient and capable multi-modal AI.
Summary updated