Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models

Dezhi Luo, Fengyuan Yu, Haotian Zhang, Zehong Zhao, Ran Ji, Siyuan An, Huayi Qin, Qingying Gao, Zhongang Cai, Lei Yang, Ziqi Huang, Ruisi Wang, Maijunxian Wang, Hokin Deng

arXiv:2611.34813 · 2026-11-27 공개 · arXiv · PDF

video-generation code-generation coding-agents visual-reasoning codex program-synthesis rule-based-evaluation glm-5

Abstract

Video generation models are increasingly evaluated as visual reasoners: given a first frame and a natural-language prompt, can the model produce the video in which the specified task is carried out? The paradigm is considered advantageous because the reasoning is native to the visual medium, unfolding directly in the frames rather than through language or code. Whether this native route is in fact the more reliable path to visual reasoning has not been tested against a symbolic alternative under the same conditions. We therefore pose the same tasks, with identical inputs, output specification and evaluator, to both media: rather than denoising pixels, a coding agent writes a program that renders the answer video, which an unmodified rule-based evaluator scores. On VBVR-Pro-Bench (Xu et al., 2026), a 500-instance suite spanning five cognitive categories with symbolic ground truth, the agent receives the same first frame and prompt as the video model, with no access to ground truth, metadata or generation models, and one attempt per instance. Three closed-model agents (Codex with gpt-6-astra, Claude Code with Fable 5.1 and Gemini CLI with Gemini 3.1 Pro) score 0.923, 0.894 and 0.893, each more than 0.22 above the strongest video model. Among 23 runnable open-weight models, the best, GLM-5, reaches 0.572, above all video models except the RL-trained one. Together, we show that for tasks whose solutions can be computed from a first frame and a prompt, program synthesis is currently a substantially more reliable route to visual reasoning than video generation. We further distinguish depictive programs, which navigate the image to recover a transferable scheme, from propositional programs, which operate on hard-coded values, revealing how visual reasoning unfolds in agent-written programs and what it implies for its nature of reasoning in general.

한국어 요약

한 줄 요약

코드 생성 에이전트는 영상 생성 모델보다 시각적 추론에서 더 높은 성능을 보인다.

핵심 기여도

핵심 아이디어

기존 영상 생성 모델은 시각적 추론을 직접적으로 처리하지만, 이 연구는 대신 코드 생성 에이전트가 프로그램을 작성하여 영상을 렌더링하는 방식을 제안한다. 이는 **시각 정보를 기호화**하고, **정확한 알고리즘적 처리**를 통해 추론을 수행하는 새로운 접근법이다.

에이전트는 첫 번째 프레임과 자연어 프롬프트를 입력으로 받아, **Python 이미징 라이브러리**를 사용해 프로그램을 작성하고, 이 프로그램이 영상을 렌더링한다. 평가 기준은 동일한 **rule-based evaluator**를 사용하며, **ground truth, 메타데이터, 생성 모델에 접근하지 못함**.

이 연구의 핵심 통찰은, **시각적 추론이 코드 생성을 통해 더 정확하고 신뢰성 있게 수행될 수 있다는 점**이다. 특히, **depictive 프로그램**은 이미지 내 정보를 실시간으로 해석하여 일반화 가능한 해결책을 제공하는 반면, **propositional 프로그램**은 단일 인스턴스에만 적용 가능한 상수를 사용한다.

기술적 접근법

주요 결과

의의 및 한계

이 연구는 **시각적 추론을 코드 생성을 통해 처리하는 것이 영상 생성보다 더 신뢰할 수 있음을 입증**한다. 특히, **정확한 알고리즘 처리와 기호화된 정보 추출**이 핵심이며, 이는 인간의 시각-공간 추론과 유사한 메커니즘을 반영할 수 있다.

그러나, **VBVR-Pro-Bench는 기호 기반, 결정론적 환경**을 가정하며, 실제 세계의 복잡한 시각 정보(텍스처, 가림, 조명 변화 등)는 반영하지 못한다. 또한, **에이전트는 도구 사용과 샌드박스 환경을 활용**하지만, 이는 영상 모델과 비교 시 비대칭적 조건을 만든다. 따라서, 이 결과는 특정 벤치마크 내에서의 성능이며, 일반화에는 한계가 있다.

실용적 활용

이 연구는 **시각 정보를 기반으로 하는 AI 시스템** 개발에 기여할 수 있다. 예를 들어, **로봇 시각 제어, 자율 주행, AR/VR 환경**에서 코드 생성 에이전트는 정확한 알고리즘 처리를 통해 시각적 추론을 수행할 수 있다. 또한, **교육 및 시뮬레이션 분야**에서 정확한 규칙 기반 영상 생성이 필요한 상황에도 활용 가능하다.