Evaluating Multimodal Models in Closed-Loop Spatial Control Tasks
This article breaks down how closed-loop spatial control evaluation works for multimodal models, covering task design, the discretized action space, termination criteria, and the four metrics needed to interpret results. It also analyzes common failure modes, offers engineering recommendations for production use, and explains why evaluation scale and cost must be reported alongside success rate.
1. Why Closed-Loop Spatial Control Evaluation Matters
Multimodal foundation models are usually evaluated on single-output tasks such as question answering, image-text understanding, and long-document summarization. These benchmarks share one trait: the model produces one answer and the task ends. Real enterprise applications, however, are rarely a single exchange. They are continuous loops of perceive, decide, act, and perceive again—for example, pose correction in industrial inspection, viewpoint alignment before a robot grasp, or object registration in augmented reality. Measuring whether a model is usable in these settings requires closed-loop evaluation.
The core idea of closed-loop spatial control evaluation is to place the model inside an environment with feedback. The model does not see full 3D ground truth; it sees 2D projected observations. It does not output natural language descriptions; it outputs discrete actions. After the environment executes an action, it returns a new observation, and the model keeps deciding until a termination condition is met or the step budget runs out. This setup tests three capabilities at once: visual understanding, spatial reasoning, and policy correction under uncertainty.
2. Task Design: Turning 3D Pose Alignment into a Measurable Problem
A typical closed-loop spatial control task can be constructed as follows: given a target 2D observation and the current object state with a live projected observation, the model must repeatedly rotate the object until the current projection gradually approaches the target projection.
The action space is discretized to balance expressiveness and search cost:
- Rotation axis: 3 (three orthogonal axes)
- Direction: 2 (positive and negative)
- Step size: 4 levels (1°, 5°, 10°, 30°)
This yields 3 × 2 × 4 = 24 candidate actions. The multiple step sizes are essential: small steps handle fine adjustment near the target, while large steps quickly close the overall pose gap. With only a single step size, the model either converges very slowly or repeatedly overshoots near the target.
Termination is determined by projection overlap (IoU, intersection over union), with a threshold of 0.90: the episode succeeds once the IoU between the current and target projections reaches or exceeds 0.90. Compared with ground-truth-based criteria such as “angular error below a given value,” IoU relies only on the 2D observations available to the model. It is closer to real deployment conditions and avoids evaluation leakage.
Illustrative pseudocode for the evaluation loop:
def run_episode(model, target_obs, env, max_steps=40, iou_threshold=0.90):obs = env.reset()history = []for step in range(max_steps):action = model.decide(target_obs, obs, history) # choose from 24 discrete actionsif action is None:breakobs, iou = env.step(action)history.append((action, iou))if iou >= iou_threshold:return {"success": True, "steps": step + 1, "final_iou": iou}return {"success": False, "steps": max_steps, "final_iou": iou}
Evaluation scale must be stated explicitly. A sampled trial on 10 tasks and a full leaderboard over a hundred tasks support conclusions of very different strength: the former suits quick regression checks and trend observation, while only the latter carries statistical weight for ranking. Confusing the two is the most common mistake in interpreting evaluations.
3. Reading the Metrics: Four Numbers Form a Complete Picture
Success rate alone is not enough for closed-loop control evaluation. At least four metrics should be recorded together:
- Success rate: the proportion of tasks that reach the IoU threshold, reflecting policy reliability.
- Mean final IoU: how close failed tasks came, so that “just short” is not conflated with “completely off.”
- Mean steps: convergence efficiency. At equal success rates, fewer steps mean a shorter interaction chain and lower latency.
- Cost per task: including model invocation cost is what makes it possible to answer whether deployment is worthwhile.
In a 10-task trial, multimodal model A succeeded on 4 tasks, with a mean final IoU of 0.754, 23.90 steps on average, and a cost of about 1.17 cost units per task. General-purpose reasoning model B also succeeded on 4 tasks with a mean final IoU of 0.753, but averaged 30.80 steps and about 2.22 cost units per task. The two perform similarly, yet A costs roughly 47% less and uses about 20% fewer steps. A higher-tier model C from the same series succeeded on 8 tasks, with a mean final IoU of 0.897 and about 1.94 cost units per task; another model D from the same series succeeded on 5 tasks with a mean final IoU of 0.737.
These numbers show a clear trade-off: the low-cost tier balances success rate and efficiency, while the higher-tier model trades higher cost for a markedly higher success rate and better convergence quality. In engineering selection, the question is not “which is strongest” but “under the required minimum success rate for the task at hand, which delivers the best return per unit cost.”
4. Failure Mode Analysis: Fine-Grained Convergence Is the Main Bottleneck
A per-task breakdown shows sharp divergence: some tasks reach a final IoU above 0.94, while others stall between 0.40 and 0.52. Failures fall into three categories:
- Insufficient fine-grained convergence: the model is already close to the target pose but cannot complete the last few degrees of adjustment, oscillating in the 0.7–0.85 range for a long time. This usually stems from a flawed step-size policy—large steps are still chosen when small ones are needed.
- Overly long output gets truncated: the model generates verbose reasoning before deciding, exceeds the output limit, and the missing action causes that step to idle.
- Mid-episode retries with inconsistent state: the environment has executed an action but the model fails to receive the feedback correctly, or confuses historical observations, leading it to repeat the same action.
Each category can be addressed respectively with action-space constraints plus a step-size annealing strategy, output length limits with structured action output, and explicit injection of a historical state summary.
5. Engineering Recommendations
To reuse this kind of closed-loop capability in enterprise applications, focus on four points. First, keep the evaluation set in the same distribution as the real scenario, covering object categories, initial poses, and observation noise. Second, treat cost as a first-class metric wired into monitoring and alerting, and use a logging service to retain each step’s action and IoU trajectory for regression triage. Third, adopt a tiered invocation strategy: start with the low-cost tier for quick trial and error, then switch to the higher tier when steps or IoU plateau, balancing cost and success rate. Fourth, constrain output with a structured format that allows only an action ID, so natural-language reasoning does not consume the output budget.
Baidu AI Cloud provides general capabilities in model serving and engineering support. Developers can use a container platform to host the evaluation environment, object storage to archive observation data, and monitoring and alerting to track cost and success-rate fluctuations, turning a one-off leaderboard trial into a continuously iterated evaluation pipeline.
