evidence_only sampling never sees the evidence: the §4.3.2 oracle arm is uniform-128
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- machine-learning
Research direction
Start in inference.py around lines 344-349 and trace expand_annotations_to_queries, then read extract_evidence_only in utils/frame_utils.py. Verify that each query carries evidence_times as a list of [start, end] intervals and that evidence_only receives non-empty spans rather than using uniform fallback. Done means the corrected oracle arm uses the intervals and a regression check detects zero queries reaching extract_evidence_only with evidence.
Written by the indexing model from the issue text.
Description
evidence_only sampling never sees the evidence: the §4.3.2 oracle arm is uniform-128
Summary
The evidence_only frame-sampling policy silently degrades to uniform sampling over the whole
prefix on every query, because the query dict it is given never carries evidence_times.
The §4.3.2 ablation that compares oracle-evidence n=128 against uniform-128 is therefore
comparing uniform-128 against itself, and the small gap it reports is run-to-run variation
rather than a measurement of what the oracle interval is worth.
With the interval actually passed through, the same policy at the same frame count and the same
resolution gains +3.70 overall on Qwen3-VL-8B, concentrated on the two levels whose evidence
is nearest the query.
Line numbers below are against commit 709a211.
Where it goes wrong
inference.py reads the intervals off the query dict:
# inference.py:344-349
elif sampling_strategy == "evidence_only":
return extract_evidence_only(
...
evidence_times=query.get("evidence_times"),
but expand_annotations_to_queries never puts that key in the dict it builds:
query = {
"query_id": query_id,
"annotation_id": ann["id"],
"query_index": idx,
"source_dataset": ann.get("source_dataset", ""),
"video_id": ann.get("video_id", ""),
"video_path": ann.get("video_path", ""),
"task_subcategory": ann.get("task_subcategory", ""),
"task_type_name": ann.get("task_type_name", ""),
"query_time": query_time,
"question": question,
"options": options,
"ground_truth": answer,
}
query.get("evidence_times") is thus always None, and extract_evidence_only takes its
fallback branch:
# utils/frame_utils.py, extract_evidence_only
for span in (evidence_times or []): # empty
...
if not spans:
# No evidence available - degrade to uniform-N over full prefix.
targets = sorted(set(np.linspace(0, end_frame, nframes, dtype=int).tolist()))
The fallback is deliberate and documented in the docstring, which is why nothing fails loudly:
the run completes, writes results, and prints a number that looks like an oracle.
A second, independent shape problem waits behind the first one. The parquet stores one entry per
query time, each entry itself a list of intervals, [[21.8, 23.8]]. Passing the inner flat pair
[21.8, 23.8] instead makes the loop iterate floats, so float(span[0]) raises, every interval
is swallowed by except Exception: continue, and the same silent uniform fallback is taken. Both
paths produce a plausible number with the evidence discarded.
Reproducing
Populate the key and keep the nesting:
# in expand_annotations_to_queries, alongside "query_time"
"evidence_times": _evidence_for_index(ann.get("evidence_times"), idx),
where _evidence_for_index returns a list of [start, end] intervals for that query index
(normalising the single-interval case to [[s, e]]).
A cheap assertion that would have caught this: count how many queries reach
extract_evidence_only with a non-empty spans, and fail the run if it is zero.
Measurements
Qwen3-VL-8B, all 1722 queries, nframes=128, frame_size=512, identical decoding. "Overall" is
the equal-weight mean over the four levels, as in the paper.
| policy | L1 | L2 | L3 | L4 | Overall |
|---|---|---|---|---|---|
| uniform-128 over the prefix | 46.10 | 55.74 | 54.48 | 43.07 | 49.85 |
evidence_only, as released (degrades to uniform) |
46.10 | 55.74 | 54.48 | 43.07 | 49.85 |
evidence_only, intervals passed through |
55.17 | 63.33 | 54.84 | 40.88 | 53.55 |
| difference | +9.07 | +7.59 | +0.36 | −2.19 | +3.70 |
Sweeping the frame count inside the annotated interval, with placement held at the annotation:
| frames inside the evidence interval | L1 | L2 | L3 | L4 | Overall |
|---|---|---|---|---|---|
| 16 | 55.33 | 62.22 | 51.97 | 34.67 | 51.05 |
| 32 | 54.53 | 65.56 | 54.12 | 34.67 | 52.22 |
| 64 | 53.10 | 63.89 | 54.48 | 39.42 | 52.72 |
| 128 | 55.17 | 63.33 | 54.84 | 40.88 | 53.55 |
Two things worth noting for the paper's argument:
- The gain is not uniform across levels. It is large where the evidence sits close to the query
(L1, L2) and slightly negative on L4, whose intervals are far back and wide, so concentrating
128 frames inside them costs coverage of everything else. - Even 16 frames placed on the annotation beat 128 frames spread over the prefix (51.05 vs
49.85), which is a statement about placement rather than about budget.
Why it matters
§4.3.2 uses the near-zero oracle gap to argue that frame sampling is not where the headroom is.
On the corrected arm the oracle interval is worth +3.70 overall and +9.07 on L1, so the
conclusion that the benchmark is insensitive to which frames a model receives does not follow
from this experiment. The released number understates an upper bound that the rest of the paper
leans on.
- Dominant language
- Python
- Stars
- 65
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from InternLM/OVO-S-Bench
-
score.py: extract_answer() caps letters at A–E, but there are 6–7-option questions with answer F/GOpen
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
InternLM/OVO-S-Bench#1 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
InternLM/OVO-S-Bench#4 ·
All issues in InternLM/OVO-S-Bench
Similar issues
-
accepted
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
future-agi/future-agi#5908 ·
Maintainers usually reply within 1 day
-
Placeholder export disables HTML image input for picture descriptionPossibly taken @cloudiful claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
docling-project/docling-serve#817 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Techiebutler/freeframe#687 ·
Maintainers usually reply within 1 day
-
Parse truncated verbose GC logs up to the first XML errorPossibly taken A pull request linked to this issue is open or already merged. Openbug verbose GC
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
IBM/javacore-analyser#677 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 2 days