X-CoT: Explainable Text-to-Video Retrieval via LLM-based Chain-of-Thought Reasoning

Prasanna Reddy Pulakurthi, Jiamian Wang, Majid Rabbani, Sohail Dianat, Raghuveer Rao, Zhiqiang Tao

TL;DR

This paper introduces X-CoT, a novel text-to-video retrieval framework that replaces traditional cosine similarity with Large Language Model (LLM) based Chain-of-Thought (CoT) reasoning. X-CoT not only achieves superior retrieval performance but also provides detailed explanations for its rankings, enabling better analysis of retrieval models and data quality.

What Problem Does This Paper Address?

Current text-to-video retrieval systems primarily rely on embedding models to compute cosine similarities between text queries and video features. While effective, this approach suffers from two major limitations: (1) it's susceptible to the quality of text-video data pairs, which can be flawed (e.g., blurry videos, inaccurate captions) and difficult to identify, and (2) cosine similarity alone offers no interpretability, making it hard to understand why a particular video was retrieved. This lack of transparency hinders users from comprehending ranking results, assessing retrieval systems, and examining data quality.

Methods

X-CoT tackles these issues by replacing the embedding-based similarity ranking with an LLM-based reasoning process. The core of X-CoT involves:

  • Enhanced Video Annotations: The authors augment existing text-video benchmarks with detailed, structured annotations (including objects, actions, scenes, and summaries) to provide richer semantic information for the LLM. This process involves an MLLM pipeline and several post-processing steps to ensure annotation quality and reduce bias.
  • Retrieval Chain-of-Thought (CoT): X-CoT constructs a retrieval CoT pipeline. It first optionally generates a coarse top-K candidate pool using existing embedding models. Then, it performs pairwise comparisons between these candidates using an LLM, which provides a binary preference (e.g., video A is better than video B) and a natural language justification.
  • Bradley-Terry Model Integration: The pairwise preferences are aggregated using the Bradley-Terry model to refine the ranking and correct for potential noisy or cyclic judgments.
  • Explainability: The LLM's reasoning process inherently generates detailed explanations for each pairwise comparison, which are then summarized into a final explanation for the top-ranked video.

Datasets

The paper evaluates X-CoT on four standard text-to-video retrieval benchmarks:

  • MSR-VTT
  • MSVD
  • LSMDC
  • DiDeMo

The authors also created enhanced video annotations for these datasets to support LLM reasoning and reduce data bias.

Key Insights and Ideas

  • LLMs as Rankers, Not Just Embedders: The paper demonstrates that LLMs can effectively act as sophisticated rankers, surpassing traditional embedding-based similarity metrics by leveraging their reasoning capabilities.
  • Explainability Drives Trust and Debugging: The generated explanations are crucial for understanding retrieval outcomes, diagnosing model behavior, and identifying issues with text-video data quality. This is a significant step towards trustworthy AI in multimodal retrieval.
  • Structured Annotations are Key: The success of the LLM reasoning heavily relies on the quality and richness of the structured video annotations, which provide the necessary context for nuanced judgments.
  • Pairwise Comparison is More Robust: The paper suggests that pairwise comparisons are inherently easier for LLMs than direct ranking of multiple items, leading to improved accuracy.

Key Results

  • Performance Boost: X-CoT consistently outperforms embedding model-based baselines across all metrics (R@1, R@5, R@10, MdR, MnR) on the evaluated datasets. For instance, it achieves a +5.6% improvement in R@1 for CLIP on MSVD.
  • Robustness to Noise: X-CoT shows robustness to noisy annotations, with only a small performance decline when 20% of tags were perturbed.
  • Efficiency: Through techniques like sliding window, caching, and parallelization, X-CoT achieves competitive runtime and memory usage, comparable to embedding-based models, making it feasible for real-world deployment.

Limitations and Future Work

  • LLM Capacity: The reasoning and ranking capabilities of X-CoT are dependent on the LLM's capacity. For highly specialized domains or extremely long videos, LLMs might face limitations.
  • Bradley-Terry Model Constraints: The current Bradley-Terry model formulation is based on binary outcomes and doesn't fully capture nuanced reasoning strengths. Future work could explore soft confidence scores or more advanced aggregation strategies.
  • Challenging Scenarios: The authors plan to explore more challenging text-to-video retrieval scenarios, such as those involving very long videos or complex temporal reasoning.
  • Richer Reasoning Capture: Future research could focus on better capturing the richness of LLM reasoning beyond simple pairwise preferences.

Summary updated

BibTeX
@inproceedings{pulakurthi2025x,
  author = {Prasanna Reddy Pulakurthi and Jiamian Wang and Majid Rabbani and Sohail Dianat and Raghuveer Rao and Zhiqiang Tao},
  title = {{X-CoT: Explainable Text-to-Video Retrieval via LLM-based Chain-of-Thought Reasoning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure