Abstract
Transferring deep learning models from synthetic simulations to real-world environments—a process known as sim-to-real—is frequently obstructed by the significant visual discrepancy between pixels, or "domain shift." This paper introduces Task Distillation, a novel two-stage framework designed to bridge this gap. By utilizing shared label spaces, such as semantic maps or depth information, as a universal intermediary, Task Distillation enables the training of high-performing models in a target domain without the need for costly real-world annotations.
The Challenge of Sim-to-Real Transfer
Deep learning models are notoriously data-intensive. In safety-critical applications like autonomous driving, collecting sufficient real-world data is often prohibitively expensive or dangerous. While simulators offer an inexhaustible source of labeled data, models trained on "cartoonish" synthetic images often fail when deployed in the real world due to the visual difference between synthetic and real pixels.
Current approaches generally fall into two categories:
- Image-to-Image Translation: Techniques like CyCADA attempt to stylize simulation images to appear "real." However, these methods are computationally intensive and can introduce visual inconsistencies.
- Modular Pipelines: These systems solve intermediate tasks (e.g., semantic segmentation) and pass the results to a downstream policy. These are prone to compounding errors, where a minor failure in the perception module leads to catastrophic failure in the control policy.
Task Distillation seeks to capture the benefits of abstract intermediate representations while avoiding the fragility of modular pipelines.
Methodology: Two-Stage Task Distillation
The fundamental insight of this work is that while raw images vary significantly across domains, the underlying labels (the "what" and "where" of objects) remain remarkably consistent. The authors propose a two-stage distillation process:
- Stage 1 (Source to Proxy): A "Source Model," pre-trained to perform a task (like driving) in a simulator, distills its knowledge into a Proxy Model. This Proxy Model does not process raw images; instead, it takes ground-truth labels (e.g., semantic maps) as input.
- Stage 2 (Proxy to Target): The Proxy Model's knowledge is then distilled into a Target Model. This model takes raw images from the target domain (e.g., a realistic simulator or real-world footage) and learns to replicate the Proxy Model’s outputs.
The result is an end-to-end model that maps pixels directly to actions in the target domain, guided by a "teacher" that understands the fundamental geometry of the environment.
Experimental Evaluation
The framework was evaluated across several challenging domain adaptation scenarios:
- Policy Transfer: Moving driving and navigation policies from low-fidelity environments like SuperTuxKart and ViZDoom to the photorealistic CARLA simulator.
- General Domain Adaptation: Transferring semantic segmentation capabilities from the synthetic SYNTHIA-SF dataset to the real-world Cityscapes urban dataset.
Key Insights and Results
- The Label Domain Advantage: Exploiting the "label domain" is significantly more efficient than bridging the "pixel domain," as semantic maps of streets look nearly identical regardless of the source's visual fidelity.
- End-to-End Robustness: By producing an end-to-end model, Task Distillation avoids the compounding errors of modular systems. It uses perfect labels during training but relies only on raw pixels at inference.
- Performance Gains: In SuperTuxKart-to-CARLA tests, the Task Distillation agent drove an average of 260.5m before crashing—nearly double the 135.3m achieved by the best modular baseline.
- Sim-to-Real Accuracy: In SYNTHIA-to-Cityscapes segmentation, the method achieved a 4.8-point improvement in mIoU over previous state-of-the-art techniques.
- Data Efficiency: The framework remains robust even when target domain labeled data is reduced by 50%, outperforming modular approaches in data-constrained scenarios.
Limitations and Future Directions
The success of Task Distillation depends on the "transferability" of the proxy task. If camera perspectives or label definitions (e.g., "track" vs. "road") differ too much between domains, the distillation process may falter. For instance, drastic variations in camera poses can make depth-estimation proxy tasks inconsistent. Future research will explore more expressive proxy tasks and the scalability of this approach to complex, multi-agent environments.
Summary updated