Introduction
Finding specific video content using natural language remains a significant challenge due to the semantic gap between succinct user queries and the rich, multi-layered details found in video data. While a user might search for "a baby playing with a cat," the target video often contains distinguishing features—such as the cat's breed or the baby's clothing—that are omitted in the initial search. MERLIN (Multimodal Embedding Refinement via LLM-based Iterative Navigation) addresses this by treating retrieval as an interactive navigation process, leveraging Large Language Models (LLMs) to clarify user intent and refine search results iteratively.
Methodology
MERLIN is a training-free, retrieval-rerank pipeline designed to bridge the gap between vague queries and complex video content. The process unfolds in four distinct stages:
- Initial Retrieval: A pre-trained multimodal encoder generates a baseline set of candidate videos from the user's initial query.
- LLM Questioner: Utilizing a model like GPT-4o, the system analyzes metadata from top-ranked "anchor" videos to generate clarifying questions (e.g., "Is the video set indoors or outdoors?").
- Human-Simulating Agent: To evaluate the system, a separate Large Multimodal Model (LMM) acts as the user, providing answers based on the actual target video.
- Iterative Embedding Refinement: MERLIN employs Spherical Linear Interpolation (SLERP) to merge the original query embedding with new information from user answers. This technique ensures the search vector remains on the unit sphere, preserving the geometric integrity of the embedding space while moving closer to the target video's representation.
Experimental Setup
The framework was evaluated on three benchmark datasets:
- MSR-VTT: 10,000 video clips with natural language descriptions.
- MSVD: Approximately 2,000 short YouTube clips.
- ActivityNet: A large-scale dataset focused on complex human activities.
Key Insights and Results
The primary strength of MERLIN lies in its iterative nature. Experimental results show that target videos consistently ascend the rankings as more information is gathered. For instance, on the MSR-VTT dataset, the average rank of the target video improved from 18.57 to 2.5 over five rounds of interaction.
MERLIN achieved substantial improvements in Recall@1 (R@1) metrics:
- MSR-VTT: Increased from 44.40% to 78.00%.
- MSVD: Increased from 52.39% to 77.61%.
- ActivityNet: Increased from 56.58% to 68.44%.
Notably, these gains were achieved without any model fine-tuning or backpropagation, demonstrating that the "frozen" knowledge within existing LLMs and encoders can be effectively harnessed for complex retrieval tasks.
Discussion and Future Work
While MERLIN significantly enhances retrieval accuracy, it faces limitations regarding temporal dynamics. The current human-simulating agent often relies on static frames, which can obscure details like the speed or direction of motion. Additionally, the system's performance is inherently tied to the quality of the underlying video encoder. Future research will explore the use of smaller, specialized local LLMs to reduce API costs and investigate methods to better capture temporal information during the navigation process.
Summary updated