Skip to content
AI-generated research idea🟡Fairly easy💡Moderate InnovationNo close match found

Cross-Instance Depictive Verification to Prevent Hard-Coded Propositional Solutions in Visual Agents

Verify agent-written visual programs across multiple task instances during synthesis to force generalizable image-inspection procedures rather than hard-coded, instance-specific answers.

Time

several weeks

Compute level

Single GPU or less

Resources

CPU-only Python sandbox, API access to closed or open-weight coding agents, and VBVR-Pro-Bench multi-instance task families

What the paper used

CPU-only Python sandbox with 30-minute wall-clock limit per instance; 500 instances evaluated via closed-model APIs (Codex, Claude Code, Gemini CLI) and 23 open-weight models via Amazon Bedrock; video model baselines taken from published leaderboard without rerunning.

Prerequisites

program synthesis, AST static analysis, visual reasoning

Scope

modify existing code

The Gap

Behavioral re-execution analysis in Section 3.4 shows that 65% of Codex's solutions (and 76% on Abstraction) are propositional or partial: the agent solves the single frame in-session and writes a program containing hard-coded pixel coordinates or answers that fail when applied to another instance of the same task family.

“Identical outputs on the instance at hand thus conceal programs of different generality, which is why score alone cannot identify the mode.”
From the paper, Section 3.4, page 8. Matched against the PDF text.

Limitation

Instance-level scoring rewards hard-coded propositional programs identically to generalizable depictive algorithms, concealing brittle solutions that lack transferable visual-reasoning procedures.

Proposed Solution

Modify the agent synthesis loop to include an automated depictive-consistency test: after generating a candidate `solve(frame)` function, the harness applies synthetic label-preserving perturbations (e.g., color shifts, object translations, or scaling) or pairs multiple unlabeled instances from the same family and requires the agent's script to dynamically recompute valid transformations without literal coordinate hard-coding (enforced via AST static checks and multi-instance visual verification).

Why This Matters

Enforcing depictive synthesis is expected to transform one-off instance scripts into reusable, task-family-level visual solvers that generalize reliably across unseen variations at zero extra LLM cost.

How to Get Started

How to test it: Test whether adding AST constant-flagging and perturbation-based self-testing increases the depictive program share on Abstraction and Knowledge tasks above Codex's baseline (24%-35%) without degrading single-instance accuracy (0.923); stop if forcing depictive code causes significant accuracy drops on rule-inference tasks.

  1. Implement an AST analyzer that detects suspicious hard-coded pixel coordinates and color constants in candidate `solve.py` scripts.
  2. Create an automated image-perturbation module (e.g., spatial translation, color-channel permutation, and affine padding) that generates auxiliary test frames from the input frame.
  3. Integrate the AST feedback and perturbed-frame execution checks into an iterative OpenCode or Codex wrapper so the agent refines failed checks before final submission.
  4. Evaluate both single-instance score and cross-instance transferability (using VBVR-Pro-Bench's 5 instances per family) before and after depictive enforcement.

Suggested by AI. Adapt it to your setup.

Has This Been Done?

No close match in 10 results

None of the listed papers address automated depictive-consistency tests with label-preserving perturbations or AST static checks to prevent hard-coded propositional solutions in visual coding agents. The listed papers on neural program synthesis and verification discuss broader generalization or verification-in-the-loop for program synthesis, but not this specific mechanism.

We searched OpenAlex and arXiv for “program synthesis generalization AST verification visual reasoning” and “Cross-Instance Depictive Verification to Prevent Hard-Coded Propositional Solutions in Visual Agents” and an AI compared the idea with the top 10 results. A small search can miss relevant work.

Source Paper

Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models

Dezhi Luo, Fengyuan Yu, Haotian Zhang +11 more · 2026

This paper evaluates whether off-the-shelf coding agents outperform native video generation models on visual reasoning tasks when evaluated under identical inputs, output video format, and an unmodified deterministic evaluator on VBVR-Pro-Bench. By writing Python programs that render answer videos in a CPU sandbox, three closed-model coding agents achieve scores of 0.893 to 0.923, surpassing the best RL-trained video model (0.670) by over 0.22, while the strongest open-weight model (GLM-5) reaches 0.572.

Related Ideas

Is this a good idea?

Share onXLinkedIn