Abstract
Learning policies from high-dimensional visual inputs, such as pixels and point clouds, is crucial in various applications. Visual reinforcement learning is a promising approach that directly trains policies from visual observations, although it faces challenges in sample efficiency and computational costs. This study conducts an empirical comparison of State-to-Visual DAgger — a two-stage framework that initially trains a state policy before adopting online imitation to learn a visual policy — and Visual RL across a diverse set of tasks. We evaluate both methods across 16 tasks from three benchmarks, focusing on their asymptotic performance, sample efficiency, and computational costs. Surprisingly, our findings reveal that State-to-Visual DAgger does not universally outperform Visual RL but shows significant advantages in challenging tasks, offering more consistent performance. In contrast, its benefits in sample efficiency are less pronounced, although it often reduces the overall wall-clock time required for training. Based on our findings, we provide recommendations for practitioners and hope that our results contribute valuable perspectives for future research in visual policy learning.
Introduction
Training robotic agents to perform complex tasks using only visual inputs, such as camera pixels, presents a dual challenge: perception and control. The agent must simultaneously learn to interpret raw visual data and determine the optimal actions to achieve a goal. While direct Visual Reinforcement Learning (RL) is a common approach, it is often computationally expensive and struggles with sample efficiency in high-dimensional spaces.
An alternative paradigm is the two-stage "teacher-student" framework known as State-to-Visual DAgger. This approach leverages privileged information—low-dimensional state data like object coordinates—to first train an expert "teacher" policy. Subsequently, a "student" visual policy is trained to mimic the teacher using only visual observations. Despite the prevalence of both methods, a standardized comparison of their relative strengths across diverse robotic tasks has been lacking.
Methodology
This study evaluates two primary implementations to ensure a fair comparison:
- Visual RL (Asymmetric Actor-Critic): To provide a competitive baseline, we utilize an asymmetric version of RL where the Critic has access to ground-truth state information during training, while the Actor is restricted to visual observations.
- State-to-Visual DAgger: This method follows a two-stage pipeline. In Stage 1, a teacher policy is trained using Soft Actor-Critic (SAC) on low-dimensional state data. In Stage 2, the visual student policy interacts with the environment, supervised by the teacher's actions. Key design choices for this stage include the use of an off-policy buffer to maintain data diversity and an early-stopping mechanism to mitigate overfitting.
Experimental Setup
We evaluated these paradigms across 16 tasks spanning three major robotics benchmarks, representing a wide spectrum of difficulty and control complexity:
- ManiSkill: Focused on robot arm manipulation, such as opening drawers and picking cubes.
- DMControl: Covering locomotion and classical control tasks like walking and swimming.
- Adroit: Featuring highly complex dexterous hand manipulation, including using a hammer or a pen.
Results and Discussion
Performance in Complex Tasks
Our findings indicate that State-to-Visual DAgger provides a significant advantage in "hard" tasks. In the Adroit benchmark, DAgger achieved a 77% success rate, vastly outperforming Visual RL's 29%. Similarly, across ManiSkill tasks, DAgger led with a 74% success rate compared to 49% for Visual RL. In simpler tasks where RL converges quickly, both methods performed comparably.
Stability and Consistency
Visual RL often exhibits "jittery" learning curves and can suffer from performance degradation late in training. In contrast, DAgger demonstrates much smoother and more consistent convergence. The imitation learning objective is inherently more stable than the trial-and-error nature of RL, resulting in narrower confidence intervals across different random seeds.
Computational and Wall-Clock Efficiency
While the total number of environment steps (sample efficiency) was often similar between the two methods, State-to-Visual DAgger consistently reduced wall-clock training time. This efficiency stems from the fact that training a state-based teacher is extremely fast, and the subsequent imitation stage avoids the heavy computational burden of running a visual encoder through the millions of gradient updates required by standard RL.
Conclusion
State-to-Visual DAgger is a robust and time-efficient alternative to direct Visual RL, particularly for complex manipulation tasks. However, its reliance on privileged state information during training remains a limitation for real-world applications where such data may not be available. Future work should focus on optimizing teacher checkpoint selection and exploring the "break-even" point between these methods as visual encoder architectures continue to evolve.
Summary updated