Invariant Causal Imitation Learning for Generalizable Policies
About
Consider learning an imitation policy on the basis of demonstrated behavior from multiple environments, with an eye towards deployment in an unseen environment. Since the observable features from each setting may be different, directly learning individual policies as mappings from features to actions is prone to spurious correlations -- and may not generalize well. However, the expert's policy is often a function of a shared latent structure underlying those observable features that is invariant across settings. By leveraging data from multiple environments, we propose Invariant Causal Imitation Learning (ICIL), a novel technique in which we learn a feature representation that is invariant across domains, on the basis of which we learn an imitation policy that matches expert behavior. To cope with transition dynamics mismatch, ICIL learns a shared representation of causal features (for all training environments), that is disentangled from the specific representations of noise variables (for each of those environments). Moreover, to ensure that the learned policy matches the observation distribution of the expert's policy, ICIL estimates the energy of the expert's observations and uses a regularization term that minimizes the imitator policy's next state energy. Experimentally, we compare our methods against several benchmarks in control and healthcare tasks and show its effectiveness in learning imitation policies capable of generalizing to unseen environments.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Box/Door Unlocking | Unlock In-distribution I (test) | Success Rate6.71e+3 | 10 | |
| Box/Door Unlocking | Unlock Composition C (test) | Success Rate5.36e+3 | 10 | |
| Crash Avoidance | Crash In-distribution I (test) | Success Rate55.3 | 10 | |
| Object Stacking | Stack In-distribution I (test) | Success Rate93.7 | 10 | |
| Crash Avoidance | Crash Composition C (test) | Success Rate14.3 | 10 | |
| Object Stacking | Stack Spuriousness S (test) | Success Rate81.2 | 10 | |
| Box/Door Unlocking | Unlock Spuriousness S (test) | Success Rate15.9 | 10 | |
| Crash Avoidance | Crash Spuriousness S (test) | Success Rate21.7 | 10 | |
| Object Stacking | Stack Composition C (test) | Success Rate62.8 | 10 | |
| Action-matching | MIMIC-III (test) | Accuracy85.5 | 9 |