Manuscript Offprint

arXiv:2610.07982

M3SunAgent: Monocular 3D Spatial Understanding Agent for Metric Depth Estimation and 3D Visual Grounding

Jinsong Zhang, Kejun Wu, Ming Zhu, Renjie Qiao, Chengtao Cai, Zhengguo Li

Jinsong Zhang, Kejun Wu, Senior Member, IEEE, Ming Zhu, Renjie Qiao, Chengtao Cai, Senior Member, IEEE, and Zhengguo Li, Fellow, IEEE

Abstract—Monocular metric depth estimation and 3D visual grounding represent the two complementary cornerstones of monocular 3D spatial understanding (M3Sun), from which the fundamental 3D spatial information required by M3Sun can be acquired. However, these complementary tasks are generally conducted by separate frameworks, which pose challenges of inflexible and unaligned spatial information access for embodied intelligence systems. In this paper, we propose a unified agent for monocular 3D spatial understanding (M3SunAgent) that leverages a large language model (LLM) as a task planner for spatial visual programming, which flexibly generate structured programs and coordinate tools. For instance-level metric depth estimation task, M3SunAgent invokes an object detector tool to locate the target, estimates depth at selected points with a depth estimation tool, and aggregates these predictions into an instance-level depth estimate. We also construct the M3Sun Instance (M3SI) dataset, a benchmark with 2,910 samples for evaluation. For monocular 3D visual grounding task, M3SunAgent uses a vision-language model (VLM) tool to locate the target and output basic spatial attributes, then combines back-projection tool with a dimension-lifting tool to predict its 3D bounding box. Experimental results demonstrate the superior performance of M3SunAgent. Specifically, in evaluations of instance-level monocular metric depth estimation, M3SunAgent achieves the best performance among all compared models, 52.61% predicted instances are distributed below depth error 0.25 ( δ<0.25\delta_{<0.25}). In evaluations of monocular 3D visual grounding, M3SunAgent demonstrates overall competitive performance than vision and VLM models, reaching a 3D mean intersection over union (mIoU) of 41.73% and exceeding the state-of-the-art MonoVLM model by 3.62%.

Index Terms—Monocular 3D spatial understanding, metric depth estimation, monocular 3D visual grounding, large language models, vision-language models.

I. INTRODUCTION

MONOCULAR 3D spatial understanding (M3Sun) aims to understand the spatial relationships in an image, involving recognizing objects, and estimating their distances, 3D locations, physical extents, and orientations. The precise spatial properties of individual objects provided by M3Sun plays a vital role in embodied intelligence, teleoperation, and autonomous driving. For example, when a robot is instructed to “pick up the pen on the table”, it needs to locate the referred pen in the input image and estimate the distance to guide its motion planning [1]. In autonomous driving, an instruction such as “Avoid the car ahead on the right” requires the system to identify the referred vehicle and estimate its 3D position, dimensions, and heading. Such scenarios require systems to locate objects described in natural language and infer their spatial properties, motivating continued advances in M3Sun.

Instance-level monocular metric depth estimation and monocular 3D visual grounding represent the two cornerstones of M3Sun. These tasks offer complementary 3D spatial information, e.g., instance-level depth and 3D bounding box. The former estimates the metric depth of an instance in physical units, while the latter identifies the referred object and recovers its 3D structure, including its position, dimensions, and orientation [2]. Both types of spatial information are important for understanding objects from a single image. Metric depth places object distance on a physical scale, enabling quantitative distance judgments. Accurate metric depth estimation can also provide additional cues for spatial reasoning. 3D structure characterizes the object's location and spatial extent. When accurate 3D structures are provided as auxiliary cues, they can improve reasoning about object arrangement and spatial relationships [3]. Both tasks require systems to ground language descriptions in images and infer quantitative spatial properties by combining visual evidence with semantic cues. The common demand to identify objects and produce quantitative spatial estimates motivates studying these two tasks together.

Recent research in M3Sun has explored various approaches to improve the accuracy of estimated spatial properties. Training on diverse scenes and modeling camera parameters have improved metric distance estimation [4]. Beyond scale and camera modeling, planar geometry and scene semantics provide additional cues for monocular depth estimation [5], [6]. These developments provide a basis for estimating the distance to a specified object after its location has been identified in the image. Improving estimates of the target's 3D location and extent requires better alignment between language descriptions and image geometry. Spatial descriptions can provide cues for predicting the target's 3D structure [7]. Target localization is also fundamental to this task. Accurately identifying the referred object in the image helps focus geometric estimation on that object and reduce the influence of irrelevant scene elements [8]. Together, these advances establish a strong basis for recovering object-level spatial information from a single RGB image.

Estimating the distance to a referred object requires locating the target and extracting depth measurements from

Jinsong Zhang, Kejun Wu, and Ming Zhu are with the School of Electronic Information and Communications, Huazhong University of Science and Technology, Wuhan 430074, China.

Renjie Qiao and Chengtao Cai are with College of Intelligent Systems Science and Engineering, Harbin Engineering University, Harbin 150001, China.

Zhengguo Li is with Institute of Advanced Intelligence and Computation, Agency for Science, Technology and Research (A*STAR), Singapore.

This work was supported by the National Natural Science Foundation of China under Grant 62501246.

the corresponding instance. However, many monocular depth estimators predict depth across the entire image [4], [9]. Such scene-level predictions do not identify the referred object or directly provide its instance-level depth. In monocular 3D visual grounding, specialized architectures have achieved strong performance [7]. However, models designed for this specific task may lack the flexibility to handle other spatial queries. Advances in large language models (LLMs) and vision-language models (VLMs) have enabled their application to a wider range of visual tasks [10]. These developments have motivated attempts to improve the flexibility of visual models for spatial understanding. With spatial training, VLMs can reason about object positions, orientations, and 3D relationships [11]. However, achieving such performance may require substantial 3D training data, computational resources, and multi-stage training procedures [12]. Moreover, VLMs may still face challenges in producing accurate metric distance estimates due to the difficulty of grounding visual observations into physical scales [13].

Meanwhile, advances in LLM-based agents provide a potential solution to these limitations. In an agent architecture, the LLM serves as a central cognitive planner that performs reasoning and coordinates tool execution. Specialized models and computational tools execute specific operations and pass intermediate results between steps [14]. The agent then integrates their outputs to generate the final response. This division of labor allows the planning LLM to be applied without additional training, reducing the related cost. It also allows the agent to coordinate different expert models within a shared framework and support multiple tasks. Additional models and tools can be incorporated to extend the range of spatial queries that the agent can handle [15]. Furthermore, quantitative outputs from specialized components can provide the LLM with more reliable evidence for generating the final response. These capabilities have contributed to the growing use of agent-based methods for 3D spatial understanding [16]. For these two tasks, a unified agent should retain intermediate measurements of the queried object and combine them to produce the required spatial output.

To address the need for a unified agent in M3Sun, we propose M3SunAgent, a monocular spatial understanding agent that converts a natural language query into an executable program. The LLM generates programs by identifying the requested task and arranging the required operations in the proper order. A program interpreter then executes these operations through registered visual tools and geometric computations while transferring intermediate results between operations. For instance-level metric depth estimation, the agent localizes the referred object and estimates its depth at selected image points. It aggregates these predictions into an instance-level metric distance estimate. For monocular 3D visual grounding, a VLM predicts the target's basic spatial attributes. Back-projection and a specialized 2D-to-3D lifting model use these predictions to recover the 3D geometry required to construct its 3D bounding box. Both pipelines share the same planning and execution framework. Our main contributions are summarized as follows:

• We propose M3SunAgent, a monocular spatial understanding agent that flexibly supports instance-level metric depth estimation and 3D visual grounding. M3SunAgent leverages spatial visual programming to understand diverse natural-language queries by a LLM task planner, converting complex queries into executable programs. These programs coordinate distinct models and operations, allowing them to collaboratively execute for spatial understanding.

• For metric depth estimation, we use focal-length normalization to reduce the effects of intrinsics, together with multi-point sampling and outlier filtering to improve robustness. For monocular 3D visual grounding, we use a VLM for target localization and basic spatial attribute prediction, explicit back-projection for camera adaptation, and a specialized lifting model for accurate dimensions and yaw estimation.

• We construct the M3Sun Instance (M3SI) dataset, a benchmark with 2,910 samples for instance-level metric depth estimation. We evaluate M3SunAgent on M3SI for this task and on Mono3DRefer for monocular 3D visual grounding. Across these evaluations, the agent outperforms the spatial VLM baselines and achieves competitive performance to task-specific vision methods.

References (47)

  • Spatialvlm: Endowing vision-language models with spatial reasoning capabilities
  • Mono3dvg: 3d visual grounding in monocular images
  • Monosr: Open-vocabulary spatial reasoning on monocular images
  • Metric3d v2: A versatile monocular geometric foundation model for zero-shot metric depth and surface normal estimation
  • Plane2Depth: Hierarchical adaptive plane guidance for monocular depth estimation
  • Scaledepth: Decomposing metric depth estimation into semantic-aware scale prediction and adaptive relative depth estimation
  • Mono3dvg-ensd: Enhanced spatial-aware and dimension-decoupled text encoding for monocular 3d visual grounding
  • Monovlm: Monocular 3d visual grounding with vision language models
  • Monodiffusion: Self-supervised monocular depth estimation using diffusion model
  • Corrupted bitstream semantic understanding by adaptive-modal large language models
  • Spatialllm: A compound 3d-informed design towards spatially-intelligent large multimodal models
  • Robospatial: Teaching spatial understanding to 2d and 3d vision-language models for robotics
  • Consistent yet wrong: Evidence insensitivity in spatial vision-language models
  • Spacetools: Tool-augmented spatial reasoning via double interactive rl
  • Hugginggpt: Solving ai tasks with chatgpt and its friends in hugging face
  • Visual programming: Compositional visual reasoning without training
  • Iebins: Iterative elastic bins for monocular depth estimation and completion
  • Fs-depth: Focal-and-scale depth estimation from a single image in unseen indoor scene
  • Depth pro: Sharp monocular metric depth in less than a second
  • Self-supervised monocular depth estimation for all-day images based on dual-axis transformer
  • Task-aware monocular depth estimation for 3d object detection
  • Did-m3d: Decoupling instance depth for monocular 3d object detection
  • Depthlm: Metric depth from vision language models
  • Cibic: Pixel-free foundation model for robust corrupted image bitstream captioning
  • A masked reference token supervision-based iterative visual-language framework for robust visual grounding
  • Scanrefer: 3d object localization in rgb-d scans using natural language
  • Pseudo-ev: Enhancing 3d visual grounding with pseudo embodied viewpoint
  • Dual enhancement on 3d vision-language perception for monocular 3d visual grounding
  • Grounded 3d-aware spatial vision-language modeling
  • Contextual human object interaction understanding from pre-trained large language model
  • Visual agentic ai for spatial reasoning with a dynamic api
  • Analysis, Design and Applications, ser
  • Grounding dino: Marrying dino with grounded pre-training for open-set object detection
  • Block-wise focal stack image representation for end-to-end applications
  • Qwen3-VL Technical Report
  • Wilddet3d: Scaling promptable 3d detection in the wild
  • A multi-view stereo benchmark with high-resolution images and multi-camera videos
  • Are we ready for autonomous driving? the kitti vision benchmark suite
  • Pixtral 12b (opens arXiv in a new tab)
  • InternVL3: Exploring Advanced Training and Test-Time Recipes for Open-Source Multimodal Models
  • InternVL3.5: Advancing Open-Source Multimodal Models in Versatility, Reasoning, and Efficiency
  • Qwen2.5-VL Technical Report
  • Molmo2: Open weights and data for vision-language models with video understanding and grounding
  • Visual instruction tuning
  • Omnispatial: Towards comprehensive spatial reasoning benchmark for vision language models
  • Unlocking dense metric depth estimation in vlms (opens arXiv in a new tab)
  • Mimo-vl technical report (opens arXiv in a new tab)