arXiv:2610.36537cs.ROOct 2026

Manuscript Offprint

arXiv:2610.36537

A Trainable CPG Framework for Quadruped Locomotion

Xiyan Liu, Yide Liu, Guoyong Mao, Shaoxing Qu

Xiyan Liu 1^{1}, Yide Liu 1^{1}, Guoyong Mao 1^{1} and Shaoxing Qu 1^{1}

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 {0.5,1.0,1.5,2.0}\{0.5, 1.0, 1.5, 2.0\} 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.

1^{1}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).

Figure

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.

References (21)