Coding Agents Synthesize 850K Visual QA Pairs Verified by Forward-Inverse Agreement

PixelProof: Visual Question Generation through Forward-Inverse Agreement

Mohammad Reza Taesiri, Brandon Collins, Logan Bolton, JP Lewis, Anh Totti Nguyen

cs.CV, cs.AI

2026-12-03

Coding agents render images and verify answers twice, from the scene spec and from the pixels, yielding 850K QA pairs; fine-tuned open VLMs gain +10.7 points on held-out questions.

What problem this solves

RLVR (reinforcement learning on verifiable rewards) works in math and code because correctness is checkable by construction: run the program and see. Vision has no equivalent loop. Labels for image questions come from human annotation or from a VLM judge, and VLM judges have documented perception failures and answer biases, so the quality filter is itself an unreliable model. PixelProof moves the verified-by-construction property into vision: no human labelers, no VLM judge, and the generation loop itself proves that each answer can be recovered from the image.

Method

The unit of generation is a question world: one fixed question plus four programs. A sampler draws a scene specification (objects, attributes, relations) from a seed; a renderer draws the image with Pillow; a forward program computes the answer from the specification; an inverse program receives only the rendered image and recovers the answer with basic image processing, such as thresholding by color, grouping connected regions, and tracing paths. A world passes only if the two programs agree on all 72 sampled scenes (24 scenes × 3 seeds), which is exactly the property a training label needs: the answer is readable from the pixels.

The inverse program doubles as a bug finder. In one piano-key world, the renderer drew five black keys while the forward program answered four from its parameters; the inverse program counted five from the image, and the mismatch exposed the broken renderer. Across the collection, 29% of accepted worlds had been repaired this way at least once, and 49% of those repairs changed the renderer or sampler, meaning the image or the question itself was wrong.

The loop is driven by coding agents. Each 20-minute episode is a fresh session that receives instructions, three reference implementations, and campaign history (code of accepted worlds plus the latest rejection report); the agent self-checks, repairs, and submits once, and the frozen code is re-verified in a clean container before the world can join the collection. Five configurations were used: GPT-5.6 Sol (high and max effort), GPT-5.6 Luna, Opus 5, and DeepSeek V4 Flash. Generation can be steered by topic (music, for example), by the image region that carries the answer (nine spatial patterns, matched in 95.5% of worlds), and by difficulty, feeding frontier-model errors back into later episodes.

Results

SettingMetricResult
9 profiles × 5 agents, 6 hours eachOutput2,400+ verified worlds, 850K+ image-question pairs
Replay on 200 unseen scenesFailure rate1.6%, removed before use
Kept with no check or agent self-testsDefective7/298 (2.3%)
Kept by the inverse programDefective0/135
Frontier modelsAccuracy on generated questions93.7%
Open-weight models, no reasoningAccuracy55.0%; 77.6% with reasoning
Feedback-steered hard questionsOpen-weight accuracy30.7%, near the 28.0% random line

Human review of 800 instances found no concern from either reviewer for 91.6% (a flag is any concern, not a wrong-label rate). In the checker comparison, a VLM judge also kept zero defective worlds but wrongly rejected worlds whose answers were correct, and it costs one VLM inference per question, while the inverse program is a few lines of image processing on CPU. When images were swapped for scenes whose answer changed, the inverse program rejected 100% of them.

For training: SFT with LoRA on Gemma 4 12B/31B and Qwen 3.8 27B (27,196 examples) adds +10.7 points on held-out worlds, +8.5 points averaged over 27 leave-one-profile-out runs, and +5.3 points on the harder feedback-steered set. Across 15 external benchmarks the average gain is +1.3 points, concentrated on synthetic puzzle and visual-bias sets (+1.4 to +6.4); real images, documents, and 3D renders are mixed, with three benchmarks negative. At equal sample count the data beats released Multimodal Self-Instruct and CoSyn data (71.0% vs 59.4% and 60.8% held-out). GRPO on Qwen2.5-VL-7B adds +8.9 points held-out and +1.2 on external benchmarks.

Why it matters

Teams synthesizing visual training data mostly lean on VLM judges plus human spot checks. PixelProof is a third option: verification lives inside the generated artifact, re-checking costs almost nothing, and questions can be generated to a target difficulty or evidence location. The sobering number is the average external gain of +1.3 points, concentrated on synthetic sets that share the training distribution. Read this as a feasibility proof for a data-verification paradigm, not a general VLM upgrade.

Limitations

The authors list three: all data is synthetic 2D imagery, so transfer to natural images is unproven; forward-inverse agreement shows the answer is recoverable from pixels, not that the question is clearly worded; and one agent writes both programs from the same question text, so a shared misreading goes undetected (a test with independently written inverse programs found such cases rare).

Three more things stand out. Ten of the 45 seed questions were adapted from VLMsAreBlind and VLMsAreBiased, and both also appear in the 15 external benchmarks, so part of the +6.4-point gain on visual-bias sets is in-distribution; the paper flags this itself. The three verification seeds were listed in the task file agents received even though the protocol text called them hidden, so agents could run the exact final checks during their session; the paper discloses this as a deviation. Frontier models answer 93.7% correctly, so the pool mostly stresses open-weight models and says little about frontier weaknesses.

Terms

Source

Related papers

All paper explainers