Efficient Test-Time Adaptation For Robot Policies
Reinforcement-learning policies for robot locomotion can fail at deployment when operating conditions shift (e.g., rough or slippery terrain, payload changes, sensing degradation), and retraining or manual recalibration is often infeasible under on-device latency and memory constraints. We study test-time adaptation (TTA) for robotic control: adapting a pretrained policy online and in a self-supervised manner during execution, without access to rewards.
From the abstract. Our summary is in progress.
Full paper
Efficient Test-Time Adaptation For Robot Policies
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2610.20318 (PDF).
Abstract
†
Reinforcement-learning policies for robot locomotion can fail at deployment when operating conditions shift (e.g., rough or slippery terrain, payload changes, sensing degradation), and retraining or manual recalibration is often infeasible under on-device latency and memory constraints. We study test-time adaptation (TTA) for robotic control: adapting a pretrained policy online and self-supervised during execution, without access to rewards. Our starting point is a lightweight baseline that updates only the actor using a frozen pretrained critic as a deployment-time performance surrogate. Building on this, we introduce TEMPO, a test-time entropy-regularized, memory-guided policy optimization method that stabilizes critic-driven updates under severe shift. TEMPO combines (i) an entropy-promoting regularizer on the critic’s predictive distribution to mitigate overconfident extrapolation, and (ii) a score-based memory, inspired by prioritized replay, that prioritizes low-value (“hard”) observations and applies importance sampling to focus limited computation on the most informative deployment conditions. Across Go1, Go2, and G1 in MuJoCo Playground under four representative shifts and multiple architectures, TEMPO yields consistent gains, reaching up to 80% improvement in a single-device setting. We further validate on a physical Unitree Go2 with an added calf payload, where fully on-device adaptation improves performance over the non-adapted baseline across real-world episodes.
1 Introduction
Robots deployed in the real world must contend with operating conditions that can diverge sharply from those encountered during training (Kumar et al., 2021). These discrepancies arise from multiple sources: terrain variability (e.g., rocks, low-friction surfaces) (Sun et al., 2025), hardware changes (e.g., localized payloads or partial actuator degradation) (Pouroullis et al., 2025), emergent situations (e.g., a weight stuck on one arm/calf) (Zhang et al., 2025; Chen et al., 2023), and the broader sim-to-real gap between simulated and physical environments (Peng et al., 2018). In practice, such factors rarely occur in isolation: a deployed robot may simultaneously experience altered contact dynamics, sensor noise, actuator wear, and previously unseen environmental configurations. These distribution shifts can substantially degrade policies that perform well under nominal conditions (refer to Figure 1 left), making online adaptation central to robust autonomy.
A common response to combat this problem is to apply large-scale domain randomization during reinforcement learning to improve zero-shot generalization (Tobin et al., 2017; Peng et al., 2018). While effective in some cases, this approach is fundamentally constrained by what can be specified in advance: it presumes one can enumerate relevant sources of variability, model them with sufficient fidelity in simulation, and collect enough data to cover their interactions. When robots encounter truly novel conditions, adaptation is performed offline. This interrupts operation to gather new data and fine-tune from scratch, which is misaligned with real-time, on-device compute and reliability constraints. Architectural add-ons for adaptation can help but often increase system complexity and reduce portability across tasks, embodiments, and deployment settings (Kumar et al., 2021).
We study Test-Time Adaptation (TTA) (Wang et al., 2020; Sun et al., 2020) as a practical alternative for robotic control under distribution shift. TTA is well-suited for tackling this problem as it adapts the pretrained model at test time in an online and self-supervised manner, alleviating the need to disrupt the inference stream for retraining and requiring no labeled data. Thus, our starting point is a simple, general baseline: we update only the actor (policy) parameters at deployment while freezing the critic, using a compact on-device memory of recent observations. At periodic intervals during execution, the actor is adapted by maximizing the critic’s estimated action value on stored observations—treating the critic as a learned performance surrogate and requiring no online rewards. Unlike standard deployments where the critic is used primarily for training and often discarded at inference, here we actively leverage the pretrained critic during runtime. While distribution shift also affects the critic, we find it still provides a sufficiently informative signal to guide test-time actor updates (Chen et al., 2023); nonetheless, naive value maximization can overfit to spurious, overconfident estimates (Kumar et al., 2020) and under-explore the loss landscape.
In this work, and to address these limitations, we introduce an enhanced framework with two complementary elements. First, we add an entropy-promoting regularizer on the critic’s predictive distribution during adaptation, which tempers overconfidence under shift and biases updates toward regions that are simultaneously high-value and high-uncertainty. This yields more informative gradients due to the stability and exploration benefits of maximum-entropy objectives in RL (Eysenbach and Levine, 2021), which we adapt to the critic’s uncertainty at test time. Second, and in the spirit of prioritized experience replay (Schaul et al., 2016), we employ a score-based memory that prioritizes observations inversely proportional to the critic’s predicted value, coupled with importance sampling to focus updates on the most informative deployment conditions under tight memory and latency budgets. We evaluate on Go1, Go2, and G1 in Mujoco Playground simulation (Zakka et al., 2025), spanning quadruped and humanoid morphologies under four representative shifts (mass on torso, mass on calf, rocky terrain, slippery terrain) and three different architectures, and observe up to 50% performance gains very efficiently in a single-device setting. We further validate our approach on a physical Unitree Go2 robot by attaching a \{3,2\}\,\mathrm{kg} calf payload and performing fully on-device TTA , observing trends consistent with simulation. We can summarize our contributions in four folds:
\pi_{\theta_{t}}, update memory \mathcal{B}, and periodically adapt via Eq. (2).- A lightweight, on-device TTA framework for RL control. We adapt only the actor parameters while freezing the critic, maintain a compact memory of recent observations, and perform periodic, self-supervised updates that fit strict control-loop latency and compute budgets.
- Entropy-regularized critic-driven adaptation. We introduce an objective that maximizes the critic’s estimated action value while promoting higher-entropy critic outputs during test-time updates—mitigating overconfident value extrapolation and preserving local action coverage; the procedure is architecture-agnostic and supervision-free.
- Score-based memory with importance sampling. We propose a memory mechanism that assigns each observation a score inversely proportional to the critic’s predicted value, stores harder samples, and employs importance sampling to focus on more informative samples under memory constraints.
- Comprehensive validation in simulation and on-device. We show consistent gains on Go1/Go2/G1 embodiments and on four deployment shifts, and confirm the same trends on a physical Unitree Go2 via fully on-device adaptation with a
\{3,2\}\,\mathrm{kg}calf payload.
2 Robot Adaptation as Test Time Adaptation
2.1 Problem Formulation and Evaluation Protocol
RL setting and distribution shift.
We consider locomotion as a Markov decision process (MDP) \mathcal{M}=(\mathcal{O},\mathcal{A},P,\gamma), where \mathcal{O}\subseteq\mathbb{R}^{d} denotes the observation space, \mathcal{A}\subseteq\mathbb{R}^{p} the action space, P the (unknown) transition dynamics over observations,1 and \gamma\in(0,1) the discount factor. A policy \pi_{\theta}(a\mid o) maps an observation o_{t}\in\mathcal{O} (e.g., proprioception, IMU, joint states, contact signals) to an action a_{t}\in\mathcal{A} (e.g., target joint positions/torques). During training, \pi_{\theta} is learned in a source training setup, inducing a training distribution over the source observations. At deployment, the robot operates under a shifted test-time distribution (e.g., altered friction, payload changes, rocky terrain), which can be viewed as changes in the observations (i.e from o to \hat{o}) encountered by the agent and in the induced observation-transition process (i.e. from P to \hat{P}). We assume the deployed policy is pretrained using an actor–critic framework (Haarnoja et al., 2018; Fujimoto et al., 2018). In particular, alongside the pretrained policy \pi_{\theta_{0}}, training produces a critic Q_{\psi_{0}}(o,a) that estimates the action-value of executing action a when observing o. In contrast with the common asymmetric setup (Nahrendra et al., 2023) where the critic is fed privileged information from the underlying simulator state, we consider a critic that consumes the same set of observations as the actor.
Test-time adaptation as an online stream problem. At test time, the robot receives a stream of unlabeled observations \{o_{t}\}_{t\geq 0} governed by the actions taken by the policy \pi_{\theta_{t}} and the transition dynamics \hat{P}. A Test-Time Adaptation (TTA) method is an update rule g that uses only quantities available online at inference time to update either the model parameters, the received observation, or both. This formulation is intentionally general: g may adapt the policy parameters \theta, the critic parameters \psi, both, or a subset of either.
Online evaluation protocol. Following the online/streaming evaluation paradigm (Cai et al., 2021; Ghunaim et al., 2023; Alfarra et al., 2024), we simulate the interaction between the deployed agent and the test stream at each time step t as:
Notably, this protocol does not assume access to rewards or labels at test time. Although rewards are not used by the adaptation mechanism, performance is evaluated using task-level metrics computed offline or by the benchmark (e.g., episodic return in simulation, distance traveled, tracking error, stability/fall rate, task success). These metrics are used solely for reporting and comparison, not as supervision for adaptation.
2.2 Constructing a Baseline
Test-time adaptation for robot control is challenging for two reasons. (i) As opposed to massively parallel simulation-based training (Li et al., 2023), deployment typically occurs in a single environment with limited diversity over short time horizons. Consecutive observations are strongly correlated and provide a narrow view of the shifted dynamics. (ii) The distribution shift can be abrupt (e.g., payload changes or slippery terrain), yet the adaptation budget is small and must fit within on-device latency constraints. These constraints make standard TTA baselines (e.g., Tent (Wang et al., 2020)) as well as RL-based alternatives (e.g., OPEX (Park et al., 2024)) ineffective in our setting (see Fig. 1, middle) For simplicity, we assume throughout that the policy is deterministic (i.e. a_{i}=\pi_{\theta_{t}}(o_{i})).
Critic-guided policy update QMax One naive update strategy is to utilize the critic’s action value as a surrogate self-supervised performance measure. With that, one could potentially update the policy parameters (i.e. \theta) to maximize the performance measure on received observations at test-time (i.e. minimizing \mathcal{L}=-Q_{\psi_{0}}\!\big(o_{i},a_{i}\big)). While intuitive, the aforementioned factors (i, ii) make this naive per-step updates brittle and motivate aggregating evidence over time via a small memory buffer.
FIFO buffer. We maintain a bounded on-device FIFO buffer \mathcal{B} of capacity N that stores the most recent observations. At each time step, we append o_{t} and evict the oldest element if |\mathcal{B}|>N. Every K steps, we sample a minibatch \{o_{i}\}_{i=1}^{B} uniformly from \mathcal{B} to form a more stable and diverse adaptation batch than a single observation. We note that employing an episodic memory for TTA was also proposed by Yuan et al. (2023).
Critic-guided policy update with buffer (QMax). Given a pretrained actor–critic pair (\pi_{\theta_{0}},Q_{\psi_{0}}), we define a simple self-supervised adaptation objective is to maximize the critic’s predicted action value on buffered observations:
\mathcal{L}_{\textsc{QMax}}(\theta;\mathcal{B})=-\frac{1}{B}\sum_{i=1}^{B}Q_{\psi_{0}}\!\big(o_{i},a_{i}\big),\qquad a_{i}=\pi_{\theta}(o_{i}).We then perform a gradient step \theta_{t+1}\leftarrow\theta_{t}-\eta\nabla_{\theta}\mathcal{L}_{\textsc{QMax}}|_{\theta=\theta_{t}} with step size \eta>0 while freezing the critic’s parameters. While distribution shift can affect the critic’s calibration, we empirically find that Q_{\psi_{0}} still provides a useful surrogate signal for guiding test-time updates in practice. This baseline is lightweight and fully self-supervised, requiring only test-time observations and critic predictions (no rewards or labels). Nevertheless, we found that QMax is pretty effective in recovering significant portion of the performance drop at test time.
3 Test-time Entropy regularized, Memory guided Policy Optimization
In the previous section, we formulated online test-time adaptation for a pretrained policy under distribution shift and introduced QMax, which adapts the policy by maximizing a pretrained critic on a small buffer of recent observations. As we demonstrate empirically in Section 5.1, QMax can be effective, but it may become unstable under severe shifts: when the critic is queried out of distribution, directly ascending Q_{\psi_{0}}(o,a_{t}) may yield overly sharp updates, reduced action coverage, and brittle closed-loop behavior. We propose TEMPO (Test-time Entropy-regularized, Memory-guided Policy Optimization), which improves stability and sample-efficiency by combining two lightweight modifications: (i) An entropy-regularized critic objective, and (ii) a score-based memory that prioritizes informative test-time observations. As described in Section 2.1, TEMPO updates only the policy parameters \theta at test time.
3.1 Entropy Maximization
While action perturbation broadens the local neighborhood explored by each update, it does not explicitly discourage overconfident critic-driven collapse. TEMPO therefore augments critic maximization with an entropy term defined on the critic’s predictive distribution, encouraging updates that are high-value yet avoid overly peaky solutions.
Distributional critic and entropy.
Following Seo et al. (2025), we assume the actor–critic pretraining provides a distributional critic Z_{\psi_{0}}(o,a)\in\mathcal{P}(\mathcal{Z}) where \mathcal{P}(\mathcal{Z}) is the probability simplex over a discretized value support \mathcal{Z}, with Q_{\psi_{0}}(o,a)=\mathbb{E}_{z\sim Z_{\psi_{0}}(o,a)}[z]. To avoid the high confidence regions over the critic’s prediction we propose an Entropy-regularized objective. TEMPO optimizes the following entropy-regularized loss on buffered observations with:
\mathcal{L}_{\textsc{TEMPO}}(\theta;\mathcal{B})=-\frac{1}{B}\sum_{i=1}^{B}\left[Q_{\psi_{0}}\!\big(o_{i},a_{i}\big)\;+\;\lambda\,\mathcal{H}\!\left(Z_{\psi_{0}}(o_{i},a_{i})\right)\right],where \lambda>0 controls the strength of entropy regularization. The entropy term tempers overconfident maximization by favoring updates that remain robust in regions where the critic’s predictions are less concentrated, improving stability under large shifts.
3.2 Score-Based Memory
Next, we ask the following question: given the memory and compute constraints for on-device adaptation, which samples shall we store? And which one shall we adapt on? FIFO buffers treat all recent observations as equally useful, even though under distribution shift only a subset of encountered states may be responsible for performance degradation (e.g., slip events or destabilizing contacts). TEMPO therefore replaces FIFO with a score-based memory that preferentially stores and samples the most informative observations.
Scoring and buffer maintenance. Given the current policy and pretrained critic, we assign each observation a score
S(o)=\frac{1}{Q_{\psi_{0}}\!\big(o,\pi_{\theta}(o)\big)+\varepsilon},with a small constant \varepsilon>0 for numerical stability. High scores correspond to low predicted value and thus “hard” states. TEMPO maintains a buffer \mathcal{B} of capacity N storing pairs (o,S(o)). When a new observation o_{t} arrives, we compute S(o_{t}) and insert it if it exceeds the minimum score currently in the buffer; in that case, the lowest-scoring element is evicted. This yields a compact memory that tracks the most challenging deployment observations under the current policy.
Importance sampling for adaptation. During each adaptation step, TEMPO samples a minibatch from \mathcal{B} using probabilities proportional to the stored scores:
p_{j}\;=\;\frac{\hat{S}_{j}}{\sum_{k}\hat{S}_{k}},\qquad\qquad\text{where}\,\,\hat{S}_{j}=S_{j}-\min_{i}S_{i}+\varepsilonwhere p_{j} is the probability of sampling the j^{th} element from the memory, and S_{j} is computed according to Eq. (3). TEMPO then draws B observations from \mathcal{B} without replacement according to \{p_{j}\}. This focuses limited on-device adaptation compute on states that are most associated with degraded performance, improving sample-efficiency compared to uniform FIFO sampling.
Putting All Together. TEMPO combines three lightweight ingredients into a single on-device adaptation loop. At each control step, the robot executes the current deterministic policy a_{t}=\pi_{\theta_{t}}(o_{t}) and records the observation in a bounded memory. Unlike FIFO, TEMPO maintains a score-based buffer that preferentially keeps “hard” observations (Eq. (3)) and samples adaptation minibatches via importance sampling (Eq. (4)). Every K steps, TEMPO performs a single gradient update on \theta (with Q_{\psi_{0}} frozen) by minimizing the entropy-regularized objective in Eq. (2). Figure 1 (right) summarizes the pipeline. A detailed algorithm for adapting with TEMPO is in Appendix A.
4 Related Work
Domain Shifts on Robots
Robots deployed outside controlled training conditions face domain shifts such as changes in contact dynamics, inertial properties, and sensing, which can substantially degrade locomotion policies. A common response is to harden policies in simulation via accurate actuator modeling (Tan et al., 2018; Hwangbo et al., 2019; Zhu et al., 2026; Shin et al., 2025), domain randomization (Peng et al., 2018; Lee et al., 2020) and massively parallel training (Rudin et al., 2022; Zakka et al., 2025). This improves zero-shot robustness within the training envelope. To better handle unstructured environments, many approaches additionally incorporate exteroception (e.g., elevation maps or images) to anticipate terrain-induced shifts (Miki et al., 2022; Lai et al., 2023; He et al., 2025; Yu et al., 2024; Dong et al., 2025), or auxiliary mechanisms (e.g., asymmetric training, distillation, learned estimators) that infer latent factors (Chen et al., 2020; Kumar et al., 2021; Ji et al., 2022; Choi et al., 2023). However, when deployment conditions drift beyond the training distribution, these approaches often still require retraining or additional structure, motivating lightweight deployment-time adaptation under strict hardware constraints. Adapting at deployment time has been explored in adjacent settings: Park et al. (2024) analyze offline RL bottlenecks and propose simple test-time policy improvement methods, while Chen et al. (2023) adapt on-the-fly in single-life deployment by selecting and modulating a repertoire of pretrained behaviors using value estimates. In contrast, we target lightweight on-device test-time adaptation for locomotion under strict latency and memory budgets, by adapting a single deployed actor via critic-guided updates.
Test-Time Adaptation
Test-Time Adaptation (TTA) mitigates the performance drop of pretrained models under test-time distribution shift by adapting at inference using only unlabeled test data (Mancini et al., 2018; Kojima et al., 2022). Methods either update model parameters online (Liang et al., 2020; Wang et al., 2020) or adapt the test input to better match the training distribution (Gao et al., 2022). Early approaches focused on updating Batch Normalization statistics (Li et al., 2016), while later work introduced stronger self-supervised objectives, including entropy minimization and stabilized variants (Wang et al., 2020; Niu et al., 2022; Niu et al., 2023), information maximization (Liang et al., 2020), and consistency/teacher–student updates (Yuan et al., 2023), as well as auxiliary-task-driven adaptation (Alfarra et al., 2025). Most progress has been demonstrated on perception benchmarks—primarily classification under synthetic corruptions and covariate shift (Hendrycks and Dietterich, 2019)—with fewer works on structured prediction (Mirza et al., 2023) or other modalities such as missing modality (Ramazanova et al., 2025). Translating TTA to robotics is challenging because adaptation must preserve stable closed-loop control under strict latency/memory budgets and highly correlated on-policy streams; our work addresses this by tailoring lightweight, critic-guided TTA to on-device locomotion.
5 Experiments
Environments and pretrained policies. We evaluate TTA on three simulated locomotion tasks from MuJoCo Playground (Zakka et al., 2025): Go1-joystick (quadruped), Go2-joystick (quadruped), and G1-joystick (humanoid). Since Section 2 places no assumptions on the policy architecture, we consider three representative pretrained policy families: Fast-TD3 (Seo et al., 2025), SimbaV2 (Lee et al., 2025), and Rapid Motor Adaptation (RMA) (Kumar et al., 2021).
Training protocol and distribution shifts. To disentangle test-time robustness from training-time regularization, we train \pi_{\theta} on a flat terrain without domain randomization, and evaluate (and adapt) under a single fixed test environment that emulates a realistic deployment condition. We consider four shift types parameterized by a severity scalar \delta: (i) Rough terrain, with height variation \delta; (ii) Calf mass perturbation, attaching a mass of \delta kg to one calf; (iii) Torso mass perturbation, attaching a mass of \delta kg to the torso; and (iv) Slippery terrain, setting the ground friction coefficient to 1-\delta. Unless otherwise stated, each test episode contains a single shift type (i.e., no mixed corruptions).
Adaptation protocol. Across all methods, we use Adam with learning rate 5\times 10^{-6}. We adapt all learnable parameters of \pi_{\theta} while freezing the critic(s). We maintain a replay buffer of size |\mathcal{B}|=16\text{k} and use batches of size B=2\text{k}. Note that with 49-dimensional observations and |\mathcal{B}|=16\text{k}, the FIFO buffer footprint is merely \approx 3 MiB; score-based variants require \approx 3.05 MiB. Adaptation is performed online with period K=128: every K environment steps, we sample a batch from \mathcal{B}, compute gradients, and take a single optimizer step. For TEMPO we set the entropy weight to \lambda=0.5. In the following sections, we will provide a comprehensive evaluation demonstrating the benefits of TTA under distribution shift and the consistent performance gains of TEMPO. Unless stated otherwise, we fix the policy architecture to Fast-TD3 and the environment to Go2 on Flat terrain without domain randomization. Further experimental details can be found in Appendix B.1.
\rightarrowright): 1-friction, calf mass, rough terrain, torso mass (severity increases along x-axis). As the severity of the domain shift increases, performance degrades more rapidly. Naive adaptation via QMAX recovers part of the performance drop. Our proposed TEMPO consistently provides the largest performance gain, especially under severe shifts.5.1 Effectiveness of TEMPO
We first evaluate whether lightweight test-time adaptation (TTA) can recover locomotion performance under realistic deployment shifts, and whether TEMPO provides robust gains beyond critic maximization and general-purpose TTA baselines. To do so, we test on four shift families with increasing severity: slippery terrain, calf mass perturbation, rough terrain, and torso mass perturbation. Adaptation is performed online during execution using only test-time observations; rewards are never used for updating and are only used for offline evaluation. All results are averaged across six seeds.
Figure 2 reports episodic return (top row) and average forward linear velocity (bottom row), capturing both task-level performance and the quality of locomotion. Across all shifts, the pretrained policy without adaptation degrades rapidly as severity increases, indicating that even strong policies trained under nominal conditions are brittle when contact dynamics or inertial properties change at deployment. Introducing TTA reliably mitigates this drop: the simple critic-guided baseline QMAX recovers performance across a wide range of severities, confirming that a frozen critic can provide an informative self-supervised signal at test time. However, QMAX often saturates under harder shifts. In contrast, TEMPO is consistently best across all shift families and throughout the severity range, with the clearest advantages emerging in the most challenging regimes. Importantly, these gains are mirrored in forward velocity: TEMPO maintains faster, more continuous locomotion under shift, suggesting that improvements reflect better stabilized behavior rather than reward-only artifacts.
5.2 Real World Deployment
We validate TEMPO on a physical Unitree Go2 quadruped to assess whether the improvements observed in simulation translate to real hardware. To induce a controlled deployment shift, we attach weight plates to both the front left and rear left calves using a custom 3d-printed rigid mount (Fig. 5.1), altering the leg’s inertial properties and contact dynamics while keeping the policy and controller stack unchanged. Adaptation is performed once on-device for 4 minutes and using the same streaming protocol as in simulation: we continuously update the actor parameters online while freezing the critic, using only real observations and critic predictions.
Table 1 reports the environment reward across for various velocity commands cmd=(v_{x},w_{z}), where v_{x} is the desired forward linear velocity and w_{z} is the desired angular velocity. The evaluation for each command consists of 5 trials spanning a 3 second window (150 steps each). To define a useful metric for real world performance, we evaluate the undiscounted sum of the per-timestep linear-velocity tracking rewards r_{t}=\exp\!\left(-\lVert\mathbf{v}^{\mathrm{cmd}}_{xy}-\mathbf{v}^{\mathrm{loc}}_{xy}\rVert^{2}\right). Thus, each timestep contributes a value in (0,1], resulting in a maximum possible value of 150. TEMPO outperforms the non-adapted baseline for each of the tested commands, improving the mean score from 89.8 to 98.7. Gains are consistent across command types, with the largest improvements under walking backwards at medium speed (v_{x}=-0.5), where TEMPO increases the score by 15\% from 98.7 to 113.5. Overall, these results provide evidence that TEMPO remains effective under real-world distribution shift and can improve locomotion performance in a fully on-device self-supervised setting.
- —
- Floor friction
- No data
- Rocky terrain
- No data
- Floor friction
- No data
- Rocky terrain
- No data
- Method
- 0.90
- 0.85
- 0.03
- 0.06
- 0.90
- 0.85
- 0.03
- 0.06
- No Adapt
- 9.2_{\pm 0.1}
- 12.9±0.2
- 19.9_{\pm 0.1}
- 14.5_{\pm 0.2}
- 4.2±0.2
- 6.2±0.1
- 14.7±0.3
- 7.8±0.2
- QMAX
- 9.7_{\pm 0.2}
- 13.4±0.4
- 20.7_{\pm 0.1}
- 15.9_{\pm 0.2}
- 4.8±0.1
- 7.0±0.3
- 17.3±0.5
- 9.9±0.2
- TEMPO
- 10.4±0.2
- 14.4±0.1
- 21.2±0.3
- 17.5±0.2
- 5.6±0.2
- 9.0±0.4
- 20.1±0.2
- 14.6±0.2
5.3 Mixed Corruption Setting
Real deployments rarely involve a single isolated shift; instead, multiple factors can co-occur (e.g., payload changes together with altered contact dynamics). We therefore evaluate mixed corruptions by combining a payload perturbation with a terrain shift within the same episode. Specifically, we attach a fixed mass either to the calf (2 kg) or the torso (5 kg), and simultaneously test on either slippery terrain (1-friction) or rough terrain (rocky heightfield), each at two severities.
Table 2 summarizes the results. Across all 8 mixed conditions, TEMPO is best: averaged over the table, it improves the environment reward from 11.18 (No Adapt) and 12.48 (QMAX) to 14.09, i.e., a gain of +2.91 (+26.1\%) over No Adapt and +1.61 (+12.9\%) over QMAX. The advantage is especially pronounced for the harder torso-payload compositions, where TEMPO raises the average reward from 8.23 to 12.33 (+4.10, +49.8\%), and from 10.00 to 12.33 versus QMAX (+2.33, +23.3\%). The largest single-case improvement occurs under torso mass with rocky terrain at the highest severity, where TEMPO reaches 14.6 compared to 10.5 for QMAX (+4.1, +39.0\%) and 7.8 without adaptation (+6.8, +87.2\%), demonstrating clear benefits under compounding shifts.
5.4 Continual TTA
So far, we evaluated adaptation under a fixed deployment condition. In practice, however, distribution shift is often non-stationary: terrain properties can change gradually, payloads can vary over time, and contact dynamics can drift during prolonged operation. We therefore consider a continual TTA (Wang et al., 2022) setting in which the deployed policy experiences a sequence of increasingly difficult conditions, implemented by continually increasing the severity of the domain shift during evaluation.
Figure 4 reports average return as adaptation progresses in this non-stationary stream. The results highlight a clear separation between methods: TEMPO exhibits faster recovery after the shift intensifies and reaches a higher performance plateau than QMAX. This gap is most evident as the stream becomes more challenging, where naive critic maximization improves initially but saturates earlier, while TEMPO continues to make progress and maintains stronger steady-state performance. Overall, these results indicate that TEMPO is not only effective under a fixed test condition, but also well-suited to continual deployment where the test distribution evolves over time and adaptation must remain stable under compounding shift severity.
Performance on Source Domain. A key concern in continual test-time adaptation is forgetting: gains under shifted conditions should not degrade behavior when the environment returns to nominal. To evaluate this, we append the source domain (flat terrain without domain shift) at the end of the continual sequence and directly assess the adapted policies (Appendix B.4, Fig. 9). We observe that both TEMPO and QMAX recover source-domain performance instantly, matching the original policy without any transient degradation or additional adaptation, indicating no observable forgetting.
5.5 Ablating Components of TEMPO
Table 3 ablates the two components of TEMPO—entropy regularization and the score-based memory—across increasing severities of payload and terrain shifts. Starting from QMAX, adding entropy regularization yields consistent gains of +0.5 to +1.6 return across the six settings. Replacing FIFO with the score-based memory provides larger improvements of +1.0 to +2.3. Combining both (TEMPO) gives the best results in every column, improving over QMAX by +1.4 to +2.5. This indicates that the design of the memory can play a crucial role in boosting the adaptation performance. Relative to No Adapt, TEMPO improves by +2.6 to +4.9 per setting, indicating that both components contribute and their combination is complementary.
- —
- 4
- 5
- 5
- 7.5
- 7.5
- 10
- No Adapt
- 15.3
- 13.0
- 17.5
- 12.7
- 14.0
- 7.0
- QMAX
- 16.5
- 14.4
- 19.7
- 15.4
- 16.6
- 9.0
- + Entropy Max.
- 17.0
- 15.3
- 21.0
- 17.0
- 17.3
- 10.6
- + Score-Based Mem.
- 17.5
- 15.9
- 21.0
- 17.1
- 17.8
- 11.3
- + ALL (TEMPO)
- 17.9
- 16.0
- 21.5
- 17.6
- 18.0
- 11.5
5.6 RMA as an Adaptation-Aware Backbone
Rapid Motor Adaptation (RMA) (Kumar et al., 2021) explicitly targets fast adaptation to dynamics changes by conditioning the policy on a learned latent embedding that is inferred online during deployment. Unlike the policies considered in previous sections, RMA is therefore not a static pretrained controller, but already incorporates an internal adaptation mechanism, making it a strong test for whether our proposed TEMPO can provide additional gains beyond architecture-specific adaptation.
We evaluate three variants under the same shifted test streams: (i) No Adaptation (freeze RMA at deployment), (ii) RMA (enable RMA’s native online adaptation), and (iii) RMA + TEMPO (apply TEMPO’s critic-guided test-time updates on top of the deployed RMA policy). Figure 5 shows that native RMA adaptation improves over the frozen baseline, while augmenting RMA with TEMPO yields the best performance across the evaluated shift severities, demonstrating that TEMPO complements (rather than replaces) RMA’s built-in adaptation. Further experiments on different architectures, and robustness analyses of TEMPO can be found in Appendix B.
6 Conclusions
In this work, we studied reward-free, on-device test-time adaptation for robot locomotion under deployment-time distribution shift. Starting from a lightweight baseline that updates only the actor using a frozen pretrained critic, we introduced TEMPO, which stabilizes critic-guided adaptation through entropy regularization and a score-based memory that prioritizes informative test-time observations. Across simulated locomotion benchmarks and multiple shift types, architectures, and environments, TEMPO consistently improves over no adaptation and naive critic maximization, with the clearest gains under severe shifts. We further confirm the same trend on a physical Unitree Go2 via fully on-device adaptation under a calf-payload perturbation.
References
Appendix A Test-time Entropy regularized, Memory guided Policy Optimization
In Section 3, we proposed TEMPO, an efficient, on-device friendly TTA method for adapting robotic policies. In the construction of TEMPO, we followed Seo et al. (2025) in accessing the distributional critic. We note that the output of the distributional critic is nothing but the output of the penultimate layer of the critic network. Refer to the works of Seo et al. (2025); Lee et al. (2025) for further details. Due to the space constraints, we did not provide a full explicit algorithm to describe how one can implement TEMPO in practice. For completeness, we provide these algorithms in this Section.
Algorithm A summarizes the high level interaction between the test stream and the pretrained policy equipped with our proposed TEMPO. Given an observation vector o_{t}, the policy decides on the action a_{t}. TEMPO leverages this observation vector and its corresponding action in updating its memory bank \mathcal{B} according to Algorithm 2. When there are enough samples in the memory to conduct an adaptation step, TEMPO samples a batch with importance sampling according to Eq. 4 and runs a single update step with the loss in Eq 2. We note that for efficiency purposes, TEMPO conducts a single update step every K received observations to keep the additional compute requirement light.
Algorithm 2 describes the score based memory update that we proposed in section 3.2. In a nutshell, as long as the memory bank not full, we store all received observation accompanied by their corresponding score. When hitting the capacity limit, we check if the newly received observation has a better score than the sample with the lowest score in memory, then we evict that sample and store the newly received one. We note that for additional implementation efficiency purposes, one can leverage directly the action from step 4 in Algorithm A instead of recomputing it in step 1 in Algorithm 2 (one less forward pass).
Appendix B Experiments
In Section 5, we provided comprehensive evaluation of how TEMPO is effective under different scenarios in both simulation and real world setting. In this section, we provide additional details about the experimental setup for full reproducibility, and additional analysis on TEMPO.
B.1 Setup.
The policy observation consists of proprioceptive and command-related signals commonly used in legged locomotion. Specifically, it includes IMU measurements in the form of angular velocity (gyro) and a gravity-aligned vector, base linear velocity, joint angles expressed relative to a default pose, joint velocities, the previous action, and a commanded motion vector (v_{x},v_{y},w_{z}) specifying desired forward/lateral linear velocities and yaw rate. The critic uses a symmetric, non-privileged observation space identical to the policy input, which enables on-device test-time adaptation directly from robot sensors. Since our real-world Go2 robot does not enable linear velocity estimation out of the box, we utilize an Extended Kalman Filter to calculate velocities on the fly using the built-in foot force sensors (Hartley et al., 2018).
B.2 Generalization to Different Architectures and Environments
A central goal of our approach is portability: test-time adaptation should improve a deployed controller without relying on architecture-specific components, privileged signals, or task-tailored objectives. We therefore evaluate whether TEMPO transfers beyond our default setting (Fast-TD3 on Go2) to substantially different pretrained policy families and to a different embodiment, without modifying the algorithm or introducing additional modules.
Figure 6 summarizes this evaluation on the rocky terrain test environment. On the left, we consider a Fast-TD3 policy trained with domain randomization, representing a stronger robustness-oriented pretraining baseline. Table 4 reports results on Go1 and G1 under mass perturbations. Even in this regime, TEMPO continues to provide consistent improvements, indicating that its gains are not limited to policies trained without robustness regularization and that it can complement domain randomization at deployment. In the middle, we adapt a policy trained with the SimBA-V2 architecture, which differs in inductive biases and learning dynamics from Fast-TD3; TEMPO remains effective without any architecture-specific tuning, supporting the claim that our objective and update rule are broadly applicable to actor–critic policies. Finally, on the right, we evaluate on G1, a humanoid with markedly different morphology and contact dynamics. Despite this shift in embodiment, TEMPO still improves performance on rocky terrain, suggesting that the method generalizes beyond quadrupeds and can operate in more challenging control regimes.
\rightarrowright): Fast-TD3 trained with domain randomization, SimBA-V2, and the G1 humanoid. TEMPO transfers without architecture-specific modifications and remains effective across settings.- No Adapt
- 18.9
- 16.3
- 13.6
- 6.8
- 21.3
- 17.5
- 10.0
- QMAX
- 19.6
- 17.6
- 13.6
- 6.9
- 24.1
- 22.1
- 17.4
- TEMPO
- 20.5
- 18.6
- 16.9
- 11.0
- 24.5
- 23.4
- 18.5
B.3 Sensitivity to Hyperparameters, Memory Size, Batch Size, and Adaptation Interval
On-device test-time adaptation must operate under strict memory and compute budgets; accordingly, we study how TEMPO behaves as we vary the three deployment-critical hyperparameters that directly control resource usage: replay memory size |\mathcal{B}| (storage footprint), minibatch size B (compute per update), and adaptation interval K (update frequency, i.e., one gradient step every K environment steps). Figure 7 reports performance under distribution shift across these ablations.
Overall, TEMPO is robust across a broad range of settings and remains the best-performing method throughout the three sweeps. Importantly, this robustness translates into practical efficiency on device. First, TEMPO maintains strong performance even with relatively small |\mathcal{B}|, implying that effective adaptation does not require storing large histories; this keeps the on-device memory footprint small and compatible with embedded constraints. Second, TEMPO performs well with small minibatches, showing that adaptation can be carried out with limited per-update compute (and correspondingly lower latency), rather than relying on large, expensive updates. Third, TEMPO remains effective for larger adaptation intervals K, meaning updates can be applied infrequently—reducing the total number of backward passes per unit time and making the method applicable even when compute budgets are very tight.
As expected, extreme settings reveal intuitive trade-offs. Very small memories reduce state diversity and can limit coverage of informative “hard” states, while very large memories yield diminishing returns given a fixed update schedule. Similarly, very small batches increase gradient noise, whereas very large batches offer limited additional benefit relative to their higher compute cost. Finally, K exposes a responsiveness–efficiency trade-off: smaller K increases adaptation frequency but raises compute load, while larger K lowers overhead at the cost of slower reaction to abrupt changes. Taken together, the results indicate that TEMPO provides stable improvements without delicate tuning and can be configured to meet stringent on-device constraints via small |\mathcal{B}|, small B, and large K.
\lambda.At last, we assess the performance of TEMPO when varying its only hyperparameter; \lambda. We follow the experimental setup in Figure 7 and vary \lambda\in\{0.1,0.25,0.5,0.75,0.9\} and report the results in Figure 8. We observe a stable behavior under different values of \lambda.
B.4 Performance on Source Domain
A key concern in continual test-time adaptation is catastrophic forgetting: parameters adapted to severe deployment shifts may degrade performance once the environment returns to nominal conditions. This risk is particularly acute in on-device, online settings, where updates are applied continuously without explicit supervision, replay from the source domain, or reset mechanisms. To assess whether critic-guided test-time adaptation induces such forgetting, we evaluate both QMAX and TEMPO after prolonged exposure to increasingly severe distribution shifts, followed by a return to the source domain (flat terrain without perturbations). Specifically, we adopt the continual TTA protocol from Section 5.4 and append a final evaluation phase in which the environment dynamics match the original training conditions, while keeping the adapted policy parameters fixed—without additional fine-tuning or recovery steps.
Figure 9 reports performance for two representative shift families (mass on calf and mass on torso) using the Fast-TD3 architecture. In both cases, QMAX and TEMPO immediately recover source-domain performance, matching the non-adapted policy without any transient degradation. This indicates that critic-guided test-time updates do not overwrite nominal behaviors, and that adaptation remains localized to state regions associated with deployment-time shifts. Overall, these results suggest that both methods—particularly TEMPO—support stable continual adaptation without observable forgetting, making them well suited for long-horizon deployment scenarios in which operating conditions drift temporarily but may later revert to nominal regimes.
Further, and to complement the previous experiments, We evaluate the trained policy under the source domain (flat terrain, no shift) with no adaptation, QMAX, and TEMPO, across all three reward signals used in the paper (averaged across six seeds). We observe that all three methods are numerically indistinguishable, and both velocity-tracking signals sit within run-to-run noise (environment reward of 25.6, Linear Velocity tracking reward of 864, and Angular Velocity Tracking reward of 457).
B.5 Improving Angular Velocity Tracking
While the main paper focuses on task-level performance and forward locomotion metrics, stable angular velocity tracking is critical for practical deployment, especially under distribution shifts that alter contact dynamics or inertial properties. Poor tracking of angular velocity often manifests as oscillatory turning, delayed heading response, or loss of stability, which may not be fully reflected in episodic return alone. To examine this aspect more closely, we evaluate the angular velocity tracking performance of QMAX and TEMPO on Go2 under the same deployment-time distribution shifts considered in Section 5.1 For each method, we measure the tracking angular velocity reward, and report results averaged across 6 random seeds.
Figure 10 summarizes the results across four shift families with increasing severity. Without adaptation, the pretrained policy exhibits rapidly degrading angular velocity tracking as the shift intensifies. Introducing critic-guided test-time adaptation substantially mitigates this degradation: QMAX consistently improves tracking accuracy relative to no adaptation, while TEMPO provides the most stable and accurate tracking across all severities. The gains are most pronounced under harder shifts, such as rocky terrain and torso mass perturbations, where overconfident critic-driven updates can otherwise lead to unstable turning behavior. Overall, these results indicate that the benefits of TEMPO extend beyond forward velocity and reward metrics to finer-grained control objectives, demonstrating improved stability and control fidelity under deployment-time distribution shift.
B.6 Does TEMPO Improve Local Action Coverage?
To analyze the impact of TEMPO on the local action coverage, we measure the critic’s distributional entropy over the course of adaptation. On the severe mixed-corruption setting (Mass on Torso=5, Rough Terrain=0.06; rightmost column of Table 2), starting from an initial entropy of 1.15, QMAX drives the entropy of Z_{\psi_{0}}(o,\pi_{\theta}(o) down to 1.05 while TEMPO raises it to 1.41 — a 34% relative gap that is temporally aligned with the return gap (9.9 vs 14.0, +41% relative). Elevated critic entropy preserves broader gradient support and thus wider local action coverage, exactly the mechanism the regularizer is designed to induce. This is also consistent with our results in Table 3, where removing the entropy term reduces performance.
B.7 RMA Setup
Due to the space constraints, we breifly outlined the experimental setup of RMA in Section 5.6. Here we provide the remaining training details for full reproducibility. RMA policy is trained on Go2JoystickFlatTerrain with MuJoCo Playground domain randomization enabled. The training randomization covers floor friction U(0.4,1.0), joint friction scale U(0.9,1.1), armature scale U(1.0,1.05), center-of-mass shift U(-0.05,0.05), link-mass scale U(0.9,1.1), torso mass offset U(-1,1) kg, and initial joint jitter U(-0.05,0.05). The RMA target conditions are deliberately outside these ranges: e.g., floor friction 0.1–0.2, torso payload 5–10 kg, calf payload 3–5 kg, and rough-terrain height 0.05–0.1, where terrain height is not part of the flat-terrain training randomization.
B.8 Refreshing Scores of Memory
Under long hoizon streams, scores in the memory bank for previously observed observations could become stale hindering the positive impact of adaptation. A natural fix to this problem is to integrate refreshing the scores for the observations in the memory bank. For that, we equipped TEMPO with either of the following two score refreshing variants: (i) periodic score refresh, and (ii) age-decayed scoring, where Eq. (3) is replaced by \hat{S}(o)=S(o)/(1+\gamma\cdot\mathrm{age}(o)) with \mathrm{age}(o) the number of steps o has resided in the memory. We swept \gamma\in{10^{-5},10^{-4},10^{-3},10^{-2},10^{-1},1,10,100}. We observe that both variants added per-step compute without improving returns over the current minimum-score replacement rule. We attribute this to the limited state diversity of our simulation; in real-world, long-horizon deployment with richer diversity, we expect stale-score handling to matter more.
B.9 Comparison to Test-Time Training
Recently, Park et al. (2024) proposed OPEX and Test Time Training as adaptation methods for policies subjected to shifts. In Figure1, we analyzed the efficacy of OPEX. For completeness, we discuss here the performance of TTT. In particular, one can express the adaptation loss for TTT as: \mathcal{L}_{\mathrm{TTT}}=\mathcal{L}_{\mathrm{QMAX}}+\beta\,\mathrm{KL}\!\left(\pi_{\theta}\,\|\,\pi_{\theta_{0}}\right). Thus, we compare our proposed baseline; QMAX versus TTT. We evaluate on Go2 under the mass-on-calf shift and sweep the regularization coefficient \beta.
We observe a monotonic decrease in performance as \beta increases. For MC=4, the return drops from 16.8 at \beta=0 (QMAX) to 16.3, 16.1, 15.7, and 15.6 for \beta=\{0.02,0.04,0.06,0.08\}, respectively. Similarly, for MC=5, performance decreases from 14.7 at \beta=0 to 14.4, 13.7, 13.6, and 13.3. Thus, the strongest TTT configuration corresponds to \beta=0, which exactly recovers QMAX.
Appendix C Compute Requirements, Limitations, and Broader Impact
Compute Requirements. All our experiments that were conducted on simulation were run on NVIDIA V100 GPUs including training, evaluation, and TTA (each experiment was run on a single GPU). Regarding the real world experiments, we ran our TTA pipeline on the Unitree Go2 robot leveraging four CPU cores (2 for inference stream and 1 for adaptation and 1 for odometry).
Limitations. Our study focuses on reward-free, critic-guided test-time adaptation for locomotion policies under deployment-time distribution shifts, and some limitations remain. First, while TEMPO is designed to be lightweight and on-device friendly, it still relies on access to a pretrained critic that is reasonably informative under shift; if the critic is severely miscalibrated or trained on a highly mismatched domain, adaptation quality may degrade. Second, TEMPO induces an additional, albeit small, memory and compute cost during inference.
Broader Impact. This work aims to improve the robustness of robotic systems under deployment-time distribution shifts, reducing the need for manual recalibration and improving autonomy. However, adaptive systems may introduce risks if deployed without adequate testing and oversight, especially in safety-critical environments. We emphasize that our method is intended to complement, not replace, careful system design, and we encourage responsible use in real-world settings.