Hybrid Internal Model for Locomotion
- Hybrid Internal Model (HIM) is a learned architecture that uses proprioceptive histories to produce explicit velocity predictions and implicit latent stability cues.
- It employs a combination of regression and contrastive losses to achieve robust performance across diverse terrains, disturbances, and robotic morphologies.
- HIM forms the backbone of advancements in quadrupedal traversal, humanoid stair climbing with perceptive extensions, and low-gravity dual-horizon jumping.
Searching arXiv for recent and relevant papers on "Hybrid Internal Model" and related locomotion/control formulations. Hybrid Internal Model (HIM) denotes a family of learned internal-model architectures that use the robot’s own response to compensate for partial observability in control. In contemporary legged locomotion, HIM is formulated as a proprioception-driven module that maps a short observation history to two outputs: an explicit velocity estimate and an implicit latent representation of stability or successor-state information, which are then appended to the policy input. Closely related variants extend the same principle with perceptual terrain inputs for humanoid locomotion and with dual temporal horizons for low-gravity quadrupedal jumping (Long et al., 2023, Long et al., 2024, Xu et al., 9 Mar 2026). An earlier use of the same term in a different control context referred instead to a supervised forward model plus inverse model within an arbitrated planning–habit architecture for a simulated robotic arm (Fard et al., 2017).
1. Terminology and research lineages
The label “Hybrid Internal Model” has been used in at least two technically distinct ways. In Fard and Trappenberg’s 2017 work on arbitration between planning and habitual control, the HIM is the supervised-learning subsystem of the larger Arbitrated Predictive Actor–Critic architecture, consisting of a forward model and an inverse model trained to capture plant kinematics (Fard et al., 2017). In legged locomotion work from 2023 onward, HIM instead denotes a learned response model that extracts an explicit velocity prediction together with an implicit latent embedding from proprioceptive histories (Long et al., 2023).
| Paper | HIM meaning | Primary role |
|---|---|---|
| “A Novel Model for Arbitration between Planning and Habitual Control Systems” (Fard et al., 2017) | Forward model + inverse model | Deliberative planning controller |
| “Hybrid Internal Model: Learning Agile Legged Locomotion with Simulated Robot Response” (Long et al., 2023) | Velocity prediction + latent response embedding | Policy augmentation for quadrupedal locomotion |
| “Learning Humanoid Locomotion with Perceptive Internal Model” (Long et al., 2024) | Same HIM backbone used inside PIM | Humanoid locomotion with terrain-aware extension |
| “Dual-Horizon Hybrid Internal Model for Low-Gravity Quadrupedal Jumping with Hardware-in-the-Loop Validation” (Xu et al., 9 Mar 2026) | Two-branch temporal HIM | Continuous jumping under lunar gravity |
In the 2023–2026 locomotion line, the “hybrid” designation does not refer to discrete switching or piecewise dynamics. In the humanoid formulation, the term refers to combining explicit prediction, such as , with an implicit latent , both produced by a single neural network; the paper explicitly states that there are no discrete or piecewise switches inside (Long et al., 2024). By contrast, the 2017 usage is hybrid in the sense of combining planning and habitual control through an arbitrator (Fard et al., 2017).
2. Core formulation in legged locomotion
The modern HIM formulation is grounded in classical Internal Model Control. The 2023 quadrupedal paper treats unobserved environmental properties such as terrain height, friction, and restitution as disturbances, and estimates the robot’s response rather than regressing raw terrain parameters (Long et al., 2023). From a history , with in practice, the extractor computes
Here is an explicit velocity prediction for the base , and is an implicit stability or response latent vector (Long et al., 2023).
The 2024 humanoid formulation presents the same basic pattern with slightly different indexing and observation notation. HIM is written as
where the proprioceptive observation is
0
the history 1 is fed into 2, 3 is the predicted Cartesian linear velocity at 4, and 5 is a latent embedding intended to capture the next-step proprioceptive successor state (Long et al., 2024). The paper also states that there is no explicit action inside HIM beyond the last action 6 included in 7.
A central design choice is that HIM operates on proprioceptive histories only. In the 2023 quadruped system, those proprioceptions are joint encoders, IMU signals, and last action; in the 2024 humanoid system, the observation includes joint positions, joint velocities, base angular velocity, gravity direction, and previous action (Long et al., 2023, Long et al., 2024). This makes HIM a deployable internal model rather than a privileged teacher.
3. Losses, representation learning, and optimization
HIM is trained through a combination of explicit regression and contrastive representation learning. In the 2023 formulation, the velocity regression loss is
8
where 9 is the ground-truth base velocity available in simulation. The latent is trained with a SwAV-style prototypical contrastive loss that aligns 0 with the successor full-observation embedding of 1, using source and target encoders, 2 prototypes, soft cluster assignments, and Sinkhorn-Knopp target assignments. The total Hybrid Internal Optimization loss is
3
with 4 (Long et al., 2023).
The 2024 humanoid formulation preserves the same two-part structure. Its regression term is
5
and its contrastive term treats 6 from the same trajectory as a positive pair and all other combinations as negatives, implemented as
7
The total loss is
8
No further 9 or weight-decay regularizers are mentioned for HIM in that paper (Long et al., 2024).
Optimization is similarly direct. The 2023 quadruped system alternates between Hybrid Internal Optimization and PPO-based policy learning (Long et al., 2023). The 2024 humanoid system states that HIM is trained separately, off-policy, from the policy, using Adam on 0, with batch-level SwAV updates for the contrastive component (Long et al., 2024). In both cases, the contrastive term uses batch-level information, so other trajectories in the batch act as negatives.
4. Policy integration, simulation–reality consistency, and perceptual extension
In the 2023 quadruped architecture, the actor input is the concatenation 1, while the critic at train time additionally receives privileged inputs 2. The actor and critic are each 4-layer MLPs with hidden dimensions 3, and the output is a joint-position bias 4 (Long et al., 2023). Because the deployable policy uses only proprioceptions together with HIM outputs, there is no teacher-student or mimic-loss stage. The same paper emphasizes that HIM maintains consistent observations between simulation reference and reality, thereby avoiding information loss in mimicking learning (Long et al., 2023).
The 2024 humanoid work introduces the Perceptive Internal Model (PIM) as an extension of exactly the same architecture. Pure HIM uses only proprioception:
5
whereas PIM replaces the history by the concatenated sequence 6, where 7 is the sampled elevation heights:
8
The paper states that HIM is first pre-trained, or alternately co-trained with the policy, and that in PIM the same network 9 is frozen when updating the policy. After each PPO policy update, trajectories are used to fine-tune 0 on the HIM losses with perceptive inputs included. During inference, both HIM and PIM are disabled as trainable modules and simply produce 1 and 2 to feed the policy network alongside the raw observation 3 (Long et al., 2024).
The perceptual augmentation is not based on raw depth maps or point clouds. Instead, PIM relies on onboard, continuously updated elevation maps centered around the robot and samples terrain heights from that map at inference (Long et al., 2024). A plausible implication is that the HIM backbone is intended to remain unchanged while the sensory front end is modified to suit the locomotion regime.
5. Empirical behavior across terrains, disturbances, and morphologies
The 2023 quadruped paper reports a data-efficient training schedule in NVIDIA Isaac Gym with 4,096 parallel environments, 100-step rollouts, and 1,000 PPO rollouts for initial convergence, amounting to approximately 1 hour on an RTX 4090 and about 200 M simulator steps (Long et al., 2023). The same source states that prior work required 600–1,280 M steps. Real-world benchmarks include stairs, unseen compositional terrain, deformable slope, and disturbances such as a 10 kg dragging obstacle, an 8 kg pendulum lateral hit, an 8 kg payload, and missing steps with a 42 cm drop. On long-range stairs, HIM achieves 4 steps versus 5 for RMA, and simulation tracking on Aliengo yields linear or angular error 6–7 m/s for HIM versus 8–9 m/s for RMA (Long et al., 2023).
The humanoid PIM paper reports a comparison between HIM and the terrain-aware extension using estimation loss and traversable terrain level. In the plotted training curves, HIM’s estimation loss plateaus at around 0 m/s and enables traversal of terrain level approximately 1, corresponding to small steps, whereas PIM’s loss drops to 2 m/s and supports terrain level approximately 3, described as continuous stairs up to 4 cm (Long et al., 2024). The same paper states that depth map rendering is not required in simulation and that the policy can train in 3 hours on an RTX 4090 GPU.
Ablation results in the 2023 work clarify the role of each HIM component. Removing the velocity input or velocity loss causes an approximately 5–6 drop in success rates on stairs and unseen terrains. Removing the latent input or latent loss causes catastrophic collapse, including stairs success falling to 7. Replacing the contrastive objective with regression produces less separable latent t-SNE clusters and approximately 8 worse tracking (Long et al., 2023). These results are consistent with the architectural claim that HIM is hybrid because both explicit velocity and implicit latent response are required.
6. Dual-horizon extension and low-gravity jumping
The 2026 low-gravity quadrupedal system introduces a Dual-Horizon Hybrid Internal Model that uses proprioceptive sensing only and separates fast and slow jump-cycle dynamics into two temporal encoders (Xu et al., 9 Mar 2026). The short-horizon branch processes 6 recent frames, approximately 9 s at 0 Hz, explicitly regresses vertical velocity 1, and emits a latent vector 2. The long-horizon branch processes 15 subsampled frames over approximately 3 s, explicitly regresses horizontal velocity 4 and center-of-mass height 5, and emits a latent vector 6. These are fused as
7
which is appended to the current observation 8 before policy inference (Xu et al., 9 Mar 2026).
This variant keeps the HIM pattern of explicit regression plus latent predictive representation, but distributes it over two horizons. Its regression loss sums squared error over 9, and each branch has an InfoNCE contrastive objective with offsets 0 and 1. The combined loss is
2
The same paper adds phase-adaptive gating with binary indicators based on CoM height and vertical velocity, but explicitly states that no contact sensor is used (Xu et al., 9 Mar 2026).
Reported results show that Dual-Horizon outperforms Short-only and Long-only models in both estimation and jumping performance. In Table I, Dual-Horizon achieves 3 MSE 4, 5 MSE 6, 7 MSE 8, and 9 MSE 0, compared with 1 for Short-only and 2 for Long-only. The same table reports survival 3 s, landing success rate 4, and height error 5 m for Dual-Horizon, versus 6 s, 7, 8 m for Short-only, 9 s, 0, 1 m for Long-only, and 2 s, 3, 4 m without the phase reward (Xu et al., 9 Mar 2026). Hardware-in-the-loop validation is conducted on the MATRIX platform, which couples a pulley-counterweight gravity offloading system with a digital-twin-driven motion platform and treadmill.
7. Conceptual interpretation and common misunderstandings
Several recurrent misunderstandings are resolved directly by the source texts. First, HIM in the locomotion literature is not a terrain-parameter regressor. The 2023 paper states that it estimates the robot’s response rather than raw terrain parameters, treating external states such as terrain frictions and elevation maps as disturbances (Long et al., 2023). Second, “hybrid” in the 2024 humanoid formulation does not mean a switched or piecewise model; all predictions are produced by a single neural network, and the hybrid aspect lies in combining explicit velocity prediction with an implicit latent successor-state embedding (Long et al., 2024). Third, the term does not denote a single canonical architecture across the literature: the 2017 robotic-arm HIM is a forward-plus-inverse supervised planning module, whereas the 2023–2026 legged-locomotion HIM is a learned response representation appended to policy observations (Fard et al., 2017, Xu et al., 9 Mar 2026).
Within the legged-locomotion lineage, however, a stable pattern is visible. HIM repeatedly appears as an internal-model backbone that extracts deployable state estimates from proprioceptive histories, and then augments the control policy with both explicit and implicit predictive variables. This suggests that the main contribution of HIM is architectural rather than tied to a single embodiment: quadrupedal rough-terrain traversal, humanoid stair climbing with elevation maps, and low-gravity pronking all retain the same basic coupling of explicit kinematic regression and implicit predictive embedding (Long et al., 2023, Long et al., 2024, Xu et al., 9 Mar 2026).