Skip to main content
QUICK REVIEW

[Paper Review] Robust Visual Domain Randomization for Reinforcement Learning

Reda Bahi Slaoui, William R. Clements|arXiv (Cornell University)|Oct 23, 2019
Domain Adaptation and Few-Shot LearningComputer Science36 references7 citations
TL;DR

This paper proposes a regularization method that trains an agent on a single environment variation while enforcing invariance in its learned state representations across visual domain randomizations. By minimizing the L2 distance between features of the same state under different visual randomizations, the method achieves superior robustness and sample efficiency compared to standard domain randomization, with equal or better generalization performance on unseen visual domains.

ABSTRACT

Producing agents that can generalize to a wide range of visually different environments is a significant challenge in reinforcement learning. One method for overcoming this issue is visual domain randomization, whereby at the start of each training episode some visual aspects of the environment are randomized so that the agent is exposed to many possible variations. However, domain randomization is highly inefficient and may lead to policies with high variance across domains. Instead, we propose a regularization method whereby the agent is only trained on one variation of the environment, and its learned state representations are regularized during training to be invariant across domains. We conduct experiments that demonstrate that our technique leads to more efficient and robust learning than standard domain randomization, while achieving equal generalization scores.

Motivation & Objective

  • To address the inefficiency and high variance of standard visual domain randomization in reinforcement learning.
  • To improve generalization to unseen visual domains without requiring real-world data.
  • To reduce overfitting to specific visual environments during training.
  • To develop a method that regularizes state representations to be invariant across visual domain shifts.
  • To provide theoretical and empirical justification for invariance in intermediate network layers rather than policy outputs.

Proposed method

  • The agent is trained exclusively on a reference environment with fixed visual properties (e.g., a specific background color).
  • During training, a regularization term penalizes differences in the feature representations of the same state under different visual randomizations.
  • The regularization is applied to intermediate layers of the neural network, not the policy output, to encourage invariant state representations.
  • The method uses a dual-input forward pass: one with the reference environment and one with a randomly sampled visual variation of the same state.
  • The loss function combines standard RL loss (e.g., Q-learning or policy gradient) with a contrastive regularization term based on L2 distance between features.
  • The approach is compatible with both value-based (e.g., DQN) and policy-gradient (e.g., PPO) RL algorithms.

Experimental results

Research questions

  • RQ1Can regularizing intermediate state representations improve generalization in visual domain randomization without increasing sample complexity?
  • RQ2How does invariance in feature representations affect policy robustness across unseen visual domain shifts?
  • RQ3Does regularization on intermediate layers outperform regularization on policy outputs or input perturbations?
  • RQ4How does the proposed method compare to standard domain randomization in terms of training efficiency and performance variance?
  • RQ5What is the impact of regularization on feature space structure, as measured by t-SNE visualization of representations across domains?

Key findings

  • The regularized agent achieves generalization performance comparable to standard domain randomization but with significantly lower variance across different visual domains.
  • t-SNE visualizations show that the regularized agent learns similar representations for diverse visual domains, while the randomized agent learns distinct representations for different domains.
  • The regularized agent generalizes robustly to unseen visual randomizations (e.g., background colors not in the training split), whereas the randomized agent shows high variance in feature representations.
  • The method reduces overfitting to specific visual configurations, as evidenced by consistent performance across a wide range of background colors.
  • The regularization leads to more efficient training, as the agent does not need to experience all visual variations during rollouts.
  • The theoretical analysis supports that Lipschitz continuity of the policy over visual randomizations is improved by the proposed regularization, enhancing robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.