[Paper Review] Analysing Deep Reinforcement Learning Agents Trained with Domain Randomisation
This paper investigates deep reinforcement learning agents trained with domain randomisation (DR) in simulation, comparing their generalisation, internal representations, and interpretability to non-DR agents. It finds DR promotes more robust, entangled visual representations with structured convolutional filters and heavy reliance on recurrent processing, though DR can cause overfitting and higher sample complexity, necessitating multi-method interpretability for reliable analysis.
Deep reinforcement learning has the potential to train robots to perform complex tasks in the real world without requiring accurate models of the robot or its environment. A practical approach is to train agents in simulation, and then transfer them to the real world. One popular method for achieving transferability is to use domain randomisation, which involves randomly perturbing various aspects of a simulated environment in order to make trained agents robust to the reality gap. However, less work has gone into understanding such agents - which are deployed in the real world - beyond task performance. In this work we examine such agents, through qualitative and quantitative comparisons between agents trained with and without visual domain randomisation. We train agents for Fetch and Jaco robots on a visuomotor control task and evaluate how well they generalise using different testing conditions. Finally, we investigate the internals of the trained agents by using a suite of interpretability techniques. Our results show that the primary outcome of domain randomisation is more robust, entangled representations, accompanied with larger weights with greater spatial structure; moreover, the types of changes are heavily influenced by the task setup and presence of additional proprioceptive inputs. Additionally, we demonstrate that our domain randomised agents require higher sample complexity, can overfit and more heavily rely on recurrent processing. Furthermore, even with an improved saliency method introduced in this work, we show that qualitative studies may not always correspond with quantitative measures, necessitating the combination of inspection tools in order to provide sufficient insights into the behaviour of trained agents.
Motivation & Objective
- To understand how domain randomisation (DR) affects the generalisation and internal representations of deep reinforcement learning agents trained in simulation.
- To evaluate the impact of DR on sample efficiency, robustness to visual and environmental perturbations, and reliance on recurrent processing.
- To assess the effectiveness of interpretability techniques—especially when used in combination—for analysing DR-trained agents.
- To investigate whether DR-induced changes in network internals correlate with improved generalisation or unintended behaviours like overfitting.
- To inform sim2real transfer by identifying key structural and representational properties of DR agents that could be mimicked without DR.
Proposed method
- Trained DRL agents on Fetch and Jaco robotic manipulation tasks using PPO with and without visual domain randomisation (DR) across multiple configurations, including with and without proprioceptive inputs.
- Evaluated generalisation through unit tests involving visual perturbations (e.g., randomised lighting, textures), distractors, and domain shift from DR to standard sim visuals.
- Applied interpretability techniques: saliency mapping (with a novel improved method), unit ablation, activation maximisation, filter norm analysis, and representation entanglement measurement.
- Used ℓ₁-norm analysis of convolutional filters to quantify structural changes in feature detectors due to DR.
- Measured representation invariance via entanglement scores between representations under different visual conditions.
- Conducted ablation studies on recurrent layers (LSTM) and final policy layers to assess modularity and robustness to reinitialisation.
Experimental results
Research questions
- RQ1How does domain randomisation affect the generalisation performance of DRL agents under visual and environmental perturbations?
- RQ2What internal structural and representational changes occur in DRL agents due to domain randomisation, particularly in convolutional filters and hidden representations?
- RQ3To what extent do DR agents rely on recurrent processing, and how does this compare to non-DR agents?
- RQ4Can interpretability techniques such as saliency, ablation, and activation maximisation provide consistent and reliable insights into DR agent behaviour?
- RQ5Does domain randomisation lead to overfitting in certain configurations, and how does the presence of proprioceptive inputs influence this?
Key findings
- Agents trained with domain randomisation showed significantly higher generalisation performance across diverse testing conditions, including visual perturbations and distractors, compared to non-DR agents.
- DR led to more structured, spatially organised convolutional filters with higher ℓ₁-norms, indicating more complex and robust feature detectors.
- Representation entanglement analysis revealed that DR agents learned more invariant, task-specific features across visual variations, with higher overlap in embeddings under different visual conditions.
- Despite expectations, DR did not reduce performance variability under filter ablation; instead, DR agents had better baseline performance, suggesting improved robustness rather than reduced sensitivity to filter changes.
- DR agents exhibited strong reliance on recurrent processing (LSTM), as shown by significant performance drops when the recurrent state was ablated, whereas non-DR agents were largely unaffected.
- A surprising case of overfitting occurred in the Jaco agent trained with DR but without proprioception, which performed worse when tested under standard (non-DR) visuals, indicating DR can induce distributional overfitting in low-sensory-input settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.