LLM-wrapper: Black-Box Semantic-Aware Adaptation of Vision-Language Models for Referring Expression Comprehension
Amaia Cardiel, Eloi Zablocki, Elias Ramzi, Oriane Siméoni, Matthieu Cord
TL;DR
This paper tackles the gap between zero-shot Vision-Language Models (VLMs) and task-tuned models in Referring Expression Comprehension (REC) by proposing LLM-wrapper, a black-box adaptation framework. It leverages Large Language Models (LLMs) to reason over VLM outputs that are translated into natural language prompts, and fine-tunes the LLM with LoRA to predict the best bounding box among candidates, without requiring access to the VLM’s internals. Across REC benchmarks (RefCOCO, RefCOCO+, RefCOCOg, Talk2Car) and HC-RefLoCo, and for multiple VLMs (Grounding-DINO and Florence-2) and LLMs (Mixtral and Llama 3 8B), LLM-wrapper yields substantial improvements in $P@1$ over zero-shot baselines, demonstrates transfer to new datasets, and enables model ensembling. The approach is lightweight, model-agnostic, and compatible with existing REC-tuned VLMs, offering a practical route for adapting proprietary or API-based models while preserving their original capabilities.
Abstract
Vision Language Models (VLMs) have demonstrated remarkable capabilities in various open-vocabulary tasks, yet their zero-shot performance lags behind task-specific fine-tuned models, particularly in complex tasks like Referring Expression Comprehension (REC). Fine-tuning usually requires 'white-box' access to the model's architecture and weights, which is not always feasible due to proprietary or privacy concerns. In this work, we propose LLM-wrapper, a method for 'black-box' adaptation of VLMs for the REC task using Large Language Models (LLMs). LLM-wrapper capitalizes on the reasoning abilities of LLMs, improved with a light fine-tuning, to select the most relevant bounding box matching the referring expression, from candidates generated by a zero-shot black-box VLM. Our approach offers several advantages: it enables the adaptation of closed-source models without needing access to their internal workings, it is versatile as it works with any VLM, it transfers to new VLMs and datasets, and it allows for the adaptation of an ensemble of VLMs. We evaluate LLM-wrapper on multiple datasets using different VLMs and LLMs, demonstrating significant performance improvements and highlighting the versatility of our method. While LLM-wrapper is not meant to directly compete with standard white-box fine-tuning, it offers a practical and effective alternative for black-box VLM adaptation. Code and checkpoints are available at https://github.com/valeoai/LLM_wrapper .
