Search over Inspection Programs: Model-in-the-Loop Mutation for Cost-Bounded Video Question Answering

Zhen WangOpenReview 2026

Abstract

A video agent is specified by two components: a frozen multimodal language model and an executable inspection program that decides which frames are fetched, at what resolution, in what order, and how the returned observations are serialized into the model's context. This evidence acquisition procedure defines the agent’s active video investigation behavior. Prior work treats the program as fixed and tunes the model, or treats it as a hand-written prompt. We treat it as a search space. The objective is to find a program P that maximizes question-answering accuracy subject to a bound on the expected number of frames processed per query. Search proceeds in rounds. In each round the agent is run on a training set, failures are collected, and the language model is invoked as a mutation operator that proposes edits to P. The distinctive step is how the operator is informed. A failure trace alone underdetermines its cause—a wrong answer may stem from frames never fetched, frames fetched but misperceived, or observations correctly perceived but misaggregated; these failure explanations can therefore be incomplete. Before proposing an edit the model is granted a bounded budget of additional queries against the same training video and uses them to discriminate among these hypotheses. Edits are accepted by a two-criterion rule: validation accuracy must not decrease and mean frame consumption must not increase beyond a tolerance. Accepted edits accumulate into reusable revisions of a versioned program that is reused across all subsequent queries. On long-form and multi-event video understanding benchmarks the searched program improves accuracy over the initial hand-written one while reducing frames per question, and its operating points dominate or match those of several published agents at comparable model scale. Removing the additional-query budget collapses the gains, indicating that the operator's edits are only as good as the evidence used to justify them. The resulting system is the evolved agent, rather than merely a better-tuned model.
BibTeX
@misc{wang2026search,
  author = {Zhen Wang},
  title = {{Search over Inspection Programs: Model-in-the-Loop Mutation for Cost-Bounded Video Question Answering}},
  year = {2026},
  url = {https://openreview.net/forum?id=LtBWQb12jR},
  howpublished = {OpenReview},
}

Loading related content...

Figure