VLMs for Embodied AI: A Layered Approach to Planning and Action Execution
Vision-language models can help robots interpret instructions, reason about visual observations, and plan tasks, while dedicated policies and controllers handle physical execution. This article explains the responsibilities of each layer, structured interfaces, replanning and success detection, evaluation metrics, and cloud deployment considerations for practical embodied AI systems.
1. The Starting Point: Robots Need Better Task Understanding
Over the past decade, much of the progress in robot learning has focused on physical skills: grasping, insertion, movement, and obstacle avoidance. These low-level control tasks are relatively mature in controlled environments. In real-world settings, however, the first failure is often not motion accuracy but task understanding.
Consider the instruction: “Move the cup on the table that is getting cold next to the sink.” It requires object recognition, state assessment—what counts as “getting cold”—spatial reasoning about the sink’s location, safety constraints such as avoiding a nearby bottle, and a sequence of actions. Traditional systems use hand-written state machines or task trees to cover such situations. As environments become more complex, the number of rules can grow exponentially, making maintenance difficult.
Vision-language models (VLMs) address this gap by mapping open-ended language and visual observations into structured task representations. In the architecture discussed here, the VLM does not directly generate joint torques or end-effector trajectories. It produces semantic instructions describing what to do next. Separating semantic planning from continuous control is a reliable engineering approach to this problem.
2. Layered Architecture: Separating Decisions from Execution
A practical system typically has three layers:
- Semantic decision layer (VLM): Takes language instructions and multiple visual observations, performs object detection, state estimation, spatial reasoning, and task decomposition, and produces subtasks with preconditions and success criteria. It can also invoke external tools such as search, calculators, maps, and calendars.
- Skill execution layer (policy model or conventional controller): Takes a single-step language instruction and local observations, then generates end-effector poses, gripper commands, or velocity commands. Its closed-loop operation runs on timescales ranging from milliseconds to hundreds of milliseconds.
- Platform support layer: Handles data feedback, model version management, logs, metrics, and staged rollouts.
The main benefits are frequency decoupling and fault isolation. Decision-layer inference typically takes seconds, while execution requires real-time responsiveness. Combining both responsibilities in a single network can slow the control loop and make failures harder to diagnose.
When a robot gets stuck, engineers need to distinguish between an incorrect plan and a grasping policy that failed to converge. That distinction directly affects debugging efficiency.
3. Four Core Capabilities of the Decision Layer
Spatial Understanding and State Estimation
The model needs to infer relative object positions, orientations, movable joints, and occlusion relationships from monocular or stereo images. It must also maintain a lightweight world state.
Rather than asking the VLM to output precise coordinates directly, a more robust approach is to have it describe qualitative relationships, such as “to the left of the plate” or “the handle faces the observer.” The execution layer can then use depth measurements and calibration to convert these relationships into numerical targets.
Long-Horizon Task Planning
An instruction such as “tidy the desk” has an ambiguous goal and no fixed number of steps. The model needs to produce an executable, partially ordered plan and reassess it after each step.
The key design principle is receding-horizon replanning. Instead of generating a complete plan upfront, the planner commits to only one to three steps at a time and uses fresh observations to revise subsequent actions.
Tool Use and External Knowledge
A model’s internal knowledge is not a reliable source for local rules or time-sensitive information. Waste sorting may require consulting local regulations, while operating a device may require checking its manual. These should be tool calls rather than assumptions based on memorized knowledge.
Tool results should be structured before being inserted into the model’s context, reducing the risk that long, unfiltered text will interfere with reasoning.
Progress Assessment and Success Detection
This capability is easy to overlook but has a major effect on usability. The system must be able to answer:
- Has this step finished?
- How much of the overall task is complete?
- Is human takeover necessary?
Without explicit success criteria, a planner may continue executing later steps after an earlier action has failed, creating cascading errors.
4. Interface Contracts: Making the Layers Testable
The stability of a layered system depends on a strict interface. The decision layer should produce structured output rather than free-form text:
{"subtask": "grasp_handle","target": {"object": "cup", "part": "handle", "relation": "right_of_plate"},"preconditions": ["cup_visible", "gripper_empty"],"success_criteria": {"type": "grasp_detected", "confidence_min": 0.8},"max_retries": 2,"on_failure": "replan"}
The following schematic implementation illustrates the decision-layer loop:
def run(task: str, obs, executor, tools, policy):plan = planner.decompose(task, obs) # Semantic decompositionwhile plan and not plan.done():step = plan.current()if not checker(plan, step, obs): # Validate preconditionsplan = planner.replan(task, obs, reason="precondition_failed")continuefor attempt in range(step.max_retries + 1):executor.execute(step, policy) # Delegate to the execution layerobs = perception.refresh()if step.success_criteria.match(obs):plan.advance()breakelse:plan = planner.replan(task, obs, reason=step.on_failure)return plan.summary()
Three design principles matter:
- Make preconditions explicit. Detect blocking conditions before attempting an action.
- Use machine-checkable success criteria. Do not rely on the model’s self-assessment.
- Separate retries from replanning. Treat them as distinct recovery mechanisms to avoid uncontrolled loops.
5. Evaluation: Look Beyond Task Success Rate
A single success rate can hide where failures occur. Evaluation should include at least four categories:
- Task-level completion rate
- Step-level failure attribution: perception, planning, execution, or tools
- Average number of human interventions: how often a person must take over
- Long-horizon consistency: variation across repeated executions of the same instruction
The evaluation set should include unseen objects, lighting changes, paraphrased instructions, and deliberately impossible tasks. Impossible tasks test whether the system can explain that it cannot proceed rather than fabricate a plan.
6. Cloud Deployment and Operations
Embodied systems have a long data-feedback pipeline. General-purpose cloud infrastructure can support it:
- The edge handles real-time inference and control, while message queues asynchronously upload observations and decision logs.
- Object storage holds raw video and annotations used to build training datasets.
- Container platforms host model services and support staged rollouts.
- Logging, monitoring, and alerting track metrics such as step failure rates and shifts in inference latency.
In this context, Baidu AI Cloud provides general-purpose service categories such as object storage, message queues, container platforms, logging, monitoring, and alerting. Specific service choices require an assessment of latency and compliance requirements; availability for the intended deployment location should not be assumed.
The control loop should not depend on a cloud round trip. Cloud resources should be used for training, evaluation, and non-real-time decisions.
7. Common Pitfalls
- Asking the VLM to generate continuous control signals: In this architecture, this does not meet the required precision or control frequency and makes behavior harder to interpret.
- Generating a complete long-horizon plan in one pass: Environmental changes can invalidate the plan. Use receding-horizon replanning instead.
- Relying on model memory for local rules: Retrieve the relevant information through tools.
- Omitting success criteria: Failures can propagate silently into subsequent steps.
- Ignoring the ability to decline impossible tasks: The system should state the blocking reason clearly and request human takeover.
8. Where the Architecture Can Improve
In the near term, the largest gains are likely to come not from a larger model but from strengthening three foundations: world-state maintenance, success detection, and the data-feedback loop.
Medium-term directions include moving spatial reasoning from qualitative relationships toward differentiable geometric constraints, extending tool use from single retrieval calls to multistep retrieval planning, and using execution-layer failure examples to fine-tune the decision layer’s replanning strategy.
With a clean decision–execution interface and sufficiently detailed metrics, model iteration becomes measurable engineering progress rather than a series of tuning results that are difficult to reproduce.
