Interpreting the structure of multi-object representations in vision encoders
Tarun Khajuria, Braian Olmiro Dias, Marharyta Domnich, Jaan Aru
TL;DR
This work addresses how vision encoders represent multiple objects by formalizing two structural properties: object-binding into discrete tokens ($M_1 = A_{ss}$) and object-wise token segregation ($M_2 = \frac{A_{sp}}{A_{pp}}$). It introduces paired-object and global-probe experiments on COCO across diverse encoders (ViT, CLIP/BLIP/FLAVA, and DINO variants) to quantify these properties via object decoding from object-specific tokens versus the CLS token. Key findings show object-specific tokens capture discriminative object information and retain some object-specific detail even for less emphasized background objects, while CLS tends to encode scene-level information but may entangle multiple objects and underperform for background objects; the training objective and architecture strongly shape these representations. The paper contributes practical measures to guide encoder selection and layer-wise decoder/adaptor design for downstream tasks requiring fine-grained object information, enabling better handling of multi-object scenes in real-world applications.
Abstract
In this work, we interpret the representations of multi-object scenes in vision encoders through the lens of structured representations. Structured representations allow modeling of individual objects distinctly and their flexible use based on the task context for both scene-level and object-specific tasks. These capabilities play a central role in human reasoning and generalization, allowing us to abstract away irrelevant details and focus on relevant information in a compact and usable form. We define structured representations as those that adhere to two specific properties: binding specific object information into discrete representation units and segregating object representations into separate sets of tokens to minimize cross-object entanglement. Based on these properties, we evaluated and compared image encoders pre-trained on classification (ViT), large vision-language models (CLIP, BLIP, FLAVA), and self-supervised methods (DINO, DINOv2). We examine the token representations by creating object-decoding tasks that measure the ability of specific tokens to capture individual objects in multi-object scenes from the COCO dataset. This analysis provides insights into how object-wise representations are distributed across tokens and layers within these vision encoders. Our findings highlight significant differences in the representation of objects depending on their relevance to the pre-training objective, with this effect particularly pronounced in the CLS token (often used for downstream tasks). Meanwhile, networks and layers that exhibit more structured representations retain better information about individual objects. To guide practical applications, we propose formal measures to quantify the two properties of structured representations, aiding in selecting and adapting vision encoders for downstream tasks.
