Skip to content
プロジェクト

概要

Official Repository for NeurIPS'25 Paper "Tool-Augmented Spatiotemporal Reasoning for Streamlining Video Question Answering Task"

デザイン・メディア

この数値の測り方

計測したスター増加

24時間
0
7日間
履歴を収集中
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

VideoTool

GitHub license Arxiv

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 🛠️

  1. Clone the repository 📦:

    git clone [email protected]:fansunqi/VideoTool.git
    cd ToolChainVideo
    
  2. Create a virtual environment 🧹 and install the dependencies 🧑‍🍳:

    conda create -n videotool python=3.9
    conda activate videotool
    pip install -r requirements.txt
    
  3. Set up your API key 🗝️ in config/*.yaml:

    openai:
      GPT_API_KEY: "put your openai api key here"
      PROXY: "put your openai base url here"
    
  4. Bulid related projects 🧩:

    mkdir projects
    cd projects
    

Tools

Thanks to the authors of these open-source projects for providing excellent projects.

Temporal Tools:

Spatial Tools:

Generalist Tools:

Tools Testing

See tools/test_tools.sh

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}
}

関連プロジェクトを探す

読み込み中…