Manuscript Offprint
arXiv:2610.26027A Spiking Ring-Attractor Architecture for Representation and Control of Revolute Robot Joints
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Robotic systems with revolute joints evolve on circular state spaces, yet most control architectures represent these states using Euclidean variables that ignore this underlying geometry. We propose a fully spiking neural control architecture in which ring attractors encode joint states, enforcing representations consistent with the topology of revolute systems.
Homeostatic regulation computes goal-state mismatch directly over these distributed representations, and opponent gain-modulated populations convert this mismatch into controlled phase shifts of the activity bump, implementing set-point regulation as motion on the ring.
We show that the bump dynamics follow an geometry, and that gain asymmetries induce a signed phase velocity on the ring. To interface distributed activity with scalar regulation signals, we derive an analytic Fourier phase decoder and implement its signed components using push–pull spiking populations.
For multi-joint systems, we demonstrate that local ring-based Fourier features compose into product representations that linearly decode orientations through forward kinematics. Experiments in NEST validate the full regulation mechanism and the spiking product-feature decoder for lift, pitch, and yaw. Robot experiments on a Tiago arm show that decoded ring dynamics generate joint velocity commands, producing directed motion with joint-dependent accuracy.
Together, these results establish a neuromorphic control framework in which representation, regulation, and action are unified within a ring-attractor substrate aligned with the geometry of revolute systems.
1 Introduction
Neural circuits in biological systems often do not appear to separate representation from control. Internal states are maintained as distributed activity patterns, goals can be encoded within the same substrate, and behavior can emerge through continuous regulation of one activity state toward another. This organization is especially clear in neural systems for orientation and navigation, where heading, goal direction, and steering commands are represented and transformed within population activity [7, 20, 13]. Ring attractors provide a particularly relevant example: in biological head-direction systems, they maintain localized activity bumps on a circular manifold and support angular integration [17, 18, 10]. This circular structure has also made ring attractors useful in computational and robotic models of path integration, grid-cell organization, and bio-inspired navigation [11, 19, 15, 2].
Building on this circular population structure, we propose a robotic control architecture in which ring attractors represent revolute joint states and serve as dynamical substrates for control. The central idea is to regulate the phase of a persistent activity bump directly, rather than decoding joint state into an external Euclidean variable before control. Homeostatic comparison provides a signed
Preprint.
mismatch between goal and state, while opponent gain modulation converts that mismatch into directed transport of the bump around the ring [3, 16, 22]. Because the neural activity bump and the physical joint angle both evolve on circular manifolds, this yields a topology-preserving, fully spiking control primitive for revolute variables.
This perspective also provides a natural geometric and compositional structure. Phase shifts of a ring-attractor bump correspond to motion on , with infinitesimal displacements described by a Lie-algebraic tangent direction [12, 21, 9]. To interface this distributed representation with scalar regulatory signals, we derive an NEF-inspired Fourier decoder that extracts phase from ring activity [4]. For multi-joint systems, the same local Fourier features, and , compose through known forward kinematics to provide an orientation readout. Thus, individual rings generate controlled trajectories, while their decoded features support robot-level orientation estimates.
Our contributions are: (i) a biologically inspired closed-loop ring-attractor controller in which a Hammel-style homeostatic comparator drives opponent gain modulation to transport bump states on an -structured manifold; (ii) a Lie-algebraic transport analysis of the gain-imbalance mechanism; (iii) an analytic Fourier phase decoder that maps distributed ring activity to scalar phase estimates compatible with homeostatic comparison; (iv) a forward-kinematic Fourier decoder that reads out an orientation estimate from known revolute-chain ring states via product Fourier features; and (v) empirical validation in NEST spiking simulations [6] and on a Tiago robot [14].
The remainder of the paper presents the architecture, derives the transport mechanism and Fourier readouts, and evaluates the resulting spiking controller in NEST and on a Tiago arm. Additional derivations and experimental details are provided in the appendix.
2.1 Single-ring architecture for revolute joint control
A
Ring Attractor
B
Gain Modulation
C
Model Architecture

D
Homeostasis
E
Readout
Goal
Representation
Ring Attractor (Goal Representation)
Readout
Homeostasis
Gain Modulation
Joint Control
Mechanism
Ring Attractor (State Representation)
Readout
Self
Representation
Figure 1: Single-ring architecture for revolute joint control, composed of four modules. The goal ring encodes the desired joint phase as a localized bump; the state ring encodes the current joint phase. A Positional Fourier readout decodes each bump into a scalar phase estimate, which feeds a Hammel-style homeostatic comparator. The comparator drives opponent left-gain (LG) and right-gain (RG) populations, moving the ring in their preferred direction. A mismatch between goal and state produces a gain imbalance that moves the bump state along the ring; when the mismatch vanishes, the opponent signals become balanced and stabilizes the bump.
This single-ring architecture builds on prior ring-attractor work for number subitization [8], extending the substrate from discretized representations of continuous revolute-joint control. Figure 1 shows the resulting control primitive for a single revolute joint, composed of goal and state ring-attractor populations, a Fourier readout layer, a homeostatic comparator, and opponent gain-modulation populations.
The goal ring encodes the desired joint configuration as the phase of a localized activity bump, and a similar representation is subsequently used by the state ring for the current joint configuration. The activity of these rings is projected onto positional Fourier features, which are decoded into spike-rate estimates of scalar phase. These goal and state phase estimates are then provided to a Hammel-inspired homeostatic comparator for feedback control [3]. The comparator produces opponent output signals that drive the left-gain (LG) and right-gain (RG) populations, directing the state bump along the preferred angular direction and closing the control loop.
This single-ring unit constitutes the basic control primitive. The following sections first derive the geometry and transport dynamics of this primitive, before Section 2.5 describes how multiple ring states are decoded through a known forward-kinematic chain.
2.2 Ring attractor as an -structured state space (Figure 1.A)
A ring attractor is a recurrent neural network whose connectivity is invariant to rotations of a circular preferred-phase index [23, 1, 5]. This symmetry supports a continuous family of stable population states: localized activity bumps centered at any phase . In the regime considered here, the controlled state is the bump centroid rather than the activity of any individual neuron.
For a revolute joint, this representation is natural because the joint angle and the bump phase both live on a circular manifold. We approximate the ring activity as a translated bump,
where is the bump profile and is the represented joint phase. Thus, although the neural activity is high dimensional, the controlled coordinate is the scalar phase .
This population code has an structure: shifting the bump by an angle maps to . The family of bump states is therefore an orbit of the rotation group, and the centroid phase can equivalently be represented as . Control corresponds to moving the bump along this orbit. The tangent direction is generated by the infinitesimal rotation operator , so an input that reliably changes the represented joint angle must project onto the bump tangent rather than merely perturbing firing rates.
In a symmetric ring, all centroid phases are equally stable and there is no preferred direction of drift. Balanced afferent drive preserves this symmetry and keeps the bump stationary. Directed motion requires breaking the symmetry through a signed imbalance between opponent directional drives, which produces a transport term of the form
where denotes the symmetric recurrent dynamics and is a signed transport coefficient. The next section shows how opponent gain modulation implements this coefficient in the spiking circuit.
2.3 Gain modulation as Lie-algebraic transport (Figure 1.B)
Opponent gain modulation provides the directional drive that moves the bump. The architecture uses two gain populations, and , which receive phase-shifted copies of the state-ring activity together with scalar homeostatic drives:
The opposite shifts make the two populations sensitive to opposite directions of bump motion. When , their effects are balanced and the ring symmetry is preserved. When the homeostatic comparator creates an imbalance, the symmetry is broken and the bump drifts with a sign determined by .
To first order in the phase shift , the summed gain feedback contains a symmetric component and a directional component proportional to the ring gradient:
where . The symmetric term changes the net drive without selecting a direction. The directional term vanishes when the opponent drives are balanced and becomes nonzero only when .
Collecting this directional feedback in the ring dynamics yields
with transport coefficient
Thus the transport speed scales with the phase shift, bidirectional coupling, and opponent gain difference. Since , this is equivalently activity injection along the tangent direction of the bump manifold:
On the single-bump manifold, this transport reduces to an effective phase velocity,
where is the projection of the gain imbalance onto the bump tangent. Opponent gain modulation therefore encodes velocity along the ring, not joint angle itself; integrating this velocity transports the internal joint state toward the goal set by the homeostatic comparator.
2.4 Positional Fourier readout for scalar phase decoding (Figure 1.E)
The homeostatic comparator operates on scalar variables, whereas the ring attractor represents state as a distributed bump. We therefore decode each ring activity profile into a scalar phase estimate using a periodic Fourier readout.
For a translated bump , the centroid estimator can be written as a projection of activity onto a positional ramp. Since the ring is periodic, this ramp admits a Fourier sine expansion, yielding the linear decoder
where are analytic coefficients, optionally corrected for finite bump width. Appendix C gives the full derivation.
Figure 2 validates the decoder on translated Gaussian bumps and its spiking implementation. Increasing the number of modes improves phase reconstruction, while a single mode already captures the coarse phase signal. Because the features are signed but spike counts are nonnegative, each feature is implemented with push–pull subpopulations and recovered by subtraction.
In the controller, the goal and state rings are decoded into and . The Hammel comparator computes their signed mismatch and drives the opponent gain populations, thereby connecting the -structured population code to the gain-modulated transport mechanism.
2.5 Forward-kinematic Fourier decoder for known revolute chains
The single-ring controller represents and regulates one angular state. To connect multiple controlled rings to robot-level variables, we define a forward-kinematic readout for known revolute chains. This readout does not add a new control law; it maps distributed ring activity into an end-effector orientation estimate.
Sine features as varies

Fourier decoder vs true centered position
Fourier Decoding Neurons (K=1)
Stimulus Phase
Ring phase (rad)
Figure 2: Analysis of the Fourier phase decoder. Top left: sine features for Gaussian bump activity. Top right: Fourier decoders with modes reconstruct centered position with increasing accuracy. Bottom left: push–pull spiking implementation of the feature. Bottom right: mean standard deviation spike response across 10 repeats and 25 ring positions, showing a stable phase-dependent readout.
For each joint , the Fourier readout provides first-harmonic estimates
which form the local feature vector
For a revolute joint with known axis, the corresponding rotation matrix is linear in these features. For a serial chain, products of joint rotations therefore generate products of local Fourier terms, all contained in
Thus, for a fixed kinematic convention, there exists a linear map T such that
where is formed from ring-estimated features.
In the robot experiments, this decoder is used to read out lift, pitch, and yaw under a fixed ordered convention. In the spiking implementation, signed product-feature populations are formed from the input rings and projected to orientation-coordinate output rings, allowing the composition to remain within the neural substrate.
This decoder assumes known revolute kinematics, fixed rotation axes and multiplication order, and reliable first-mode sine–cosine estimates from each ring. Under these assumptions, it maps a product of local ring states to an orientation estimate, extending the single-joint control primitive toward task-space representations.

Time
Figure 3: Robot-to-ring interface for the Tiago experiments. Each control step pairs a Tiago camera frame with the current spiking ring activity. The circular and unwrapped plots show the same population response, making the bump location and centroid visible during control. The timeline shows decoded gain-modulated commands moving the joint from start to target. Quantitative tracking results are reported in Figure 5, with additional analyses in Figures 7 and 8.
3 Implementation and Results
3.1 Experimental setup
We evaluate the architecture in two stages. Spiking experiments instantiate the full architecture in NEST [6] using iaf_psc_alpha populations and test whether the homeostatic gain-modulation loop transports a state bump toward a goal on the -structured manifold, with model parameters reported in Appendix Table 1. Robot experiments connect the resulting trajectories to a Tiago arm [14] via ROS, using a receding-horizon streaming interface to issue joint velocity commands and logging measured joint states to evaluate whether decoded ring phases correspond to physical motion. For multi-ring trials, end-effector orientation is computed from logged joint angles through the known forward-kinematic model.
3.2 Spiking implementation of homeostatic transport
We first evaluate the complete single-ring controller in NEST. The circuit contains the state ring attractor, the Hammel-style homeostatic comparator, and opponent left- and right-gain populations from Section 2. The goal is to verify the core mechanism from Section 2.3: a phase mismatch should induce an opponent gain imbalance, and this imbalance should transport the ring-attractor bump.
Figure 4 shows the resulting activity. The ring maintains a localized bump whose centroid is displaced from the start phase toward the goal phase, demonstrating directed transport of the represented state. The trajectory is not perfectly monotonic and does not always converge exactly to the target, but it remains a coherent bump motion rather than a diffuse change in population firing.
Panel C quantifies the remaining circular error across target locations after the transient period. Errors are target-dependent, indicating that the present parameterization produces a usable but nonuniform transport field over the ring. This nonuniformity is consistent with finite-size spiking effects, decoder resolution, and local gain calibration, and motivates the calibration refinements used in the robot interface.
Panel D shows the predicted opponent structure in the homeostatic and gain pathways. Hot and cold comparator activity varies systematically with relative phase, producing a graded mismatch signal.
A

B
C
D
Left Neuron Spike Count
Right Neuron Spike Count
Ring 1 Phase - Hot
Ring 1 Phase - Hot
Figure 4: Single-ring homeostatic controller implemented in NEST where the ring attractor is simulated using 200 neurons. A: ring-attractor firing-rate heatmap with the decoded circular centroid overlaid in white. The cyan dotted line marks the start phase and the orange dotted line marks the goal phase. B: left- and right-gain raster plots throughout the simulation period (associated to the top graph). C: relative goal error, computed as circular distance to the goal divided by ring size N, averaged over ms across ten runs per goal. The black dotted vertical line marks the starting point. D: left- and right-homeostasis neuron spike-count heatmaps.
The left- and right-gain channels show complementary activation, with each channel preferentially engaged for one sign of the phase mismatch. This push–pull pattern implements the imbalance that generates the transport coefficient in Equation (12). Together, these results show that the spiking circuit realizes the intended symmetry-breaking mechanism for bump transport, while also revealing the target-dependent residual error expected from an unoptimized finite spiking implementation.
3.3 Tiago single-joint control from gain-modulated ring velocity
We next evaluate whether the ring controller can drive physical joint motion on the Tiago arm. The central test is whether opponent gain modulation produces a signed velocity command whose integration moves a revolute joint toward a target angle.
For each Tiago arm joint, the measured joint angle is mapped onto the state ring and a sampled target angle is injected into the goal ring. The NEST controller runs in closed loop; at each step, the difference in spike counts between the right-gain and left-gain populations,
provides the signed gain signal. This is the spiking realisation of the gain imbalance derived in Section 2.3: positive drives transport in one angular direction, negative in the other. The signal is passed through an exponential filter and decoded into a joint velocity command with separate calibration gains for the positive and negative drive components, preserving the opponent structure of the controller. Commands are sent as receding-horizon joint trajectories via ROS, and measured joint positions are logged throughout. Figure 5 summarises the final absolute error across all seven Tiago arm joints. The controller successfully drives directed motion across all joints, confirming that the gain-modulated ring signal translates to physical displacement. Performance is joint-dependent:

Figure 5: Tiago single-joint control where the opponent gain-modulation activity is translated to the robot’s joint velocity. Left: Robot simulation snapshot demonstrating how the robot moves for specific joint index. Right: Robot simulation used to demonstrate error between goal state and target state of the ring attractor based single joint control.
some joints show consistently small errors across batches, while others exhibit larger spread and occasional outliers. This variability reflects differences in joint range, mechanical dynamics, and the calibration of the neural drive to physical velocity, rather than failures of the control mechanism itself.
3.4 NEST implementation of the forward-kinematic ring decoder
We finally evaluate whether the product-feature readout derived in Section 2.5 can be implemented in spiking neurons and decoded into orientation-coordinate output rings. We instantiate a two-ring decoder for a known two-revolute-joint chain,
where the first ring represents rotation about the x-axis and the second about the y-axis. Although only two input rings are used, the experiment tests the essential compositional mechanism: local Fourier features are combined into signed product-feature populations via push-pull pairs, and those product features are projected to output rings encoding lift, pitch, and yaw.
Figure 10 shows the internal decoder activity. During a sweep of with fixed, the first-order features track the sweep directly while the product features reflect the interaction between the fixed state and the varying state. The output ring profiles confirm that these product features are sufficient to produce structured orientation-coordinate population responses.
Figure 6 quantifies the decoder output against analytically computed targets across two configuration-space slices. The decoded traces closely track the true targets throughout, and Figure 9 shows that the circular index error remains small across both sweep conditions and all three orientation variables. The discontinuities visible in Figure 6 are expected sawtooth wrap-around effects, not decoder failures.
These results validate the orientation readout in spiking neurons. The decoder does not control orientation — it reads out the orientation implied by the ring states. The single-ring homeostatic gain-modulation loop generates trajectories; the multi-ring product-feature decoder composes those trajectories into lift, pitch, and yaw output rings.
Sawtooth decoded index vs true target

Figure 6: Sawtooth-decoded output-ring index against the true target index for two slices of the joint configuration space ( fixed with varied; fixed with varied). Decoded and true traces closely overlap for lift, pitch, and yaw. Discontinuities are expected sawtooth wrap-around effects from the circular representation, quantified in Figure 9. See Appendix Figure 10 for decoder activity.
4 Conclusion
We introduced a spiking ring-attractor architecture for representing and controlling revolute robot joints. Rather than treating joint angle as an external scalar variable passed to a conventional controller, the proposed system represents joint state as a persistent activity bump on a circular neural manifold and regulates that state through homeostatic comparison and opponent gain modulation. This provides a different paradigm for spiking robot control: representation and action are not separated, but are coupled through transport of a population code whose geometry matches the topology of the physical joint.
The results show that gain imbalance can induce directed bump motion on an -structured ring, that distributed ring activity can be decoded through analytic Fourier features, and that local ring features can be composed into forward-kinematic orientation readouts for known revolute chains. Robot experiments further demonstrate that the gain-modulated ring dynamics can be coupled to physical joint motion, producing directed actuation with joint-dependent accuracy. Although the present implementation is not intended to replace optimized model-based or PID controllers, it establishes a neuromorphic control primitive in which circular state representation, regulation, and motor drive are implemented within a common spiking substrate.
Because the controlled variable is represented by a population activity pattern rather than a single scalar state, this framework may offer robustness advantages under noise, partial perturbation, or neuronal variability: errors in individual units need not destroy the represented phase as long as the population bump remains coherent. More broadly, precise control of such attractor bumps could enable applications beyond low-level joint actuation, including task-space control, internal simulation, and neural forms of motor imagery. In biological systems, structured activity patterns can be maintained, shifted, and replayed offline, as in hippocampal experience replay; analogous mechanisms in robotic ring-attractor substrates could support imagined trajectories, predictive rollouts, or planning over embodied state spaces. We therefore view controlled spiking attractor dynamics as a promising route toward natural neural controllers for revolute systems, where the geometry of the controller is aligned with the geometry of the body it controls.
References
[1] Shun-ichi Amari. Dynamics of pattern formation in lateral-inhibition type neural fields. Biological Cybernetics, 27(2):77–87, 1977. ISSN 1432-0770. doi: 10.1007/bf00337259. URL http://dx.doi.org/10.1007/BF00337259.
[2] Sabrina Benas, Ximena Fernandez, and Emilio Kropff. Modeled grid cells aligned by a flexible attractor. eLife, May 2024. doi: 10.7554/elife.89851.2. URL http://dx.doi.org/10.7554/eLife.89851.2.
[3] Jack A. Boulant. Neuronal basis of hammel's model for set-point thermoregulation. Journal of Applied Physiology, 100(4):1347–1354, 2006. doi: 10.1152/japplphysiol.01064.2005.
[4] Chris Eliasmith. A unified approach to building and controlling spiking attractor networks. Neural Computation, 17(6):1276–1314, 2005. doi: 10.1162/0899766053630332.
[5] Wulfram Gerstner, Werner M. Kistler, Richard Naud, and Liam Paninski. Cortical field models for perception, page 467–490. Cambridge University Press, 2014.
[6] Marc-Oliver Gewaltig and Markus Diesmann. Nest (neural simulation tool). Scholarpedia, 2(4):1430, 2007. doi: 10.4249/scholarpedia.1430.
[7] Jonathan Green, Atsuko Adachi, Kunal K. Shah, Jonathan D. Hirokawa, Pablo S. Magani, and Gaby Maimon. A neural circuit architecture for angular integration in drosophila. Nature, 546(7656):101–106, May 2017. ISSN 1476-4687. doi: 10.1038/nature22343. URL http://dx.doi.org/10.1038/nature22343.
[8] Aung Htet, Alejandro Jimenez Rodriguez, Sarah Hamburg, and Alessandro Di Nuovo. Allostatic Control of Persistent States in Spiking Neural Networks for Perception and Computation, page 388–402. Springer Nature Switzerland, November 2025. ISBN 9783032074485. doi: 10.1007/978-3-032-07448-5_33. URL http://dx.doi.org/10.1007/978-3-032-07448-5_33.
[9] Mikail Khona and Ila R. Fiete. Attractor and integrator networks in the brain. Nature Reviews Neuroscience, 23(12):744–766, November 2022. ISSN 1471-0048. doi: 10.1038/s41583-022-00642-0. URL http://dx.doi.org/10.1038/s41583-022-00642-0.
[10] Sung Soo Kim, Hervé Rouault, Shaul Druckmann, and Vivek Jayaraman. Ring attractor dynamics in the <i>drosophila</i> central brain. Science, 356(6340):849–853, May 2017. ISSN 1095-9203. doi: 10.1126/science.aal4835. URL http://dx.doi.org/10.1126/science.aal4835.
[11] Thomas C. Knowles, Anna G. Summerton, James G. H. Whiting, and Martin J. Pearson. Ring attractors as the basis of a biomimetic navigation system. Biomimetics, 8(5), 2023. ISSN 2313-7673. doi: 10.3390/biomimetics8050399. URL https://www.mdpi.com/2313-7673/8/5/399.
[12] Richard M. Murray, Zexiang Li, and S. Shankar Sastry. Rigid Body Motion, page 19–79. CRC Press, December 2017. ISBN 9781315136370. doi: 10.1201/9781315136370-2. URL http://dx.doi.org/10.1201/9781315136370-2.
[13] Peter Mussells Pires, Lingwei Zhang, Victoria Parache, L. F. Abbott, and Gaby Maimon. Converting an allocentric goal into an egocentric steering signal. Nature, 626(8000):808–818, February 2024. ISSN 1476-4687. doi: 10.1038/s41586-023-07006-3. URL http://dx.doi.org/10.1038/s41586-023-07006-3.
[14] Jordi Pagès, Luca Marchionni, and Francesco Ferro. Tiago: the modular robot that adapts to different research needs, 2016. URL https://api.semanticscholar.org/CorpusID:218478582.
[15] Jesús D. Rivero-Ortega, Juan S. Mosquera-Maturana, Josh Pardo-Cabrera, Julián Hurtado-López, Juan D. Hernández, Victor Romero-Cano, and David F. Ramírez-Moreno. Ring attractor bio-inspired neural network for social robot navigation. Frontiers in Neurorobotics, Volume 17 - 2023, 2023. ISSN 1662-5218. doi: 10.3389/fnbot.2023.1211570. URL https://www.frontiersin.org/journals/neurorobotics/articles/10.3389/fnbot.2023.1211570.
[16] Emilio Salinas and Terrence J. Sejnowski. Gain modulation in the central nervous system: Where behavior, neurophysiology, and computation meet. The Neuroscientist, 7(5):430–440, October 2001. ISSN 1089-4098. doi: 10.1177/107385840100700512. URL http://dx.doi.org/10.1177/107385840100700512.
[17] Johannes D. Seelig and Vivek Jayaraman. Neural dynamics for landmark orientation and angular path integration. Nature, 521(7551):186–191, May 2015. ISSN 1476-4687. doi:10.1038/nature14446. URL http://dx.doi.org/10.1038/nature14446.
[18] Daniel Turner-Evans, Stephanie Wegener, Hervé Rouault, Romain Franconville, Tanya Wolff, Johannes D Seelig, Shaul Druckmann, and Vivek Jayaraman. Angular velocity integration in a fly heading circuit. eLife, 6, May 2017. ISSN 2050-084X. doi: 10.7554/elife.23496. URL http://dx.doi.org/10.7554/eLife.23496.
[19] Pantelis Vafidis, David Owald, Tiziano D'Albis, and Richard Kempter. Learning accurate path integration in ring attractor models of the head direction system. eLife, 11:e69841, jun 2022. ISSN 2050-084X. doi: 10.7554/eLife.69841. URL https://doi.org/10.7554/eLife.69841.
[20] Elena A. Westeinde, Emily Kellogg, Paul M. Dawson, Jenny Lu, Lydia Hamburg, Benjamin Midler, Shaul Druckmann, and Rachel I. Wilson. Transforming a head direction signal into a goal-oriented steering command. Nature, 626(8000):819–826, February 2024. ISSN 1476-4687. doi: 10.1038/s41586-024-07039-2. URL http://dx.doi.org/10.1038/s41586-024-07039-2.
[21] Si Wu, Ying Wu, Wen-Hao Zhang, and Junfeng Zuo. The motion planning neural circuit in goal-directed navigation as lie group operator search. In Advances in Neural Information Processing Systems 37, NeurIPS 2024, page 110369–110387. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 2024. doi: 10.52202/079017-3503. URL http://dx.doi.org/10.52202/079017-3503.
[22] Jian Zhang and L.F. Abbott. Gain modulation of recurrent networks. Neurocomputing, 32-33:623–628, June 2000. ISSN 0925-2312. doi: 10.1016/s0925-2312(00)00224-1. URL http://dx.doi.org/10.1016/S0925-2312(00)00224-1.
[23] K Zhang. Representation of spatial orientation by the intrinsic dynamics of the head-direction cell ensemble: a theory. The Journal of Neuroscience, 16(6):2112–2126, March 1996. ISSN 1529-2401. doi: 10.1523/jneurosci.16-06-02112.1996. URL http://dx.doi.org/10.1523/JNEUROSCI.16-06-02112.1996.
A Ring-attractor mode analysis and SO(2) reduction
This appendix provides the derivation underlying Section 2.2. We start from the continuum ring neural field
where is the ring activity, is a translation-invariant recurrent kernel, is a static nonlinearity, and is external input. For the mode analysis, we first consider a constant input and a spatially homogeneous equilibrium
Substituting this into the neural field and setting gives
Since the kernel depends only on the phase difference, the integral is independent of . Let
Then the homogeneous fixed point satisfies
To study the stability of this homogeneous state, write
where v is a small perturbation. Expanding the nonlinearity to first order,
Substituting into the neural field and cancelling the fixed-point terms gives the linearized dynamics
Because the recurrent operator is convolutional on the ring, Fourier modes diagonalize the linearized dynamics. Let
The Fourier coefficient of the kernel is
Using the convolution identity on the ring, each mode evolves independently:
Thus the growth rate of mode k is
Modes with decay, while modes with destabilize the homogeneous state. In the parameter regime considered in the main text, the recurrent kernel and nonlinearity support a stable single-bump profile rather than a homogeneous firing state. The mode analysis therefore motivates the reduction from a full activity field to a low-dimensional bump coordinate.
We assume the ring is operating in this activated single-bump regime. The activity can then be approximated by a fixed bump profile translated by a phase coordinate,
where is the bump profile and is the bump centroid. This is a collective-coordinate approximation: the controlled state is not the activity of a single neuron, but the position of the distributed bump.
The rotation action on ring activity is
For the bump state
we have
Thus the family of translated bump states is an orbit of the continuous rotation group. The bump centroid may equivalently be represented by the rotation matrix
The full neural population state lives in a high-dimensional activity space, but the controlled collective coordinate lies on and carries the action of .
The infinitesimal generator of rotations on the ring is
For a small displacement ,
Using , this becomes
Thus the tangent direction of the single-bump manifold is . A control input that moves the bump should therefore project onto this direction.
B Derivation of gain modulation as a transport equation
This appendix provides the derivation underlying Section 2.3. The goal is to show how opponent gain populations produce a first-order transport term on the ring. Let and denote the two gain populations. We model their inputs as shifted copies of the ring activity plus opponent homeostatic drive:
where is the ring-to-gain connection strength, is a small connection phase shift, and , are homeostatic drive terms.
For small , expand the shifted ring activity:
Applying the nonlinearity gives
where abbreviates .
Define the baseline gain inputs
Then the gain-population activities can be written to first order as
Expanding the gain output nonlinearity around and gives
Summing the two opponent outputs gives
The first two terms are nondirectional. They modify the local drive to the ring but do not select a direction of motion. The final term is directional because it is proportional to .
This expression also shows why balanced opponent drive does not move the bump. If , then , and therefore
The directional term vanishes. Thus equal opponent magnitudes preserve the rotational symmetry of the ring and do not generate bump transport. Directed motion requires , which breaks the symmetry and leaves a nonzero first-order transport term.
The state ring receives feedback from the gain populations with strength . Substituting the directional term into the ring equation and collecting all nondirectional terms into gives
The symmetric part is
The transport coefficient is
Depending on the sign convention used for the feedback projection, the sign of may be absorbed into or into the definitions of the positive and negative gain channels. The important point is that the transport coefficient is proportional to the phase shift , the bidirectional coupling , and the local gain difference between the two opponent channels.
Using , the transport equation becomes
Thus gain modulation supplies the scalar coefficient multiplying the Lie algebra generator of the ring. Finally, consider the single-bump approximation
Then
If is approximately constant over the bump support, or if it is projected onto the bump tangent direction, the dynamics reduce to an effective phase equation
where is the transport coefficient averaged or projected over the bump. Therefore opponent gain modulation encodes velocity along the -structured bump manifold, rather than encoding the joint angle directly.
C Fourier decoder derivation
This appendix provides the derivation underlying the positional Fourier decoder in Section 2.4. The problem is to convert a distributed bump state into a scalar phase estimate that can be used by the homeostatic comparator.
Let the ring activity be a translated bump profile
where indexes discrete ring positions and is the bump position. The centroid estimator is
Assume that the bump shape and amplitude are approximately constant under translation. Then the total mass
is approximately independent of . The centroid can then be written as the linear decoder
To center the decoded coordinate, define
Then
Thus position decoding is equivalent to projecting the activity profile onto a centered ramp function. On a periodic interval, the centered ramp is represented by a sine series. For ,
Substituting this into the centered centroid estimator gives
Interchanging the order of summation yields
Define the m-th sine feature
Then
Truncating the series to K modes gives the practical decoder
with
If the bump profile has finite width, then each sine feature is attenuated by the Fourier response of the bump shape. In this case,
where depends on the shape and width of the bump. A shape-corrected decoder can therefore absorb this attenuation into the weights:
This shows that the Fourier decoder is a periodic reformulation of the centroid estimator. The centroid projects activity onto a ramp; the Fourier decoder expresses that ramp in a sine basis adapted to the ring geometry.
D Signed implementation of Fourier features
The sine features used by the decoder can take positive or negative values, whereas firing rates and spike counts are nonnegative. To implement signed Fourier features with nonnegative neural activity, each sine feature is represented by two subpopulations:
The signed feature is recovered by subtraction:
In practice, the two subpopulations accumulate spike responses to the positive and negative parts of the sine feature. The downstream linear decoder then combines the recovered signed features to estimate the bump phase. This implements the Fourier phase readout using nonnegative neural responses while preserving the linear decoding structure used in the main text.
E Compositional ring decoder for orientation
This appendix derives the orientation readout used in the robot experiments. The control mechanism — homeostatic comparison driving opponent gain modulation on individual rings — is described in the main text. Here we show how the decoded phases of several such rings compose into a robot-level orientation estimate through forward kinematics. This is a readout, not an additional control law.
E.1 From ring activity to local trigonometric features
The Fourier readout derived in Appendix C extracts a scalar phase estimate from each ring. For the orientation readout we retain the trigonometric form rather than collapsing to a scalar angle, because forward kinematics is naturally expressed in terms of sines and cosines. For ring i with activity profile over positions , the first harmonic Fourier features are
When bump shape and amplitude are approximately preserved under translation — the same condition that justifies the centroid approximation in the main text — normalising by the bump shape gives reliable estimates
(15) where is the phase represented by the bump centroid. These are collected into a local feature vector
where the constant term accounts for the fixed entries present in all coordinate-axis rotation matrices.
E.2 A single revolute rotation is linear in ring features
A rotation about a coordinate axis takes the form
Each matrix is linear in 1, , , so for any coordinate axis the local rotation can be written as
where the coefficient matrices , , are read off directly from equation (17) and are fixed once the joint axis is known. A single ring’s Fourier features therefore suffice to linearly represent one coordinate-axis revolute rotation.
E.3 Composing rings produces product Fourier features
For a serial chain of n revolute joints, the end-effector orientation is the ordered product
The order here is not arbitrary — serial rotations do not commute, so the multiplication order is part of the kinematic convention and must match the robot model. Substituting equation (18) for each factor and expanding yields matrix entries that are sums of products of local sine and cosine terms across joints, such as
All such terms appear in the tensor product of the individual feature vectors. The chain feature vector
contains every cross-term generated by the kinematic chain and has entries for first-harmonic rings. Since every entry of is a sum of these product features, there exists a fixed matrix such that
which is exact for coordinate-axis revolute chains. For the three-ring case considered here has entries, which is entirely manageable; longer chains would require feature pruning or low-rank approximation.
E.4 Neural implementation with estimated features
In the spiking model the exact features are replaced by ring-activity estimates, giving
Because product Fourier features can take positive or negative values while neural firing rates are nonnegative, each feature is implemented via a push-pull pair of subpopulations,
preserving the linear readout structure while remaining compatible with nonnegative spike counts. The signed product populations project directly to output rings for lift, pitch, and yaw using analytic or learned weights.
E.5 Three-ring orientation readout for lift, pitch, and yaw
For the robot experiments three ring coordinates represent lift, pitch, and yaw. Under the ordered convention
the composed feature vector supports the exact linear readout . When an explicit rotation matrix is decoded, lift, pitch, and yaw are recovered as
valid away from the gimbal singularity at , which does not arise in the workspace used for the Tiago experiments. Alternatively, a direct linear decoder from to each output ring coordinate can be fitted, bypassing explicit matrix extraction and allowing the composition to be carried out entirely within the neural substrate.
The orientation produced by this readout is not separately controlled. It is the forward-kinematic image of three independently controlled ring trajectories, each driven by its own homeostatic gain-modulation loop.
F Extra Results
F.1 Tiago single-joint control from gain-modulated ring velocity

Gain imbalance vs velocity cmd - Joint 3

Settling time (tol=0.05 rad) - Joint 3
Gain imbalance vs velocity cmd - Joint 5
Settling time (tol=0.05 rad) - Joint 5
Gain imbalance (right - left spikes)
Figure 7: Left: Gain-population imbalance versus decoded velocity command across joints 0,3 and 5. Each point represents one recorded time step from the ring controller, showing an approximately linear increase in decoded velocity with the difference between right and left gain-population spike counts. Right: Settling time for joints 0, 3, and 5 under the ring and PID controllers. Settling time is defined as the first time the absolute tracking error remains below 0.05 rad for 5 consecutive samples; bars show mean ± 1 SD across trials.

Error over time - Joint 3
Velocity command over time - Joint 3
Error over time - Joint 5
Velocity command over time - Joint 5
Figure 8: Left: Absolute tracking error over time for joints 0, 3, and 5, shown for representative Ring and PID trials. The dashed line indicates the 0.05 rad tolerance. PID drops into this band quickly, while the Ring controller reduces error more slowly and reaches the same threshold later. Right: Velocity command over time for joints 0, 3, and 5, shown for representative Ring and PID trials. PID starts with a strong corrective command and rapidly decays toward zero, while the Ring controller applies smaller, smoother commands that vary gradually over a longer duration.
F.2 NEST implementation of the forward-kinematic ring decoder
Sawtooth circular index error

Figure 9: Circular index error for the two-ring forward-kinematic decoder under the same sweep conditions as Figure 6. Across both sweeps and all three decoded orientation variables, the circular error remains small, confirming that the discontinuities in Figure 6 arise from the circular representation rather than decoder failure.
Signed-product term traces (q1 fixed, q2 sweep)

Output ring profiles (q1 fixed, q2 sweep)
Figure 10: Spiking implementation of the two-ring forward-kinematic decoder in NEST. Top: signed product-feature population activity during a sweep of with fixed, showing systematic variation of first-order features ( , , , ) and second-order products ( , etc.) with joint angle. Bottom: output ring profiles for lift, pitch, and yaw at representative values, showing structured population responses driven by the product-feature layer.
G Model Parameters
Table 1: Spiking model parameters used for the ring, homeostatic comparator, and gain-modulation populations.
| Parameter | Symbol | Ring | Homeostatic | Gain |
|---|---|---|---|---|
| Neuron parameters for iaf_psc_alpha | ||||
| Firing threshold (mV) | 0.8 | 0.8 | 1.35 | |
| Membrane time constant (ms) | 7.04 | 7.04 | 7.04 | |
| Membrane capacitance (pF) | ||||
| Excitatory synaptic time constant (ms) | 27.0 | 75.0 | 27.0 | |
| Inhibitory synaptic time constant (ms) | 50.0 | 50.0 | 50.0 | |
| Background current (pA) | 0 | |||
| Refractory period (ms) | 0 | 0 | 0 | |
| Ring-attractor topology and readout | ||||
| Population size | 200 | |||
| Represented positions | 30 | |||
| Readout weight scale | 200 | |||
| Ridge regularization | ||||
| Gain-modulation connectivity | ||||
| Homeostatic comparator to gain | ||||
| Ring to gain | ||||
| Gain to ring | ||||
| Cross-inhibition | ||||