VisualCoding: Learning Executable Skills for Reliable Visual Reasoning
Abstract
Learning reusable skills can improve visual reasoning agents, yet applying a skill still requires the agent to implement or invoke a procedure and produce the final answer. Errors and hallucinations at these steps can prevent acquired experience from translating into reliable single-run performance. We propose VisualCoding, which combines execution-guided acquisition of reusable visual programs with direct adoption of their answers on applicable inputs. Execution-Guided Program Acquisition composes visual primitives and additional code into family-level solvers, then iteratively tests and revises them on labeled training instances. Scope-Aware Direct Execution runs a retained solver and returns its valid in-scope answer. We evaluate VisualCoding on four models across four benchmarks spanning 69 task families. VisualCoding exceeds the strongest evaluated baseline in mean accuracy by 4.45 percentage points with Gemini-3.1-Pro and by 14.78 points when reusing the frozen Pro-acquired artifacts with Flash-Lite. Ablations support execution-guided acquisition and show that direct execution outperforms textual or callable reuse of the same programs. Code is available at https://github.com/jiaq-liu/VisualCoding.
Create a lesson
Related papers
BayesPath: Reliability-Aware Bayesian Reasoning for Whole-Slide Pathology Agents
Shared title terminologycs.CVBryan Wong, Xun Xu, Jongwoo Kim et al.
Agentic Reinforcement Learning with Immediate and Prospective Credit Assignment for Medical Visual Reasoning
Shared title terminologycs.CVYuqi Cheng, Rui Meng, Yijin Li et al.
VAPOR: Improving Multimodal Reasoning with Sparse Visual Updates
Shared title terminologycs.CVMingyu Su, Wei Wu, Erle Zhu et al.
Genesis: Visual Augmentation Primitives for Multimodal Chain-of-Thought Reasoning
Shared title terminologycs.CVFan Yang, Lifeng Chen, Yipu Wang et al.
HumanPhys: A Human-Centric Physical-World Perception Benchmark for Real-World Visual Reasoning
Shared title terminologycs.CVYiming Zhang, Enzhi Zhou, Junan Lin et al.
ThinkDrag: Semantic Drag-Based Image Editing with Visual Reasoning
Shared title terminologycs.CVArmando Fortes, Tianyi Wei, Chindanai Trakantannarong et al.