File size: 2,992 Bytes
eae8e44
 
 
 
 
 
 
 
 
561a9c8
 
 
 
 
fe44712
561a9c8
 
 
 
f83e3db
 
6847c25
f83e3db
9c35f0d
f83e3db
6847c25
f83e3db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe44712
f83e3db
8059dac
 
 
bafceda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
task_categories:
- text-generation
- question-answering
language:
- en
size_categories:
- 1K<n<10K
---
<!-- # TimeBlind Benchmark -->

<!-- TimeBlind: A video VQA benchmark for evaluating temporal understanding in vision-language models -->
<div align="center">
  <strong style="font-size: 28px; line-height: 1.2; font-family: Arial, sans-serif;">
    TimeBlind: A Spatio-Temporal Compositionality Benchmark for Video LLMs
  </strong>
</div>

<div align="center"> Baiqi Li<sup>1</sup>, Kangyi Zhao<sup>2</sup>, Ce Zhang<sup>1</sup>, Chancharik Mitra<sup>3</sup>, Jean de Dieu Nyandwi<sup>3</sup>, Gedas Bertasius<sup>1</sup> </div> <div align="center"> <sup>1</sup>University of North Carolina at Chapel Hill&nbsp;&nbsp; <sup>2</sup>University of Pittsburgh&nbsp;&nbsp; <sup>3</sup>Carnegie Mellon University </div>


<div align="center">

[🏠**Home Page**](https://baiqi-li.github.io/timeblind_project/) | [🤗**HuggingFace**](https://huggingface.co/datasets/BaiqiL/TimeBlind) | [**📖Paper**](https://arxiv.org/abs/2602.00288) | [🖥️ **Code**](https://github.com/Baiqi-Li/TimeBlind)

</div>

## Setup

```bash
git clone https://github.com/Baiqi-Li/TimeBlind.git
cd TimeBlind
git clone https://huggingface.co/datasets/BaiqiL/TimeBlind
```

## Data Format

Each sample in `TimeBlind/data.jsonl` contains:
- `index`: unique sample index (0, 1, 2, ...)
- `video_path`: path to video file (e.g., `TimeBlind/videos/vid_00000_0.mp4`)
- `question`: the question
- `answer`: the ground truth answer
- `type`: `"yes_no"` or `"multiple_choice"`

## Evaluation

see evaluate.py in our github page for more details!

```python
import json
from utils import _load_json_list, build_answers, get_scores, add_question_suffix

data = _load_json_list("TimeBlind/data.jsonl")
predictions = []

for sample in data:
    video_path = sample["video_path"]  
    question = add_question_suffix(sample["question"], sample["type"])
    
    # Replace with your model inference
    model_output = your_model(video_path, question)
    
    predictions.append({
        "index": sample["index"],
        "video_path": video_path,
        "question": question,
        "model_output": model_output,
    })

json.dump(predictions, open("predictions.json", "w"), indent=2)

answers = build_answers(predictions, data)
scores = get_scores(answers)
print(scores)  # {'Q_Acc': ..., 'V_Acc': ..., 'Acc': ..., 'I_Acc': ...}
```

## Metrics
I-Acc serves as our primary metric.

- **Acc**: Binary VQA accuracy
- **Q_Acc**: Question accuracy
- **V_Acc**: Video accuracy
- **I_Acc**: Instance accuracy (the primary metric in our pape)

# Copyright & Infringement Notice
The data provided in this benchmark is intended for academic research purposes only. We respect the intellectual property rights of the content creators.

If you believe that any content in this dataset infringes upon your rights, please contact us at [baiqili@cs.unc.edu] (or libaiqi123@gmail.com) and we will remove the relevant content immediately.