SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2507.15504 · ICCV · 2025

Quantifying and Narrowing the Unknown: Interactive Text-to-Video Retrieval via Uncertainty Minimization

Sen Wang, Heming Du, Yang Li, Jiajun Liu, Zhuo Cao, Bingqing Zhang, Xue Li

arXiv · PDF · Open in the Atlas

Code that ran

7 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 5 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2507.15504.json · badge: /api/ran/2507.15504.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
PKU-YuanGroup/Video-LLaVA canonical (classifier label)
classifier basis: plan_row
4 ran · 2 no recorded run
bingqingzhang/umivr community
Papers with Code archive
3 ran · 3 no recorded run
FunctionStatusWhere it lives
downsample_corpus Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
bingqingzhang/umivr/retrievalmodel/qcs.py
code served (permissive licence) · get_code("c4d47452c42de257")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

# Set seed for reproducibility
torch.manual_seed(0)
np.random.seed(0)

# Create a small text corpus
text_corpus = [
    "This is the first document in our corpus.",
    "Here is the second document with some text.",
    "The third document contains different content.",
    "Fourth document in the collection here.",
    "Fifth and final document for this example."
]

# Create corresponding embeddings as a numpy array
# Shape: (5, 4) - 5 documents, 4-dimensional embeddings
corpus_embeddings = np.random.randn(5, 4).astype(np.float32)

# Define ARGS dictionary with all parameters
ARGS = {
    'text_corpus': text_corpus,
    'corpus_embeddings': corpus_embeddings,
    'target_num': 3,
    'method': 'uniform'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
image_parser Ran
ran; our contract draft was wrong, not the code
PKU-YuanGroup/Video-LLaVA/videollava/eval/run_llava.py
code served (permissive licence) · get_code("a7bee88c1c7fd6a3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

class Args:
    def __init__(self):
        self.image_file = "image1.jpg,image2.png,image3.bmp"
        self.sep = ","

ARGS = {"args": Args()}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_important_verb Ran
ran, violated the contract we drafted
bingqingzhang/umivr/retrievalmodel/qcs.py
code served (permissive licence) · get_code("99c05572bc322bca")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

def is_important_verb(token, pos):
    if not pos.startswith('VB'):
        return False
    aux_verbs = {'be', 'am', 'is', 'are', 'was', 'were', 'been', 'being', 'do', 'does', 'did', 'have', 'has', 'had'}
    return token.lower() not in aux_verbs

ARGS = {
    'token': 'running',
    'pos': 'VBG'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_image Ran
ran, honoured the contract we drafted
PKU-YuanGroup/Video-LLaVA/videollava/eval/run_llava.py
code served (permissive licence) · get_code("9b3c1cb391672ccb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from PIL import Image
import os

# Create a temporary image file for testing
temp_dir = tempfile.mkdtemp()
temp_image_path = os.path.join(temp_dir, "test_image.jpg")

# Create a simple test image
test_image = Image.new('RGB', (100, 100), color=(73, 109, 137))
test_image.save(temp_image_path)

# Define ARGS with a local file path
ARGS = {
    'image_file': temp_image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_images Ran
ran, honoured the contract we drafted
PKU-YuanGroup/Video-LLaVA/videollava/eval/run_llava.py
code served (permissive licence) · get_code("d5044bdde33c54c2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 4, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from PIL import Image
import os

# Create temporary image files to use as test data
temp_dir = tempfile.mkdtemp()

# Create a simple test image and save it
test_image = Image.new('RGB', (100, 100), color='red')
image_path_1 = os.path.join(temp_dir, 'test_image_1.png')
test_image.save(image_path_1)

# Create another test image
test_image_2 = Image.new('RGB', (100, 100), color='blue')
image_path_2 = os.path.join(temp_dir, 'test_image_2.png')
test_image_2.save(image_path_2)

# Define ARGS with a list of local image file paths
ARGS = {
    'image_files': [image_path_1, image_path_2]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
sigmoid_normalize Ran
ran, honoured the contract we drafted
bingqingzhang/umivr/retrievalmodel/qcs.py
code served (permissive licence) · get_code("4353ece0e267359b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

def sigmoid_normalize(entropy, k=3, threshold=4):
    midpoint = threshold / 2
    return 1 / (1 + math.exp(-k * (entropy - midpoint)))

ARGS = {
    "entropy": 2.5,
    "k": 3,
    "threshold": 4
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_to_even_chunks Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PKU-YuanGroup/Video-LLaVA/videollava/train/llava_trainer.py
code served (permissive licence) · get_code("10893c4608c08075")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyzing the function:
# - indices: a list/sequence of indices that will be iterated over
# - lengths: a dict-like or list-like object that maps indices to their lengths (accessed via lengths[index])
# - num_chunks: an integer specifying how many chunks to split into

# Create sample data
indices = [0, 1, 2, 3, 4, 5]
lengths = {0: 10, 1: 15, 2: 8, 3: 12, 4: 9, 5: 11}
num_chunks = 3

ARGS = {
    "indices": indices,
    "lengths": lengths,
    "num_chunks": num_chunks,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_query_specificity_adjusted Not yet run
unverified (harvested, no recorded run)
bingqingzhang/umivr/retrievalmodel/qcs.py
code served (permissive licence) · get_code("73168b64cfe63329")
How it ran

no invocation recorded.

compute_semantic_uncertainty Not yet run
unverified (harvested, no recorded run)
bingqingzhang/umivr/retrievalmodel/qcs.py
code served (permissive licence) · get_code("a55e80375d7ca539")
How it ran

no invocation recorded.

get_mm_adapter_state_maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
PKU-YuanGroup/Video-LLaVA/videollava/train/llava_trainer.py
code served (permissive licence) · get_code("bb35e3ac741bb2c9")
How it ran

no invocation recorded.

get_named_entity_indices Not yet run
unverified (harvested, no recorded run)
bingqingzhang/umivr/retrievalmodel/qcs.py
code served (permissive licence) · get_code("099faa5832da63ee")
How it ran

no invocation recorded.

maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
PKU-YuanGroup/Video-LLaVA/videollava/train/llava_trainer.py
code served (permissive licence) · get_code("735025744c1ab0cf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 1 the same month, 4 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
load_image 85 other papers
78 dated earlier, 4 later, 3 same year, order not determinable
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2305.10973 (2023-05)
Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold
2307.10490 (2023-07)
Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
and 82 more not named here
get_mm_adapter_state_maybe_zero_3 43 other papers
41 dated earlier, 2 later
2304.05884 (2023-04)
Unicom: Universal and Compact Representation Learning for Image Retrieval
2304.08485 (2023-04)
Visual Instruction Tuning
2310.03744 (2023-10)
Improved Baselines with Visual Instruction Tuning
and 40 more not named here
maybe_zero_3 42 other papers
40 dated earlier, 2 later
2304.05884 (2023-04)
Unicom: Universal and Compact Representation Learning for Image Retrieval
2304.08485 (2023-04)
Visual Instruction Tuning
2310.03744 (2023-10)
Improved Baselines with Visual Instruction Tuning
and 39 more not named here
split_to_even_chunks 40 other papers
38 dated earlier, 2 later
2304.05884 (2023-04)
Unicom: Universal and Compact Representation Learning for Image Retrieval
2304.08485 (2023-04)
Visual Instruction Tuning
2310.03744 (2023-10)
Improved Baselines with Visual Instruction Tuning
and 37 more not named here
load_images 20 other papers
18 dated earlier, 1 the same month, 1 same year, order not determinable
2312.14867 (2023-12)
VIEScore: Towards Explainable Metrics for Conditional Image Synthesis Evaluation
2024.findings-emnlp.268 (2024 (year only))
Math-LLaVA: Bootstrapping Mathematical Reasoning for Multimodal Large Language Models
2403.13805 (2024-03)
RAR: Retrieving And Ranking Augmented MLLMs for Visual Recognition
and 17 more not named here
image_parser 16 other papers
16 dated earlier
2304.08485 (2023-04)
Visual Instruction Tuning
2311.05437 (2023-11)
LLaVA-Plus: Learning to Use Tools for Creating Multimodal Agents
2024.findings-emnlp.268 (2024 (year only))
Math-LLaVA: Bootstrapping Mathematical Reasoning for Multimodal Large Language Models
and 13 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Despite recent advances, Text-to-video retrieval (TVR) is still hindered by multiple inherent uncertainties, such as ambiguous textual queries, indistinct text-video mappings, and low-quality video frames. Although interactive systems have emerged to address these challenges by refining user intent through clarifying questions, current methods typically rely on heuristic or ad-hoc strategies without explicitly quantifying these uncertainties, limiting their effectiveness. Motivated by this gap, we propose UMIVR, an Uncertainty-Minimizing Interactive Text-to-Video Retrieval framework that explicitly quantifies three critical uncertainties-text ambiguity, mapping uncertainty, and frame uncertainty-via principled, training-free metrics: semantic entropy-based Text Ambiguity Score (TAS), Jensen-Shannon divergencebased Mapping Uncertainty Score (MUS), and a Temporal Quality-based Frame Sampler (TQFS). By adaptively generating targeted clarifying questions guided by these uncertainty measures, UMIVR iteratively refines user queries, significantly reducing retrieval ambiguity. Extensive experiments on multiple benchmarks validate UMIVR's effectiveness, achieving notable gains in Recall@1 (69.2% after 10 interactive rounds) on the MSR-VTT-1k dataset, thereby establishing an uncertainty-minimizing foundation for interactive TVR. Code will be avaliable at https: //github.com/bingqingzhang/umivr.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2507.15504")
get_code_for_paper("2507.15504")
have("2507.15504")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2507.15504.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2507.15504.svg)](https://syntology.ai/paper/2507.15504)

Connect an agent — have() is free.