Introduction
Imitation learning (IL) has traditionally relied on expert demonstrations consisting of state-action pairs. By observing both the situation and the corresponding expert response, an agent can learn a policy through supervised learning. However, in many practical domains—ranging from autonomous driving videos to robotic manipulation logs—we often lack access to the underlying control inputs, such as steering angles or motor torques. We only observe the resulting state trajectories. This "unsupervised" setting necessitates a method for input estimation: reconstructing the hidden actions from observed state transitions.
The Challenge of Input Estimation
The primary hurdle in unsupervised imitation learning is the inherent difficulty of system inversion. While control theory offers tools like the Unbiased Minimum-Variance Input Estimator (UMV-IE), these methods prioritize zero bias. In practice, this mathematical purity comes at a steep cost: extremely high variance. When state measurements are even slightly noisy, UMV-IE produces wildly oscillating action estimates. While these estimates are "correct on average," they are unsuitable for training neural network policies, which struggle to converge on such noisy targets.
The AdaL-IE Approach
To address the variance problem, we introduce the Adaptive Linear Input Estimator (AdaL-IE). The core philosophy of AdaL-IE is a strategic trade-off: accepting a small amount of bias in exchange for a significant reduction in variance.
AdaL-IE estimates the input at a specific time step by taking a weighted average of observations within a local window. The weights are determined by solving a convex optimization problem—specifically a quadratic program—that minimizes the total estimation error. This formulation allows the estimator to adapt to the system's dynamics and the noise profile of the data.
While initially derived for Linear Time-Invariant (LTI) systems, AdaL-IE can be extended to complex non-linear systems. This is achieved by linearizing the system dynamics around the observed state trajectory, allowing the linear estimator to be applied locally.
Key Insights: Temporal Sparsity and the Bias-Variance Trade-off
A significant finding in our research is the discovery of temporal sparsity. The optimization process for AdaL-IE naturally assigns non-zero weights to only a small subset of observations near the target time step. Observations from the distant past or future tend to introduce more noise than useful information regarding the current action.
This sparsity confirms that local dynamics are the most informative for input reconstruction. Furthermore, our results highlight the "unbiased trap" in machine learning: for the purposes of policy training, a "smooth" but slightly biased estimate is far superior to a perfectly unbiased but noisy one.
Experimental Results
We evaluated AdaL-IE across 56 experimental configurations, including mass-spring systems, double integrators, and models of HTTP/Email servers.
- Estimation Accuracy: AdaL-IE outperformed the state-of-the-art UMV-IE in 50 out of 56 cases, achieving lower Root Mean Square (RMS) error.
- Policy Learning: We tested the reconstructed actions on the "Pendulum Swing-up" task from OpenAI Gym. Policies trained on UMV-IE estimates failed completely, with a 0% success rate across 1,000 trials. In contrast, policies trained on AdaL-IE estimates achieved a 75.4% success rate (using Sigmoid activations), nearing the performance of the original expert (93%) without ever having access to the true actions.
Conclusion and Future Work
Unsupervised imitation learning is feasible if we have an accurate model of the system's physics. By prioritizing low-variance estimates over unbiased ones, AdaL-IE provides the stable targets necessary for behavioral cloning.
Current limitations include a dependency on a known system model $(A, B, C)$ and a performance drop when dealing with highly discontinuous "bang-bang" control signals. Future research will focus on "model-free" extensions where the dynamics model and the control policy are learned simultaneously from the same unsupervised trajectory data.
Summary updated