Abstract
Current Vision-Language (V+L) models often rely on static, parametric knowledge stored within their weights, making them difficult to update and interpret. This paper introduces XTRA (X-modal Transformer Retrieval Augmentation), a framework that treats multi-modal classification as an "open-book" task. By retrieving relevant text captions from an external knowledge base to augment image queries, XTRA significantly improves performance on tasks like Visual Question Answering (VQA) without requiring massive, expensive pre-training.
The Problem: Static Parametric Knowledge
Most state-of-the-art V+L models are purely parametric. Once trained, their knowledge is frozen within their neural weights. This leads to several challenges:
- Static Knowledge: Updating the model's knowledge base (e.g., for new events) typically requires retraining from scratch.
- Lack of Interpretability: It is difficult to trace the specific reasoning or data points behind a model's prediction.
- Long-tail Facts: Models often struggle with rare information that appeared infrequently during training.
Inspired by Retrieval-Augmented Generation (RAG) in NLP, the authors propose bringing external search capabilities to the multi-modal domain.
The XTRA Framework
The proposed system consists of two main components: the Dense X-modal Retriever (DXR) and the X-modal Transformer Retrieval Augmentation (XTRA) reader.
Dense X-modal Retriever (DXR)
DXR acts as the search engine. It utilizes a dual-encoder architecture—ResNet-152 for images and BERT for text—to map both modalities into a shared embedding space. Unlike many previous methods that rely on slow object-detection bounding boxes, DXR uses grid features, which are faster and more flexible. When presented with a query image, DXR identifies the most semantically similar captions from a large-scale index (e.g., MS-COCO or Conceptual Captions) using the FAISS library for efficient searching.
X-modal Transformer Retrieval Augmentation (XTRA)
The XTRA component is the "reader" model. It takes a standard multi-modal transformer (such as VisualBERT) and augments its input. Instead of processing only the image and the question, the model is provided with the top $k$ retrieved captions. These captions serve as textual "hints," allowing the model to leverage the linguistic reasoning capabilities of transformers to better understand the visual context.
Key Insights
- Cross-Modal Translation: Retrieval acts as a bridge, converting visual information into descriptive text that a transformer can easily process.
- Knowledge Hot-Swapping: Because the knowledge base is decoupled from the model weights, it can be updated or replaced at inference time without retraining the entire system.
- Dependency on Retrieval: The authors observed an "unplugged" penalty; models trained with XTRA become dependent on the retrieved context, proving that they truly learn to synthesize external data rather than ignoring it.
Experimental Results
The researchers evaluated XTRA on benchmarks like MS-COCO, Flickr30k, and Conceptual Captions (CC).
Key findings include:
- VQA Performance: Integrating XTRA into VisualBERT increased VQA accuracy on COCO from 63.54% to 68.98% using 10 retrieved captions.
- Retrieval Efficiency: DXR achieved a Recall@1 of 44.9% for Image-to-Text retrieval on the COCO 5K test set, surpassing other grid-based methods like VSE++.
- Scaling Behavior: As shown in the results, performance typically peaks around 10-20 retrieved captions. Beyond this point, accuracy can plateau or decline as the retriever begins to include less relevant or "noisy" captions.
Conclusion and Future Work
XTRA demonstrates that "looking up" information can be more effective and efficient than "memorizing" it through massive pre-training. While the system shows some sensitivity to the domain of the retrieval source, it provides a scalable and interpretable path forward for multi-modal AI. Future work may involve moving toward generative models that can produce nuanced answers based on retrieved evidence.
Summary updated