How General-Purpose Cerebellum Foundation Models Work for Humanoid Robot Control

    This article breaks down the technical design of a general-purpose cerebellum foundation model for humanoid robots, covering why whole-body control needs a shared model, why a causal Transformer fits the problem, the three-stage training pipeline from data construction to expert training and parallel DAgger distillation, and the inference optimizations that bring latency down to 0.39 milliseconds. It also summarizes the model's demonstrated capabilities and offers a practical order of steps for reproducing similar results on your own robot.

    1. Background: Why Humanoid Robots Need a General-Purpose Cerebellum

    Humanoid robot control is usually split into two layers. The upper layer handles perception, localization, and task planning. The lower layer handles real-time whole-body motion control, and is often called the “cerebellum.” Its defining constraint is determinism: the control loop must complete one decision within a fixed cycle, and any jitter shows up directly as shaking, instability, or a fall.

    The traditional approach designs a separate controller and reward function for each motion, then switches between them with a state machine. This works when the number of motions is small. But once you need to cover long-tail skills such as walking, grasping, squatting, fighting, and ball sports, engineering cost grows exponentially and skills cannot easily share representations.

    The point of a general-purpose cerebellum foundation model is to cover as many motion skills as possible with one set of parameters, and to turn the acquisition of a new skill from “re-tune everything” into “add data plus fine-tune.”

    2. Architecture Choice: Why a Causal Transformer Fits Whole-Body Control

    Models of this type generally adopt a GPT-style causal Transformer and reformulate whole-body control as continuous sequence prediction. The input is the robot’s own state and action history over the past several frames; the output is joint targets over a future time horizon. The causal mask ensures that the prediction at step t can only depend on information before t, which naturally matches the physical causality of robot control.

    There are three practical reasons for this choice:

    1. Modeling history dependence. Effects such as contact switching and inertia accumulation require context, which a single-frame feedforward network struggles to capture.
    2. Training scalability. The sequence prediction objective can reuse large-scale human motion data without per-skill reward annotation.
    3. Parallelizable inference. One forward pass outputs multiple steps of action, reducing the amortized compute per control cycle.

    It is worth stressing that the 80M parameter scale is a deliberate engineering trade-off: large enough to hold shared multi-skill representations, small enough to fit an edge-side compute budget. Scaling parameters further would quickly see the gains eaten by the latency budget.

    3. Three-Stage Training Pipeline

    Stage 1: Data construction. Public human motion capture datasets are aggregated and supplemented with in-house captures, totaling roughly 20,000 hours of human motion. After unifying everything and retargeting it to the robot’s joint space, this forms a motion corpus of about 2 billion frames. The key engineering points here are consistent skeleton-to-joint mapping and physical feasibility filtering. Samples with mesh penetration, foot sliding, or self-collision must be removed, otherwise the model learns a policy that is “stable but wrong.”

    Stage 2: Motion expert training. In a simulation cluster, keypoint tracking is used as the reward signal, and policy optimization algorithms such as PPO train one expert policy per skill or skill cluster. The reward typically has four terms: tracking error, pose regularization, energy cost, and a termination penalty. Their weights determine the motion style.

    Stage 3: Parallel DAgger distillation. Multiple experts provide action labels simultaneously in parallel environments, and DAgger-style online aggregation compresses their distribution coverage into a single Transformer generalist policy. Compared with offline imitation, DAgger can correct the unseen state distributions that the student policy drifts into on its own. This is the main source of the success rate improvement from the 83% range to the 92% range.

    A schematic training skeleton is shown below (pseudocode, expressing process semantics only):

    1. # Stage 2: expert policy training
    2. for skill in skill_set:
    3. expert[skill] = PPO.train(
    4. env=parallel_env(skill),
    5. reward=keypoint_tracking_reward + pose_reg - energy_cost,
    6. total_frames=N_frames,
    7. )
    8. # Stage 3: parallel DAgger distillation
    9. student = CausalTransformer(num_params=80_400_000)
    10. for iteration in range(K):
    11. traj = rollout(student, parallel_envs) # student acts on its own, exposing distribution shift
    12. labels = [expert[s].act(obs) for s, obs in traj] # experts correct
    13. student.update(obs=traj.obs, target=labels) # supervised aggregation

    4. Real-Time Inference Optimization: From Model to 0.39 Milliseconds

    No matter how accurate a model is, it is useless if it cannot run inside the control cycle. The publicly described optimization path for this class of work compiles the 80M-parameter model into a low-precision graph through an inference engine, then executes it with a C pipeline that uses no dynamic memory allocation and fixed tensor addresses. This brings average inference latency down to 0.39 milliseconds and keeps the control loop stable at 50Hz, roughly a 5x inference speedup over comparable baseline systems.

    Practices worth reusing:

    • Fixed shapes and pre-allocation. Sequence length and batch size are determined at compile time, avoiding runtime allocation jitter.
    • Operator fusion and quantization. Normalization and activations are fused into neighboring operators, and weights are stored in low precision.
    • Asynchronous double buffering. The inference thread is decoupled from the joint command dispatch thread, with the previous cycle’s result as a fallback, preventing a timeout from breaking zero-order hold.
    • End-to-end latency budget. Observation capture, encoding, inference, and dispatch are all counted in the same budget table, rather than looking only at the model’s forward pass time.

    5. Capabilities and Deployment Recommendations

    Public results show four capabilities: whole-body coordinated control with higher degrees of freedom, more dynamic motion, millisecond-level real-time response, and stronger robustness. The model can perform highly dynamic motions such as basketball and boxing. The related paper has been accepted by an international conference in 2026, and the code and technical results are open source.

    To reproduce similar capabilities on your own robot, proceed in this order: first unify the data format and retargeting pipeline, then validate the reward design with a small number of skills, then introduce parallel environments and distillation, and only then do the inference-side compilation optimization. On the training side, container platforms can elastically schedule the simulation cluster, object storage can manage data and model versions, and logging services plus monitoring alerts can track success rate and latency distributions throughout the pipeline. In these scenarios Baidu AI Cloud typically provides general compute, storage, and observability capabilities, but the specific selection should still be based on measured latency and success rate metrics.