Towards More Unified In-context Visual Understanding
Dianmo Sheng, Dongdong Chen, Zhentao Tan, Qiankun Liu, Qi Chu, Jianmin Bao, Tao Gong, Bin Liu, Shengwei Xu, Nenghai Yu
TL;DR
This work addresses the limitation of existing visual in-context learning systems by proposing a unified multimodal in-context learning framework that supports multimodal outputs through modality-specific tokenization and a shared interleaved token space. It combines vision-language prompts (3.1), unified multimodal representations (3.2), and a GPT-2–style decoder with sparse Mixture-of-Experts (3.3) to enable in-context learning on tasks such as class-aware segmentation and dense captioning. Evaluations on MS-COCO and Visual Genome demonstrate competitive results against specialized models and state-of-the-art vision-language baselines, with strong ablations showing the benefits of text-based bbox prompts and multi-task co-training. The approach advances multimodal in-context learning in a unified pipeline and lays groundwork for extending to additional modalities and tasks in the future.
Abstract
The rapid advancement of large language models (LLMs) has accelerated the emergence of in-context learning (ICL) as a cutting-edge approach in the natural language processing domain. Recently, ICL has been employed in visual understanding tasks, such as semantic segmentation and image captioning, yielding promising results. However, existing visual ICL framework can not enable producing content across multiple modalities, which limits their potential usage scenarios. To address this issue, we present a new ICL framework for visual understanding with multi-modal output enabled. First, we quantize and embed both text and visual prompt into a unified representational space, structured as interleaved in-context sequences. Then a decoder-only sparse transformer architecture is employed to perform generative modeling on them, facilitating in-context learning. Thanks to this design, the model is capable of handling in-context vision understanding tasks with multimodal output in a unified pipeline.Experimental results demonstrate that our model achieves competitive performance compared with specialized models and previous ICL baselines. Overall, our research takes a further step toward unified multimodal in-context learning.
