Manuscript Offprint
arXiv:2610.21666Diffeomorphic Hidden-State Steering: Improving Imitation Learning Policy Robustness through Expert Hidden-State Geometry
KwangBin Lee
Abstract—Small observation or action errors can compound during closed-loop execution and disrupt a trained imitation learning policy. We study whether the original expert demonstrations can improve robustness through test-time hidden-state steering without additional demonstrations or policy retraining. Our analysis of a trained policy finds that expert hidden-state variation is concentrated in relatively few dimensions, while the directions capturing this variation differ across regions. Motivated by this geometry, we propose Diffeomorphic Hidden-State Steering (DHS), which learns an invertible nonlinear coordinate map from expert hidden states obtained by replaying the demonstrations through the frozen policy. DHS attenuates coordinates with low expert variance more strongly than those with high variance, then maps the modified coordinates back to hidden-state space. This allows steering directions to vary with the current hidden state while retaining every coordinate. Across four simulated manipulation tasks, DHS improves mean success under observation noise over the unmodified Transformer policies. Controlled comparisons yield higher mean success with learned nonlinear coordinates than with linear coordinates under both hard projection and full-rank rescaling. Combining DHS with action smoothing improves mean success rate under observation noise in certain tasks compared with action smoothing alone.
I. INTRODUCTION
Imitation learning (IL) trains robot policies from expert demonstrations, but the observations encountered during execution also depend on the policy's own actions. Observation noise or action errors can therefore take the policy into conditions poorly represented in the demonstrations, where further errors can compound and disrupt task execution. DAgger addresses this distribution mismatch by obtaining expert actions on learner-visited states, while DART collects demonstrations that include recovery from disturbances [1], [2]. Online reinforcement learning can also improve pretrained robot policies by updating their parameters using reward feedback from interaction [3]. These approaches all require information beyond the original demonstration set, such as new expert labels, additional demonstrations, or reward feedback from interaction. This motivates a complementary question: whether the original demonstrations alone can improve the closed-loop robustness of a trained IL policy without additional demonstrations or policy retraining.
A neural IL policy processes observations into hidden states, which its later layers use to generate actions. Replaying the original demonstrations through the frozen policy exposes the hidden states associated with expert behavior, providing a policy-specific reference that can be reused during deployment without additional supervision. Intermediate hidden states therefore provide a natural intervention point: modifying one during execution can change the action while leaving the policy parameters fixed. We refer to this operation as test-time hidden-state steering. Prior work learns hidden-state correction modules jointly with the task network [4], or steers trained robot policies using conceptors fitted to successful and failed roll-out activations [5]. In our demonstration-only setting, the steering reference instead consists solely of expert hidden states collected from the original demonstrations. The resulting challenge is how to use the structure of these expert hidden states to suppress undesirable deviations while preserving the variation needed for action generation.
Our empirical analysis finds that expert hidden states vary predominantly within relatively few dimensions, while linear subspaces fitted to different clusters of expert hidden states differ in orientation (Section IV-A). These observations motivate viewing the expert distribution as concentrated near a low-dimensional manifold, with broad variation along local tangent subspaces and narrow variation along local normal subspaces. Variation along this structure can reflect differences between demonstrated situations that require different actions. The steering problem can therefore be viewed as reducing departures from the structure while limiting changes to the variation needed for action generation.
One way to pursue this goal is to attenuate components along directions with low expert variance more strongly than those along directions with high variance. A linear filter can implement this rule using globally fitted directions and attenuation factors [6]. Under the manifold view, however, local tangent and normal subspaces can change orientation with location. A fixed linear filter may therefore attenuate tangential expert variation as well as normal deviations, motivating steering directions that adapt to the local geometry.
Our key idea is to use nonlinear expert coordinates for selective attenuation, limiting changes to high-variance coordinates while attenuating low-variance coordinates more strongly. We implement this idea with Diffeomorphic Hidden-State Steering (DHS), which learns a diffeomorphic coordinate map, or chart, from expert hidden states. DHS builds on score-based pullback Riemannian geometry (SPRG) [7] to learn the chart and an anisotropic Gaussian model of expert variation in its coordinates. Under the manifold view, high and low-variance coordinates serve as proxies for tangential variation and normal deviations, respectively. The inverse chart provides location-dependent coordinate directions for selective attenuation in hidden-state space. At test time, DHS maps the current hidden state to chart coordinates, rescales them according to their fitted expert variances, and maps the
Correspondence: lkb20015@kaist.ac.kr.
(a) Expert hidden-states
(b) Selective attenuation

Local tangent directions
(c) Location-dependent updates
Fig. 1. Schematic overview of DHS. (a) Expert hidden states are schematically shown near a curved structure; blue arrows indicate local tangent directions. (b) A learned diffeomorphic chart maps hidden states to coordinates where DHS attenuates low-variance coordinates more strongly than high-variance coordinates while retaining every coordinate. (c) Mapping back through the inverse chart produces location-dependent hidden-state updates. Gray points denote expert samples; open orange and filled blue markers indicate states before and after steering. Here, is the fitted expert variance of chart coordinate , and controls steering strength.
result back before the remaining policy layers generate an action (Fig. 1).
Our contributions are as follows:
• We characterize expert hidden-state geometry in a trained IL policy, observing concentrated variation and differences in the orientation of linear subspaces fitted to different clusters of expert hidden states.
• We introduce DHS, a full-rank nonlinear steering operator that uses expert hidden-state geometry to attenuate low-variance chart coordinates while limiting changes to high-variance coordinates in a frozen IL policy.
• We demonstrate that DHS achieves higher mean success than the unmodified policy under observation noise across four simulated manipulation tasks. Also, learned nonlinear coordinates yield higher mean success than linear coordinates from principal component analysis (PCA) under both hard projection and full-rank rescaling.
A. Hidden-State Steering and Filtering
Hidden-state steering can be learned jointly with a task network or derived from the statistics of reference activations. State-Reification Networks jointly train denoising or attractor modules with the task network to improve generalization, and combine state reification with adversarial training to improve adversarial robustness [4]. The statistical approach underlies conceptor filters, which use second moments of recurrent activity to preserve characteristic patterns and control their generation [6]. COAST applies this principle to robot policies by combining conceptors fitted to successful and failed rollout activations [5]. Each fitted conceptor applies a linear map in hidden-state space. DHS uses nonlinear expert coordinates whose induced coordinate basis can vary with the current hidden state, allowing variance-dependent steering to follow the learned geometry.
B. Representation Geometry and Nonlinear Steering
Studies of intrinsic dimension in image classification networks [8] and representation geometry in protein and image Transformers [9] motivate examining how expert variation is organized within robot policies. A constructive approach to such geometry is provided in [7]: anisotropic flows yield tractable pullback geometry and a Riemannian autoencoder that reconstructs data after retaining high-variance coordinates. DHS builds on this coordinate construction for full-rank selective attenuation during policy execution.
Geometry also affects how interventions move between represented behaviors. Interpolation along fitted activation manifolds is examined in Manifold Steering through behavioral transitions in structured language tasks and a visual world model [10]. For targeted behavioral changes, Curveball Steering applies contrastive shifts in polynomial kernel PCA coordinates, using approximate inversion and restoring the reconstruction residual [11]. These approaches establish precedents for nonlinear geometric intervention; our focus is how expert variation can guide corrective attenuation steering while preserving execution of an existing robot task.
C. Predictive Guidance and Activation Feedback
Guidance can also be derived from an action’s predicted consequences. Proximity to expert observation embeddings supplies the objective in Latent Policy Barrier, where dynamics learned from expert data and policy roll-outs guide action denoising through predicted future embeddings [12]. Predicted future state values provide another criterion: Cosmos Policy learns action, state, and value predictions by fine-tuning a video model, and uses these values to select action proposals in its planning mode [13]. Feedback can instead operate across network depth, as in WA-LQR, which locally linearizes diffusion Transformer blocks to track contrastive robustness feature targets [14]. For DHS, the correction reference is the fitted distribution of expert hidden states: coordinate variances determine the attenuation directly, without future state prediction or contrastive feature tracking.
III. PROBLEM FORMULATION
Let denote the expert demonstrations used to train an IL policy . At control step , the policy receives an observation history and generates an action using its original action selection rule. We seek to improve its closed-loop task success under observation noise by modifying an intermediate hidden state during execution, with all policy parameters fixed.
We select a single intermediate layer and denote the hidden state to be modified at control step by , where is its dimension. A steering map replaces this hidden state with
At the selected layer, all other token representations remain unchanged. The policy then resumes its original computation and generates an action using its original action selection rule. We denote the policy with this intervention by .
Before deployment, we replay observation histories from through the frozen policy and collect hidden states at the same layer and token position. These expert hidden states form the dataset , which provides the fitting reference for T.
The objective is for to achieve higher task success than under observation noise.
IV. DIFFEOMORPHIC HIDDEN-STATE STEERING
A. Empirical Geometry of Expert Hidden States
Studies of image classifiers and Transformers have reported evidence of low-dimensional manifold structure in hidden representations [8], [9]. Motivated by these findings, we examine whether the expert hidden-state distribution from an IL robot policy is concentrated in relatively few dimensions and whether regional linear subspaces differ in orientation. We select the Square manipulation task from Robomimic [15] as a representative task and use a Transformer policy trained by behavior cloning (BC-Transformer). We analyze the approximately 27,000 expert hidden states that form , obtained by replaying the original training demonstrations through the frozen policy.
To quantify variance concentration, we apply principal component analysis (PCA) to the mean-centered states. We compute the cumulative explained variance as the sum of the leading covariance eigenvalues divided by the sum of all eigenvalues. Using the 90% explained variance criterion employed in prior work [8], we find that 29 principal components suffice in the ambient 512 dimensional space. Thus, most observed expert variation can be captured by a low-dimensional linear subspace.
For a curved manifold, local tangent subspaces can change orientation relative to the fixed coordinate axes of the hidden-state space. To examine this possibility, we partition the same states into eight clusters using k-means and fit a rank-29 PCA subspace within each cluster, using these regional subspaces as empirical proxies for local tangent subspaces. We compare every pair of PCA subspaces using principal angles, computed as the inverse cosines of the singular values of the matrix of inner products between their orthonormal basis vectors. Each pair yields 29 principal angles; all are zero for identical subspaces, while larger angles indicate greater differences in orientation. Averaging all 29 principal angles over all 28 cluster pairs gives 44.7°, indicating differences in the orientations of the fitted regional subspaces. Together, the variance concentration and regional orientation differences support a low-dimensional manifold-like view of expert hidden-state geometry. These observations therefore motivate the use of a nonlinear chart that allows coordinate rescaling to act along location-dependent directions in hidden-state space.
B. Learning an Expert Coordinate Chart
To construct such coordinates, we adopt SPRG's combination of an invertible nonlinear chart and a learned anisotropic Gaussian [7]. We fit a full-dimensional diffeomorphism , a smooth bijection with a smooth inverse, to . For a generic hidden state , let . We model expert coordinates by , where and each is the fitted expert variance of coordinate . The inverse maps modified coordinates back to hidden-state space, where the corresponding update directions can vary with position. The fitted variances determine how strongly each coordinate is attenuated.
The chart combines fixed invertible preprocessing with a nonlinear flow composed of smooth invertible affine coupling blocks [16]. We learn the flow and A jointly with the preprocessing fixed. Let denote the chart Jacobian. By the change of variables formula, the negative log-likelihood (NLL) of the expert hidden states, up to a constant, is
(2)
where averages over expert hidden states in . Likelihood alone leaves coordinate scales undetermined: doubling one chart coordinate and quadrupling its fitted variance leaves the hidden-state likelihood unchanged (Appendix I-C). These scales also determine the attenuation factors introduced below, making regularization part of the steering design. Following SPRG [7], we fit the chart with isometry and volume regularization:
Here, encourages local preservation of Euclidean lengths by the trainable flow in preprocessed coordinates, while penalizes local volume expansion and contraction through its squared log absolute Jacobian determinant. The regularization weights are nonnegative. The preprocessing and penalty definitions are given in Appendix II-A.
C. Steering by Variance-Dependent Rescaling
At control step , let . With fixed after fitting, the negative log-likelihood of candidate chart coordinates under the fitted Gaussian is up to a constant. We balance this penalty against the change from :
The hyperparameter controls steering strength for a given perturbation condition and remains fixed within each roll-out.
The unique minimizer gives
(5)
For steering strength , coordinates with undergo small relative changes, while those with are strongly attenuated. Every multiplier is strictly positive for finite , so all coordinates are retained and is invertible in exact arithmetic. At , . The strength therefore controls attenuation continuously without requiring a choice of retained dimension.
We replace with at the intervention layer and resume the frozen policy as defined in Section III. Algorithm 1 summarizes offline fitting and online execution.
D. Location-Dependent Steering Directions
Although is fixed, the inverse chart determines how coordinate changes are expressed locally in hidden-state space. Let denote the ith standard basis vector in chart coordinates. The corresponding coordinate basis vector at h is
For an affine chart, these basis vectors are constant, so steering acts along fixed hidden-state directions. For a nonlinear chart, they can vary with h, allowing the same coordinate rescaling to act along directions that vary with position. These basis vectors describe local changes; deployment evaluates the full nonlinear map in Eq. (5) with a forward chart evaluation, diagonal rescaling, and an inverse chart evaluation, without Jacobian evaluations or iterative optimization. Appendix I quantifies this selective attenuation and gives a conditional mean interpretation under an auxiliary Gaussian noise model.
Algorithm 1: DHS fitting and execution
Input: , frozen , intervention layer , , , .
Offline fitting
1: Replay through to collect .
2: Fit , to using Eq. (3); freeze , .
3: .
Online execution
4: for each control step do
5: Compute from using through layer .
6: ; .
7: .
8: Replace only by ; resume .
9: Execute the policy's action.
10: end for
V. EXPERIMENTS
A. Evaluation Setup
We evaluate policies on four simulated manipulation tasks: Square, Transport, and Can from Robomimic [15], and Coffee-D1 from MimicGen [17] (Fig. 2). For each task, all methods use the same frozen BC-Transformer checkpoint with low-dimensional observations. All hidden-state methods intervene on the final token at the same layer of the frozen policy. At each policy call, independent noise drawn from is added to every element of the observation history in its original feature units; overlapping observations are reperturbed on subsequent calls. The protocol uses neither observation normalization nor quaternion renormalization.
We compare DHS with alternatives fitted to expert hidden states at the same layer: PCA projection, autoencoder (AE) reconstruction, k-nearest neighbor (kNN) replacement, and a Gaussian score step. These alternatives test linear truncation, nonlinear reconstruction, replacement by the mean of the k nearest expert hidden states, and density-based correction in standardized hidden-state coordinates.
At the action level, Action EWMA (exponentially weighted moving average) combines recent action predictions with exponentially decaying weights, resetting between episodes. We evaluate it alone and in combination with DHS. The unmodified policy is denoted as no steering. Details are in Appendix II.
B. Closed-Loop Success under Observation Noise
We evaluate DHS and all baselines under observation noise with level . For each task, we choose a noise level that noticeably reduces the success rate of the no steering baseline relative to clean observations ( ). The comparison in Table I uses three roll-out seeds with 100 episodes per seed and reports percent success as mean sample standard deviation (SD) across seeds. Bold entries indicate the highest mean in each column. Policy and chart checkpoints remain fixed across seeds, so SD measures roll-out variability. The task-specific DHS strengths are selected by hyperparameter search and used unchanged for clean and noisy evaluations, both with and without Action EWMA.
DHS improves mean noisy success over no steering on all four tasks in Table I, by 3.7 to 12.0 percentage points. It also achieves higher noisy means than the Gaussian score step on all four tasks and the highest noisy mean among the hidden-state methods on Square, Can, and Coffee-D1. To examine the role of coordinate choice, Section V-C compares linear and nonlinear coordinates under hard projection and full-rank rescaling.
The interventions act at different stages: DHS adjusts the selected hidden-state before the current action is generated, while Action EWMA combines recent action predictions. Adding DHS to Action EWMA increases mean noisy success from 57.7% to 61.7% on Square and from 56.3% to 62.0% on Transport, yielding the highest noisy mean among the evaluated methods on both tasks. On Can and Coffee-D1, DHS alone achieves the highest noisy mean. The gains over Action EWMA on Square and Transport show that hidden-state steering can also benefit policies whose action outputs are already smoothed.
C. Why Use Learned Nonlinear Coordinates?
Section IV-A shows that 29 principal components explain 90% of the variance in expert hidden states on Square. We now ask whether learned nonlinear coordinates are more effective than linear PCA coordinates for hidden-state steering. We use Square as a representative task for this comparison under

(a) Square
(b) Transport
(c) Can
(d) Coffee-D1
Fig. 2. Manipulation tasks used in evaluation: (a) Square, (b) Transport, (c) Can, and (d) Coffee-D1.
TABLE I CLOSED-LOOP TASK SUCCESS (%), MEAN ± SD ACROSS THREE ROLL-OUT SEEDS WITH 100 EPISODES PER SEED.
| Method | Square | Transport | Can | Coffee-D1 | ||||
|---|---|---|---|---|---|---|---|---|
| Clean | σ = 0.05 | Clean | σ = 0.02 | Clean | σ = 0.05 | Clean | σ = 0.01 | |
| No steering | 79.0 ± 3.5 | 39.7 ± 3.1 | 45.0 ± 1.0 | 37.3 ± 2.1 | 90.7 ± 0.6 | 55.3 ± 6.7 | 72.0 ± 2.6 | 67.0 ± 7.9 |
| PCA projection | 66.7 ± 3.8 | 21.7 ± 2.1 | 24.3 ± 2.9 | 22.0 ± 5.3 | 82.0 ± 4.6 | 16.3 ± 1.5 | 17.7 ± 2.1 | 24.3 ± 1.5 |
| AE reconstruction | 80.0 ± 3.6 | 32.7 ± 4.5 | 41.3 ± 4.0 | 43.3 ± 7.5 | 87.3 ± 0.6 | 54.0 ± 2.6 | 52.3 ± 4.6 | 53.0 ± 3.5 |
| kNN replacement (k = 1) | 53.7 ± 7.4 | 25.0 ± 6.2 | 13.7 ± 4.6 | 19.0 ± 3.0 | 71.0 ± 3.0 | 37.0 ± 8.2 | 32.3 ± 1.2 | 41.3 ± 0.6 |
| kNN replacement (k = 5) | 53.7 ± 6.8 | 23.7 ± 6.1 | 13.3 ± 4.0 | 17.7 ± 1.5 | 69.3 ± 7.6 | 34.7 ± 5.7 | 34.0 ± 5.6 | 36.7 ± 3.8 |
| Gaussian score step | 82.3 ± 1.5 | 42.3 ± 6.0 | 41.3 ± 6.4 | 38.0 ± 4.6 | 92.7 ± 2.1 | 57.7 ± 3.5 | 72.7 ± 6.4 | 69.7 ± 3.1 |
| DHS | 78.7 ± 0.6 | 51.7 ± 2.5 | 36.0 ± 3.0 | 41.0 ± 2.6 | 93.7 ± 0.6 | 61.7 ± 1.5 | 77.3 ± 4.9 | 73.0 ± 3.5 |
| Action EWMA | 78.0 ± 2.6 | 57.7 ± 7.0 | 60.7 ± 7.6 | 56.3 ± 3.8 | 93.3 ± 1.5 | 57.3 ± 0.6 | 73.7 ± 5.0 | 61.3 ± 2.5 |
| DHS + Action EWMA | 82.0 ± 1.7 | 61.7 ± 3.1 | 63.3 ± 2.3 | 62.0 ± 1.7 | 92.0 ± 3.0 | 58.0 ± 2.0 | 69.7 ± 4.0 | 59.7 ± 4.7 |
hard projection and full-rank rescaling, with PCA fitted to standardized expert hidden states. Both comparisons use three roll-out seeds with 100 episodes per seed; noisy evaluations use a noise level of .
First, we use 29 as a common retained dimension for PCA and the learned chart. For both PCA and the learned chart, we keep the 29 highest variance coordinates and set the remaining coordinates to zero. We map the modified coordinates back to a hidden state and insert it at the same intervention layer of the frozen policy. The learned chart yields higher mean success than PCA in both clean and noisy conditions (Table II), showing that the choice of coordinates affects task success even when the same number of coordinates is retained.
We next test whether the learned chart remains beneficial when all 512 coordinates are retained. We compare DHS with PCA-Wiener, which applies the same rescaling rule in the complete linear PCA basis using its empirical coordinate variances. For this comparison, each method's strength is selected by mean development success and fixed before evaluation on disjoint seeds. Both methods use matching episode initializations and random seeds. DHS achieves higher mean noisy success, versus , reported as mean sample SD across seeds (Table II).
The learned chart yields higher mean success under both update rules, supporting coordinate choice as an important component of effective hidden-state steering on Square.
TABLE II COORDINATE COMPARISONS ON SQUARE: TASK SUCCESS (%), MEAN ± SD. NOISY EVALUATIONS USE .
| Hard projection: 29 coordinates retained | ||
|---|---|---|
| Condition | PCA projection | Chart projection |
| Clean | 66.7 ± 3.8 | 80.0 ± 5.3 |
| Noisy | 21.7 ± 2.1 | 48.7 ± 5.9 |
| Full-rank rescaling: 512 coordinates retained | ||
| Condition | PCA-Wiener | DHS |
| Noisy | 44.0 ± 4.6 | 50.3 ± 9.1 |
D. Selective Attenuation and Steering Strength
We now quantify how strongly DHS attenuates low-variance chart coordinates and how much it changes high-variance chart coordinates during execution. For , let contain the coordinates with the largest fitted expert variances and contain the remaining coordinates. We use on Square. This split is used only for analysis; DHS retains all coordinates. We define the low-variance chart norm as the unweighted Euclidean norm of the low-variance block:
We measure the update from to over 13,492 intervention steps from noisy Square episodes at and . The median low-variance chart norm decreases
TABLE III
SENSITIVITY TO STEERING STRENGTH ON SQUARE AT .
| Success (%)Mean SD | after steeringMean of run medians | |
|---|---|---|
| 0.1 | 2.323 | |
| 0.2 | 1.374 | |
| 0.4 | 0.766 | |
| 0.5 | 0.631 | |
| 1.0 | 0.334 |
from 8.49 before steering to 0.95 after steering. For the high-variance block, the median cosine similarity between and is 0.9989. Its median relative displacement, , is . These measurements show that DHS strongly attenuates the low-variance block while making limited changes to the high-variance block during noisy Square roll-outs.
To relate selective attenuation to task success, we vary on Square at noise level , keeping the policy, chart, and fitted expert variances fixed. Each strength uses three runs of 100 episodes, with percent success reported as mean sample SD across runs. The low-variance chart norm after steering is reported as the mean of the run medians.
Across the five tested strengths from to , mean success ranges from to , above the no steering reference in Table I. Among the tested strengths, mean success is highest at and decreases for larger , while the low-variance chart norm after steering continues to decrease (Table III). Increasing strengthens attenuation in every chart coordinate, including high-variance coordinates (Eq. (5)). This shows that stronger attenuation can impair execution despite further reducing the low-variance chart norm.
E. Task Success under Variance Block Perturbations
Following the attenuation measurements in Section V-D, we examine the consequences of perturbing high and low-variance chart coordinates on Square and Can. We use the same variance blocks with and , respectively.
At each injection step, two consecutive policy calls at the same environment state yield clean and noisy hidden states and , with noise level . Let and . We add either variance block of to at its observed magnitude, leaving the other block clean. We map back through and insert the hidden state at the same intervention layer. Injection occurs at the first control step only or at every step, using three roll-out seeds with 100 episodes per seed for each condition.
With every-step injection, high-variance block perturbations yield lower mean success on both tasks; the difference between blocks is much smaller with first-step injection (Table IV). The every-step comparison in PCA coordinates shows the same pattern: low-variance block injection yields higher mean success by 30.7 percentage points on Square and 39.0 on Can. High expert variance therefore does not imply tolerance to observation noise. DHS rescales the full noisy
TABLE IV
TASK SUCCESS (%) UNDER VARIANCE-BLOCK PERTURBATIONS, MEAN ± SD ACROSS THREE ROLL-OUT SEEDS.
| Task | Injection | High-variance perturbation | Low-variance perturbation |
|---|---|---|---|
| Square | First step | 80.3 ± 2.5 | 78.0 ± 6.1 |
| Square | Every step | 47.7 ± 1.5 | 74.7 ± 7.6 |
| Can | First step | 92.7 ± 2.5 | 93.0 ± 3.5 |
| Can | Every step | 59.3 ± 4.9 | 89.3 ± 2.9 |
coordinate, so attenuation also changes its clean component. For the paired clean and noisy coordinates defined above, gives
The first term is distortion of the clean coordinates; the second is the perturbation remaining after steering. Limited attenuation of high-variance coordinates reduces their relative clean-component distortion, while leaving more of their perturbation. The block-injection results measure task sensitivity to the observed perturbations; task-success comparisons evaluate the net effect of DHS. Together with the strength sweep, these results highlight the tradeoff between perturbation attenuation and changes to coordinates used for action generation.
VI. DISCUSSION
A. Expert Geometry as a Steering Reference
DHS gives the original demonstrations a second role after policy training: their hidden states provide a reference for steering the frozen policy during execution. This separates policy training from the design of the steering update, without requiring additional expert action targets. The expert hidden-state density does not uniquely determine the update: different chart scales can describe the same density while yielding different DHS updates at a fixed (Appendix I-C). Chart learning and regularization therefore help define the steering rule, in addition to fitting the expert distribution.
B. Limitations
DHS fits the distribution of expert hidden states, including their observation history information, without modeling temporal transitions. A hidden-state can be compatible with the fitted distribution yet inappropriate for the current task phase or a successful continuation. Combining expert geometry with predictions of an intervention's future consequences is a natural extension, connecting hidden-state steering with predictive guidance [12], [13].
The evaluation covers fixed BC-Transformer checkpoints with low-dimensional observations in simulation, and a single intervention site. In Table I, DHS reduces clean Transport success from to , and adding Action EWMA to DHS lowers noisy success on Can and Coffee-D1. The fitted geometry depends on preprocessing and chart regularization; its coordinate statistics provide a steering reference rather than a model of task error. Future work could also combine DHS with out-of-distribution (OOD) detection to adapt when and how strongly steering should be applied based on departures from the expert hidden-state distribution.
VII. Conclusion
DHS uses expert hidden-state geometry to improve the robustness of frozen IL policies at test time. Motivated by the low-dimensional manifold-like geometry of expert hidden states, its central idea is to apply variance-dependent rescaling in nonlinear coordinates to produce location-dependent steering directions. We use SPRG-based chart learning to fit expert coordinates and their variances. DHS improves mean success over the unmodified policy across four simulated manipulation tasks under observation noise. On Square, the learned coordinate construction yields higher mean success than linear PCA coordinates under both hard projection and full-rank rescaling. The strength sweep further shows that stronger coordinate attenuation does not necessarily improve execution. Together with the gains over unmodified policies and the benefits alongside Action EWMA on Square and Transport, these results establish expert hidden states as a useful reference for selective test-time steering without additional demonstrations or policy retraining.
APPENDIX I DERIVATIONS FOR THE STEERING OPERATOR
A. Hidden-State Displacements and Invertibility
The chart determines how variance-dependent rescaling acts in hidden-state space. For an affine chart with invertible , the steering map is , with fixed coordinate directions . For PCA-Wiener, let be the expert mean, a positive diagonal matrix of coordinate standard deviations, and the covariance of standardized expert hidden states, with orthogonal and the diagonal matrix of PCA variances. When all PCA variances are positive, setting and gives
Its coordinate directions are the columns of SU, providing the fixed linear reference in Section V-C.
For a nonlinear chart, the basis vectors in Eq. (6) can vary with location. Fix and , and set . As , . Taylor expansion of the smooth inverse chart, using , yields
This expresses the leading displacement in the coordinate basis at the starting state.
To extend this interpretation to finite strength, map the segment from z to through the inverse chart:
The second line follows by the chain rule. Since and , integrating the tangent gives the exact displacement
The coefficients are fixed by the starting coordinates and steering strength; the basis vectors are evaluated along the path. For an affine chart, the basis is constant along the path. For a nonlinear chart, the basis vectors can change direction and magnitude; the integral captures this variation beyond the starting-state approximation in Eq. (10). Deployment evaluates the endpoint directly through Eq. (5), without path integration or Jacobian evaluations.
This nonlinear change of coordinates preserves the full-rank property of . By the chain rule,
The chart Jacobians are invertible, and every diagonal entry of is positive for finite , so has rank . The explicit inverse establishes global invertibility. Thus, DHS permits location-dependent steering while retaining every hidden-state dimension.
B. Attenuation Bounds and Gaussian Conditional Mean
To quantify selective attenuation, order and choose . Define and , with the same partition for . At fixed steering strength , the attenuation multiplier is non-decreasing in , while the displacement multiplier is non-increasing. The largest multipliers in the respective blocks therefore give
(15)
Thus, permits strong low-variance attenuation and small relative high-variance displacement simultaneously. Both bounds are tight, attained on coordinates and , respectively. They hold for every ; the partition is used only for analysis.
As increases, every attenuation multiplier decreases, including those in the high-variance block. For each fixed ,
Thus, large strengths suppress both blocks even though remains invertible for finite . The strength sweep in Section V-D measures how attenuation and task success change at finite strengths.
The same weights arise in the auxiliary chart noise model , with independent and , where . The cross-covariance of and is , and has covariance . Gaussian conditioning gives
This conditional mean minimizes expected squared error in chart coordinates; smaller signal-to-noise ratios yield stronger attenuation. Here, belongs to the chart noise model and is distinct from the observation noise variance . For nonlinear , mapping this conditional mean back need not give the conditional mean in hidden-state space.
C. Scale Dependence
Let with . Replace by and by . If denotes the Gaussian density with covariance , then
(18)
The two scale factors cancel in the change of variables density, so both parameterizations represent the same hidden-state distribution. At fixed , the rescaling factors nevertheless become , which also determine the update after returning to the original chart coordinates. Recovering the original map with a new strength requires for every coordinate. Thus, a common scale can be absorbed into the strength, whereas unequal coordinate scales cannot. Equal likelihood therefore does not imply equivalent coordinate attenuation, even after selecting a scalar steering strength. Preprocessing and regularization shape the relative coordinate scales on which the steering rule depends.
APPENDIX II EXPERIMENTAL DETAILS
A. Policy and Chart Fitting
Policies use six Transformer blocks and ten-observation contexts, trained with AdamW and learning rate linearly decayed from to over the first 100 epochs. DHS modifies the 512-dimensional final token after zero-based layer 4. For expert mean , diagonal standard deviation matrix S, and full PCA basis U of standardized expert hidden states,
(19)
The trainable flow uses eight affine coupling blocks of hidden width 256, SiLU activations, log-scale clamp 2, and log-parameterized base variances. Chart fitting uses AdamW at for Square/Transport and for Can/Coffee-D1; the latter use PCA warm-start, 300 epochs, and batch size 256. Following SPRG [7], with ,
We jointly fit , using Eq. (3), , , and Hutchinson estimation of . Here, is the Frobenius norm; expectations use preprocessed expert states.
B. Baseline Settings and Evaluation Protocol
Hidden-state baselines operate in standardized coordinates; their outputs are unstandardized before the policy resumes. The AE uses , SiLU hidden activations, linear bottleneck/output layers, and mean squared reconstruction error. PCA ranks and AE bottlenecks are 29, 32, 11, and 23 for Square, Transport, Can, and Coffee-D1, respectively. kNN uses Euclidean distance; the Gaussian score step uses Ledoit–Wolf covariance and step scale . Action EWMA averages up to five predictions with normalized weights proportional to for lag j.
For Table I, DHS strengths are 0.3, 0.1, 0.001, and 0.001 in that task order. The paired Square comparison uses for DHS and 0.3 for PCA-Wiener, selected by mean development success before evaluation on disjoint seeds. A 20,000-resample paired bootstrap over 300 episode pairs gives a 95% confidence interval of [0.0, 12.7] percentage points for DHS minus PCA-Wiener. Attenuation measurements in Section V-D use Square with and . The evaluations reported in Table I, Table II, and Table III use different sets of roll-out episodes.
ACKNOWLEDGMENT
This work originated from research conducted at KAIST. The author thanks Prof. SooJean Han and the Autonomous Control for Stochastic Systems (ACSS) Lab at KAIST for their support and the research environment in which this work began. OpenAI's ChatGPT was used to assist with language polishing, and codes for implementation of the experiments. The author takes full responsibility for all statements and final formulations.
REFERENCES
[1] S. Ross, G. Gordon, and D. Bagnell, “A reduction of imitation learning and structured prediction to no-regret online learning,” in Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, vol. 15 of Proceedings of Machine Learning Research, pp. 627–635, PMLR, 2011.
[2] M. Laskey, J. Lee, R. Fox, A. Dragan, and K. Goldberg, “DART: Noise injection for robust imitation learning,” in Proceedings of the 1st Annual Conference on Robot Learning, vol. 78 of Proceedings of Machine Learning Research, pp. 143–156, PMLR, 2017.
[3] J. Yang, M. S. Mark, B. Vu, A. Sharma, J. Bohg, and C. Finn, "Robot fine-tuning made easy: Pre-training rewards and policies for autonomous real-world reinforcement learning," in IEEE International Conference on Robotics and Automation (ICRA), pp. 4804–4811, IEEE, 2024.
[4] A. Lamb, J. Binas, A. Goyal, S. Subramanian, D. Kazakov, I. Mitliagkas, Y. Bengio, and M. Mozer, “State-reification networks: Improving generalization by modeling the distribution of hidden representations,” in Proceedings of the 36th International Conference on Machine Learning, vol. 97 of Proceedings of Machine Learning Research, pp. 3622–3631, PMLR, 2019.
[5] M. M. Miao, S. Kim, B. Yang, and L. Ungar, “Contrastive conceptor activation steering (COAST): Unlocking vision-language-action models through hidden states,” arXiv preprint arXiv:2605.17144, 2026.
[6] H. Jaeger, “Using conceptors to manage neural long-term memories for temporal patterns,” Journal of Machine Learning Research, vol. 18, no. 13, pp. 1–43, 2017.
[7] W. Diepeveen, G. Batzolis, Z. Shumaylov, and C.-B. Schönlieb, “Score-based pullback Riemannian geometry: Extracting the data manifold geometry using anisotropic flows,” in Proceedings of the 42nd International Conference on Machine Learning, vol. 267 of Proceedings of Machine Learning Research, pp. 13746–13773, PMLR, 2025.
[8] A. Ansuini, A. Laio, J. H. Macke, and D. Zoccolan, “Intrinsic dimension of data representations in deep neural networks,” in Advances in Neural Information Processing Systems, vol. 32, pp. 6111–6122, Curran Associates, Inc., 2019.
[9] L. Valeriani, D. Doimo, F. Cuturello, A. Laio, A. Ansuini, and A. Cazzaniga, “The geometry of hidden representations of large transformer models,” in Advances in Neural Information Processing Systems, vol. 36, pp. 51234–51252, Curran Associates, Inc., 2023.
[10] D. Wurgaft, C. Rager, M. Kowal, S. Feucht, U. Bhalla, T. Haklay, E. Bigelow, R. Sarfati, J. Merullo, N. Goodman, T. Fel, A. Geiger, and E. S. Lubana, “Manifold steering reveals the shared geometry of neural network representation and behavior,” in Third Conference on Language Modeling, 2026.
[11] S. Raval, H. J. Song, L. Wu, A. Harrasse, J. M. Phillips, F. Barez, and A. Abdullah, “Curveball steering: The right direction to steer isn’t always linear,” arXiv preprint arXiv:2603.09313, 2026.
[12] Z. Sun and S. Song, “Latent policy barrier: Learning robust visuomotor policies by staying in-distribution,” in Advances in Neural Information Processing Systems, vol. 38, pp. 174280–174305, Curran Associates, Inc., 2025.
[13] M. J. Kim, Y. Gao, T.-Y. Lin, Y.-C. Lin, Y. Ge, G. Lam, P. Liang,
S. Song, M.-Y. Liu, C. Finn, and J. Gu, “Cosmos Policy: Fine-tuning video models for visuomotor control and planning,” in The Fourteenth International Conference on Learning Representations, 2026.
[14] J. Hong, J. Skifstad, Q. Dai, A. Chan, and G. Chou, “Steering robustness into world action models via mechanistic interpretability and optimal control,” arXiv preprint arXiv:2607.14943, 2026.
[15] A. Mandlekar, D. Xu, J. Wong, S. Nasiriany, C. Wang, R. Kulkarni, L. Fei-Fei, S. Savarese, Y. Zhu, and R. Martín-Martín, “What matters in learning from offline human demonstrations for robot manipulation,” in Proceedings of the 5th Conference on Robot Learning, vol. 164 of Proceedings of Machine Learning Research, pp. 1678–1690, PMLR, 2022.
[16] L. Dinh, J. Sohl-Dickstein, and S. Bengio, “Density estimation using Real NVP,” in International Conference on Learning Representations, 2017.
[17] A. Mandlekar, S. Nasiriany, B. Wen, I. Akinola, Y. Narang, L. Fan, Y. Zhu, and D. Fox, “MimicGen: A data generation system for scalable robot learning using human demonstrations,” in Proceedings of The 7th Conference on Robot Learning, vol. 229 of Proceedings of Machine Learning Research, pp. 1820–1864, PMLR, 2023.