Multi-task imitation learning for linear dynamical systems

Thomas Tck Zhang, Katie Kang, Bruce D Lee, Claire Tomlin, Sergey Levine, Stephen Tu, Nikolai Matni · OpenReview

Abstract

We study representation learning for efficient imitation learning over linear systems. In particular, we consider a setting where learning is split into two phases: (a) a pre-training step where a shared $k$-dimensional representation is learned from $H$ source policies, and (b) a target policy fine-tuning step where the learned representation is used to parameterize the policy class. We find that the imitation gap over trajectories generated by the learned target policy is bounded by $\tilde{O}\left( \frac{k n_x}{HN_{\mathrm{shared}}} + \frac{k n_u}{N_{\mathrm{target}}}\right)$, where $n_x > k$ is the state dimension, $n_u$ is the input dimension, $N_{\mathrm{shared}}$ denotes the total amount of data collected for each policy during representation learning, and $N_{\mathrm{target}}$ is the amount of target task data. This result formalizes the intuition that aggregating data across related tasks to learn a representation can significantly improve the sample efficiency of learning a target task. The trends suggested by this bound are corroborated in simulation.

Introduction

Imitation learning (IL) has emerged as a cornerstone for training autonomous systems by leveraging expert demonstrations. Despite its successes, IL remains notoriously data-hungry, often requiring a prohibitive number of demonstrations to achieve stability. Furthermore, IL is plagued by the "distribution shift" problem: small errors in the learned policy lead the system into states not seen during training, causing errors to compound and the system to drift.

While Multi-Task Learning (MTL) has revolutionized fields like computer vision and natural language processing by sharing representations across tasks, its application to control systems is more complex. Control data is temporally dependent, and performance is measured by closed-loop stability rather than simple one-step prediction accuracy. This paper provides a rigorous theoretical foundation for multi-task representation learning in linear dynamical systems (LDS), demonstrating how shared representations can overcome the sample inefficiency of traditional IL.

The Two-Phase Learning Framework

The authors propose a structured approach to leverage shared structures across related control tasks. The framework is divided into two distinct phases:

Phase 1: Representation Pre-training

In this phase, the learner is provided with $H$ different "source" tasks—for example, different experts controlling the same underlying physical system. The goal is to identify a shared $k$-dimensional linear representation, denoted as $\Phi$. This representation captures the essential low-dimensional features of the high-dimensional state space that are relevant for control across all tasks.

Phase 2: Target Task Fine-tuning

When a new "target" task is introduced, the learned representation $\Phi$ is frozen. The learner only needs to identify a small set of task-specific weights, $F$, using a limited number of demonstrations from the target expert. Because the heavy lifting of understanding the system's state representation was completed in Phase 1, the target task can be learned with significantly higher sample efficiency.

Theoretical Analysis: The Imitation Gap

The core contribution of this work is the formalization of the "imitation gap"—the performance difference between the expert and the learned policy. The authors prove that the tracking error is bounded by:

$$\text{Error} \lesssim \frac{k \cdot n_x}{HN_{\mathrm{shared}}} + \frac{k \cdot n_u}{N_{\mathrm{target}}}$$

This bound reveals several critical insights:

  1. Dimension Reduction: The error depends on the representation dimension ($k$) rather than the full observation dimension ($n_x$). In systems where high-dimensional sensor data (like images) masks a low-dimensional physical state, this reduction is transformative.
  2. The Multi-Task Subsidy: As the number of source tasks ($H$) increases, the first term in the bound vanishes. This effectively means the cost of learning the representation is amortized across all tasks, leaving the target task to only solve for the low-dimensional weights.
  3. Closed-Loop Stability: By utilizing self-normalized martingales to account for temporal dependencies, the authors prove that low training error translates to stable, long-term tracking in a closed-loop environment, provided the expert policy is stabilizing.

Experimental Validation

To validate the theory, the researchers conducted simulations using a synthetic linear system. A 4-dimensional state system was "lifted" into a 50-dimensional observation space using a random injective map, simulating a scenario where raw sensor data is high-dimensional but the underlying physics are simple. Expert policies were generated using 10 different Linear Quadratic Regulator (LQR) controllers with varying cost matrices.

Results: * Sample Efficiency: The Multi-task IL approach achieved near-perfect stability and low tracking error with as few as 2 to 5 target trajectories. * Baseline Comparison: In contrast, "Direct IL" (learning from scratch without a shared representation) remained unstable and exhibited massive tracking errors even when provided with 20 trajectories.

Discussion and Limitations

While this work provides a rigorous proof of concept for MTL in control, it focuses on Linear Dynamical Systems (LDS) and linear representations. Real-world robotics often involves non-linear dynamics and complex neural network representations. Additionally, the current analysis assumes the dimension of the underlying representation ($k$) is known a priori.

Future research directions include extending these theoretical guarantees to non-linear systems and exploring the application of these insights to Reinforcement Learning (RL), where agents must balance exploration with the exploitation of learned representations.

Conclusion

This paper formalizes the intuition that multi-task learning can significantly reduce the data requirements for imitation learning in dynamical systems. By proving that shared representations can mitigate the distribution shift and reduce the effective dimensionality of the control problem, the authors provide a theoretical roadmap for more sample-efficient and stable autonomous systems.

Summary updated

Abstract

We study representation learning for efficient imitation learning over linear systems. In particular, we consider a setting where learning is split into two phases: (a) a pre-training step where a shared $k$-dimensional representation is learned from $H$ source policies, and (b) a target policy fine-tuning step where the learned representation is used to parameterize the policy class. We find that the imitation gap over trajectories generated by the learned target policy is bounded by $\tilde{O}\left( \frac{k n_x}{HN_{\mathrm{shared}}} + \frac{k n_u}{N_{\mathrm{target}}}\right)$, where $n_x > k$ is the state dimension, $n_u$ is the input dimension, $N_{\mathrm{shared}}$ denotes the total amount of data collected for each policy during representation learning, and $N_{\mathrm{target}}$ is the amount of target task data. This result formalizes the intuition that aggregating data across related tasks to learn a representation can significantly improve the sample efficiency of learning a target task. The trends suggested by this bound are corroborated in simulation.
BibTeX
@inproceedings{zhang2023multi,
  author = {Thomas TCK Zhang and Katie Kang and Bruce D Lee and Claire Tomlin and Sergey Levine and Stephen Tu and Nikolai Matni},
  title = {{Multi-task imitation learning for linear dynamical systems}},
  booktitle = {L4DC},
  year = {2023},
  url = {https://openreview.net/forum?id=5nhpOnJhyw},
}
Figure