Decomposing Queries into Tool Calls for Long-Video Keyframe Retrieval
Summary
ToolMerge is a novel keyframe retrieval method for long-video question answering (QA) that employs an LLM-based planner to decompose queries into tool calls and merge their per-tool rankings using boolean operators. Developed by researchers at the University of Illinois at Urbana-Champaign, ToolMerge utilizes lightweight visual tools like SigLIP-2 for scene-level evidence and T-REN for localized entity search, alongside OCR. To directly evaluate retrieval, the team constructed Molmo-2 Moments (M2M), a new benchmark where each question is anchored to a specific time interval. ToolMerge demonstrates competitive performance against prior keyframe selectors across QA, question retrieval, and caption retrieval tasks, notably outperforming other methods by 5% on caption retrieval.
Key takeaway
For machine learning engineers developing long-video QA systems, ToolMerge offers a robust approach to keyframe selection. You should consider implementing a planner-based decomposition strategy with specialized visual tools and rank-based merging. This method, especially when combined with reinforcement learning for planner improvement, can enhance retrieval accuracy and reduce inference costs compared to dense captioning, making your systems more efficient and verifiable.
Key insights
Decomposing video queries into tool calls and merging their ranked outputs improves keyframe retrieval.
Principles
- LLM planners can orchestrate lightweight visual tools.
- Boolean operators effectively merge per-tool frame rankings.
- Retrieval benchmarks need questions anchored to specific time intervals.
Method
An LLM planner decomposes queries into SigLIP-2, T-REN, and OCR calls, specifying boolean merging. Tools score frames, ranks are combined (AND=max rank, OR=min rank), and top-k frames are selected with greedy NMS.
In practice
- Use SigLIP-2 for scene-level queries.
- Employ T-REN for specific object/entity detection.
- Integrate OCR for on-screen text evidence.
Topics
- Keyframe Retrieval
- Long-Video QA
- Large Language Models
- Visual Tools
- Molmo-2 Moments
- Reinforcement Learning
Code references
Best for: Research Scientist, AI Scientist, Machine Learning Engineer, Computer Vision Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.