CodeDance: A Dynamic Tool-integrated MLLM for Executable Visual Reasoning

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Song, Qi, Li, Honglin, Yu, Yingchen, Zhou, Haoyi, Yang, Lin, Bai, Song, She, Qi, Huang, Zilong, Zhao, Yunqing
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908929603141632
author Song, Qi
Li, Honglin
Yu, Yingchen
Zhou, Haoyi
Yang, Lin
Bai, Song
She, Qi
Huang, Zilong
Zhao, Yunqing
author_facet Song, Qi
Li, Honglin
Yu, Yingchen
Zhou, Haoyi
Yang, Lin
Bai, Song
She, Qi
Huang, Zilong
Zhao, Yunqing
contents Recent releases such as o3 highlight human-like "thinking with images" reasoning that combines tool use with stepwise verification, yet most open-source approaches still rely on text-only chains, rigid visual schemas, or single-step pipelines, limiting flexibility, interpretability, and transferability on complex tasks. We introduce CodeDance, which explores executable code as a general solver for visual reasoning. Unlike fixed-schema calls (e.g., only predicting bounding-box coordinates), CodeDance defines, composes, and executes code to orchestrate multiple tools, compute intermediate results, and render visual artifacts (e.g., boxes, lines, plots) that support transparent, self-checkable reasoning. To guide this process, we introduce a reward for balanced and adaptive tool calling, which balances exploration with efficiency and mitigates tool overuse. Interestingly, beyond the expected capabilities taught by atomic supervision, we empirically observe novel emergent behaviors during RL training: CodeDance demonstrates novel tool invocations, unseen compositions, and cross-task transfer. These behaviors arise without task-specific fine-tuning, suggesting a general and scalable mechanism for executable visual reasoning. Extensive experiments across reasoning benchmarks (e.g., visual search, math, chart QA) show that CodeDance not only consistently outperforms schema-driven and text-only baselines, but also surpasses closed models such as GPT-4o and larger open-source models.
format Preprint
id arxiv_https___arxiv_org_abs_2512_17312
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle CodeDance: A Dynamic Tool-integrated MLLM for Executable Visual Reasoning
Song, Qi
Li, Honglin
Yu, Yingchen
Zhou, Haoyi
Yang, Lin
Bai, Song
She, Qi
Huang, Zilong
Zhao, Yunqing
Computer Vision and Pattern Recognition
Recent releases such as o3 highlight human-like "thinking with images" reasoning that combines tool use with stepwise verification, yet most open-source approaches still rely on text-only chains, rigid visual schemas, or single-step pipelines, limiting flexibility, interpretability, and transferability on complex tasks. We introduce CodeDance, which explores executable code as a general solver for visual reasoning. Unlike fixed-schema calls (e.g., only predicting bounding-box coordinates), CodeDance defines, composes, and executes code to orchestrate multiple tools, compute intermediate results, and render visual artifacts (e.g., boxes, lines, plots) that support transparent, self-checkable reasoning. To guide this process, we introduce a reward for balanced and adaptive tool calling, which balances exploration with efficiency and mitigates tool overuse. Interestingly, beyond the expected capabilities taught by atomic supervision, we empirically observe novel emergent behaviors during RL training: CodeDance demonstrates novel tool invocations, unseen compositions, and cross-task transfer. These behaviors arise without task-specific fine-tuning, suggesting a general and scalable mechanism for executable visual reasoning. Extensive experiments across reasoning benchmarks (e.g., visual search, math, chart QA) show that CodeDance not only consistently outperforms schema-driven and text-only baselines, but also surpasses closed models such as GPT-4o and larger open-source models.
title CodeDance: A Dynamic Tool-integrated MLLM for Executable Visual Reasoning
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2512.17312