arXiv:2610.21666cs.ROOct 2026

Manuscript Offprint

arXiv:2610.21666

Diffeomorphic Hidden-State Steering: Improving Imitation Learning Policy Robustness through Expert Hidden-State Geometry

KwangBin Lee

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

Figure

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, aia_i is the fitted expert variance of chart coordinate ii, and β\beta 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.