Abstract
Text-based image retrieval in homogeneous domains, such as underwater video, presents significant challenges for standard multimodal foundation models. This paper evaluates the effectiveness of partitioning images into static grids to improve retrieval performance. By matching queries to specific sub-regions rather than the whole image, the authors demonstrate a nearly 50% improvement in retrieval recall. The approach proves robust to imprecise user location queries, offering a lightweight and effective alternative to complex segmentation pipelines.
Introduction
Multimodal foundation models like CLIP have revolutionized image and video retrieval, allowing users to search massive databases using natural language. However, these models excel primarily on diverse, everyday scenes. When deployed in highly specialized, homogeneous domains—such as underwater marine footage—their performance drops significantly.
In these environments, visual features are often repetitive (e.g., blue water, rocks, algae), and users frequently lack the expert vocabulary to precisely describe specific biological entities. Consequently, text queries tend to be vague. To compensate, users often rely on spatial memory—recalling where an object was on the screen (e.g., "a yellow fish in the top right corner"). This research investigates how to best leverage this spatial information to filter out visual noise and improve search accuracy.
Methodology
The researchers compared three primary approaches to localized image retrieval to determine the most effective way to integrate spatial constraints:
- Whole-Image Baseline (with Textual Localization): This approach uses standard CLIP retrieval but appends spatial phrases to the text query (e.g., adding "in the upper left" to the prompt).
- Theoretical Upper Bound (Oracle): This method involves cropping database images using exact, pixel-perfect bounding boxes provided by annotators. While computationally unfeasible for real-time applications, it serves as a performance ceiling.
- Static Sub-Region Retrieval (Proposed Method): This method involves pre-computing CLIP embeddings for fixed spatial partitions of every image. Two primary layouts were tested:
- Static-9: A simple 3x3 grid.
- Static-5: A 2x2 grid (four corners) plus a central rectangle.
During a search, the system compares the text query only against the pre-computed grid cells that intersect with the user's specified region of interest. The authors also evaluated variants where these grid cells included a 10–20% spatial overlap.
Data and Evaluation
The study utilized the Marine Video Kit (MVK), a dataset consisting of preprocessed keyframes from over 28 hours of underwater video footage. To evaluate the proposed methods, the authors collected a new annotation dataset comprising 741 human annotations from 12 users. Each annotation included a short text description, a long text description, and a bounding box indicating the specific region of interest.
Key Insights
The Failure of Textual Localization
A significant finding was that naively appending spatial phrases like "in the top left" to a CLIP query actually degraded performance compared to the baseline. CLIP struggles to natively bind spatial constraints to visual features; instead, the added text often led the model to match false candidates that happened to align with the textual prompt but not the visual target.
Grids as Noise Filters
Static grids act as powerful filters. By isolating the region of interest, the system prevents irrelevant background context—which is highly repetitive in marine environments—from diluting the CLIP embedding. The performance boost is not merely a result of filtering out the "wrong" side of the image; the cosine similarity scores between the text and the localized grid crops were fundamentally higher, indicating that tighter crops yield semantically "purer" embeddings.
Robustness Through Overlap
Recognizing that users are often imprecise when defining bounding boxes, the authors found that adding spatial overlap to the grid cells made the system highly resilient. When simulating user error by shifting and scaling bounding boxes by 25%, the overlapping Static-9 grid maintained high performance, proving its viability for real-world human inputs.
Results
The experimental results demonstrated massive gains in recall. Both the Static-5 and Static-9 configurations increased Recall@10 and Recall@100 by nearly 50% compared to the whole-image baseline. For instance, on long queries, Static-9 achieved a Recall@100 of 29%, compared to 21% for the baseline.
However, a gap remains: the theoretical Oracle upper bound achieved a Recall@100 of 41%. This suggests that while static grids provide a substantial improvement, there is still significant potential for growth if localization can be further refined.
Conclusion and Future Work
This study demonstrates that simple spatial partitioning is a highly effective strategy for improving CLIP-based retrieval in specialized domains. By focusing on sub-regions, the system effectively mitigates the noise inherent in homogeneous backgrounds.
The authors acknowledge a limitation in the "perfect memory" assumption of their study, as annotators drew boxes while viewing the target images. Future work should involve collecting localized queries in more realistic "known-item search" scenarios where users rely on memory. Additionally, moving from arbitrary static grids to dynamic, semantically coherent regions (using object detectors) could help bridge the remaining gap toward the theoretical performance ceiling.
Summary updated