arXiv:2610.22356cs.CVOct 2026

Manuscript Offprint

arXiv:2610.22356

DK-VLM: Geometry as Position for Spatial Reasoning in Vision-Language Models

Han Su, Meng Tian, Tianyu Huang, Mingyu Gao, Lennox Wei, Dongxu Li, Jianhua Han, Hang Xu, Xiaohe Wu, Wangmeng Zuo

Han Su 1,2^{1,2}, Meng Tian 2^{2}, Tianyu Huang 3^{3}, Mingyu Gao 1^{1}, Lennox Wei 1^{1}, Dongxu Li 1^{1}, Jianhua Han 2^{2}, Hang Xu 2^{2}, Xiaohe Wu 1^{1}, Wangmeng Zuo 1,∗^{1,*}

1^{1} Harbin Institute of Technology 2^{2} Yinwang Intelligent Technology 3^{3} Huawei

∗^{*} Corresponding author.

Abstract. Vision-language models still struggle to understand 3D spatial relations across views and update spatial judgments as the observer moves. A common approach fuses 3D reconstruction features into visual tokens, but aligning these features with pretrained semantic representations remains challenging under limited spatial supervision. We propose DK-VLM with Dual-Kernel Attention, which computes attention from both a visual token's input position and its geometric position in the scene. A semantic kernel retains the pretrained model's native attention and positional encoding, while a separate geometric kernel uses estimated 3D points and camera poses to directly modulate attention through point displacements and relative view transformations. Then, a learned gate fuses their outputs. Geometry thus enters attention as position rather than as fused reconstruction features. We further introduce Reference-Frame Composition (RC) supervision to train the model to update its reference frame across successive judgments. It provides stepwise turn and heading targets derived from verified single-step annotations. Among the compared methods, DK-VLM-8B achieves the highest average score across six spatial benchmarks and the highest overall scores on VSI-Bench (74.33) and ReVSI-32 (58.28). RC supervision further improves multi-step spatial reasoning, while the full model preserves general video understanding. Project page: https://sumuru789.github.io/DK-VLM-website/.

1 Introduction

Spatial reasoning connects visual understanding to agentic action in the physical world (Chen et al., 2024, Su et al., 2026, Huang et al., 2025, Zhang et al., 2025a, Driess et al., 2023, Huang et al., 2023). Tasks like multi-view question answering, long-video understanding, robot manipulation, and embodied planning require more than recognizing visual content (Yang et al., 2025a, Mangalam et al., 2023). Specifically, a vision-language model (VLM) must also perceive 3D relations across views and, as the observer moves, keep updating the position and heading on which its subsequent spatial judgments depend (Chen et al., 2024, Yang et al., 2025a). Despite strong progress in semantic recognition and language reasoning, VLMs remain unreliable at estimating distance, direction, camera motion, and cross-view correspondence, and weaker still on tasks such as route planning that chain several such judgments (Yang et al., 2025a, Zhang et al., 2026b).

Existing work attempts to enhance spatial reasoning by introducing 3D priors. One common approach fuses features from pretrained 3D reconstruction models with visual representations, incorporating geometry into the content of visual tokens (Fan et al., 2026, Li et al., 2026b).

Figure

Figure 1. Geometry as position in DK-VLM. Left: 2D input positions do not fully capture 3D relations. Right: DK-VLM retains the native positional encoding and introduces scene geometry into attention as position.

However, these geometric features are primarily learned for 3D reconstruction, an objective different from semantic understanding in VLMs. Integrating them therefore requires the model to align two different representation spaces while learning spatial relations. With limited spatial supervision, this additional adaptation may limit the effective use of geometry and interfere with the model's existing semantic representations.

Beyond token content, VLMs already use positional encoding to guide attention. In the Qwen-VL family (Wang et al., 2024, Bai et al., 2025b,a), multi-modal rotary position embedding (mRoPE) encodes sequence order, time, and 2D image grid coordinates, so that attention between two tokens depends on their relative positions in the input. Position thus offers a second interface for geometry: instead of being fused into token content, geometry can define relations between tokens that directly shape attention (Miyato et al., 2024, Li et al., 2025c, Wu et al., 2026, Xiang et al., 2026). However, input positions describe where a token appears in the input rather than where its content lies in the 3D world. As the camera moves, the same 3D surface appears at different image locations across frames, while neighboring 2D patches can lie at very different depths (Figure 1).

Existing geometric attention mechanisms (Miyato et al., 2024, Li et al., 2025c, Wu et al., 2026, Xiang et al., 2026) introduce 3D relations directly into attention by applying geometric transformations to queries, keys, or values. However, replacing a pretrained VLM's native positional encoding with geometric encoding may disrupt the semantic attention patterns learned under the original encoding—patterns that remain useful for spatial understanding. We therefore bring scene geometry into attention through a separate kernel while retaining the native attention and positional encoding.

We introduce DK-VLM, which implements this design through Dual-Kernel Attention: attention is computed from both a visual token's input position and its geometric position in the scene. The semantic kernel keeps the backbone's native attention and mRoPE unchanged. The geometric kernel uses independent projections and computes relations between visual tokens conditioned on patch-level 3D points and frame-level camera poses, so that displacements between scene points and relative transformations between views directly modulate feature comparison and aggregation. A learned gate fuses the two outputs. Geometry thus enters attention as position rather than as reconstruction features fused into token content. The geometric inputs are estimated from images, requiring no ground-truth depth or camera poses at inference.

Dual-Kernel Attention gives the model direct access to point displacements and relative view transformations, but successive spatial judgments require more: earlier movements change the position and heading on which later judgments depend, even when the scene layout remains unchanged. Single-step question answering supervises each judgment within a given reference frame and does not explicitly supervise how that frame changes across steps. We therefore introduce Reference-Frame Composition (RC) supervision, which provides stepwise turn and heading targets along landmark routes and view sequences. These targets are derived by connecting verified single-step relations that share landmarks or views within the same scene (Yang et al., 2025c, Zhang et al., 2025b).

We implement DK-VLM on Qwen2.5-VL-7B and Qwen3-VL-8B (Bai et al., 2025b,a). We evaluate it on seven spatial reasoning benchmarks (Yang et al., 2025a, Zhang et al., 2026b, Yang et al., 2025d, Wang et al., 2025b, Li et al., 2025a, Wang et al., 2025d, Tong et al., 2024) and two general video understanding benchmarks (Fu et al., 2025, Li et al., 2024). Among the compared methods, DK-VLM-8B achieves the highest six-benchmark average score and the highest overall scores on VSI-Bench (74.33) and ReVSI-32 (58.28), with trainable parameters totaling only 3.86% of its backbone's parameter count. RC supervision further improves multi-step spatial reasoning, yielding consistent gains on route-planning and viewpoint-related tasks. Ablations show that DK-VLM benefits more from RC supervision than a Qwen baseline fine-tuned on the same instruction data, supporting the complementarity between geometric relation modeling and stepwise spatial supervision. The full model also preserves general video understanding on VideoMME and MVBench.

Our contributions are:

• Dual-Kernel Attention, which introduces scene geometry as position through a geometric kernel parallel to a pretrained VLM's native attention.

• Reference-Frame Composition supervision, which supervises reference-frame updates using stepwise targets derived from verified single-step relations.

• DK-VLM-8B achieves the highest overall scores among compared methods on VSI-Bench and ReVSI-32 and the highest average in the six-benchmark comparison.

References (67)