VisualCoding: Learning Executable Skills for Reliable Visual Reasoning

Liu Jiaqi, Jin Ruinan, Li Xiaoxiao
10/9/2026
cs.CV

Official code: jiaq-liu/VisualCoding (6 stars, Python, MIT, last commit 2026-10-14).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Executable skills for reliable agentic visual reasoning

60Python, ShellSep 21, 20261 months agoMIT

Similar Papers

Cite this paper

@article{jiaqi2026visualcoding,
  title  = {VisualCoding: Learning Executable Skills for Reliable Visual Reasoning},
  author = {Liu Jiaqi and Jin Ruinan and Li Xiaoxiao},
  year   = {2026},
  eprint = {2610.14403},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.14403v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.14403.svg)](https://codeofpaper.com/paper/2610.14403)

Discussion