Teaching Robots to Keep Moving While They Think: A Layered Architecture for Language Planning and Real-Time Control

    This article explains why a language model alone is too slow for real-time robot navigation and how a layered architecture addresses the problem. A high-level planner handles goals, routes, and progress checks, while a low-level action policy handles fast, continuous motion. The article covers how responsibilities are divided between the two layers, when replanning should be triggered, how structured state keeps both layers consistent, how safety fallbacks work, and how to evaluate the system.

    In a lab, a robot can wait for a model to finish a complete reasoning pass before it acts. In the real world, the environment does not pause. A pedestrian may suddenly walk past, a door may close temporarily, and the ground may contain obstacles the model did not observe in advance. If the robot must wait for a language model to reanalyze the scene before every step, the system develops visible pauses and may lose its safety window because its decisions arrive too late.

    This exposes a core tension in robot intelligence. Models that understand and plan are usually highly capable but slow at reasoning. Models that handle continuous motion react quickly but are weak at complex instructions and long-term goals. A more practical approach does not force one model to do everything. Instead, it separates “where to go” from “how to move right now” into two layers that work together.

    1. Why Navigation Cannot Rely on a Language Model Alone

    Large language models suit tasks that are abstract, compositional, and dependent on context. For example, given the instruction “Go from your current position to the meeting area, avoid crowded spaces on the way, and stop near the entrance when you arrive,” a model can:

    • Identify the target location and constraints;
    • Convert the natural language requirements into executable goals;
    • Infer a likely route from the environment description;
    • Judge whether the task is complete;
    • Replan when an exception occurs.

    However, such models are not naturally suited to producing high-frequency motion commands directly. Robot control involves continuous variables such as speed, heading, distance, posture, and the relative position of obstacles. The decision cycle may be only a few hundred milliseconds. If every control step triggers a full language model inference, three problems arise.

    The first is latency. Inference time depends on input length, visual complexity, and task difficulty, so it cannot reliably meet real-time control requirements. The second is a mismatch in control granularity. Language models are good at high-level actions such as “move toward the corridor” or “go around the table,” but they are poorly suited to generating every small turn and speed change. The third is cost and stability. Frequent calls to a complex model raise compute costs and can cause action outputs to fluctuate unnecessarily between consecutive steps.

    Robot navigation therefore needs a layered architecture. A language model handles low-frequency, long-horizon task planning, while a dedicated action policy handles high-frequency, short-horizon body control.

    2. Dividing Responsibilities Between the Planner and the Action Policy

    In this architecture, the system typically includes two core modules.

    1. High-level planner: goals, routes, and judgment

    The planner can be a model with visual understanding and language reasoning. It takes the user’s instruction, an environment summary, historical state, and execution feedback, then outputs relatively abstract decisions, such as:

    • Go to a specific area;
    • Continue forward along the current passage;
    • Turn left at the next intersection;
    • Pause and observe the scene again;
    • The goal has been reached, and the task can end.

    The planner does not need to specify the robot’s wheel speed at every moment or control each joint directly. Its main value lies in establishing causal relationships at the task level and reorganizing the sequence of actions when the environment changes significantly.

    2. Low-level action policy: continuous motion

    The action policy is typically a vision-language-action model trained on robot data, or a dedicated policy network combined with a motion controller. It takes the current view, the robot’s own state, and the local goal from the planner, then quickly outputs actions for a short time horizon.

    For example, suppose the planner’s goal is “move forward along the corridor and keep a certain distance from the right wall.” The action policy must use the camera feed to determine the wall position, obstacle distance, and robot heading. It then continuously produces forward, deceleration, turning, or stopping actions.

    The key to this division is not simply “using two models together.” The key is establishing a clear interface boundary:

    1. User instruction
    2. ↓
    3. High-level planner: interprets the task, splits goals, tracks progress
    4. ↓
    5. Local goals and constraints
    6. ↓
    7. Action policy: observes the environment, predicts short-horizon actions, executes continuously
    8. ↓
    9. Low-level controller and robot actuators
    10. ↓
    11. State feedback, anomaly reports, task progress

    The planner can run at a low frequency, while the action policy loops at a higher frequency. Even when the planner has not updated, the action policy can respond to nearby obstacles within a short time using the latest visual input. This keeps the robot from standing still while it waits for the planner to finish reasoning.

    3. Why Layering Improves Responsiveness

    If every action had to wait for the high-level model to finish reasoning, the robot might receive a new instruction only every few seconds. During that time, people, objects, and lighting in the environment can change. The layered design lets the low-level policy run independently, completing observation and action updates in shorter cycles.

    “Distraction” here does not mean the robot ignores its task. It means the high-level model does not need to attend to every small movement. The planner only needs to step in again when:

    1. The current local goal has been completed;
    2. The original route is blocked by an obstacle;
    3. The environment changes in a way the action policy cannot handle;
    4. The robot makes no meaningful progress for an extended period;
    5. The user issues a new instruction or constraint;
    6. The system detects a safety risk and needs to reassess.

    This event-driven approach is more efficient than calling the high-level model repeatedly at a fixed frequency. Under normal conditions, the action policy executes continuously. Only when the state changes significantly does the planner take over the reasoning task.

    4. The Real Challenge: Keeping the Two Models Consistent

    Splitting the system into two modules does not solve the problem automatically. One of the biggest engineering challenges is semantic misalignment between high-level planning and low-level execution.

    For example, the planner may conclude that the robot has “passed the doorway” while the robot is still standing in front of the door. Or the planner may require the robot to “go around the obstacle,” but the action policy keeps making small local corrections inside a narrow area. To reduce these problems, the system needs a structured state representation rather than relying only on natural language descriptions.

    The state information can include:

    • The current area;
    • The most recently confirmed target location;
    • The current local goal;
    • The expected direction of travel;
    • Whether a dynamic obstacle has been detected;
    • Time elapsed without progress;
    • The time of the most recent planning update;
    • Safe-stop conditions.

    Feedback should also be divided into levels. Routine feedback guides the action policy, such as “obstacle two meters ahead.” A moderate anomaly triggers local replanning, such as “original passage occupied.” A severe anomaly requires an immediate stop, such as “sensor data abnormal” or “obstacle too close ahead.”

    5. Balancing Cost, Success Rate, and Efficiency

    The benefit of a layered architecture cannot be measured by speed alone. Task success rate, the number of model calls, execution stability, and safety also matter.

    Calling the high-level model too often raises costs and can cause the planner to keep changing the route, making the robot switch back and forth between goals. Calling it too rarely may fail to handle environmental changes in time. A more reasonable strategy combines periodic and event-triggered mechanisms:

    • Review the state at fixed time intervals;
    • Trigger planning when the local goal is complete;
    • Trigger planning immediately when a blockage or anomaly is detected;
    • Trigger planning when the robot stays stationary or drifts off route;
    • Switch directly to the safety policy when the risk level exceeds a threshold.

    The planning trigger logic can be abstracted as follows:

    1. if safety risk exceeds threshold:
    2. stop immediately and report
    3. elif current goal is complete:
    4. request the next-stage plan
    5. elif path is blocked or no progress for too long:
    6. request replanning
    7. elif periodic check time is reached:
    8. update the environment summary
    9. else:
    10. let the action policy continue execution

    These thresholds should not be treated as fixed parameters. They should be calibrated