Introduction
Visual Large Language Models (V-LLMs) such as LLaVA and BLIP-2 have demonstrated remarkable capabilities in generating descriptive text from images. However, despite their fluency, these models often exhibit a fundamental lack of spatial awareness. They frequently struggle with basic tasks like identifying the relative positions of objects or precisely locating items within a scene. This "spatial blindness" stems from training regimes that rely primarily on global image-text pairs without explicit grounding in spatial coordinates.
In this work, we present LocVLM, a framework designed to bridge this gap. By teaching V-LLMs to interpret and generate textual coordinates through a specialized instruction fine-tuning strategy, the researchers significantly enhanced spatial reasoning, reduced object hallucination, and improved performance in video-based question answering.
The Spatial Blindness Problem
Current state-of-the-art V-LLMs are often trained to map an entire image to a textual description. While this enables rich storytelling, the models lack a mechanism to associate specific words with specific pixel regions. Consequently, they fail at trivial spatial tasks, such as distinguishing whether a cup is to the left or right of a plate. Previous attempts to solve this have involved complex architectural modifications or the addition of hundreds of specialized "location tokens" to the model's vocabulary. LocVLM takes a more streamlined approach, demonstrating that standard textual coordinates are sufficient for high-precision localization.
The LocVLM Framework
The LocVLM architecture maintains the simplicity of standard V-LLMs, consisting of a frozen vision encoder, a trainable adapter layer, and a large language model (LLaMA). The core innovation lies in the training methodology rather than the hardware configuration.
Coordinate Representation
A critical design choice in LocVLM is how to represent spatial data. After evaluating various methods, the researchers found that Integer Valued Binning (IVB) is the most effective. By discretizing image coordinates into a fixed number of bins (e.g., 0-224) and representing these as standard text tokens, the model can learn localization without requiring a specialized vocabulary or modified loss functions.
Instruction Fine-Tuning (IFT) Objectives
To instill spatial awareness, LocVLM employs three novel IFT objectives that go beyond simple captioning. These objectives force the model to reason about the presence and location of objects explicitly.
- Location Prediction (LocPred): The model is prompted to provide the bounding box coordinates for a specific object (e.g., "Where is obj1?").
- Negative Prediction (NegPred): To combat hallucination, the model is asked to locate objects that do not exist in the image. A successful response is "There is no such object," teaching the model to verify object presence before responding.
- Reverse-Location Prediction (RevLoc): Given a set of coordinates, the model must provide a detailed description of the object or region at that location. This enables the model to provide contextual descriptions, such as identifying a specific item relative to its background.
Experimental Results
LocVLM was evaluated across a diverse set of benchmarks covering spatial reasoning, image VQA, video VQA, and object hallucination.
Spatial Reasoning and Hallucination
On a custom "COCO-Spatial-27K" dataset designed to test directional relationships (left/right/above/below), LocVLM achieved 69.5% accuracy, a significant improvement over LLaVA’s 55.1%. Furthermore, in the POPE (Probing Object Presence Evaluation) benchmark, LocVLM reached an F1 score of 84.3 on the adversarial set, compared to LLaVA’s 66.3. This indicates that spatial training effectively grounds the model, making it less prone to imagining non-existent objects.
Video and Region Description
The framework was extended to the video domain (LocVLM-Vid) by averaging visual tokens across temporal and spatial axes. This model set new state-of-the-art records on benchmarks like ActivityNet-QA (37.4% accuracy). Additionally, LocVLM outperformed specialized models like Kosmos-2 and Shikra in region description tasks (RefCOCOg), proving that a unified textual approach to coordinates is highly competitive.
Conclusion
LocVLM demonstrates that localization is a prerequisite for robust visual reasoning. By training V-LLMs to "see" coordinates as part of their natural language processing, researchers can significantly improve spatial accuracy and reduce hallucinations without complex architectural changes. While temporal localization in video remains a challenge for future work, LocVLM provides a powerful blueprint for the next generation of spatially-aware AI.
Summary updated