betaFeedback

WorksComputer Science

RingNav: Task-Shaped Circular Memory for Visual Heading

Abstract

Tiny robots have limited computation and memory, yet visual navigation systems often maintain more state than a task requires. We ask whether persistent memory can instead be shaped by the task. We present RingNav, a 10.610.6k–parameter visual heading estimator that constrains its memory to the circular manifold S1S^1. RingNav learns only the turn between consecutive images, while heading is composed directly on the circle. On the TartanAir Visual SLAM Challenge, RingNav reduces mean absolute turn error by 27%27\% and accumulated heading error over 44 sec by 15%15\% relative to a similarly sized learned-memory model. The structured update also gives exactly zero turn for identical frames and exact cancellation under sequence reversal. Without fine-tuning, RingNav transfers to real-world drone experiments and continues estimating heading under severe visual degradation. RingNav runs at 27.327.3Hz on Raspberry Pi Zero 2W and can be deployed on an ultra-low power GAP8 processor at 33.433.4Hz.

Introduction

Autonomous visual navigation remains difficult to deploy on small robots because computation and memory are limited. Visual odometry (VO) estimates camera motion from an image sequence, while simultaneous localization and mapping (SLAM) additionally maintains a representation of the environment for localization [1, 2, 3, 4, 5]. These systems recover rich motion and scene information, even when a task may require only a small part of that state.

Recent work has reduced the cost of visual navigation for resource-constrained robots through smaller estimators and task-specific representations [6, 7, 8, 9, 10, 11]. These methods reduce the cost of estimating or storing navigation information. A second source of complexity is what the robot must remember over time. Different behaviors require different information, ranging from no persistent state for reactive control to full pose for metric navigation. This idea is consistent with purposive and task-driven estimation, which seek representations sufficient for the behavior rather than recovering the full physical state [12, 13, 14].

We call this principle task-shaped memory: when the state to be remembered and its update rule are known from the task, learning is needed only to estimate how that state changed from the observations. Different tasks can therefore require different memory structures, as shown in Table I.

Task dependenceStateDoFState update
HeadingS1S^11circular rotation
Heading + progressS1×RS^1 \times\mathbb{R}2rotation + addition
Heading + cyclic progressT2=S1×S1T^2 = S^1 \times S^12two circular rotations
3D bearingS2S^22SO(3)SO(3) action
Planar poseSE(2)SE(2)3rigid-body composition
3D poseSE(3)SE(3)6rigid-body composition

Table I. TASK-SELECTED PERSISTENT STATE. DIFFERENT BEHAVIORS REQUIRE DIFFERENT INFORMATION TO PERSIST OVER TIME.

These examples illustrate the design principle; this work experimentally studies only heading on S1S^1.

For heading, the state has one degree of freedom but is periodic: after a full rotation, the robot faces the same direction again. Its possible values therefore form the circle S1S^1. A recurrent network can instead encode heading in a latent hidden state ht∈Rnh_t \in\mathbb{R}^n, whose representation and update are learned from data.

Task-shaped memory for visual heading

Figure 1. Task-shaped memory for visual heading. RingNav estimates the visual turn between consecutive images and maintains heading as a persistent circular state. On a real Crazyflie flight, its heading estimate follows motion-capture ground truth around the trajectory. The estimator uses 10.6k trainable parameters.

Task-shaped memory instead fixes the heading state to S1S^1 and its update to circular rotation, leaving only the visual turn between consecutive images to be learned.

This leads to RingNav, a 10.6k-parameter monocular heading estimator. A lightweight image-pair network estimates the visual turn Δψt\Delta\psi_t between consecutive frames, and this turn directly rotates the stored heading on S1S^1. The estimator is further constrained so that identical images produce exactly zero turn and reversing the image order reverses the predicted turn. To isolate the effect of these choices, we compare RingNav with similarly sized alternatives that learn the persistent state, its update, or both.

Key Contributions

  • We present RingNav, a 10.6k-parameter monocular heading estimator that learns the turn between images while storing heading on S1S^1 and updating it directly with the

predicted turn, rather than learning the persistent state and its update.

  • We constrain the visual turn estimator so that identical frames produce exactly zero predicted turn and reversing the image order exactly reverses the prediction.

  • We provide controlled evaluation under unseen, degraded, repeated, and missing visual information, together with comparisons to rotation-only and full visual-motion estimators, zero-shot transfer to real Crazyflie flight data, and edge-runtime evaluation.

Related Work

Visual Rotation and Heading Estimation. Heading is commonly propagated from inertial measurements by integrating gyroscope angular rate, while magnetometers can provide a yaw reference. Gyroscope integration accumulates drift over time, and magnetometer-based heading can be degraded by local magnetic disturbance [15, 16]. Vision provides a scene-derived cue that is complementary to inertial heading propagation. Vision-only attitude and angular-rate estimation has also been demonstrated for flight control [11].

Visual compasses estimate heading from appearance [17, 18], while rotation-only visual estimators recover camera rotation without estimating translation or an explicit 3D map [19, 20]. Feature-based visual rotation can be accurate, but requires feature extraction, matching, and geometric estimation [20]. Rotation has also been estimated from event cameras [21] and by combining learned features with direct alignment [22]. Full visual odometry estimates both rotation and translation [3, 4, 5], and methods such as DPVO and DROID-SLAM combine learned components with geometric optimization [4, 5]. Task-specific sensing has also been used to improve visual odometry [23, 24].

Prior work has also used forward and backward motion estimates [25, 26], while recent relative-pose work has enforced inverse consistency when the order of two input images is reversed [27]. RingNav imposes the corresponding property on visual turn estimation: reversing the image order exactly reverses the predicted turn. The predicted turn is then used to update the persistent S1S^1 heading state.

Visual Navigation on Resource-Constrained Robots. Small robots have motivated compact learned navigation [6], event-based visual odometry on ultra-low-power hardware [7], compact route memories [8], visual homing and path integration [9], and teach-and-repeat navigation [10]. These works reduce the computation needed for navigation or reduce the information that must be estimated. More broadly, task-driven estimation seeks representations sufficient for a behavior rather than recovering the full physical state [13, 14]. RingNav asks a related question: if heading already has a known circular structure, does the robot need to learn how to store and update it?

Structured Representations of Heading. Biological heading systems provide an example of memory with a circular structure. In insects, heading-related neural activity forms a persistent ring-like representation that moves as the animal turns [28, 29, 30, 31], and circular organization has also been observed in mammalian head-direction populations [32]. Circular task states have also been built into recurrent networks [33], and ring-attractor models have been used for robotic orientation and navigation [34, 35].

Structured representations and composition rules for orientation and pose are also widely used in robotic state estimation [36]. RingNav uses the known circular structure as the persistent heading state and fixes its rotation update, leaving only the visual turn between images to be learned.

Method

Let ItI_t denote the tt-th sampled image, and let ψt\psi_t denote its heading about the vertical axis. The turn between successive observations is

Δψt=wrap⁡(ψt+1−ψt),(1)\Delta\psi_t = \operatorname{wrap}(\psi_{t+1} - \psi_t), \tag*{(1)}

where wrap⁡:R→[−π,π)\operatorname{wrap}: \mathbb{R} \to[-\pi,\pi). RingNav consists of an ordered image-pair mapping qθq_\theta, an antisymmetric projection that gives the visual increment Δψ^t\widehat{\Delta\psi}_t, and a fixed rotation acting on a persistent latent state st∈S1s_t \in S^1, as shown in Figure 2.

Figure 2. RingNav pipeline. A shared image-pair network processes consecutive observations in both temporal orders. Their half-difference gives the visual increment Δψ^t\Delta\widehat{\psi}_t, which acts on the latent manifold S1S^1 through R(Δψ^t)R(\Delta\widehat{\psi}_t), advancing the persistent state from sts_t to st+1s_{t+1} and yielding the updated heading ψ^t+1\widehat{\psi}_{t+1}.

Visual Increment Network

For an ordered image pair (Ia,Ib)(I_a,I_b), RingNav defines the scalar mapping

qθ:I×I→R,q_\theta: \mathcal{I} \times\mathcal{I} \to\mathbb{R},

where I\mathcal{I} denotes the image space. Each image is 320×320320 \times320 RGB. For the forward ordering (It,It+1)(I_t,I_{t+1}), the ImageNet-normalized images are concatenated channel-wise and encoded as

zt=Eθ([It,It+1]),zt∈R24.(2)z_t = E_\theta([I_t,I_{t+1}]), \qquad z_t \in\mathbb{R}^{24}. \tag*{(2)}

The encoder EθE_\theta contains four 3×33 \times3 convolutions with stride 2, no bias, and 8, 12, 16, and 24 output channels, each followed by batch normalization and ReLU. Global average pooling after the final block gives ztz_t. A two-layer MLP with hidden and output width 32 produces

ft=W2ReLU⁡(W1zt+b1)+b2,ft∈R32.(3)f_t = W_2\operatorname{ReLU}(W_1z_t+b_1)+b_2, \qquad f_t \in\mathbb{R}^{32}. \tag*{(3)}

A gated scalar head gives the ordered prediction

qθ(It,It+1)=wOT[(Aft+a)⊙σ(Bft+b)],(4)q_\theta(I_t,I_{t+1}) = w_O^\mathsf{T}[(Af_t+a)\odot\sigma(Bf_t+b)], \tag*{(4)}

where A,B∈R32×32A,B \in\mathbb{R}^{32\times32}, a,b,wO∈R32a,b,w_O \in\mathbb{R}^{32}, σ(⋅)\sigma(\cdot) is the sigmoid function, and ⊙\odot denotes element-wise multiplication.

Antisymmetric Projection

The ordered mapping qθq_\theta is not itself constrained to be antisymmetric. We evaluate the shared network in both temporal orders,

qf,t=qθ(It,It+1),qr,t=qθ(It+1,It),(5)q_{f,t} = q_\theta(I_t,I_{t+1}), \qquad q_{r,t} = q_\theta(I_{t+1},I_t), \tag*{(5)}

and take their antisymmetric component,

Δψ^t=12(qf,t−qr,t).(6)\widehat{\Delta\psi}_t = \frac{1}{2}(q_{f,t}-q_{r,t}). \tag*{(6)}

Equivalently, for arbitrary Ia,IbI_a, I_b,

Δψ^(Ia,Ib)=12[qθ(Ia,Ib)−qθ(Ib,Ia)].(7)\Delta\widehat{\psi}(I_a,I_b)=\frac{1}{2}\left[q_\theta(I_a,I_b)-q_\theta(I_b,I_a)\right]. \tag*{(7)}

It follows directly that

Δψ^(Ib,Ia)=−Δψ^(Ia,Ib),Δψ^(I,I)=0.(8)\Delta\widehat{\psi}(I_b,I_a)=-\Delta\widehat{\psi}(I_a,I_b),\qquad\Delta\widehat{\psi}(I,I)=0. \tag*{(8)}

Thus reversing an image pair exactly reverses the predicted increment, while identical images produce zero increment. In exact arithmetic, the predicted increments from a sequence and the same sequence traversed in reverse therefore sum to zero. The two evaluations share all parameters. Because the images are concatenated before EθE_\theta, the forward and reverse orderings require separate image-pair evaluations.

Latent Manifold Dynamics on S1S^1

The persistent latent state is constrained to the unit circle

S1={s∈R2:∥s∥2=1}.(9)S^1=\left\{s\in\mathbb{R}^2:\lVert s\rVert_2=1\right\}. \tag*{(9)}

An estimated heading ψ^t\widehat{\psi}_t is represented by

st=[cos⁡ψ^tsin⁡ψ^t]∈S1.(10)s_t=\begin{bmatrix}\cos\widehat{\psi}_t\\ \sin\widehat{\psi}_t\end{bmatrix}\in S^1. \tag*{(10)}

The persistent latent state contains two FP32 values, or 8 bytes. The visual increment acts on S1S^1 through the planar rotation

R(δ)=[cos⁡δ−sin⁡δsin⁡δcos⁡δ]∈SO(2).(11)R(\delta)=\begin{bmatrix}\cos\delta&-\sin\delta\\ \sin\delta&\cos\delta\end{bmatrix}\in SO(2). \tag*{(11)}

The state transition is

st+1=ΠS1(R(Δψ^t)st),(12)s_{t+1}=\Pi_{S^1}\left(R(\Delta\widehat{\psi}_t)s_t\right), \tag*{(12)}

where

ΠS1(x)=x∥x∥2.(13)\Pi_{S^1}(x)=\frac{x}{\lVert x\rVert_2}. \tag*{(13)}

In exact arithmetic, R(δ)S1=S1R(\delta)S^1=S^1, so the rotation preserves the manifold. The projection in Eq. (13) only corrects finite-precision changes in vector norm. Equation (12) contains no learned parameters.

The heading represented by the latent state is recovered as

ψ^t=atan2⁡(st,2,st,1).(14)\widehat{\psi}_t=\operatorname{atan2}(s_{t,2},s_{t,1}). \tag*{(14)}

For an initial latent state s0∈S1s_0\in S^1, successive visual increments therefore propagate the heading entirely through the fixed circular update.

Training Objective

Training uses 24-frame windows whose temporal stride is drawn uniformly from {1,2}\{1,2\} for each window. Within a window, tt indexes the sampled observations, so ItI_t and It+1I_{t+1} denote consecutive samples in that window. Validation and all evaluations use stride 1.

For angles aa and bb, define the circular error

ℓ(a,b)=∣wrap⁡(a−b)∣.(15)\ell(a,b)=\lvert\operatorname{wrap}(a-b)\rvert. \tag*{(15)}

The local visual-increment loss is

LΔψ=1N∑tℓ(Δψ^t,Δψt),(16)\mathcal{L}_{\Delta\psi}=\frac{1}{N}\sum_t\ell(\Delta\widehat{\psi}_t,\Delta\psi_t), \tag*{(16)}

where NN is the number of sampled transitions. To supervise accumulated turn, we use horizons H={2,4,8}\mathcal{H}=\{2,4,8\}. The ground-truth change over kk transitions is

Δψt,k=wrap⁡(ψt+k−ψt),(17)\Delta\psi_{t,k}=\operatorname{wrap}(\psi_{t+k}-\psi_t), \tag*{(17)}

and the path-integration loss is

LPI=1∣H∣∑k∈H1∣Wk∣∑t∈Wkℓ(∑τ=tt+k−1Δψ^τ,Δψt,k),(18)\mathcal{L}_{\mathrm{PI}}=\frac{1}{\lvert\mathcal{H}\rvert}\sum_{k\in\mathcal{H}}\frac{1}{\lvert\mathcal{W}_k\rvert}\sum_{t\in\mathcal{W}_k}\ell\left(\sum_{\tau=t}^{t+k-1}\Delta\widehat{\psi}_\tau,\Delta\psi_{t,k}\right), \tag*{(18)}

where Wk\mathcal{W}_k contains the valid starting indices for horizon kk. The ordered predictions are additionally supervised by

Lbr=1N∑t[ℓ(qf,t,Δψt)+ℓ(−qr,t,Δψt)],(19)\mathcal{L}_{\mathrm{br}} = \frac{1}{N} \sum_t \left[\ell(q_{f,t}, \Delta\psi_t) + \ell(-q_{r,t}, \Delta\psi_t)\right], \tag*{(19)}

and their symmetric component is penalized by

Lsym=1N∑t∣qf,t+qr,t2∣.(20)\mathcal{L}_{\mathrm{sym}} = \frac{1}{N} \sum_t \left|\frac{q_{f,t} + q_{r,t}}{2}\right|. \tag*{(20)}

Antisymmetry of Δψt^\widehat{\Delta\psi_t} follows from Eq. (6) by construction. The auxiliary losses Lbr\mathcal{L}_{\mathrm{br}} and Lsym\mathcal{L}_{\mathrm{sym}} instead regularize the ordered predictions before their antisymmetric projection.

The complete objective is

L=4LΔψ+0.1LPI+Lbr+0.5Lsym.(21)\mathcal{L} = 4\mathcal{L}_{\Delta\psi} + 0.1\mathcal{L}_{\mathrm{PI}} + \mathcal{L}_{\mathrm{br}} + 0.5\mathcal{L}_{\mathrm{sym}}. \tag*{(21)}

No loss is applied directly to sts_t; its evolution is fixed by Eq. (12).

At inference, each new image is paired with the preceding image. Equations (5)–(6) produce the visual increment, Eq. (12) advances the latent state, and Eq. (14) recovers the heading. RingNav is causal and requires no future frames, map, keyframes, or learned latent-state transition.

Experiments

We evaluate RingNav on synthetic benchmarks and real Crazyflie flights, and organize the experiments around the following questions:

Q1. How accurately does RingNav estimate heading across CompTest, HDH-Bench, and real data?

Q2. What is the effect of the S1\mathbb{S}^1 heading state, fixed rotation update, and antisymmetric visual turn?

Q3. How does RingNav behave when visual input is degraded or missing?

Q4. Does RingNav transfer to the real world without fine-tuning?

Q5. What computation and memory does RingNav require on resource-constrained hardware?

Experimental Setup

Data. Training uses 104 sequences: 80 TartanAir trajectories from 13 environments and 24 rendered trajectories spanning an apartment, a workshop, an urban alley, and an atrium [37, 38]. Eight additional TartanAir trajectories are used for validation. Evaluation uses the 16-trajectory TartanAir Visual SLAM Challenge test set (CompTest), HDH-Bench with 196 trajectories from four rendered scenes not used for training, and 35 Crazyflie sequences totaling 18,974 image transitions. The four HDH-Bench scenes comprise a repetitive corridor, a large urban environment, a parking garage, and a forest. The Crazyflie set contains 23 clean flights and 12 degraded sequences derived from four turning flights.

No real-world data is used for training or model selection. Training does not contain any blur, flicker, rolling-shutter, lens-contamination, low-light, low-contrast, camera-freeze, or repeated-frame augmentations.

Input processing. RingNav uses pairs of 320 × 320 RGB images. Synthetic 4:3 images are resized directly to this resolution.

resolution. For Crazyflie, a 406 × 306 region centered on the calibrated principal point is cropped and resized to 320 × 320.

Metrics. For predicted and ground-truth turns Δψt^\widehat{\Delta\psi_t} and Δψt\Delta\psi_t, the turn residual is

rt=wrap⁡(Δψt^−Δψt).(22)r_t = \operatorname{wrap}\left(\widehat{\Delta\psi_t} - \Delta\psi_t\right). \tag*{(22)}

We report mean absolute turn error,

EMAE=1N∑t∣rt∣.(23)E_{\mathrm{MAE}} = \frac{1}{N} \sum_t \lvert r_t\rvert. \tag*{(23)}

To measure accumulated drift, we also report

D4s=1M∑i∣∑t∈Wirt∣,(24)D_{4s} = \frac{1}{M} \sum_i \left|\sum_{t\in W_i} r_t\right|, \tag*{(24)}

the mean absolute accumulated turn error over four-second sliding windows. At the nominal sampling rates of 10 Hz for CompTest, 24 Hz for HDH-Bench, and approximately 31.2 Hz for Crazyflie, four seconds corresponds to 40, 96, and 125 transitions, respectively. Sequence metrics are weighted by the number of transitions.

TartanVO, DPVO, and ORB-SLAM2 are each evaluated over five runs. DROID-SLAM is evaluated over 11 runs on CompTest and five runs on HDH-Bench and Crazyflie. For each repeated-run baseline, we report the median turn MAE, median D4sD_{4s}, and median coverage across runs. If a method does not return an estimate for a transition, that transition is scored as zero turn. Methods with median coverage below 80% are marked ×. Crazyflie transitions without valid motion-capture measurements are excluded from turn MAE. For two clean flights shorter than four seconds, accumulated turn error is computed over the available sequence duration.

For turn scoring, TartanVO uses the zz-component of rotation vector of RtTRt+1R_t^{\mathsf{T}}R_{t+1}, while DPVO, DROID-SLAM, and ORB-SLAM2 use the yy-component in their camera convention. Visual Gyro uses the same camera-yy turn. Ground-truth heading is world yaw about gravity for TartanAir, optical-axis azimuth for HDH-Bench, and airframe azimuth for Crazyflie. No initial-orientation or trajectory alignment is applied before scoring.

Training. RingNav and the four model variants mentioned in Table III–A are trained for 50 epochs with AdamW, a learning rate of 3×10−43 \times10^{-4}, weight decay 3×10−43 \times10^{-4}, and batch size 8. Checkpoints are selected by the mean geodesic heading error over the 24 states of each stride-1 validation window, initialized from its ground-truth starting heading and averaged over the eight validation trajectories.

VariantStateUpdateTurn MAED4sD_{4s}ErevE_{\mathrm{rev}} (°)
PairGRUlearnedlearned0.81020.653.4
learned-S1S^1S1S^1learned0.63619.63,205
exact-S1S^1S1S^1fixed0.64119.76,190
skew-S1S^1S1S^1fixed0.60717.90
RingNavS1S^1fixed0.58917.60
Update10310^310410^410510^5
learned MLP, R2\mathbb{R}^272.270.571.8
learned GRU, R16\mathbb{R}^{16}36.137.355.7
fixed rotation, FP323.1×10−53.1 \times10^{-5}1.5×10−41.5 \times10^{-4}4.6×10−44.6 \times10^{-4}

Table III. Ablation of the latent state, update, and visual increment. (A) End-to-end heading estimation and forward–reverse error. (B) State error after repeated updates with the same turn sequence.

Heading Estimation

We compare RingNav with TartanVO, DPVO, DROID-SLAM, and ORB-SLAM2 as full visual-motion estimators [3, 4, 5, 39], and with the Visual Gyro of [20] as a rotation-only estimator. We also include an always-zero turn baseline. Table II summarizes heading estimation across CompTest, HDH-Bench, and Crazyflie.

MethodCompTestHDH-BenchCrazyflie
Reference
Zero turn0.861 / 22.31.741 / 158.70.774 / 65.2
Full Visual Motion
TartanVO0.206 / 4.80.267 / 22.90.347 / 12.1
DPVO0.177 / 4.20.106 / 5.30.336 / 4.3
DROID-SLAM0.198 / 4.60.148 / 7.00.343 / 4.4
ORB-SLAM2×××
Rotation / Heading Only
Visual Gyro0.323 / 6.8×0.511 / 26.9
RingNav0.589 / 17.60.417 / 34.50.458 / 22.2

Table II. Heading estimation across domains. Turn MAE / four-second accumulated turn error D4sD_{4s}, in degrees. × denotes coverage below 80%; the best result within each method group is bolded.

Each baseline retains its own visual front end. On HDH-Bench, TartanVO uses 640 × 448 input, DPVO 640 × 480, DROID-SLAM 512×384512 \times384, and Visual Gyro 320×320320 \times320 grayscale images. On Crazyflie, the full visual-motion methods use the calibrated full-resolution stream with their method-specific preprocessing, while Visual Gyro resizes the full frame to 320×320320 \times320 grayscale.

On CompTest, Visual Gyro provides the more accurate rotation estimate, reaching 0.323∘0.323^\circ turn MAE and 6.8∘6.8^\circ four-second accumulated turn error compared with 0.589∘0.589^\circ and 17.6∘17.6^\circ for RingNav. The full visual-motion estimators are also more accurate on this benchmark; RingNav instead targets a compact heading-only estimator whose computational cost is evaluated in § 4-F.

Across the 196 HDH-Bench trajectories, RingNav completes the full set with 0.417∘0.417^\circ turn MAE and 34.5∘34.5^\circ four-second accumulated turn error. The scenes contain repetitive indoor structure, large outdoor environments, a parking garage, and a forest, none of which appears in training. Representative heading estimates are shown in Figure 3. Visual Gyro falls below the 80% coverage threshold on this set.

Heading estimates on HDH-Bench

Figure 3. Heading estimates on HDH-Bench. Ground truth, RingNav, and Visual Gyro on representative trajectories.

Across the 35 Crazyflie sequences, RingNav reaches 0.458∘0.458^\circ turn MAE and 22.2∘22.2^\circ four-second accumulated turn error, compared with 0.511∘0.511^\circ and 26.9∘26.9^\circ for Visual Gyro at 83.4% pooled coverage. RingNav also improves over the zero-turn baseline on all three evaluation sets. § 4-E separates clean and degraded flights.

State and Update Ablation

We next isolate the contribution of the persistent state, its update, and the visual turn using four similarly sized variants, summarized in Table III. PairGRU learns a recurrent state and its update. learned-S1S^1 keeps the heading state on S1S^1 but learns the update. exact-S1S^1 uses the S1S^1 state and fixed rotation update from Eq. (1), but predicts the visual turn from one image order. skew-S1S^1 adds the antisymmetric visual turn from Eq. (6), but omits the branch and symmetry losses. RingNav uses the complete model in § 3.

RingNav, exact-S1S^1, and skew-S1S^1 contain 10,600 trainable parameters; learned-S1S^1 contains 9,642 and PairGRU 10,890. Each model also contains four frozen parameters in a 2×22 \times2 identity layer used for state initialization. All five models use the same training data and lightweight visual encoder. The four S1S^1 variants carry an 8-byte persistent state, compared with the 64-byte, 16-dimensional state of PairGRU.

For the forward–reverse test, each of the 16 CompTest sequences is traversed forward and backward repeatedly for up to 10510^5 transitions. ErevE_{\mathrm{rev}} is the transition-weighted mean absolute unwrapped accumulated turn. Emem(N)E_{\mathrm{mem}}(N) measures state error after NN updates when the same world-heading turn sequence is applied to each update model.

Restricting the persistent state to S1S^1 reduces turn MAE from 0.810∘0.810^\circ for PairGRU to 0.636∘0.636^\circ, while four-second accumulated turn error decreases from 20.6∘20.6^\circ to 19.6∘19.6^\circ. Replacing the learned update with fixed rotation changes local accuracy little: exact-S1S^1 reaches 0.641∘0.641^\circ turn MAE and 19.7∘19.7^\circ accumulated turn error. Thus, fixing the known state update removes a learned degree of freedom, but does not by itself improve visual turn estimation.

MethodCleanBlurFlickerRoll. shutterLens dirt
\multicolumn{6}{c}{Full Visual Motion}
TartanVO0.105/7.90.104/8.00.105/7.90.107/7.90.529/16.4
DPVO0.021/0.120.022/0.130.021/0.120.022/0.17×
DROID-SLAM0.069/1.000.076/1.00.023/0.180.049/0.990.625/16.0
\multicolumn{6}{c}{Rotation / Heading Only}
Visual Gyro0.141/5.8×0.151/6.00.142/5.90.535/15.8
RingNav0.143/6.90.137/6.90.291/8.90.142/6.90.408/16.1

Table 4. HEADING UNDER DEGRADED AND MISSING VISUAL INPUT. (A) TURN MAE / FOUR-SECOND ACCUMULATED TURN ERROR UNDER IMAGE DEGRADATION. (B) PREDICTED TURN MAGNITUDE, ACCUMULATED TURN ERROR OVER THE TEST INTERVAL, AND LOCAL RESIDUAL RMSE OVER THE FOLLOWING 20 TRANSITIONS.

Method∣Δψ‾∣\lvert\overline{\Delta\psi}\rvertWin.Post-20∣Δψ‾∣\lvert\overline{\Delta\psi}\rvertWin.Post-20
\multicolumn{3}{c}{Camera Freeze}\multicolumn{3}{c}{Near-Dark}
\multicolumn{7}{c}{Full Visual Motion}
TartanVO0.00840.750.3621.5384.620.362
DPVO0.01340.770.5341.7010.470.068
DROID-SLAM0.27542.790.2261.7451.810.306
\multicolumn{7}{c}{Rotation / Heading Only}
Visual Gyro××××××
RingNav0.00040.760.3551.11416.460.355

Table 4B.

The antisymmetric visual turn affects a different property. Variants without the order-reversal constraint accumulate a nonzero residual under repeated forward and reverse traversal, while skew-S1S^{1} and RingNav give Erev=0E_{\mathrm{rev}} = 0. RingNav also gives the lowest turn MAE and four-second accumulated turn error among the five compact models. The exact constraint requires two ordered evaluations: one 320×320320 \times320 RGB pass costs 20.74 MMAC, compared with 41.48 MMAC per RingNav update.

Panel B isolates the state update from the image network. With the same world-heading turn parameterization, the learned updates accumulate tens of degrees of state error over long sequences, while fixed FP32 rotation remains near zero after 10510^{5} updates.

Degraded and Missing Visual Input

We then test how the estimators behave when visual information is degraded, repeated, or weak. Table IV–A reports turn MAE and D4sD_{4s}, while Figure 4 shows representative inputs and heading estimates. The controlled degradations use a 0.5-frame blur shutter, periodic flicker, a 0.3-frame top-to-bottom rolling-shutter readout with a 0.5-frame shutter, and lens contamination covering 34.6% of the image. Table IV–B uses 24 byte-identical frames for camera freeze and a 7.64-stop exposure reduction for near-dark input.

Figure 4. Heading under degraded and missing visual input. Example inputs and heading estimates under image degradation, camera freeze, and near-dark observations.

In Table IV–B, ∣Δψ‾∣\lvert\overline{\Delta\psi}\rvert is mean predicted turn magnitude, Win. is accumulated turn error over the test interval, and Post-20 is the local residual RMSE over the following 20 transitions. All values are in degrees, except predicted turn magnitude, which is in degrees per transition.

Under blur and rolling shutter, RingNav remains close to its clean result. Flicker and lens contamination increase its error. Under lens contamination, RingNav gives the lowest local turn error among methods that return estimates, but not the lowest four-second accumulated turn error. These results do not show general robustness to image degradation.

Camera freeze tests the identical-frame property in Eq. (8). During camera freeze, consecutive delivered frames are byte-identical while the platform continues to rotate. RingNav therefore predicts exactly zero turn and accumulates 40.76° of error over the freeze interval. Once image change returns, local turn estimation resumes, but the accumulated heading offset remains.

The complementary stationary case tests whether identical observations create spurious motion when the true turn is zero. Across four such sequences, PairGRU, learned-S1S^{1}, and exact-S1S^{1} accumulate 2.04°, 2.28°, and 2.69° of false turn, while skew-S1S^{1} and RingNav remain at zero. Together, the stationary and turning cases show both the benefit and limitation of the constraint: identical observations cannot introduce a visual turn, but they also cannot reveal motion during a camera freeze. RingNav does not currently distinguish these cases with a validity signal.

Near-dark images retain weak visual structure. RingNav therefore produces nonzero turn estimates and accumulates 16.46∘16.46^\circ error over the near-dark interval, while DPVO remains substantially more accurate. Together, the camera-freeze and near-dark tests separate the exact behavior under identical observations from estimation when visual information is weak but nonzero.

Real-Flight Transfer

We evaluate zero-shot transfer using the frozen RingNav checkpoint on 23 recorded Crazyflie flights and 12 degraded sequences derived from four of those flights, for a total of 18,974 image transitions at approximately 31.2 Hz. The 640 ×\times 480 FPV stream is synchronized with motion-capture heading. No real imagery is used for training or model selection, and all real-flight inference is performed offline on the recorded stream. Representative degraded-flight heading estimates are shown in Figure 5.

Figure 5. Heading on real Crazyflie flights. Ground truth, RingNav, and Visual Gyro on representative degraded sequences.

The 12 degraded sequences apply one of three controlled changes to four turning flights: 33-pixel motion blur, a 7-stop simulated underexposure followed by gain compensation to nominal brightness, preserving the resulting low-light noise, or 0.3×\times contrast.

On the 23 clean flights, Visual Gyro provides the more accurate estimate, reaching 0.325∘^\circ turn MAE and 3.3∘^\circ four-second accumulated turn error, compared with 0.379∘^\circ and 11.6∘^\circ for RingNav.

Under degradation, Visual Gyro coverage falls to 79% with motion blur, 4% under low light, and 78% under reduced contrast, while RingNav returns an estimate for every image pair. Across the 12 degraded sequences, RingNav reaches 0.602∘^\circ turn MAE and 41.9∘^\circ four-second accumulated turn error. Visual Gyro has 53.8% coverage and therefore falls below the reporting threshold. Scoring its missing updates as zero turns gives 0.853∘^\circ turn MAE and 70.3∘^\circ accumulated turn error. A zero-turn baseline reaches 1.034∘^\circ and 100.0∘^\circ.

These results show a different operating point rather than uniform accuracy improvement over Visual Gyro. The feature-based estimator is more accurate on clean flights and can remain more accurate when sufficient feature coverage is available, while RingNav continues returning estimates across all three tested degradations. Section IV-F evaluates the computational cost of the two estimators on edge hardware.

Edge Deployment

Finally, we benchmark RingNav on three Raspberry Pi platforms and on the GAP8 processor of the Crazyflie AI-deck. Visual Gyro is evaluated on the Raspberry Pi platforms for comparison. Table V reports measured heading-update rate and peak runtime memory. All reported rates exclude camera capture.

PlatformRingNav RAM (MiB)RingNav HzVisual Gyro RAM (MiB)Visual Gyro Hz
Pi 573.8199104.53.50
Pi 468.463.3102.11.21
Pi Zero 2W68.227.3130.20.349
GAP8 (AI-deck)0.4933.47.830.1

Table V. Edge deployment across hardware platforms. Heading-update rate and peak runtime memory on different embedded boards.

In the measured Raspberry Pi implementations, RingNav provides a 52–78× higher heading-update rate than Visual Gyro.

Gyro. This complements the accuracy results in Secs. IV-B and IV-E: Visual Gyro is more accurate on clean imagery, while RingNav targets the computational regime of resource-constrained robots.

The GAP8 deployment uses 320 ×\times 240 grayscale input and is reported separately from the 320 ×\times 320 RGB configuration used in the accuracy experiments. RingNav reaches 33.4 Hz and the complete runtime fits in 0.49 MiB of on-chip memory. The persistent heading state itself occupies 8 bytes. The current GAP8 implementation of Visual Gyro requires external HyperRAM and is therefore not included in the on-chip comparison.

Conclusion

Tiny robots need heading, yet most visual estimators recover substantially more state than the task requires. RingNav instead fixes the persistent heading state to S1S^{1}, updates it by an SO(2)SO(2) rotation, and learns only the visual turn between consecutive frames. This structured memory improves accuracy over a similarly sized learned-memory model, while antisymmetry gives exact sign reversal under image-order reversal and zero predicted turn for identical images.

RingNav transfers from synthetic training to real Crazyflie flight data without fine-tuning and continues returning estimates under the tested motion-blur, low-light, and low-contrast degradations. It runs at 33.4 Hz on GAP8 with the complete runtime contained in 0.49 MiB of on-chip memory.

Its main limitation remains visual turn accuracy: the fixed geometric update cannot correct an inaccurate or unobservable increment. Future work will improve the visual estimator while preserving the compact structured state, and extend task-shaped memory to richer navigation manifolds.

References

  1. [1]J. Engel, V. Koltun, and D. Cremers, “Direct sparse odometry,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 40, no. 3, pp. 611–625, 2018.
  2. [2]ORB-SLAM3: An accurate open-source library for visual, visual-inertial, and multi-map SLAM,” IEEE Transactions on Robotics, vol. 37, no. 6, pp. 1874–1890, 2021.
  3. [3]TartanVO: A generalizable learning-based visual odometry,” Conference on Robot Learning, 2021.arxiv.org/abs/2011.00359
  4. [4]Deep patch visual odometry,” in Advances in Neural Information Processing Systems, vol. 36, 2023.arxiv.org/abs/2208.04726
  5. [5]DROID-SLAM: Deep visual SLAM for monocular, stereo, and RGB-D cameras,” in Advances in Neural Information Processing Systems, vol. 34, pp. 16558–16569, 2021.
  6. [6]“A 64-mw DNN-based visual navigation engine for autonomous nano-drones,” IEEE Internet of Things Journal, vol. 6, no. 5, pp. 8357–8371, 2019.
  7. [7]“TinyDEVO: Deep event-based visual odometry on ultra-low-power multi-core microcontrollers,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 3724–3733, 2026.
  8. [8]“Visual route following for tiny autonomous robots,” Science Robotics, vol. 9, no. 92, p. eadk0310, 2024.DOI
  9. [9]“Efficient robot navigation inspired by honeybee learning flights,” Nature, vol. 653, no. 8116, pp. 1039–1046, 2026.DOI
  10. [10]“Antflie: Frugal visual teach and repeat on narrow FoV micro-drones,” IEEE Robotics and Automation Letters, vol. 11, no. 4, pp. 4617–4624, 2026.
  11. [11]“All eyes, no IMU: Learning flight attitude from vision alone,” npj Robotics, vol. 4, no. 21, 2026.
  12. [12]“GapFlyt: Active vision based minimalist structure-less gap detection for quadrotor flight,” IEEE Robotics and Automation Letters, vol. 3, no. 4, pp. 2799–2806, 2018.
  13. [13]“Task-driven estimation and control via information bottlenecks,” in 2019 International Conference on Robotics and Automation (ICRA), pp. 2061–2067, 2019.arxiv.org/abs/1809.07874
  14. [14]B. Sakçak, K. G. Timperi, V. Weinstein, and S. M. LaValle, “A mathematical characterization of minimally sufficient robot brains,” The International Journal of Robotics Research, vol. 43, no. 9, pp. 1342–1362, 2024.
  15. [15]H. Li, S. Chang, Q. Yao, C. Wan, G.-J. Zou, and D.-L. Zhang, “Robust heading and attitude estimation of MEMS IMU in magnetic anomaly field using a partially adaptive decoupled extended kalman filter and LSTM algorithm,” IEEE Transactions on Instrumentation and Measurement, vol. 73, pp. 1–13, 2024.
  16. [16]X. Cui, Y. Li, and Q. Wang, “Enhanced vehicle heading estimation for magnetometer/gyroscope integration with random magnetic interference detection based on pearson correlation coefficient,” IEEE Transactions on Instrumentation and Measurement, vol. 73, pp. 1–16, 2024.
  17. [17]F. Labrosse, “The visual compass: Performance and limitations of an appearance-based method,” Journal of Field Robotics, vol. 23, no. 10, pp. 913–941, 2006.
  18. [18]J. Sturm and A. Visser, “An appearance-based visual compass for mobile robots,” Robotics and Autonomous Systems, vol. 57, no. 5, pp. 536–545, 2009.DOI
  19. [19]G. L. Mariottini, S. Scheggi, F. Morbidi, and D. Prattichizzo, “An accurate and robust visual-compass algorithm for robot-mounted omnidirectional cameras,” Robotics and Autonomous Systems, vol. 60, no. 9, pp. 1179–1190, 2012.
  20. [20]W. Hartmann, M. Havlena, and K. Schindler, “Visual gyroscope for accurate orientation estimation,” in IEEE Winter Conference on Applications of Computer Vision, pp. 286–293, 2015.DOI
  21. [21]G. Gallego and D. Scaramuzza, “Accurate angular velocity estimation with an event camera,” IEEE Robotics and Automation Letters, vol. 2, no. 2, pp. 632–639, 2017.
  22. [22]B. Berenguel-Baeta, A. N. André, G. Caron, J. Bermudez-Cameo, and J. J. Guerrero, “Visual gyroscope: Combination of deep learning features and direct alignment for panoramic stabilization,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 6445–6448, 2023.
  23. [23]S. Shah, N. Rajiyaguru, C. D. Singh, C. Metzler, and Y. Aloimonos, “CodedVO: Coded visual odometry,” IEEE Robotics and Automation Letters, 2024.DOI
  24. [24]N. Rajiyaguru, T. Wang, A. Tajne, B. He, J. Wu, C. Fermüller, C. A. Metzler, and Y. Aloimonos, “PolarDepth: Polarization-guided monocular depth for visual odometry,” IEEE Robotics and Automation Letters, vol. 11, no. 6, pp. 7572–7579, 2026.
  25. [25]R. Sardana, R. Kottath, V. Karar, and S. Poddar, “Joint forward-backward visual odometry for stereo cameras,” in Proceedings of the Advances in Robotics, Association for Computing Machinery, 2019.DOI
  26. [26]R. Sardana, V. Karar, and S. Poddar, “Improving visual odometry pipeline with feedback from forward and backward motion estimates,” Machine Vision and Applications, vol. 34, no. 2, p. 24, 2023.
  27. [27]Y. Liu and Q. Dong, “EquiPose: Exploiting permutation equivariance for relative camera pose estimation,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1127–1137, 2025.
  28. [28]J. D. Seelig and V. Jayaraman, “Neural dynamics for landmark orientation and angular path integration,” Nature, vol. 521, pp. 186–191, 2015.
  29. [29]J. Green, A. Adachi, K. K. Shah, J. D. Hirokawa, P. S. Magani, and G. Maimon, “A neural circuit architecture for angular integration in Drosophila,” Nature, vol. 546, no. 7656, pp. 101–106, 2017.
  30. [30]S. S. Kim, H. Rouault, S. Druckmann, and V. Jayaraman, “Ring attractor dynamics in the Drosophila central brain,” Science, vol. 356, no. 6340, pp. 849–853, 2017.
  31. [31]D. Turner-Evans, S. Wegener, H. Rouault, R. Franconville, T. Wolff, J. D. Seelig, S. Druckmann, and V. Jayaraman, “Angular velocity integration in a fly heading circuit,” eLife, vol. 6, p. e23496, 2017.
  32. [32]R. Chaudhuri, B. Gerçek, B. Pandey, A. Peyrache, and I. Fiete, “The intrinsic attractor manifold and population dynamics of a canonical cognitive circuit across waking and sleep,” Nature Neuroscience, vol. 22, no. 9, pp. 1512–1520, 2019.
  33. [33]E. Pollock and M. Jazayeri, “Engineering recurrent neural networks from task-relevant manifolds and dynamics,” PLOS Computational Biology, vol. 16, no. 8, p. e1008128, 2020.
  34. [34]B. S. Robinson, R. Norman-Tenazas, M. Cervantes, D. Symonette, E. C. Johnson, J. Joyce, P. K. Rivlin, G. M. Hwang, K. Zhang, and W. Gray-Roncal, “Online learning for orientation estimation during translation in an insect ring attractor network,” Scientific Reports, vol. 12, p. 3210, 2022.
  35. [35]J. D. Rivero-Ortega, J. S. Mosquera-Maturana, J. Pardo-Cabrera, J. Hurtado-López, J. D. Hernández, V. Romero-Cano, and D. F. Ramírez-Moreno, “Ring attractor bio-inspired neural network for social robot navigation,” Frontiers in Neurorobotics, vol. 17, p. 1211570, 2023.
  36. [36]J. Solà, J. Deray, and D. Atchuthan, “A micro Lie theory for state estimation in robotics,” Tech. Rep. IRI-TR-18-01, Institut de Robòtica i Informàtica Industrial (CSIC-UPC), 2018.arxiv.org/abs/1812.01537
  37. [37]W. Wang, D. Zhu, X. Wang, Y. Hu, Y. Qiu, C. Wang, Y. Hu, A. Kapoor, and S. Scherer, “TartanAir: A dataset to push the limits of visual SLAM,” in IEEE/RSJ International Conference on Intelligent Robots and Systems, 2020.arxiv.org/abs/2003.14338
  38. [38]M. Denninger, M. Sundermeÿer, D. Winkelbauer, Y. Zidan, D. Olefir, M. Eldrawy, A. Lodhi, and H. Katam, “BenderProcr2: A procedural pipeline for photorealistic rendering,” Journal of Open Source Software, vol. 8, no. 82, p. 4901, 2023.DOI
  39. [39]R. Mur-Artal and J. D. Tardos, “Orb-slam2: An open-source slam system for monocular, stereo, and rgb-d cameras,” IEEE Transactions on Robotics, vol. 33, no. 5, pp. 1255–1262, 2017.

Paper details

vlnc:W_4yaxvzx7
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 9

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents