Skip to content
Robotics.world

Research

A Trainable CPG Framework for Quadruped Locomotion

Most learning-based quadruped controllers either learn one policy per gait or need transition-specific rewards and training episodes to switch between them.

The paper’s first page · arXiv:2610.36537
arXiv
2610.36537 · Preprint · not peer-reviewed
Published
2026-10-27
Authors
Xiyan Liu, Yide Liu, Guoyong Mao, Shaoxing Qu

In plain words

Most learning-based quadruped controllers either learn one policy per gait or need transition-specific rewards and training episodes to switch between them. The authors ask whether an explicit, biologically motivated rhythm generator combined with a learned joint-space decoder can give one policy five gaits plus reliable transitions, without gait-specific controllers, gait-style rewards, or transition training.

AI summary

Overview

Research area: Legged robotics — learning-based control for quadrupedal locomotion, specifically hybrid architectures that combine central pattern generators (CPGs) with neural network policies.

Technical level: Intermediate. Readers need familiarity with reinforcement learning (PPO, reward shaping, domain randomization) and basic legged-robot concepts (joint-space control, foot trajectories, inverse kinematics).

Scope: The paper presents CPG–ENN, a framework that pairs an explicit eight-neuron CPG rhythm generator with a pretrained, leg-shared neural network that maps rhythmic signals to joint-angle references, and trains a single feedback policy to modulate six trajectory parameters so one controller spans five gaits and their transitions on a Unitree Go2.

What This Paper Is About

Most learning-based quadruped controllers either learn one policy per gait or need transition-specific rewards and training episodes to switch between them. The authors ask whether an explicit, biologically motivated rhythm generator combined with a learned joint-space decoder can give one policy five gaits plus reliable transitions, without gait-specific controllers, gait-style rewards, or transition training. Their goal is to keep the CPG's interpretable multi-gait coordination while fixing its main weakness — poor velocity tracking — by letting a single feedback policy adjust only six physically meaningful trajectory variables.

Key Contributions

  1. Trainable CPG–ENN architecture. The framework separates explicit neural rhythm generation (the eight-neuron CPG, unchanged dynamics) from learned motion realization (the execution neural network, or ENN), connected by a single six-dimensional feedback-modulation interface. "Trainable" here refers to the learned joint-space mapping and the feedback policy, not to the CPG dynamics themselves.
  2. Unified multi-gait control. A single policy realizes walk, trot, pace, bound, and pronk on the Unitree Go2 using the same modulation space and the same reward formulation, with no gait-specific learned controllers and no foot-timing or gait-style reward terms — gait coordination comes entirely from the CPG.
  3. Reliable gait transitions. The controller reports 99.39% transition success across all 20 directed gait pairs and all source–target speed combinations from {0.5, 1.0, 1.5, 2.0} m/s, compared with 91.41% for AllGaits and 95.63% for Walk These Ways under the same protocol.
  4. Ablation evidence that transitions need not be trained. Removing transition exposure leaves success at 98.0–99.5% depending on the CPG transition rule; transition training mainly shortens gait-acquisition time and reduces post-switch velocity error.

Main Findings

  • Single-gait velocity tracking works across all five gaits. With commands resampled every 5 s over 25 s sequences, root-mean-square errors were 0.073–0.149 m/s for body-frame forward velocity, 0.029–0.078 m/s for lateral velocity, and 0.052–0.098 rad/s for yaw rate.
  • Trajectory parameters adapt interpretably to commands. Step length generally increases with commanded forward speed within each gait; trot and pace pair longer steps with lower body height, while pronk uses shorter steps and higher body height over its higher-speed range; trajectory orientation increases with lateral-velocity commands and the left–right step-length difference generally decreases with yaw-rate commands.
  • Transitions preserve tracking and posture in both directions. For walk→trot→pace→bound→pronk and the reverse sequence, switching every 5 s, forward-velocity RMSE across 5 s gait segments ranged from 0.0402 to 0.0764 m/s; peak absolute roll and pitch of the mean responses were 0.0434 and 0.0726 rad.
  • Forward-speed tracking holds over a wide command sweep. Across commands from 0.3 to 3.0 m/s in 0.1 m/s increments, absolute mean forward-speed error stayed below 0.10 m/s from 0.3 to 2.0 m/s in all five gaits, with no falls and no trials lacking forward motion; bound and pronk reached 2.34 and 2.98 m/s under a 3.0 m/s command, beyond their 2.0 m/s upper training limit.
  • Baseline comparison favors CPG–ENN in the gait–speed space. CPG–ENN, AllGaits, and Walk These Ways were compared on identical command grids; CPG–ENN kept 96.7–100% success across gait pairs and 97.4–100% across speed pairs, while the baselines showed gait- or speed-dependent failure regions. Mean trial-wise RMSE over each method's strictly successful trials was 0.133 m/s for CPG–ENN, 0.259 m/s for AllGaits, and 0.282 m/s for WTW. AllGaits showed no forward motion under several high-speed commands; WTW reached higher speeds in trot and pace but was less reliable in bound and less accurate in pronk.
  • The CPG transfer rule matters more than exposure to transitions. Under a no-transition-exposure setting, initial-state reset gave 98.5% success, intrinsic-dynamics transition 98.0%, and common-time state selection 99.5%. Intrinsic dynamics minimized instantaneous desired-joint discontinuity but substantially increased acquisition time (1.191 s), velocity IAE (0.5828), and base tilt (0.0796 rad RMS); common-time selection gave the best overall balance.
  • Transition training gives a small but real refinement. With common-time selection, adding Stage 2 transition exposure raised success from 99.5% to 100%, cut acquisition time from 0.772 to 0.714 s, and reduced forward-velocity IAE by 12.6%. Removing the Stage 1 curriculum mainly reduced transition reliability (97.5%) and slowed gait acquisition (0.810 s).
  • Bounded action handling, not the Beta distribution per se, drives robust transitions. Gaussian PPO with post-hoc clipping reached only 76.5% success with larger joint discontinuities and tilt RMS; tanh-squashed Gaussian restored 100% success and closely matched the Beta policy, which had slightly lower velocity IAE, joint discontinuity, and tilt RMS, while tanh-squashed Gaussian had slightly faster acquisition (0.701 vs 0.714 s).
  • Hardware transfer without fine-tuning. The frozen ENN achieved a foot-position mean absolute error of 1.09 mm on its test set, and the controller ran on a Unitree Go2 from an NVIDIA Jetson NX at 500 Hz command transmission, validating five gaits and their transitions.

Methodology in Plain English

The system has three stacked pieces, each doing a distinct job.

First, an eight-neuron CPG — two layers of four neurons, each following the Stein model, one layer for thighs and one for calves — generates rhythmic drive signals. Periodic drive is combined with within-layer and cross-layer coupling, and different coupling settings produce the five gaits (walk, trot, pace, bound, pronk) by changing the phase offsets between legs. The authors reuse the gait-specific parameter settings from prior work and integrate with fourth-order Runge–Kutta.

Second, foot trajectories are defined independently of the CPG, using six human-readable parameters: body height, duty factor, ground clearance, ground penetration, step length, and trajectory orientation. These are converted to joint angles by ordinary inverse kinematics, and those joint angles become supervision targets. A single small multilayer perceptron — shared across all four legs, with a 17-dimensional per-leg input (five gait-encoding values, body height, a two-value leg identity code, four rhythmic features, and the trajectory parameters) and three joint outputs per leg, concatenated into a 12-dimensional reference — is trained offline to reproduce those targets. Once trained, this network is frozen. At deployment it replaces online IK and trajectory evaluation entirely.

Third, a reinforcement-learning policy looks at proprioception, the CPG state, and the velocity command, and outputs six bounded numbers that set body height, ground clearance, ground penetration, step length, a turning offset, and trajectory orientation. It never touches the rhythm; it only shapes the motion the CPG-driven decoder produces. The policy is trained with PPO in an asymmetric actor–critic setup (a 69-dimensional privileged critic observation versus a 66-dimensional actor observation), with actions parameterized by independent Beta distributions so that the bounded physical ranges are respected without clipping. Training uses a reward with four task terms (forward velocity, lateral velocity, yaw rate, and a normalized command-achievement term) and nine regularization terms (energy, action rate, vertical velocity, roll–pitch rate, base orientation, joint limits, foot slip, and two smoothness terms on the desired joint reference). Training proceeds in two stages: a four-level curriculum expanding from trot to all five gaits, then a second stage where half the episodes are one of the 20 ordered cross-gait transitions. At a gait switch, the controller simply reads the target gait's CPG state at the current global time — "common-time state selection" — with no interpolation or oscillator reset. Policies were trained in Isaac Gym with 4096 parallel Go2 environments on one NVIDIA RTX 3090, with the policy and CPG–ENN running at 100 Hz and physics and PD control at 1 kHz.

Why This Matters

Impact on research. The paper isolates where learning needs to enter the locomotion pipeline: not at the rhythm level, but at joint-space realization and trajectory modulation. Its ablation result — that reliable cross-gait transitions appear without ever training on transitions — challenges the assumption that transition-specific rewards and curricula are necessary for multi-gait control, and it offers a practical recipe (separate foot-trajectory definition and offline IK supervision, then freeze the decoder) that avoids online IK and gait-specific policy heads. The finding that bounded action parameterization, rather than one particular distribution, accounts for the gain over clipped Gaussian PPO is a transferable lesson for other physically bounded control interfaces.

Real-world applications.

  • Inspection and patrolling robots that must shift between a stable walk, an efficient trot, and a fast bound as terrain or mission phase changes.
  • Search-and-rescue quadrupeds that need a high-clearance, high-speed pronk or bound to cross obstacles and a low-speed walk to maneuver in cluttered interiors.
  • Delivery and service robots whose payload, slope, or floor-friction conditions vary, benefiting from the interpretable height and step-length knobs plus domain randomization over friction, mass, and actuator strength.
  • Research platforms and sim-to-real pipelines, where a frozen decoder that replaces online IK simplifies deployment on embedded compute such as the Jetson NX.

Industry relevance. The framework is compatible with commercial hardware (Unitree Go2) and runs without fine-tuning on embedded hardware, and its modulation variables map onto quantities engineers already tune by hand, which lowers the barrier to debugging and certifying behavior. A single controller covering five gaits with near-100% transition success reduces the engineering cost of maintaining separate gait controllers and hand-written switching logic.

Future Directions

  • Terrain feedback and uneven ground. The authors explicitly name terrain feedback and autonomous gait selection for locomotion over uneven terrain as future work; every experiment here is on flat ground with command-driven gait selection.
  • Autonomous gait selection. Gait is currently commanded as a one-hot input rather than chosen by the policy, so having the controller decide which gait suits the situation is an open problem.
  • Learning the CPG dynamics themselves. The CPG is held fixed with parameters carried over from prior work; jointly training rhythm generation with the realization layer is left open, and the paper notes that "trainable" in this work deliberately excludes the oscillator dynamics.
  • Closing the remaining speed-tracking gap. Walk, trot, and pace still saturate at higher commands even though bound and pronk exceed their 2.0 m/s training limit, and per-gait velocity RMSE varies by roughly a factor of two (0.073–0.149 m/s), leaving room to tighten regulation at the edges of the command space.

Target Audience

Robotics researchers and graduate students working on legged locomotion and hybrid CPG-plus-learning control; reinforcement learning practitioners interested in structured, interpretable action spaces and bounded policy parameterizations; and robot engineers who need one deployable controller spanning several gaits on commercial quadruped hardware. Readers without background in RL or legged kinematics will find the methods section dense, though the architectural idea — separate the rhythm, learn the realization, modulate with a small policy — is accessible to a broader audience.

Authors’ abstract

We present CPG-ENN, a trainable quadruped locomotion framework that combines explicit neural coordination with learned motion realization. A symmetry-based eight-neuron central pattern generator (CPG) supplies gait rhythms, while a pretrained, leg-shared execution neural network (ENN) maps rhythmic signals and trajectory parameters to joint-angle references without online inverse kinematics. A single feedback policy modulates six physically interpretable trajectory…

The full abstract on arXiv
Read the original paper

Related papers