cs.CVOct 9, 2026

VisualCoding: Learning Executable Skills for Reliable Visual Reasoning

Authors: Liu Jiaqi, Jin Ruinan, Li Xiaoxiao

Organizations: Department of Electrical and Computer Engineering, University of British Columbia · Vector Institute

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.

Figures & tables

Appendix figures & tables26 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Self-Evolving Code-with-Image Reasoning

    Aug 11, 2026Tianze Yang, Liang Wu, Ruitong Sun +6Tool Use in VLMsMultimodal Reasoning

  2. PPTBench: Can Coding Agents Reconstruct the Visual World through Structured, Editable Slides

    Aug 31, 2026Xiaoqiu Wang, Yizhe Chi, Wenyi Li +7Coding AgentsAI Agent Benchmarks

  3. Vero: An Open RL Recipe for General Visual Reasoning

    Apr 6, 2026Gabriel Sarch, Linrong Cai, Qunzhong Wang +3Reasoning for VLMsVisual Reasoning