Introduction
Imitation learning (IL) is a powerful paradigm for teaching robots complex tasks by observing experts. However, a significant hurdle remains: "domain shift." In real-world scenarios, the expert and the agent often operate in environments with different visual characteristics, such as varying lighting, camera angles, or physical appearances (e.g., a human hand versus a robotic gripper).
Standard State Representation Learning (SRL) methods typically fail in these cases because they capture all visual information, including task-irrelevant domain details. When an imitation reward function—often a discriminator—processes these representations, it becomes distracted by the visual differences rather than focusing on the underlying task goals. Consequently, the robot may be penalized simply for not "looking" like the expert, making the learned reward unsuitable for effective control.
The DAC-SSM Framework
To address these challenges, we introduce the Domain-Adversarial and -Conditional State Space Model (DAC-SSM). Built upon the Recurrent State Space Model (RSSM), DAC-SSM employs three key mechanisms to extract domain-agnostic latent states that focus purely on task dynamics:
- Domain-Adversarial Training: The model incorporates a domain discriminator ($D_d$) that attempts to identify whether a latent state originates from the expert or the agent domain. The state space is trained to minimize this discriminator's accuracy through a domain confusion loss, forcing the latent representations to be domain-agnostic.
- Domain-Conditional Architecture: To ensure that important visual information is not lost during reconstruction, the encoder and decoder are conditioned on domain labels. This allows the model to "shunt" domain-specific information (like textures or colors) into conditional parameters, keeping the core latent state clean and focused on task-relevant physics.
- Optimality Discriminator ($D_O$): This component acts as the imitation reward function. Because the latent states are domain-agnostic, $D_O$ can evaluate behavior (state-action pairs) strictly based on task success, regardless of the agent's visual appearance.
For execution, the system utilizes Model Predictive Control (MPC) with the Cross Entropy Method (CEM) to plan actions directly within the learned, low-dimensional latent space.
Experimental Evaluation
We evaluated DAC-SSM using the MuJoCo physics simulator across three sparse-reward tasks involving significant domain shifts:
- Cup-Catch: Swinging a ball into a cup.
- Finger-Spin: Rotating an object to a target speed.
- Connector-Insertion: A high-precision task requiring the insertion of a connector into a socket.
Domain shifts included altering floor and object colors, tilting camera angles, and replacing human-like manipulators with robotic ones.
Key Results and Insights
DAC-SSM significantly outperformed standard SRL baselines like PlaNet across all benchmarks. In the Finger-Spin task, DAC-SSM achieved a mean score of 405, compared to PlaNet's 157. Notably, in the complex Connector-Insertion task, DAC-SSM reached a score of 50.5—effectively matching expert performance—while the baseline failed entirely with a score of 2.1.
Our findings highlight two critical insights:
- Disentanglement is Essential: Conditioning the decoder on domain labels is vital. It relieves the latent state of the burden of representing appearance, allowing it to focus entirely on joint angles and object positions.
- Dynamics-Awareness: Unlike static image translation, DAC-SSM jointly optimizes for forward dynamics. This ensures that domain-agnostic features are useful for predicting future states, which is critical for robust MPC planning.
Limitations and Future Work
While DAC-SSM shows great promise, it currently requires action data from the expert, which may not always be available. Future research will explore "Imitation from Observation" (IfO), where the model learns solely from video demonstrations. Additionally, addressing hyperparameter sensitivity regarding the domain confusion coefficient ($\lambda$) remains an area for optimization to better balance task-awareness and domain-agnosticism in more diverse real-world environments.
Summary updated