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
Compute level
Resources
What the paper used
Prerequisites
Scope
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.”
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.
- Implement an AST analyzer that detects suspicious hard-coded pixel coordinates and color constants in candidate `solve.py` scripts.
- 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.
- 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.
- 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?
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 ModelsDezhi 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
- Structured Item-by-Item Multimodal Verification for Iterative 4D Scene CodingVibePrevisBench: Evaluating Agentic Coding for 4D Scene Generation in Blender🟡Fairly easy
- Joint Vision-Language Adaptation with Auxiliary 3D Geometric Supervision for Spatial GUI AgentsTuringSpace: Grounding Spatial Intelligence in Action with Interactive CAPTCHAs🟠Medium
- Adversarial Specification Probing and Multi-Seed Contrast Verification for Verifier-Free Harness EditsHarness^2: Recursive Agent Harnessing for an Open World🟠Medium
- Tool-Augmented Agentic Harness for Quantitative Pixel Inspection and Color-Space VerificationMediaStormBench-CameraLog: Can Multimodal Models Identify a Camera's Log Curve?🟡Fairly easy
- Extending Verifiable Evaluation to Real-World Structured, Multi-Turn, and Multimodal WorkflowsInstruction-Following Evaluation for Large Language Models🟠Medium