SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.11409 · ICLR · 2025

Visual Planning: Let's Think Only with Images

Ivan Vulić, Xingchen Wan, Yi Xu, Chengzu Li, Han Zhou, Anna Korhonen, Caiqi Zhang

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2505.11409.json · badge: /api/ran/2505.11409.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
yix8/VisualPlanning canonical (classifier label)
classifier basis: classifier_2025
4 ran · 1 no recorded run
FunctionStatusWhere it lives
action_reward_func Ran
ran; our contract draft was wrong, not the code
yix8/VisualPlanning/train_rl_frozen.py
code served (permissive licence) · get_code("5e8624e67339cc75")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import logging

torch.manual_seed(0)
logging.basicConfig(level=logging.INFO)

# Mock action_parser class
class MockActionParser:
    def parse_action_in_ids(self, prompts, completions, level, input_state, target_pos, display):
        # Returns action info with action tuple and predicted coordinate
        return {
            'action': ('move', 'valid'),
            'pred_coord': [1, 1]
        }

# Mock display object (can be None or a simple object)
class MockDisplay:
    pass

# Build arguments
prompts = torch.tensor([[1, 2, 3, 4], [5, 6, 7, 8]], dtype=torch.long)  # batch_size=2, seq_len=4
completions = torch.tensor([[10, 11, 12, 13], [14, 15, 16, 17]], dtype=torch.long)  # batch_size=2, seq_len=4

action_parser = MockActionParser()
display = MockDisplay()
num_generations = 2

# Construct meta information for each sample
meta = [
    {
        'level': 5,
        'distance_map': {'0': 10, '1': 9, '6': 8, '7': 7},
        'target_pos': 7
    },
    {
        'level': 5,
        'distance_map': {'0': 12, '1': 11, '6': 10, '7': 9},
        'target_pos': 7
    }
]

input_state = [0, 0]  # Starting positions for each sample

ARGS = {
    'prompts': prompts,
    'completions': completions,
    'action_parser': action_parser,
    'display': display,
    'num_generations': num_generations,
    'meta': meta,
    'input_state': input_state
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
action_reward_func Ran
ran; our contract draft was wrong, not the code
yix8/VisualPlanning/train_rl_mini.py
code served (permissive licence) · get_code("85cea4702c2b11ca")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal action parser that implements parse_mini_action_in_ids
class ActionParser:
    def parse_mini_action_in_ids(self, prompts, completions, start_info, meta, display):
        # Return a dict with action, pred_coord, and carrying
        return {
            'action': ('move', 'valid'),  # (direction, validity)
            'pred_coord': (start_info[0][0] + 1, start_info[0][1]),  # Move one step
            'carrying': start_info[1]
        }

# Create distance maps
distance_map_to_printer = {
    "(0, 0)": {"(0, 0)": 0, "(1, 0)": 1, "(2, 0)": 2},
    "(1, 0)": {"(0, 0)": 1, "(1, 0)": 0, "(2, 0)": 1},
}

distance_map_to_table = {
    "(2, 0)": {"(0, 0)": 2, "(1, 0)": 1, "(2, 0)": 0},
    "(2, 1)": {"(0, 0)": 3, "(1, 0)": 2, "(2, 0)": 1},
}

# Create metadata for each sample
meta_0 = {
    'level': 1,
    'best_paths': [((0, 0), (2, 0))],
    'printer_neighbors': [[0, 0]],
    'table_neighbors': [[2, 0]],
    'distance_map_to_printer': distance_map_to_printer,
    'distance_map_to_table': distance_map_to_table,
}

meta_1 = {
    'level': 1,
    'best_paths': [((1, 0), (2, 1))],
    'printer_neighbors': [[1, 0]],
    'table_neighbors': [[2, 1]],
    'distance_map_to_printer': distance_map_to_printer,
    'distance_map_to_table': distance_map_to_table,
}

# Create prompts and completions tensors
prompts = torch.tensor([[1, 2, 3, 4], [5, 6, 7, 8]], dtype=torch.long)
completions = torch.tensor([[100, 200, 300, 400], [500, 600, 700, 800]], dtype=torch.long)

# Create input states: (coord, carrying)
input_state = [
    ([0, 0], False),  # At (0,0), not carrying
    ([1, 0], False),  # At (1,0), not carrying
]

ARGS = {
    'prompts': prompts,
    'completions': completions,
    'action_parser': ActionParser(),
    'display': None,
    'num_generations': 2,
    'meta': [meta_0, meta_1],
    'input_state': input_state,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
collate_fn Ran
ran, honoured the contract we drafted
yix8/VisualPlanning/train_rl_frozen.py
code served (permissive licence) · get_code("f55c31d782e48ffb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# The collate_fn function takes a batch parameter and returns it as-is
# A batch is typically a list of samples from a dataset
# Each sample can be a tuple of (input, target) or just a single item

# Create a simple batch with a few samples
sample1 = (torch.randn(4, 3), torch.tensor(0))
sample2 = (torch.randn(4, 3), torch.tensor(1))

batch = [sample1, sample2]

ARGS = {
    "batch": batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
int_reward_func Ran
ran, honoured the contract we drafted
yix8/VisualPlanning/train_rl_frozen.py
code served (permissive licence) · get_code("d83bb7c4309631d8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# The function takes 'completions' as the first positional argument
# and **kwargs for any additional keyword arguments.
# Looking at the function body, it simply returns a list of 1.0 values
# with length equal to len(completions).
# So 'completions' should be a sequence/list.

completions = [
    "completion_1",
    "completion_2"
]

ARGS = {
    "completions": completions
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
action_reward_func Not yet run
unverified (harvested, no recorded run)
yix8/VisualPlanning/train_rl_maze.py
code served (permissive licence) · get_code("dd3480b42b026abb")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
collate_fn 6 other papers
5 dated earlier, 1 later
2107.00860 (2021-07)
Rapid Neural Architecture Search by Learning to Generate Graphs from Datasets
2304.03284 (2023-04)
SegGPT: Segmenting Everything In Context
2304.12306 (2023-04)
Segment Anything in Medical Images
and 3 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent advancements in Large Language Models (LLMs) and their multimodal extensions (MLLMs) have substantially enhanced machine reasoning across diverse tasks. However, these models predominantly rely on pure text as the medium for both expressing and structuring reasoning, even when visual information is present. In this work, we argue that language may not always be the most natural or effective modality for reasoning, particularly in tasks involving spatial and geometrical information. Motivated by this, we propose a new paradigm, Visual Planning, which enables planning through purely visual representations for these "vision-first" tasks, as a supplementary channel to language-based reasoning. In this paradigm, planning is executed via sequences of images that encode step-by-step inference in the visual domain, akin to how humans sketch or visualize future actions. We introduce a novel reinforcement learning framework, Visual Planning via Reinforcement Learning (VPRL), empowered by GRPO for post-training large vision models, leading to substantial improvements in planning in a selection of representative visual navigation tasks, FROZENLAKE, MAZE, and MINIBEHAVIOR. Our visual planning paradigm outperforms all other planning variants that conduct reasoning in the text-only space. Our results establish Visual Planning as a viable and promising supplement to language-based reasoning, opening new avenues for tasks that benefit from intuitive, image-based inference. Code is available at: https://github.com/yix8/VisualPlanning.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2505.11409")
get_code_for_paper("2505.11409")
have("2505.11409")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2505.11409.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2505.11409.svg)](https://syntology.ai/paper/2505.11409)

Connect an agent — have() is free.