VNIAH / README.md
dayu032's picture
Add files using upload-large-folder tool
fd5f2ba verified
|
Raw History Blame Contribute Delete
5.38 kB
---
license: cc-by-4.0
pretty_name: "V-NIAH (SCR-VL): needle-in-a-video-haystack over public-domain films"
task_categories:
- video-text-to-text
- visual-question-answering
language:
- en
tags:
- video
- long-video
- needle-in-a-haystack
- multiple-choice
- benchmark
size_categories:
- n<1K
configs:
- config_name: default
data_files:
- split: test
path: data/test.jsonl
---
# V-NIAH (SCR-VL)
A synthetic long-video needle-in-a-haystack benchmark: **720 four-option questions** over 20-, 40- and 60-minute
windows of three public-domain films. In each window, a 2–4 second full-screen colour card showing one word is
inserted at a random point, and the question asks which word was shown.
It is the main benchmark of [*Editable Video Context: Mid-Context KV-Cache Reuse for Context-Managing Video
LLMs*](https://arxiv.org/abs/2611.18718). Code: [github.com/dayuwang401/SCR-VL](https://github.com/dayuwang401/SCR-VL).
The idea follows the visual needle-in-a-haystack test of LongVA. The haystacks, needles and questions here are our own.
Everything needed to run it is in this repository: the three films (4.1 GB), the 720 annotations, and the 227 rendered
needle cards. The annotations are exactly the ones used in the paper (generator seed 0).
## Contents
```
data/test.jsonl 720 questions, one JSON object per line
films/*.mp4 the three haystack films (Internet Archive, Public Domain Mark 1.0)
needles/*.png the rendered needle cards, 448x308, one per (word, colour) pair
```
| Film | Internet Archive id | Bank length | SHA-256 of the mp4 |
|---|---|---|---|
| *Anna Christie* (1930) | `anna-christie-1930-greta-garbo-english` | 89.4 min | `cdc62128e775ebafab43fc58da33bc8afe7092e8d3a5c65140c24f724f4977d5` |
| *Disraeli* (1929) | `disraeli_1929_202506` | 86.8 min | `37b1237fd6b4f012515bd1876f81f4f3358ac9f1fff0245d9e0cc7c69d702521` |
| *Bulldog Drummond* (1929) | `bulldog-drummond_1929_202506` | 89.2 min | `468935f7cfd7a83cd2240c59a0ee8b83ab16f1b255564c13bab00a0f7d2334c1` |
There are 80 questions per film and haystack length (3 films x 3 lengths x 80 = 720). The answer letters are
A 175, B 186, C 193, D 166. A fixed, balanced 90-question subset (10 per film and length) is marked
`in_sample_v1` for quick experiments.
## Fields
| Field | Meaning |
|---|---|
| `id` | `<film>-<minutes>m-<index>` |
| `film`, `video`, `archive_org_id` | which film; path of the mp4 in this repo; its Internet Archive id |
| `film_duration_s` | length of the film's 2 fps frame bank in seconds (frame count / 2) |
| `haystack_minutes` | 20, 40 or 60 |
| `window_start_s`, `window_end_s` | the haystack window, in seconds of the film |
| `needle_start_s`, `needle_duration_s` | when the card is shown, in seconds **relative to the window start** |
| `needle_abs_start_s` | the same start in seconds of the film |
| `needle_frac` | needle start as a fraction of the window (uniform in 0.1–0.9) |
| `needle_word`, `needle_bg_rgb`, `needle_fg_rgb`, `needle_image` | the card's word, colours and rendered image |
| `question`, `options`, `answer` | the question, four words, and the correct letter |
| `in_sample_v1` | whether the question is in the 90-question subset |
## How the needle is inserted
The mp4 files are the unmodified films. The card is inserted when frames are sampled: any sampled frame whose
timestamp `t` (seconds from the window start) satisfies `needle_start_s <= t < needle_start_s + needle_duration_s` is
replaced by `needle_image`. The paper samples frames from a 2 fps bank resized to 448x308. The cards are rendered at
that size with DejaVu Sans Bold at 64 pt, centred. A model that samples sparsely will often miss the card, which is
the point of the benchmark: in the paper, 256 uniformly sampled frames hit the card in 37.1% of questions.
To use the exact pipeline of the paper (frame banks, segmenting, prompts and scoring), see the
[GitHub repository](https://github.com/dayuwang401/SCR-VL). Its `vctx/tasks/vniah.py` regenerates these annotations.
## Reference results (from the paper)
256 frames in 32 segments, 32K-token budget, accuracy over all 720 questions (chance 25%):
| Model | Uniform sampling | Densify the needle segment (oracle) |
|---|---|---|
| Qwen2.5-VL-7B-Instruct | 52.2% | 96.9% |
| Qwen3-VL-8B-Instruct | 55.6% | 96.8% |
| Qwen3-VL-8B-Thinking (no reasoning) | 52.8% | 96.8% |
Uniform accuracy falls with haystack length (Qwen2.5-VL-7B: 70.8% at 20 min, 38.8% at 60 min).
## Limitations
The needle is an inserted title card, which is easier to recognise than a natural event in the film, so this
benchmark tests whether a model *finds* a short event in a long video, not whether it understands it. There are only
three films, all black-and-white features from 1929–1930.
## License
The films are in the public domain (Public Domain Mark 1.0, verified in the Internet Archive metadata). The
annotations and needle cards are released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): you may
share and adapt them for any purpose, including commercially, as long as you credit the paper below.
## Citation
```bibtex
@article{wang2026editable,
title = {Editable Video Context: Mid-Context KV-Cache Reuse for Context-Managing Video LLMs},
author = {Wang, Dayu},
journal = {arXiv preprint arXiv:2611.18718},
year = {2026}
}
```