fansunqi/VideoTool
关于
Official Repository for NeurIPS'25 Paper "Tool-Augmented Spatiotemporal Reasoning for Streamlining Video Question Answering Task"
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文VideoTool
This repository is the official implementation of Tool-Augmented Spatiotemporal Reasoning for Streamlining Video Question Answering Task (NeurIPS 2025 main track).
Introduction
In this work, we equip MLLM with a comprehensive and extensible Video Toolkit, to enhance MLLM's spatiotemporal reasoning capabilities and ensure the harmony between the quantity and diversity of tools. To better control the tool invocation sequence and avoid toolchain shortcut issues, we propose a Spatiotemporal Reasoning Framework (STAR) that strategically schedules temporal and spatial tools, thereby progressively localizing the key area in the video. Our STAR framework enhances GPT-4o using lightweight tools, achieving an 8.2% gain on VideoMME and 4.6% on LongVideoBench.

Setup and Configuration 🛠️
Clone the repository 📦:
git clone [email protected]:fansunqi/VideoTool.git cd ToolChainVideoCreate a virtual environment 🧹 and install the dependencies 🧑🍳:
conda create -n videotool python=3.9 conda activate videotool pip install -r requirements.txtSet up your API key 🗝️ in
config/*.yaml:openai: GPT_API_KEY: "put your openai api key here" PROXY: "put your openai base url here"Bulid related projects 🧩:
mkdir projects cd projectsDownload Grounded-Video-LLM for temporal grounding and temporal QA
git clone [email protected]:WHB139426/Grounded-Video-LLM.gitDownload the checkpoint and specify the path in
config/*.yaml.Build LLaVA for image QA
git clone [email protected]:fansunqi/LLaVA.git cd LLaVA pip install -e . cd ..
Tools
Thanks to the authors of these open-source projects for providing excellent projects.
Temporal Tools:
- Frame Selector
- Select frames of interest based on current information, driven by LLM.
- Select frames of interest by image grid, driven by VLM.
- Temporal Grounding
- Grounded-Video-LLM-7B: https://github.com/WHB139426/Grounded-Video-LLM
- Temporal Refering
- Grounded-Video-LLM-7B: https://github.com/WHB139426/Grounded-Video-LLM
- Temporal QA
- Grounded-Video-LLM-7B: https://github.com/WHB139426/Grounded-Video-LLM
Spatial Tools:
- Object Detection and Tracking
- YOLO by ultralytics: https://github.com/ultralytics/ultralytics
- Image Captioning
- Image QA
- Patch Zooming
- Zoom to the key area in the images, driven by VLM.
- Image Grid QA
- Image Grid QA driven by GPT-4o, adapted from https://github.com/microsoft/VLM-Video-Action-Localization
Generalist Tools:
- Video QA
- Qwen-VL-2.5-7B: https://github.com/QwenLM/Qwen2.5-VL
- InternVL3-8B: https://github.com/OpenGVLab/InternVL
- Summarizer
- Summarize all currect information, driven by LLM.
Tools Testing
Usage
Run with single video:
python run_single_video.py \
--config config/star_single_video.yaml \
--video_path /path/to/video.mp4 \
--question "What is happening in the video?"
Run with single video and options
python run_single_video.py \
--config config/star_single_video.yaml \
--video_path /path/to/video.mp4 \
--question "What is the person doing?" \
--options "A. Running" "B. Swimming" "C. Cooking"
Run testcases (testcases can be found in testcases directory.):
bash run_testcases.sh
Acknowledgments
We thank the developers of OctoTools and all developers of the open-source projects we used.
Citation
If you find our repo useful, please kindly consider citing:
@inproceedings{
fan2025toolaugmented,
title={Tool-Augmented Spatiotemporal Reasoning for Streamlining Video Question Answering Task},
author={Sunqi Fan and Jiashuo Cui and Meng-Hao Guo and Shuojin Yang},
booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems},
year={2025},
url={https://openreview.net/forum?id=OFz4VDn0SO}
}
探索相关项目
加载中…