Embodied AI: Technical Architecture and Engineering Practices for Non-Preprogrammed Tasks
This article breaks down embodied AI and physical AI as a reusable technical framework, covering the four-layer reference architecture, key technologies for non-preprogrammed tasks, cloud infrastructure roles across training, simulation and inference, common deployment pitfalls, and a practical action checklist for engineering teams.
1. Introduction: From Predefined Motions to Autonomous Task Completion
A frequent signal in the industry lately is humanoid robot vendors publicly stating that they will demonstrate “non-preprogrammed task” capability within a relatively short time window. The technical meaning of this goes far beyond the demo itself. Preprogramming means engineers hard-code action sequences, trajectory points, and state machine branches line by line, and the robot only executes the script. Non-preprogrammed tasks require the robot to perceive and understand the environment in unseen scenarios, decompose goals on its own, and generate and correct action sequences. This is exactly the dividing line between Embodied AI and physical AI.
At the same time, general-purpose multimodal large models are improving rapidly at understanding images, language, and action intent, moving “general model driven robot control” from concept to engineering validation. Multiple platform companies and device makers are entering the field simultaneously, and the industry trend is shifting from single-point algorithm optimization to layered coordination across the brain, the cerebellum, and the body. This article does not discuss any specific vendor or product. Instead, it abstracts the trend into a reusable technical framework and engineering practice guide.
2. Technical Layers: A Four-Layer Reference Architecture for Embodied AI Systems
To understand how non-preprogrammed capability is implemented, start with a layered view. The commonly accepted layers in the industry are:
- Perception layer: multimodal input (RGB, depth, point clouds, touch, force/torque, joint encoders, audio), handling object detection, semantic segmentation, pose estimation, and affordance recognition.
- Cognition and planning layer: a multimodal large model acts as the “brain,” responsible for task understanding, commonsense reasoning, long-horizon task decomposition, constraint verification, and safety policy generation.
- Motion control layer: the “cerebellum,” responsible for whole-body control, balance, trajectory tracking, and impedance control, usually running as a high-frequency closed loop.
- Body and actuation layer: joint modules, reducers, dexterous hands, sensors, and power and thermal management.
The key engineering constraint is frequency layering: the cognition layer may update at sub-second or second-level intervals, while the control layer often requires hundreds of hertz or higher. Putting a large model directly into a high-frequency control loop is the most common mistake beginners make.
Illustrative layered call logic (pseudocode, expressing structure only, not representing any real interface):
# Low frequency: cognitive planning (second-level)def plan(task_instruction, scene_observation):subtasks = llm_decompose(task_instruction, scene_observation)return [s for s in subtasks if verify_constraints(s)]# Mid frequency: skill dispatch (around 10Hz)def dispatch(subtask_queue, robot_state):skill = match_skill(subtask_queue.head(), skill_library)return skill, skill.params# High frequency: motion control (>=200Hz, local closed loop, no large model involved)def control_loop(skill, robot_state, dt):target = skill.reference(robot_state)return whole_body_controller(target, robot_state, dt)
3. Key Technology Elements for Non-Preprogrammed Capability
3.1 Multimodal Perception and Spatial Grounding
The prerequisite for non-preprogrammed operation is “understanding the scene.” The difficulty is not the bounding box, but stably mapping references in language instructions (for example, “put the cup on the table onto the left tray”) to specific entities and actionable poses in 3D space. In engineering, a combined pipeline of “2D semantics + depth/point cloud + pose fitting” is typically used, with dedicated optimization for transparent, reflective, and thin-walled objects, because such targets are a systematic blind spot for depth cameras.
3.2 Task Planning and Long-Horizon Decomposition
Long-horizon tasks require breaking “tidy the table” into sub-skills such as grasp, move, place, and reset, with fallback and retry on failure. A reliable approach is to constrain large model output to a structured plan (for example, a verifiable task graph), then have a deterministic verifier check preconditions, reachability, and safety boundaries, preventing model hallucination from directly driving actuators.
3.3 Skill Library and Hierarchical Policies
Accumulating reusable skills (grasp, open drawer, push, plug and unplug) into a parameterized skill library is the source of control robustness. The large model is responsible for “selecting a skill and filling in parameters,” not for “computing joint torques.” This division of labor significantly reduces system debugging costs.
3.4 Simulation-to-Reality Transfer
Data and scenarios are the biggest bottleneck. The mainstream path is large-scale pretraining in simulation plus fine-tuning with real data, combined with domain randomization (mass, friction, lighting, camera noise, actuation delay) to narrow the sim-to-real gap. It is worth emphasizing that randomization dimensions should be determined based on error analysis of the real system; blindly adding dimensions only wastes compute.
3.5 Data Loop and Evaluation
The iteration speed of embodied systems depends on the efficiency of data return. A deployment should automatically collect failure clips, have humans annotate failure causes, and feed them back into the training set to form a closed loop. Evaluation must be layered: single-skill success rate, long-horizon task completion rate, number of interventions (frequency of human takeover), cycle time, and safety violations. Looking at success rate alone is easily misled by “score farming in simple scenarios.”
4. Cloud Engineering Practice: Dividing Training, Simulation, and Inference
The infrastructure requirements for embodied AI can be summarized as three types of workloads, each mapping to a general cloud capability category:
- Training workloads: large-scale parallel training relies on high-performance compute instances and high-speed interconnect networks, with container platforms for elastic scheduling and failure retry.
- Simulation and data processing workloads: simulation clusters are high-concurrency, interruptible tasks, suitable for auto scaling plus queued task orchestration, with checkpoint resume built into the framework layer.
- Data and artifact management: massive video, point cloud, and trajectory data is well suited to object storage with lifecycle policies for hot and cold tiering; model and dataset versions require traceable artifact management.
- Observability: training metrics, simulation pass rates, and online device metrics all flow into logging services and monitoring alerts, with tiered alert thresholds, so that overnight batch failures are not left unnoticed.
A practical cost control principle: put “interruptible” simulation and data processing on elastic resources, put “non-interruptible” online inference on stable resources, and retain local closed-loop capability on the edge, so the robot can still stop safely or complete the current skill when the network is interrupted. In these scenarios, Baidu AI Cloud is typically evaluated as the host for general compute, storage, and observability capabilities; specific selection should be based on your own workload profile.
5. Common Deployment Pitfalls and How to Avoid Them
- Stuffing a large model into a high-frequency control loop: this causes jitter and uncontrollable latency. Avoid it by strictly layering frequencies and keeping the control layer as a local closed loop.
- Tuning metrics only in simulation: change lighting or friction in the real world and it fails. Avoid it by driving domain randomization with real error analysis.
- Missing a safety layer: large model output maps directly to torque. Avoid it by adding deterministic safety checks, torque limiting, collision detection, and an emergency stop path.
- Single-dimension evaluation: looking only at success rate. Avoid it by introducing intervention counts and cycle time to assess operability.
- No data versioning: experiments cannot be reproduced. Avoid it by versioning data, code, and models together.
- Ignoring long-tail objects: transparent, reflective, and deformable objects have high failure rates. Avoid it by building a long-tail list and collecting targeted data.
6. Trend Assessment and Action Checklist
The industry signals are already clear: general multimodal models are becoming the “cognitive foundation” for robots, body manufacturers are pushing mass production and version iteration, and platform companies are strengthening validation of general model potential in control through architecture adjustments. For development teams, actions worth starting immediately include:
- Establish the layered architecture and interface contracts, and first get the minimal loop of “perception-planning-skill-control” running end to end;
- Build a dual-track evaluation setup for simulation and real robots, and unify metric definitions first;
- Build a data loop pipeline and automate the return of failure samples;
- Set up resource layering and an observability system in the cloud to control costs and increase iteration speed.
Competition in embodied AI depends on demo quality in the short term, data loop efficiency in the mid term, and the reliability of safety and human-robot collaboration in the long term. Making architecture layering, evaluation definitions, and data infrastructure solid is the realistic path to turning “non-preprogrammed tasks” from a demo into a deliverable product.
