Segment to Focus: Guiding Latent Action Models in the Presence of Distractors
Hamza Adnan, Matthew T. Jackson, Alexey Zakharov
TL;DR
MaskLAM tackles the problem of latent action models being misled by action-correlated distractors in unlabelled videos. It introduces a lightweight, plug-and-play approach that uses segmentation masks to weight the LAM reconstruction loss, biasing the latent space toward agent-centric dynamics without architectural changes. Empirically, MaskLAM achieves up to 4x improvements in acyclic rewards and 3x gains in latent action quality across four MuJoCo tasks with distractors, while enabling smaller latent spaces and better generalisation to out-of-distribution noise. This method enhances the practicality of unsupervised pretraining from video data for imitation learning and robotics, with broad implications for data-efficient RL/IL pipelines.
Abstract
Latent Action Models (LAMs) learn to extract action-relevant representations solely from raw observations, enabling reinforcement learning from unlabelled videos and significantly scaling available training data. However, LAMs face a critical challenge in disentangling action-relevant features from action-correlated noise (e.g., background motion). Failing to filter these distractors causes LAMs to capture spurious correlations and build sub-optimal latent action spaces. In this paper, we introduce MaskLAM -- a lightweight modification to LAM training to mitigate this issue by incorporating visual agent segmentation. MaskLAM utilises segmentation masks from pretrained foundation models to weight the LAM reconstruction loss, thereby prioritising salient information over background elements while requiring no architectural modifications. We demonstrate the effectiveness of our method on continuous-control MuJoCo tasks, modified with action-correlated background noise. Our approach yields up to a 4x increase in accrued rewards compared to standard baselines and a 3x improvement in the latent action quality, as evidenced by linear probe evaluation.
