Source-linked AI summary

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

arXiv:2610.07982v1cs.CV

TL;DR

M3SunAgent addresses the separation between monocular metric-depth estimation and 3D visual grounding with an LLM-planned agent that coordinates specialized models and geometric tools. It reports the highest accuracy among compared models at all four instance-depth error thresholds, including 23.71% at the strict 10% threshold versus 13.23% for Molmo2-8B.

  • Problem

    Monocular metric-depth estimation and 3D visual grounding are commonly handled by separate frameworks, while scene-level depth and spatial VLMs have limitations for referred-object metric distance.

    Source: §I · p. 2
  • Method

    M3SunAgent uses an LLM to generate executable programs that coordinate specialized visual models and geometric operations for instance-depth estimation and 3D grounding.

    Source: §I · p. 2
  • Results

    23.71% at the strict 10% threshold for M3SunAgent, versus 13.23% for Molmo2-8B; M3SunAgent achieves the highest accuracy at all four thresholds.

    Source: 1) Quantitative Evaluation · p. 10
  • Takeaways & Limitations

    The shared framework connects language-guided target identification with quantitative spatial estimation across both tasks.

    Source: §V · p. 12

Abstract

from arXiv · show

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% of predicted instances are distributed below depth error 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%.

I. INTRODUCTION

M3Sun needs both physical distances and object-level 3D structure, yet existing depth and grounding approaches are often task-specific or do not directly yield a referred object’s metric distance. M3SunAgent uses one LLM-planned tool framework for both tasks and introduces a 2,910-sample instance-depth benchmark.

Motivation

  • Instance-level depth and 3D grounding provide complementary spatial information: physical distance on one hand, and object position, dimensions, and orientation on the other.Both require linking a language description to an image and estimating quantitative spatial properties.Source: §I · p. 1

Research gap

  • Scene-level depth maps do not directly provide the metric distance of a language-referred object, while specialized grounding models may lack flexibility for other spatial queries.Spatial VLMs may also require substantial 3D training data and computation, and can struggle to estimate metric distance.Source: §I · p. 2

Approach

  • M3SunAgent converts natural-language queries into executable programs that coordinate visual tools and geometric operations for both spatial tasks.For depth, it localizes the target and aggregates selected-point estimates; for grounding, it combines VLM attributes with back-projection and 2D-to-3D lifting.Source: §I · p. 2

Evaluation and contributions

  • The paper introduces M3SI, a 2,910-sample benchmark for instance-level metric depth, and reports that M3SunAgent outperforms spatial VLM baselines across evaluations on M3SI and Mono3DRefer.The introduction describes its performance as competitive with task-specific vision methods.Source: §I · p. 2

II. RELATED WORK

Prior monocular depth work provides scene-level geometry or object-related estimates, but does not directly solve language-referred instance distance. Monocular 3D grounding methods recover object structure from images and language, though task-specific designs may limit flexibility.

A. Monocular metric depth estimation

  • Scene-level depth maps do not directly provide the distance to a language-identified object, and a single point estimate may be inadequate for extended or partially occluded targets.A target region can also contain background, motivating reliable target measurements and methods that reduce unreliable samples’ influence.Source: A. Monocular metric depth estimation · p. 2

B. Monocular 3D visual grounding

  • Monocular 3D grounding recovers a referred object’s 3D location and extent from one image and language, but existing specialized methods may lack flexibility for other spatial queries.The cited methods include Mono3DVG, cross-modal interaction, dimension-decoupled text encoding, and VLM-based approaches.Source: B. Monocular 3D visual grounding · p. 3

C. LLM Agents for Spatial Understanding

LLM agents and executable visual programs offer a modular way to plan operations and coordinate specialized tools, but their use for monocular metric depth and 3D grounding remains underexplored. M3SunAgent uses a shared planner and interpreter to execute task-specific programs and pass intermediate results between tools.

C. LLM Agents for Spatial Understanding

  • Prior LLM agents plan subtasks, compose visual operations, or coordinate spatial tools, while their application to monocular metric depth and 3D grounding remains underexplored.M3SunAgent addresses this gap with a unified framework coordinating visual models and geometric tools.Source: C. LLM Agents for Spatial Understanding · p. 3

A. Overview of M3SunAgent

  • A single RGB image and natural-language query feed a planner that selects depth estimation or 3D grounding, then passes the resulting spatial estimate to the LLM for response formulation.Intermediate results remain associated with the same referred object across operations.Source: A. Overview of M3SunAgent · p. 3

B. Spatial Visual Programming

  • The LLM generates a DSL program from the query, and an interpreter executes its operators through registered visual tools and geometric computations.The LLM is called again to combine the computed distance or 3D box with the query; separating operators from implementations allows tools to be added or replaced.Source: B. Spatial Visual Programming · pp. 3–5
  • The two workflows coordinate different operators: depth uses LOCATE, DEPTH, and AGGREGATE, while grounding uses GROUND, BACKPROJECT, LIFT, and BUILD.The depth workflow aggregates point predictions into an instance-level distance; the grounding workflow combines a projected center, depth, size, and yaw into a 3D box.Source: Figure 1 · p. 4, B. Spatial Visual Programming · p. 4, Figure 2 · p. 5

C. Instance-Level Metric Depth Estimation Pipeline

The instance-depth pipeline localizes a language-referred object, samples and predicts depth at multiple points, and aggregates valid estimates into a target distance. Its sampling and filtering steps address focal-length sensitivity and unreliable measurements from approximate object regions.

LOCATE

  • LOCATE finds the referred instance with an open-vocabulary detector and returns its 2D box to focus subsequent depth sampling on the target.DEPTH then invokes a registered model using the image, target box, and camera intrinsics.Source: C. Instance-Level Metric Depth… · p. 5

DEPTH

  • The DEPTH operator normalizes effective focal length and samples nine target-box points for metric depth prediction, avoiding reliance on a single location.The pattern includes a center, four axial points, and four points near the corners.Source: C. Instance-Level Metric Depth… · p. 5

AGGREGATE

  • AGGREGATE removes non-finite and negative values, skips outlier removal when fewer than four valid depths remain, and returns the median of retained estimates.The filtering addresses background pixels and unreliable samples near boundaries or occluded regions; retained values are constrained by quartile-based filtering.Source: C. Instance-Level Metric Depth… · pp. 5–6

D. Monocular 3D Visual Grounding Pipeline

M3SunAgent plans a four-operation program for 3D visual grounding: it localizes a language-referred target, recovers its 3D center, estimates dimensions and orientation, and builds a 3D box.

D. Monocular 3D Visual Grounding Pipeline

  • The grounding program runs GROUND, BACKPROJECT, LIFT, and BUILD to produce a target 3D bounding box in camera coordinates.The interpreter executes the operations and passes intermediate results between them.Source: D. Monocular 3D Visual Grounding… · p. 6
  • GROUND uses a VLM to predict the target’s 2D box, projected 3D center, and depth, using semantic cues in the description.The description may convey relative position, distance, or relationships with other objects.Source: D. Monocular 3D Visual Grounding… · p. 6
  • BACKPROJECT uses the projected center, depth, and camera intrinsics to recover a 3D center that adapts to different camera configurations.The projected center is the image-plane projection of the target’s 3D center, not necessarily the center of its 2D box.Source: D. Monocular 3D Visual Grounding… · p. 6
  • LIFT estimates dimensions and 3D rotation, while BUILD combines the center, dimensions, and yaw into the final box.The lifting tool uses a specialized 2D-to-3D model; the paper notes it reduces the 3D geometric information that the VLM must predict directly.Source: D. Monocular 3D Visual Grounding… · pp. 6–7

A. Experimental Settings

The experimental settings introduce M3SI for instance-level metric depth estimation and evaluate 3D visual grounding on Mono3DRefer.

1) Datasets:

  • M3SI adapts ETH3D into a 2,910-sample benchmark, using median Euclidean distances converted from sampled axial depths as instance-level ground truth.Its annotation pipeline identifies and describes candidate objects, obtains their boxes, samples depth values within them, and converts axial depth using camera intrinsics.Source: 1) Datasets · p. 7
  • Mono3DRefer has 29,990 training, 5,735 validation, and 5,415 test samples; the training split fine-tunes the target-localization VLM.Source: 1) Datasets · p. 7
  • The M3SI examples show target objects in blue boxes, with descriptions and ground-truth camera distances in meters beneath each image.Source: Figure 4 · p. 7, 1) Datasets · p. 7
  • Mono3DRefer test subsets cover target uniqueness, depth bands of Near, Medium, and Far, and KITTI-defined Easy, Moderate, or Hard localization difficulty.The depth bands are 0–15 m, 15–35 m, and greater than 35 m; difficulty reflects occlusion and truncation.Source: 1) Datasets · p. 7

2) SOTA models for comparison:

The experiments compare M3SunAgent with general-purpose and task-specific models on two tasks, using depth-error measures and 3D-box overlap measures.

2) SOTA models for comparison:

  • Metric depth baselines include general-purpose VLMs, spatially trained VLMs, and DepthVLM, with all models evaluated on the same test dataset.The listed baselines include GPT-5, Pixtral-12B, InternVL, Qwen, Molmo2-8B, LLaVA-1.5-7B, SpaceLLaVA, SpaceQwen, and DepthVLM.Source: 2) SOTA models for comparison · p. 7
  • Grounding baselines span VLM-based methods, including MonoVLM, and computer-vision methods, with results drawn from their original papers.The computer-vision baselines include Mono3DVG, Mono3DVG-TGE, and two-stage methods.Source: 2) SOTA models for comparison · p. 7

3) Evaluation metrics:

  • Depth evaluation reports absolute and relative errors over valid numerical predictions, while δ<0.25 counts samples below 25% relative error and treats invalid predictions as incorrect.Reported errors include MAE, RMSE, MedAE, MRE, and MedRE.Source: 3) Evaluation metrics · p. 8
  • The depth error distribution separates outputs into five mutually exclusive categories, including valid predictions with relative error of at least 50% and invalid outputs.The first four categories cover valid predictions across relative-error ranges.Source: 3) Evaluation metrics · p. 8
  • Grounding evaluation reports mIoU and Acc@0.25 and Acc@0.5 to measure average 3D-box overlap and the share meeting specified IoU thresholds.Higher mIoU indicates greater overall overlap and reflects predicted position, dimensions, and orientation.Source: 3) Evaluation metrics · p. 8

1) Quantitative Evaluation:

M3SunAgent leads the reported instance-level depth error metrics and achieves strong results across strict and moderate error thresholds. The grounding tables cover the Mono3DRefer test set and selected subsets.

2) Qualitative Evaluation:

The real-world qualitative comparison shows M3SunAgent localizing queried objects and predicting distances close to laser measurements, while general-purpose VLM distance estimates are often coarse.

  • The real-world examples use mobile-phone images, EXIF-estimated camera intrinsics, and handheld laser rangefinder distances as ground truth.Source: 2) Qualitative Evaluation · p. 11
  • Green boxes mark detected targets, while red points indicate M3SunAgent's selected depth-sampling locations.Source: 2) Qualitative Evaluation · p. 11
  • M3SunAgent predicts physical distances close to laser measurements; some general-purpose VLM outputs have large errors, vague descriptions, or no valid distance.Source: 2) Qualitative Evaluation · p. 11

C. Comparison with State-of-the-Art Monocular 3D Visual Grounding Methods

M3SunAgent matches or exceeds MonoVLM variants on most major quantitative metrics and remains competitive with Mono3DVG; qualitative comparisons show more accurate 3D bounding boxes than general-purpose VLMs.

1) Quantitative Evaluation:

  • On Unique and Multiple, Acc@0.25 is 67.94% and 71.58%, respectively; Multiple mIoU is 3.24 percentage points above MonoVLM-MiMo.Source: 1) Quantitative Evaluation · p. 12
  • Far and Hard mIoU is 30.53% and 34.83%, respectively, 0.93 and 2.85 percentage points below MonoVLM-MiMo; distant and occluded or truncated targets remain challenging.Source: 1) Quantitative Evaluation · p. 12

2) Qualitative Evaluation:

  • Qualitative examples show general-purpose VLMs make large yaw-angle and 3D-center errors, while M3SunAgent's 3D boxes overlap the ground truth more closely.Source: 2) Qualitative Evaluation · p. 12

1) Quantitative Evaluation:

V. CONCLUSIONS

  • The conclusion frames the shared framework as connecting language-guided target identification with quantitative spatial estimation across both tasks.Source: §V · p. 12
Loading 2610.07982v1…