Abstract
Vision-Language Models (VLMs) recognize what appears in a video far more reliably than they can measure it: metric distance, object size, and object identity across frames remain weak. We present Geometric Code, a perception-to-geometry pipeline that computes explicit spatial structure from video and supplies it to the VLM as context to augment reasoning. A perception layer segments and classifies objects and recovers depth, camera pose, and intrinsics from monocular RGB video. A deterministic geometric engine then back-projects, merges, and cleans these outputs into a spatial code: per-object positions, dimensions, counts, inter-object distances, appApperance Order, and room geometry. The code is serialized into the VLM's prompt, either alongside the video or replacing it entirely; no component is trained or fine-tuned. On VSI-Bench, augmenting 2B and 4B open models with the spatial code improves average accuracy by +4.1 points over a frames-only baseline, with the largest gains on numeric estimation tasks such as Absolute Distance (+24.1 points). The results suggest that explicitly computed geometry, delivered through the language channel, recovers spatial competence that small VLMs cannot extract from pixels alone.