Scalable Object Relation Encoding for Better 3D Spatial Reasoning in Large Language Models

Shengli Zhou, Minghang Zheng, Feng Zheng, Yang Liu
3/25/2026
2 citations
cs.CVcs.AIcs.LG

Official code: oceanflowlab/QuatRoPE (25 stars, Python, GPL-3.0, last commit 2026-05-28). 1 more implementation below.

Abstract

Spatial reasoning focuses on locating target objects based on spatial relations in 3D scenes, which plays a crucial role in developing intelligent embodied agents. Due to the limited availability of 3D scene-language paired data, it is challenging to train models with strong reasoning ability from scratch.

Show full abstract

Previous approaches have attempted to inject 3D scene representations into the input space of Large Language Models (LLMs) and leverage the pretrained comprehension and reasoning abilities for spatial reasoning. However, models encoding absolute positions struggle to extract spatial relations from prematurely fused features, while methods explicitly encoding all spatial relations (which is quadratic in the number of objects) as input tokens suffer from poor scalability. To address these limitations, we propose QuatRoPE, a novel positional embedding method with an input length that is linear to the number of objects, and explicitly calculates pairwise spatial relations through the dot product in attention layers. QuatRoPE's holistic vector encoding of 3D coordinates guarantees a high degree of spatial consistency, maintaining fidelity to the scene's geometric integrity. Additionally, we introduce the Isolated Gated RoPE Extension (IGRE), which effectively limits QuatRoPE's influence to object-related tokens, thereby minimizing interference with the LLM's existing positional embeddings and maintaining the LLM's original capabilities. Extensive experiments demonstrate the effectiveness of our approaches. The code and data are available at https://github.com/oceanflowlab/QuatRoPE.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
oceanflowlab/QuatRoPEOfficial25PythonGPL-3.02026-05-28
PeterZs/QuatRoPECommunity0–GPL-3.02026-03-17
GPL-3.0

[CVPR 2026] Scalable Object Relation Encoding for Better 3D Spatial Reasoning in Large Language Models

252Python, ShellMar 23, 20266 months agoGPL-3.0
3d-scenecvpr2026large-language-modelspositional-encodingpytorch-implementation+1 more
PeterZs/QuatRoPECommunity71%
GPL-3.0

The official implementation for CVPR 2026 paper Scalable Object Relation Encoding for Better 3D Spatial Reasoning in Large Language Models

00Mar 18, 20268 months agoGPL-3.0

Similar Papers

Cite this paper

@article{zhou2026scalable,
  title  = {Scalable Object Relation Encoding for Better 3D Spatial Reasoning in Large Language Models},
  author = {Shengli Zhou and Minghang Zheng and Feng Zheng and Yang Liu},
  year   = {2026},
  eprint = {2603.24721},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.24721v1},
  journal = {CVPR 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.24721.svg)](https://codeofpaper.com/paper/2603.24721)

Discussion