Manuscript Offprint
arXiv:2610.36537A Trainable CPG Framework for Quadruped Locomotion
Xiyan Liu , Yide Liu , Guoyong Mao and Shaoxing Qu
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 variables. The controller tracks planar velocity and yaw-rate commands across walk, trot, pace, bound, and pronk without gait-specific learned controllers or transition-specific rewards. Simulation yields 99.39% transition success across all 20 directed gait pairs and all source-target speed combinations from m/s. Ablations show high cross-gait transition feasibility without transition exposure; exposure mainly refines gait acquisition and velocity transients. Comparisons with AllGaits and Walk These Ways demonstrate accurate gait-speed regulation, and Unitree Go2 experiments validate five gaits and their transitions.
I. INTRODUCTION
Locomotion is a fundamental animal capability supporting foraging, reproduction, migration, and predator avoidance. Precocial foals move independently shortly after birth, showing that locomotor capability can emerge without systematic training [1]. Yet experience refines interlimb coordination and movement patterns [2]. Trained dressage horses, for example, perform passage and piaffe with spatiotemporal patterns distinct from trot [3]. Locomotion is therefore innately organized yet trainable: neural mechanisms generate rhythmic coordination [4], while learning refines its expression. This motivates a robotic architecture preserving explicit rhythm generation while enabling learned modulation.
Learning-based controllers already produce multiple gaits and transitions with one policy, using learned motion patterns or explicit rhythm generators [5], [6], [7]. Central pattern generators (CPGs) produce coordinated rhythmic signals [8]. Some methods explicitly map these signals to foot trajectories, then apply inverse kinematics (IK) [7], [9]. We explore a different approach: retaining CPG coordination while learning a mapping from its signals to motion with independently defined trajectory shapes.
This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.
This research was supported by the National Natural Science Foundation of China under Grant No. 52405026 and the Zhejiang Provincial Natural Science Foundation of China under Grant No. LD26A020001.
The authors are with the State Key Laboratory of Fluid Power & Mechatronic Systems, Key Laboratory of Soft Machines and Smart Devices of Zhejiang Province, Center for X-Mechanics, Department of Engineering Mechanics, Zhejiang University, 38 Zheda Road, Hangzhou 310027, China. Corresponding authors: Yide Liu (e-mail: yide_liu@zju.edu.cn) and Shaoxing Qu (e-mail: squ@zju.edu.cn).

Fig. 1. Go2 gaits: walk, trot, pace, bound, and pronk. Red: flight phases and foot clearance (bound: 4.1 cm; pronk: 5 cm).
Generating gait rhythms alone does not ensure accurate speed tracking. An existing eight-neuron CPG supported five quadrupedal gaits and their transitions [10], but relied on predefined gait-specific motion parameters. Step-length scaling changed speed without tracking a target velocity, and some transitions showed lower success rates and large speed transients. These limitations motivate a single feedback controller that retains the CPG's multi-gait coordination while improving speed tracking and gait transitions.
We therefore develop a trainable CPG–ENN framework. The CPG provides rhythmic coordination, while a leg-shared execution neural network (ENN) learns to map CPG signals and motion parameters to joint targets. Offline IK converts independently defined foot trajectories into joint-angle supervision. During control, the ENN generates joint targets, and one feedback policy adjusts six motion parameters using target velocities and proprioception. We examine whether this architecture supports reliable transitions without transition training and what such training improves.
The main contributions are as follows:
(1) Trainable CPG–ENN Architecture: We separate explicit neural rhythm generation from learned motion realization through a leg-shared joint-space mapping and a single six-dimensional feedback-modulation interface.
(2) Unified Multi-Gait Control: A single policy realizes walk, trot, pace, bound, and pronk on the Unitree Go2 (Fig. 1), using the same modulation space and reward formulation, without gait-specific learned controllers or gait-style rewards. The CPG specifies gait rhythm, while the policy adapts motion to locomotion commands and proprioception.
(3) Reliable Gait Transitions: The controller achieves an overall success rate close to 100% across all 20 directed gait pairs. Ablations show that reliable transitions persist without transition training; transition training mainly shortens gait-acquisition time and reduces post-switch velocity error.
A. Learning-Based and CPG-Based Legged Locomotion
Hybrid controllers differ in where learned feedback enters motion generation. Policies Modulating Trajectory Generators (PMTG) modulates trajectory-generator parameters and adds output corrections [11]. CPG-RL modulates oscillator amplitude and frequency [9], while Shafiee et al. learn supraspinal drive acting on CPG dynamics or actuation [12]. SYNLOCO maps CPG outputs through a radial basis function layer and a learned motor layer, then adds residual feedback [13]; Yang et al. jointly optimize a differentiable stateless CPG with a sensory-feedback multilayer perceptron (MLP) [14]. These methods place learning at different levels of the motion-generation pipeline, ranging from oscillator dynamics and trajectory generation to joint-space realization.
B. Multi-Gait Locomotion and Transitions
Reske et al. use a mixture-of-experts network within one policy for multi-gait control [15], while the Phase-Guided Controller uses four leg phases to support multiple gaits and transitions [16]. Other studies obtain gait transitions through energy minimization or viability [17], [18]. Walk These Ways (WTW) exposes gait, foot-swing, posture, and speed parameters [5], while Gaitor learns a disentangled representation for continuous transitions [6]. AllGaits combines coupled oscillators, explicit foot-trajectory mappings, and online IK to realize nine gaits and their transitions, including hardware execution of gaits unseen during training [7]. Our framework instead uses independently defined foot trajectories to generate offline supervision and learns a shared mapping from CPG signals and motion parameters to joint targets.
III. METHODS
A. Overview
As shown in Fig. 2, the actor maps commands and proprioception to six trajectory-modulation variables. The eight-neuron CPG provides the commanded gait rhythm, while the leg-shared ENN maps rhythmic signals and locomotion parameters to the desired joint positions . A joint-level proportional-derivative (PD) controller tracks these references and produces the commanded torques .
In this work, trainable refers to the learned joint-space realization and feedback modulation rather than the CPG dynamics. The ENN learns from CPG inputs paired with offline IK joint targets and is frozen during policy optimization. The actor then learns to adjust motion parameters from sensory feedback through reinforcement learning.
B. CPG–ENN Locomotion Prior
- CPG Rhythm Generation: We adopt the eight-neuron CPG proposed in [10], comprising two four-neuron layers. It provides the rhythmic coordination for walk, trot, pace, bound, and pronk through the gait-dependent phase relationships shown in Fig. 3. Each neuron is described by the Stein model [19],
where is the membrane potential of the ith neuron, and are its internal adaptation states, is the coupling-dependent driving signal, and a, b, p, and q are intrinsic neuron parameters.
The driving signals for the thigh (th; ) and calf (ca; ) layers are
(2)
Equation (2) combines periodic drive with within- and cross-layer coupling. For , , , and determine the drive scale, modulation amplitude, and frequency, respectively; , and , weight within- and cross-layer coupling, and denotes the directed connection from neuron to neuron . The gait-specific parameter settings follow [10], and the CPG states are computed using fourth-order Runge–Kutta integration.
- Locomotion Trajectory Parameterization: For offline ENN supervision, we define foot-trajectory shapes independently of the CPG signals and convert them to joint-angle targets using IK. The trajectory is described by body height , duty factor , ground clearance , ground penetration , step length , and orientation , as shown in Fig. 4. The phase variable decreases from to 0 during swing and from 0 to during stance, while denotes the ratio of stance duration to gait-cycle duration.
For leg i, the desired foot position expressed in the hip-abduction frame is given by
Here, denotes the lateral offset between the hip-abduction and hip-flexion axes, while for the left legs and for the right legs.

Fig. 2. Overview of the CPG–ENN framework. The CPG coordinates gait rhythms, and a single feedback policy adjusts six motion parameters. The pretrained ENN, shared across all four legs and fixed during policy training, maps rhythmic signals and motion parameters to joint-angle targets tracked by a proportional–derivative (PD) controller.

Fig. 3. Phase relationships of the five gaits generated by the eight-neuron CPG. Numbers denote normalized leg-phase offsets within one gait cycle.
(a)
(b)

Fig. 4. Foot-trajectory parameters for offline ENN training. (a) Body height h, ground clearance , ground penetration , and step length in the sagittal plane. (b) Planar trajectory rotation by about the +z-axis of the hip-abduction frame.
- Learned Joint-Space Realization: The ENN serves as the learned joint-space realization layer, mapping explicit CPG rhythms and trajectory parameters to IK-derived joint targets. For each gait and leg, training pairs CPG states with joint targets at corresponding points in the gait cycle. A single MLP is shared across all four legs, as shown in Fig. 5.
For leg , the rhythmic feature contains , and . The per-leg input and joint-space reference are
(4)

Fig. 5. Shared ENN architecture. Each leg's 17-D input combines six global features (5-D gait encoding and body height) with eleven per-leg features. All four legs share one MLP, whose three joint-angle outputs per leg are concatenated into a 12-D reference.
Here, is the gait one-hot encoding, and distinguishes front from rear and left from right legs.
During offline pretraining, the continuous ENN inputs span the physical ranges m, , m, m, m, and rad. Each physical range is linearly mapped to .
Training covers all five gait encodings and minimizes the mean-squared joint-angle error. The MLP in Fig. 5 uses ELU activations and is pretrained with AdamW, an initial learning rate of , and weight decay of . Training and validation batch sizes are 1024 and 2048, respectively.
Once pretrained, the ENN is fixed during policy optimization and deployment, generating joint-angle references without online trajectory evaluation or IK.
C. Reinforcement Learning for Trajectory Modulation
We train the policy using an asymmetric actor–critic architecture.
- Observation Space: The critic receives the following privileged observation during training:
(5)
Here, are the base-frame linear velocity, angular velocity, and unit gravity direction, respectively. The joint-position offset uses the fixed nominal pose , while is the joint velocity and is the velocity command. The cached CPG state and derivative satisfy ; contains normalized modulation parameters available before ; is the gait one-hot encoding; and is the buffered executed-action history.
The actor receives the partial observation , which excludes the base linear velocity from .
- Action Space: The actor outputs a bounded action . After the perturbations in Table II, the executed action is mapped to the modulation vector :
The corresponding ranges are m, m, m, m, , and rad, all within the ENN training domain. The per-leg step length is , with m and as defined above; denotes the left-right step-length difference. The duty factor is not policy-controlled: the gait command sets to 0.75, 0.70, 0.68, 0.55, and 0.58 for walk, trot, pace, bound, and pronk, respectively, all within the ENN pretraining domain.
-
Reward Function: All five gaits share the reward , with identical terms and weights listed in Table I. Four task terms encourage forward- and lateral-velocity tracking, yaw-rate tracking, and normalized command achievement. Nine regularization terms penalize energy consumption, undesired body motion, joint-limit violations, foot slip, and abrupt changes in actions and joint-angle references. No foot-timing or gait-style reward is used; gait coordination is supplied by the CPG.
-
Beta Policy for Bounded Actions: We optimize the trajectory-modulation policy using Proximal Policy Optimization (PPO) [20]. A standard Gaussian policy has unbounded support, and enforcing action bounds by clipping out-of-range samples creates a mismatch between sampled and executed actions. Since all trajectory-modulation variables are physically bounded, we instead parameterize the normalized actions with independent Beta distributions, whose finite support directly matches the action space [21].
TABLE I REWARD TERMS USED FOR POLICY TRAINING
| Term | Expression | Weight |
|---|---|---|
| Forward velocity | 4.0 | |
| Lateral velocity | 1.0 | |
| Yaw rate | 1.2 | |
| Velocity achievement | 0.6 | |
| Energy | ||
| Action rate | -0.01 | |
| Vertical velocity | -0.08 | |
| Roll-pitch rate | -0.06 | |
| Base orientation | -0.20 | |
| Joint limits | -5.0 | |
| Foot slip | -0.10 | |
| Smoothness I | -0.001 | |
| Smoothness II | -0.003 |
Here, , , , and . is the filtered contact set, , and are the soft joint limits. Reward weights are scaled by s.
For each dimension , the actor applies a softplus followed by a unit offset to obtain . The normalized action is sampled during training as
At inference, is replaced by its mean . Hyperparameters for policy optimization are listed in Table II.
D. Training Procedure
With the pretrained ENN fixed, Stage 1 uses a four-level curriculum to expand gait coverage from trot to all five gaits based on coverage and tracking performance. The final gait-specific velocity-command ranges are listed in Table III. Stage 2 starts from the final Stage 1 policy and retains its final single-gait distribution while replacing 50% of episodes with one of the 20 ordered cross-gait transitions. The architecture, reward, and modulation interface remain unchanged.
All gait-specific CPGs share a common time base. At a gait switch, the target-gait state at the current global time and its duty factor are selected, termed common-time state selection, without interpolation or oscillator reset. To improve robustness for sim-to-real transfer, we randomize contact properties, rigid-body dynamics, actuation, and action execution using the ranges reported in Table II.
IV. EXPERIMENTS AND DISCUSSION
We evaluate command-responsive locomotion across fixed gait rhythms, cross-gait transitions, and generalization over the gait-speed space against existing multi-gait controllers.
TABLE II POLICY OPTIMIZATION AND DOMAIN-RANDOMIZATION SETTINGS
| PPO Parameters | Value |
|---|---|
| Batch size | 98,304 (4096 × 24) |
| Mini-batch size | 24,576 (4096 × 6) |
| Number of epochs | 5 per update |
| Clip range | 0.2 |
| Entropy coefficient | 0.005 |
| Discount factor γ | 0.99 |
| GAE parameter λ | 0.95 |
| Desired KL divergence | 0.01 |
| Learning rate α | (adaptive) |
| Actor/critic hidden layers | [512, 256, 128] |
| Activation | ELU |
| Domain Randomization | Distribution |
| Ground friction coefficient μg | U(0.40, 1.25) |
| Added base mass Δm | U(-1.0, 2.0) kg |
| Proportional-gain factor κp | U(0.90, 1.10) |
| Derivative-gain factor κd | U(0.90, 1.10) |
| Actuator-strength factor κτ | U(0.90, 1.10) |
| Joint-target offset bq,j | U(-0.015, 0.015) rad |
| Previous-action blending λt | U(0, 0.50) |
| Multiplicative action noise ξt,j | N(0, 0.012) |
Friction is represented by 64 uniformly sampled buckets. The executed action is obtained by blending , followed by elementwise multiplication by and clipping to .
TABLE III VELOCITY-COMMAND RANGES FOR POLICY TRAINING
| Gait | |||
|---|---|---|---|
| Walk | [0.00, 0.80] | [-0.30, 0.30] | [-0.50, 0.50] |
| Trot | [0.25, 1.50] | [-0.35, 0.35] | [-0.785, 0.785] |
| Pace | [0.25, 1.50] | [-0.35, 0.35] | [-0.785, 0.785] |
| Bound | [0.75, 2.00] | [-0.15, 0.15] | [-0.50, 0.50] |
| Pronk | [1.00, 2.00] | [-0.15, 0.15] | [-0.50, 0.50] |
A. Experimental Setup
The frozen ENN achieves a foot-position mean absolute error of 1.09 mm on the test set. Policies are trained in Isaac Gym with 4096 parallel Go2 environments on a single NVIDIA RTX 3090. The policy and CPG–ENN reference generator run at 100 Hz, while simulation physics and joint-level PD control run at 1 kHz. On Unitree Go2, the policy and ENN run without fine-tuning on an NVIDIA Jetson NX, transmitting joint commands at 500 Hz.
We report velocity-tracking root-mean-square error (RMSE), absolute mean forward-speed error, and integrated absolute error (IAE) for ablations. Gaits are identified by four-foot contact synchronization; contact requires vertical force > 5 N. Successful transitions maintain base height 0.15 m and absolute roll/pitch 1.2 rad throughout, acquire the target gait within 4 s after switching, and finish without a subsequent confirmed exit. Entry and exit require three consecutive non-overlapping 0.2 s windows classified as target and non-target, respectively; denotes confirmed acquisition time.
B. Single-Policy Multi-Gait Locomotion
We first test whether a single policy can track multidirectional velocity commands across walk, trot, pace, bound, and pronk through the shared modulation interface. For each gait, forward velocity, lateral velocity, and yaw-rate commands are resampled every 5 s over a 25 s sequence.

Fig. 6. Velocity tracking under piecewise-random commands. Columns show walk, trot, pace, bound, and pronk; rows show body-frame forward velocity , lateral velocity , and yaw rate . Dashed curves show commands; colored curves and shading indicate the temporal mean and standard deviation within centered sliding windows, without crossing command changes.

Fig. 7. Policy outputs versus target velocities (left to right): step length and height versus forward velocity; trajectory orientation versus lateral velocity; and left-right step-length difference versus yaw rate. Colors denote gaits.
The policy tracks all three commands (Fig. 6). RMSEs over the full records are 0.073–0.149 m/s, 0.029–0.078 m/s, and 0.052–0.098 rad/s for , , and , respectively.
To characterize the learned adaptation, Fig. 7 relates trajectory modulation to motion commands. Step length generally increases with commanded speed within each gait. Trot and pace combine longer steps with lower , whereas pronk uses shorter steps and higher over its higher-speed range. Trajectory orientation increases with lateral-velocity commands, while the left-right step-length difference generally decreases with yaw-rate commands. These trends illustrate how a shared feedback interface adapts stride, orientation, and posture under fixed CPG rhythms.
C. Unified Multi-Gait Transitions
We next examine velocity tracking and postural adaptation during successive gait transitions. The same policy executes Walk→Trot→Pace→Bound→Pronk and the reverse sequence, switching gaits every 5 s. Forward-speed commands are 0.8 m/s for walk and 1.0 m/s otherwise; lateral-velocity and yaw-rate commands remain zero.
The robot maintains forward locomotion and recovers target speed after switches in both sequences (Fig. 8). Across 5 s gait segments, forward-velocity RMSEs range from 0.0402 to 0.0764 m/s; peak absolute roll and pitch of the mean responses are 0.0434 and 0.0726 rad.
(a) Forward gait transitions

(b) Reverse gait transitions
Fig. 8. Gait transitions: (a) walk→trot→pace→bound→pronk; (b) reverse sequence. Rows show forward velocity, policy height and measured base height, and roll/pitch. Solid curves show the mean, and shading indicates standard deviation across time-aligned rollouts with 10 randomly sampled sets of switch times. Vertical lines mark gait switches.
Measured base height follows the gait-dependent policy output and reaches comparable levels for the same gait in both transition directions. This consistency indicates that gait-conditioned motion realization is retained during composition rather than being specific to one transition sequence. Section IV-E next tests whether this transition capability requires transition-specific training.
D. Comparative Evaluation in the Gait-Speed Space
We compare CPG–ENN with Go2 adaptations of All-Gaits [7] and WTW [5]. CPG–ENN and AllGaits are evaluated on five gaits, whereas WTW is evaluated on four gaits, excluding walk. All methods are evaluated under identical command grids and success criteria wherever their supported gait sets overlap.
- Forward-Speed Tracking Across Five Gaits: Each gait is evaluated separately under constant forward-speed commands ranging from 0.3 to 3.0 m/s in 0.1 m/s increments. Each trial starts from rest and lasts 6 s. Mean forward speed is computed from 1.5 to 5.5 s, and tracking error is defined as its absolute difference from the commanded speed.
CPG–ENN maintains forward locomotion across all tested conditions in all five gaits, without falls or trials with no forward motion, while keeping absolute mean forward-speed errors below 0.10 m/s over 0.3–2.0 m/s (Fig. 9). Although walk, trot, and pace saturate at higher commands, bound and pronk reach 2.34 and 2.98 m/s, respectively, under a 3.0 m/s command, beyond their 2.0 m/s upper training limit.
(a) Walk

(b) Trot
Fig. 9. Forward-speed tracking across five gaits: CPG–ENN (Ours), AllGaits, and WTW. (a–e) Walk, trot, pace, bound, and pronk. Dashed diagonals indicate ideal tracking. Filled/open markers denote in-distribution (ID)/out-of-distribution (OOD) commands relative to each controller's gait-specific training range. Crossed markers denote failed trials, displayed at zero; stars denote trials with no forward motion. WTW excludes walk (N/A).
AllGaits shows no forward motion under several high-speed commands, while WTW reaches higher speeds in trot and pace but is less reliable in bound and less accurate in pronk. The comparison therefore shows that CPG–ENN maintains a broader combination of gait reliability and speed regulation over the tested command space.
- Gait-Speed Transition Performance: We evaluate all cross-gait transitions over the gait set and speed set m/s. The grid contains 20 directed gait pairs, 16 source-target speed pairs, and 21 switch times (6.00–7.00s in 0.05-s steps). WTW uses the same protocol with 12 gait pairs, excluding walk. Gait and speed commands switch simultaneously. Trials are scheduled to end 4 s after switching; forward-velocity RMSE uses the first 2 s.
CPG–ENN achieves 99.39% success under the criterion in Section IV-A, versus 91.41% for AllGaits and 95.63% for WTW. Mean trial-wise RMSE over each method's strictly successful trials is 0.133 m/s for CPG–ENN, 0.259 for AllGaits, and 0.282 m/s for WTW (Fig. 10).
CPG–ENN maintains 96.7–100% success across gait pairs and 97.4–100% across speed pairs, whereas the baselines show gait- or speed-dependent failure regions. The full grid therefore demonstrates that the shared realization interface preserves both target-gait acquisition and transient speed regulation across diverse gait-speed compositions, rather than only along selected transition sequences. Having established the performance of the controller, we next isolate the roles of transition exposure, CPG transition rules, and bounded
(a)
Switch RMSE

(b)
Speed-pair success
(c)
Gait-pair success
(d)
(e)
(f)
(g)
(h)
(i)
Fig. 10. Gait-speed transition benchmark. (a–c) CPG–ENN; (d–f) AllGaits; (g–i) WTW. Columns show forward-speed RMSE over 0–2 s after switching, speed-pair success rate, and gait-pair success rate. Rows and columns within each matrix denote source and target conditions, respectively. Each speed-pair cell summarizes supported gait transitions across switch times; each gait-pair cell summarizes speed pairs across switch times. RMSE uses only each method's successful trials; success is defined in Sec. IV-A. Blue indicates lower RMSE or higher success; red indicates the opposite. Speed-matrix diagonals include gait changes at constant speed. Dashes mark excluded same-gait cases; hatching marks unsupported WTW transitions involving walk.
policy parameterization.
E. Ablation of CPG Transition Mechanisms and Bounded Policy Parameterization
Table IV examines the origins of cross-gait transition capability and the effect of bounded policy parameterization. We compare three CPG transition rules. Initial-state reset places the CPG at the predefined initial state of the target gait and resumes integration; intrinsic-dynamics transition preserves the current CPG state and lets the target-gait dynamics evolve continuously from it; common-time state selection, used in the proposed method, selects the target-gait state at the same global time. For the no-transition-exposure variants, training continues from the final Stage 1 checkpoint for the same number of updates as Stage 2 while retaining the final Stage 1 single-gait distribution.
As shown in Table IV(a), all three transition rules retain high success rates of 98.0–99.5% without transition exposure. This shows that cross-gait transition feasibility is already present under the proposed rhythm-generation, shared motion-realization, and feedback-modulation architecture, rather than being learned solely from transition episodes or tied to a particular transition rule.
The transition rules nevertheless produce markedly different transient responses. Intrinsic-dynamics transition minimizes the instantaneous desired-joint discontinuity, but substantially increases acquisition time, velocity IAE, and base tilt. Initial-state reset also reduces the joint discontinuity but yields larger tilt than common-time selection. Common-time selection therefore provides the best overall balance between target-rhythm acquisition, velocity regulation, and postural stability, indicating that state continuity alone is insufficient for an effective gait transition.
With common-time selection fixed, introducing transition exposure in Stage 2 increases success only from 99.5% to 100%, while reducing acquisition time from 0.772 to 0.714 s and forward-velocity IAE by 12.6%. The transition exposure introduced in Stage 2 therefore primarily refines transient
TABLE IV
ABLATION OF TRANSITION EXPOSURE, CPG TRANSITION MECHANISMS, AND BOUNDED POLICY PARAMETERIZATION.
| Variant | Success (%) ↑ | (s) ↓ | (m) ↓ | (rad) ↓ | Tilt RMS (rad) ↓ |
|---|---|---|---|---|---|
| (a) Transition exposure and CPG transition rule | |||||
| w/o Stage-1 curriculum | 97.5 | 0.810 | 0.2562 | 0.5452 | 0.0391 |
| w/o trans. exposure + initial-state reset | 98.5 | 0.798 | 0.2971 | 0.4279 | 0.0467 |
| w/o trans. exposure + intrinsic dynamics | 98.0 | 1.191 | 0.5828 | 0.3357 | 0.0796 |
| w/o trans. exposure + common-time | 99.5 | 0.772 | 0.2924 | 0.5474 | 0.0401 |
| Full method | 100.0 | 0.714 | 0.2557 | 0.5712 | 0.0397 |
| (b) Policy parameterization (Full method: Beta) | |||||
| Gaussian + clipping | 76.5 | 1.582 | 0.2987 | 0.8308 | 0.0576 |
| Tanh-squashed Gaussian | 100.0 | 0.701 | 0.2610 | 0.5779 | 0.0426 |
All variants use the same 200 trials: 20 directed gait pairs randomly sampled switch times per pair. The full method serves as the reference for both groups. Bold marks the best values in (a) and, in (b), values that match or outperform the full method and the other variant. is averaged over successful trials. IAE and tilt RMS are evaluated over 0–4 s and 0–1 s after switching, respectively; is measured across the switching boundary.
regulation rather than establishing transition feasibility. Removing the Stage 1 curriculum mainly reduces transition reliability and slows gait acquisition.
Table IV(b) compares policy parameterizations under the same full curriculum and common-time transition rule. Gaussian PPO with post-hoc clipping exhibits substantially lower transition success and larger desired-joint discontinuities, whereas tanh-squashed Gaussian restores 100% success and closely matches the Beta policy. Beta gives slightly lower velocity IAE, joint discontinuity, and base-tilt root mean square (RMS), while tanh-squashed Gaussian achieves slightly faster acquisition. These results indicate that consistent handling of the bounded modulation space, rather than the Beta distribution alone, drives the improvement over clipped Gaussian PPO.
V. CONCLUSIONS
The proposed CPG–ENN framework separates explicit rhythmic coordination from learned motion realization. Experiments demonstrate velocity tracking across gaits and transfer to Unitree Go2 without fine-tuning. In the gait-speed benchmark, CPG–ENN achieves higher overall transition success than the evaluated AllGaits and Walk These Ways implementations, with lower post-switch velocity error over each method's successful transitions. Under the tested conditions, reliable switching does not require transition training, which mainly shortens gait-acquisition time and reduces post-switch velocity error. These findings support our biological motivation of preserving rhythmic coordination while using learning to refine motion. Future work will incorporate terrain feedback and autonomous gait selection for locomotion over uneven terrain.
REFERENCES
[1] N. Pirinen, A. Mykkänen, J. J. T. Junnila, C. McGowan, and H. K. Hyysiäinen, “Motor development of stable born healthy foals during the first 24 hours,” J. Equine Vet. Sci., vol. 138, July 2024, Art. no. 105097, doi: 10.1016/j.jevs.2024.105097.
[2] K. P. Nguyen, A. Sharma, M. Gil-Silva, A. H. Gittis, and S. M. Chase, "Distinct kinematic adjustments over multiple timescales accompany locomotor skill development in mice," Neuroscience, vol. 466, pp. 260–272, July 2021, doi: 10.1016/j.neuroscience.2021.05.002.
[3] M. Holmström, I. Fredricson, and S. Drevemo, “Variation in angular pattern adaptation from trot in hand to passage and piaffe in the Grand Prix dressage horse,” Equine Vet. J., vol. 27, no. S18, pp. 132–137, May 1995, doi: 10.1111/j.2042-3306.1995.tb04905.x.
[4] S. Grillner and A. El Manira, “Current principles of motor control, with special reference to vertebrate locomotion,” Physiol. Rev., vol. 100, no. 1, pp. 271–320, Jan. 2020, doi: 10.1152/physrev.00015.2019.
[5] G. B. Margolis and P. Agrawal, “Walk these ways: Tuning robot control for generalization with multiplicity of behavior,” in Proc. Conf. Robot Learn., ser. PMLR, vol. 205, 2023, pp. 22–31. [Online]. Available: https://proceedings.mlr.press/v205/margolis23a.html
[6] A. L. Mitchell, W. Merkt, A. Papatheodorou, I. Havoutis, and I. Posner, “Gaitor: Learning a unified representation across gaits for real-world quadruped locomotion,” in Proc. Conf. Robot Learn., ser. PMLR, vol. 270, 2025, pp. 780–793. [Online]. Available: https://proceedings.mlr.press/v270/mitchell25a.html
[7] G. Bellegarda, M. Shafiee, and A. Ijspeert, “AllGaits: Learning all quadruped gaits and transitions,” in Proc. IEEE Int. Conf. Robot. Autom., 2025, pp. 15929–15935, doi: 10.1109/ICRA55743.2025.11127285.
[8] A. J. Ijspeert, “Central pattern generators for locomotion control in animals and robots: A review,” Neural Netw., vol. 21, no. 4, pp. 642–653, May 2008, doi: 10.1016/j.neunet.2008.03.014.
[9] G. Bellegarda and A. Ijspeert, “CPG-RL: Learning central pattern generators for quadruped locomotion,” IEEE Robot. Autom. Lett., vol. 7, no. 4, pp. 12 547–12 554, Oct. 2022, doi: 10.1109/LRA.2022.3218167.
[10] Y. Liu, X. Liu, D. Wang, W. Yang, and S. Qu, “An eight-neuron network for quadruped locomotion with hip-knee joint control,” Int. J. Robot. Res., vol. 45, no. 4, pp. 602–627, Apr. 2026, doi: 10.1177/02783649251364286.
[11] A. Iscen et al., “Policies modulating trajectory generators,” in Proc. Conf. Robot Learn., ser. PMLR, vol. 87, 2018, pp. 916–926. [Online]. Available: https://proceedings.mlr.press/v87/iscen18a.html
[12] M. Shafiee, G. Bellegarda, and A. Ijspeert, “Puppeteer and marionette: Learning anticipatory quadrupedal locomotion based on interactions of a central pattern generator and supraspinal drive,” in Proc. IEEE Int. Conf. Robot. Autom., 2023, pp. 1112–1119, doi: 10.1109/ICRA48891.2023.10160706.
[13] X. Zhang, Z. Xiao, Q. Zhang, and W. Pan, “SYNLOCO: Synthesizing central pattern generator and reinforcement learning for quadruped locomotion,” in Proc. IEEE 63rd Conf. Decis. Control, 2024, pp. 2640–2645, doi: 10.1109/CDC56724.2024.10886438.
[14] C. Yang, C. Pu, Y. Zou, T. Wei, C. Wang, and Z. Li, “Bio-inspired neural networks with central pattern generators for learning multi-skill locomotion,” Sci. Rep., vol. 15, Mar. 2025, Art. no. 10165, doi: 10.1038/s41598-025-94408-0.
[15] A. Reske, J. Carius, Y. Ma, F. Farshidian, and M. Hutter, “Imitation learning from MPC for quadrupedal multi-gait control,” in Proc. IEEE Int. Conf. Robot. Autom., 2021, pp. 5014–5020, doi: 10.1109/ICRA48506.2021.9561444.
[16] Y. Shao, Y. Jin, X. Liu, W. He, H. Wang, and W. Yang, “Learning free gait transition for quadruped robots via phase-guided controller,” IEEE Robot. Autom. Lett., vol. 7, no. 2, pp. 1230–1237, Apr. 2022, doi: 10.1109/LRA.2021.3136645.
[17] Y. Yang, T. Zhang, E. Coumans, J. Tan, and B. Boots, “Fast and efficient locomotion via learned gait transitions,” in Proc. Conf. Robot Learn., ser. PMLR, vol. 164, 2022, pp. 773–783. [Online]. Available: https://proceedings.mlr.press/v164/yang22d.html
[18] M. Shafiee, G. Bellegarda, and A. Ijspeert, “Viability leads to the emergence of gait transitions in learning agile quadrupedal locomotion on challenging terrains,” Nat. Commun., vol. 15, Apr. 2024, Art. no. 3073, doi: 10.1038/s41467-024-47443-w.
[19] R. B. Stein, K. V. Leung, D. Mangeron, and M. N. Oğuztöreli, “Improved neuronal models for studying neural networks,” Kybernetik, vol. 15, no. 1, pp. 1–9, Mar. 1974, doi: 10.1007/BF00270755.
[20] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, "Proximal policy optimization algorithms," 2017, arXiv:1707.06347.
[21] I. G. B. Petrazzini and E. A. Antonelo, “Proximal policy optimization with continuous bounded action space via the beta distribution,” in Proc. IEEE Symp. Ser. Comput. Intell., 2021, pp. 1–8, doi: 10.1109/SSCI50451.2021.9660123.