arXiv:2610.30127cs.CVOct 2026

Manuscript Offprint

arXiv:2610.30127

VoxProg: 3D Spatial Reasoning through Voxel Programming

Zhichao Zhai, Menglei Zhao, Guikun Chen, Zihao Yan, Kanzhi Wu, Wenguan Wang, Jun Xiao

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

Zhichao Zhai 1^{1}, Menglei Zhao 1^{1}, Guikun Chen 1^{1}, Zihao Yan 2^{2}, Kanzhi Wu 2^{2}, Wenguan Wang 1^{1}, Jun Xiao 1,†^{1,\dagger}

1^{1}Zhejiang University

2^{2}vivo Mobile Communication Co., Ltd., Shenzhen, China

Language models’ abilities to interpret tasks and generate programs offer a promising basis for 3D spatial reasoning. Yet following spatial instructions in 3D scenes requires programs to construct geometric references that language leaves implicit. In this work, we introduce VoxProg, which formulates 3D object placement through voxel programming: a language model translates task interpretations into executable programs over local voxel views of scene surfaces. Because these views index surface geometry on regular grids with explicit coordinates and neighborhood relations, an evidence program can isolate task-relevant regions and boundaries directly from scene meshes, and a downstream pose program can measure the resulting geometry to compute a target SE(3)SE(3) pose. Visual and numerical feedback from execution lets the model inspect intermediate selections and candidate placements to iteratively revise its code. To evaluate open-ended placement across functional use, geometric fit, and contextual arrangements, we introduce the 71-task VoxProg-Bench benchmark along with an evaluation suite pairing perceptual Intent Alignment and 3D Physical Validity. Across VoxProg-Bench and external benchmarks, VoxProg consistently outperforms relation-based, keypoint-based, and mesh-based baselines.

Project homepage: voxprog.github.io

1 Introduction

Natural-language spatial instructions often specify goals whose geometric requirements must be inferred from the scene (Song et al., 2025; Chen et al., 2024; Cheng et al., 2024). Placing a bottle inside an open display holder requires identifying the holder's receiving structure and determining how the bottle should be positioned and oriented to fit within it. Similarly, extending a row of cups requires inferring the direction and spacing of the existing arrangement to derive the next placement target. Here, the geometric references that define the goal are themselves outcomes of spatial computation over the 3D scene.

Existing approaches are limited by both the task requirements their interfaces can express and the geometric computations their representations support. Predefined task interfaces couple task coverage to task-specific implementations, limiting generalization to new spatial requirements (Gao et al., 2025; Huang et al., 2023b; Ichter et al., 2023). Geometric representations present a different difficulty: sparse keypoints can leave regions and local surface shapes under-specified (Huang et al., 2025b; Hua et al., 2025; Manuelli et al., 2022; Sundaresan et al., 2023; Fang et al., 2024), while raw meshes require programs to organize irregular surface elements into the regions and references a task needs. Open-ended spatial reasoning therefore requires both programmatic computation that adapts to the instruction and a spatial representation that exposes scene geometry directly to code.

To this end, we formulate voxel programming, in which a language model expresses its understanding of a spatial task as a program that constructs and operates on local voxel views (Fig. 1). By discretizing object surfaces onto regular grids at task-appropriate resolutions, local voxel views expose spatial coordinates and neighborhood relations directly as array operations. Generated programs can index these grids to isolate contact regions, extract boundaries, and measure local extent and orientation, turning a uniform grid representation into task-specific geometric references for pose computation.

VoxProg realizes this formulation through a two-stage programming pipeline grounded by visual anchors and execution feedback. Starting from the instruction and raycast visual anchors, the model first writes an

†^{\dagger}Corresponding author: Jun Xiao.

Figure

Figure 1: 3D spatial reasoning through voxel programming. VoxProg translates natural-language instructions into Python programs that construct task-relevant geometric references from local voxel views and compute 6-DoF object placements. The surrounding scenes illustrate the variety of object shapes, support structures, and spatial arrangements encountered in everyday placement tasks.

evidence program to construct the surface regions required by the task, such as a dish rack's dividers and bottom support rails, and to specify the spatial relations they must satisfy. Conditioned on this constructed evidence, a pose program then queries the selected geometry to compute the moved object's target pose. At both stages, numerical diagnostics and rendered views allow the model to verify intermediate geometry, revise faulty selections, and refine its code before execution.

We evaluate VoxProg on VoxProg-Bench, a new benchmark of 71 open-ended placement tasks where target poses depend on part-level affordances, 3D shape compatibility, and surrounding layouts. Because valid placements must satisfy both semantic intent and physical plausibility, our evaluation suite pairs a perceptual ranking metric, IA Rank Score, with 3D Physical Validity checks for static support and object interpenetration. IA Rank Score measures how consistently a method's rendered result outranks competitors in similarity to the ground-truth arrangement. Across VoxProg-Bench, VoxProg substantially outperforms relation-based, keypoint-based, and mesh-based baselines, achieving its largest margin on geometric tasks where object contours govern fit and clearance. Ablation studies further show that constructing explicit geometric evidence before pose synthesis improves both physical validity and intent alignment over direct mesh programming, while local voxel views further improve intent alignment across all 71 tasks.

Contributions. ① We formulate voxel programming and develop VoxProg, a two-stage system that constructs task-relevant surface geometry via local voxel views to compute 3D object placements. ② We introduce VoxProg-Bench, a benchmark of 71 language-guided 3D placement tasks spanning functional, geometric, and contextual arrangements. ③ We propose a complementary evaluation protocol combining perceptual intent ranking (IA Rank Score) with 3D geometric verification (Physical Validity).

References (48)