FLAIR: VLM with Fine-grained Language-informed Image Representations
Rui Xiao, Sanghwan Kim, Mariana-Iuliana Georgescu, Zeynep Akata, Stephan Alaniz
TL;DR
FLAIR tackles the challenge of fine-grained vision-language alignment by learning token-level, language-informed image representations through text conditioned attention pooling and diverse sub-caption sampling from long synthetic captions. By training on $30{,}000{,}000$ captioned images, it achieves state-of-the-art performance on standard, fine-grained, and long-caption multimodal retrieval, and delivers substantial gains in zero-shot semantic segmentation. The method introduces two losses, $L^{\text{tcs}}$ and $L^{\text{mps}}$, and a diverse sampling strategy that enables robust global and local alignment without requiring changes to the text encoder. While competitive with large-scale CLIP models on retrieval and segmentation, FLAIR highlights the value of high-quality language-conditioned supervision and suggests that scaling data and parameters can close remaining gaps in zero-shot classification, offering a practical path for fine-grained VLMs in real-world applications.
Abstract
CLIP has shown impressive results in aligning images and texts at scale. However, its ability to capture detailed visual features remains limited because CLIP matches images and texts at a global level. To address this issue, we propose FLAIR, Fine-grained Language-informed Image Representations, an approach that utilizes long and detailed image descriptions to learn localized image embeddings. By sampling diverse sub-captions that describe fine-grained details about an image, we train our vision-language model to produce not only global embeddings but also text-specific image representations. Our model introduces text-conditioned attention pooling on top of local image tokens to produce fine-grained image representations that excel at retrieving detailed image content. We achieve state-of-the-art performance on both, existing multimodal retrieval benchmarks, as well as, our newly introduced fine-grained retrieval task which evaluates vision-language models' ability to retrieve partial image content. Furthermore, our experiments demonstrate the effectiveness of FLAIR trained on 30M image-text pairs in capturing fine-grained visual information, including zero-shot semantic segmentation, outperforming models trained on billions of pairs. Code is available at https://github.com/ExplainableML/flair .
