IIR-VLM: In-Context Instance-level Recognition for Large Vision-Language Models
Liang Shi, Wei Li, Kevin M Beussman, Lin Chen, Yun Fu
TL;DR
IIR-VLM addresses the gap in instance-level recognition for large vision-language models by augmenting a base VLM with pre-trained ILR expert encoders and a lightweight two-stage in-context training regime. The method fuses identity-discriminative features into the VLM's visual tokens via attention-based fusion, and trains Stage 1 for in-context instance matching followed by Stage 2 for instance-aware captioning, enabling one-shot learning of new instances without per-instance fine-tuning. A new cross-category ILR benchmark demonstrates state-of-the-art matching and captioning performance, with advantages that grow as tasks become more visually challenging. The findings underscore the value of category-specific ILR knowledge for fine-grained discrimination and hold promise for practical personalization in settings such as smart-home visual assistants.
Abstract
Instance-level recognition (ILR) concerns distinguishing individual instances from one another, with person re-identification as a prominent example. Despite the impressive visual perception capabilities of modern VLMs, we find their performance on ILR unsatisfactory, often dramatically underperforming domain-specific ILR models. This limitation hinders many practical application of VLMs, e.g. where recognizing familiar people and objects is crucial for effective visual understanding. Existing solutions typically learn to recognize instances one at a time using instance-specific datasets, which not only incur substantial data collection and training costs but also struggle with fine-grained discrimination. In this work, we propose IIR-VLM, a VLM enhanced for In-context Instance-level Recognition. We integrate pre-trained ILR expert models as auxiliary visual encoders to provide specialized features for learning diverse instances, which enables VLMs to learn new instances in-context in a one-shot manner. Further, IIR-VLM leverages this knowledge for instance-aware visual understanding. We validate IIR-VLM's efficacy on existing instance personalization benchmarks. Finally, we demonstrate its superior ILR performance on a challenging new benchmark, which assesses ILR capabilities across varying difficulty and diverse categories, with person, face, pet and general objects as the instances at task.
