arXiv:2611.07397cs.CVNov 2026

Manuscript Offprint

arXiv:2611.07397

Vis2State: Visual Reasoning through Executable State Abstractions

Sheng Jin, Wentao Liu, Chen Qian

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Solving visual puzzles requires both accurate interpretation of visual evidence and reliable computation under task-specific rules. Embedding visual assumptions and task constraints directly in solving code makes the represented problem difficult to inspect and revise independently. We introduce Vis2State, a training-free agentic framework that abstracts visual puzzles into explicit, revisable problem states linking visual inspection and execution. Visual inspection guides state construction and refinement, while generated programs solve the represented problem. The model constructs both the state and the program without predefined puzzle schemas or solving procedures. Inspection and execution feedback allow it to revise the problem representation and solving procedure independently. Vis2State achieves the state-of-the-art performance on four benchmarks. Cross-model evaluation further demonstrates consistent gains. Ablations, error analyses, and fixed-program state interventions further support the effectiveness of the state-centered design. The code will be made publicly available to facilitate future research.

1 Introduction

Visual puzzles probe a model's ability to turn image observations into a solution under task-specific rules. Beyond recognizing objects, the model must infer their relations and task constraints to guide search or computation. Benchmarks spanning algorithmic puzzles, spatial reasoning, visual logic, and abstract patterns expose this connection between perception and reasoning [9, 14, 34, 47]. Their tightly coupled perceptual and computational demands make visual puzzles a revealing testbed for understanding where multimodal reasoning succeeds and where it breaks down.

Bridging visual perception and computation requires organizing visual evidence into a representation of the problem to be solved. The required information varies across tasks. Mazes require connectivity, color matching requires correspondences, and box pushing requires positions and legal transitions. Existing approaches provide complementary capabilities. Chain-of-thought (CoT) prompting elicits intermediate reasoning [23, 42], visual search retrieves

(a) What are the coordinates of P?

Figure

Direct CoT

P=(2,2)P = (2, 2) ✗

Vis2State

Inspect → state

P=(3,2)P = (3, 2) ✓

(b) What is the shortest path from S to G?

Figure

Direct CoT

S→A→GS \rightarrow A \rightarrow G ✗

cost = 10

Vis2State

State → solve(state)

S→B→GS \rightarrow B \rightarrow G ✓

cost = 8

Figure 1. Vis2State turns visual evidence into explicit problem states for computational solving. Two illustrative puzzles show how (a) inspection corrects a misread coordinate and (b) execution over explicit state finds the shortest path.

relevant details [44], and visual programming connects perception to executable operations [17, 36]. These capabilities alone do not ensure that the represented problem and its solving procedure are both correct. A sound algorithm can fail on misinterpreted constraints, just as accurate observations can be undermined by incomplete search. When visual assumptions and task constraints are embedded directly in solving code, these two sources of error become entangled, making the problem representation difficult to inspect and revise independently.

Our central idea is that visual puzzles can be abstracted into explicit, revisable problem states. We introduce Vis2State, a training-free agentic framework that uses these states as the interface between visual inspection and execution. Through inspection, the model constructs a task-dependent state encoding relevant objects, relations, constraints, and objectives, then generates a program to solve the represented problem. Neither the state schema nor the program is predefined. This separation allows the model to refine its interpretation of the puzzle independently of the procedure used to solve it.

The explicit state gives inspection and execution distinct but complementary roles. Inspection grounds the state in visual evidence by resolving uncertain objects, relations, or constraints. Execution takes the state and generated program as input, and returns computational results or errors. These observations guide the model's next step, which may involve further inspection, state revision, or program refinement. The feedback-driven process allows the model to alternate between establishing the problem and solving it, rather than follow a fixed inspection–execution sequence. Figure 1 illustrates both roles. Inspection corrects a mis-read coordinate in (a), while execution uses an explicit state to find the shortest path in (b).

Experiments on four visual reasoning benchmarks show that Vis2State achieves state-of-the-art accuracy, improving over Direct CoT by 8.1–15.5 percentage points. Cross-model evaluation confirms consistent gains, while ablations, error analyses, and fixed-program state interventions support the effectiveness of its state-centered design.

We make three contributions.

  • Explicit states as a reasoning interface. We introduce Vis2State, a training-free agentic framework that abstracts visual puzzles into explicit, revisable problem states, separating the represented problem from its solving procedure.

  • State-centered inspection and execution. We develop an adaptive reasoning process that uses visual inspection to construct and refine states, and generated programs to solve the represented problems, with execution feedback guiding further revision.

  • Strong performance and extensive analysis. Vis2State achieves state-of-the-art accuracy on four benchmarks and consistent gains over Direct CoT baselines. Component ablations, error analyses, and fixed-program state interventions further substantiate the effectiveness of the state-centered design.

References (37)