TL;DR
This paper introduces Cross-Domain Perceptual Reward (CDPR) functions, a method that allows reinforcement learning agents to understand goals defined in entirely different environments—such as using a sign language handshape to tell a robot which room to enter. By learning a visual similarity mapping between an agent's state and a "cross-domain" goal image, the researchers decouple task specification from the agent's internal mechanics, making it easier to define complex goals using surrogate media like diagrams, speech spectrograms, or sheet music.
What Problem Does This Paper Address?
In traditional Reinforcement Learning (RL), rewards are the "north star" that guides an agent. However, these rewards are usually hand-engineered and strictly tied to the agent's specific environment (e.g., "reward = 1 if coordinates are [x, y]"). This approach is brittle: if the goal changes, you often have to redefine the reward function from scratch.
Humans don't learn this way. We use "cross-domain" references—we look at a photo of a finished IKEA table to build our own, or follow a hand-drawn map. Current RL methods like Inverse Reinforcement Learning or imitation learning usually require the "teacher" and "student" to share the same state space. The authors address the correspondence problem: how can an agent learn to achieve a goal when the goal is described in a format the agent has never seen in its own "world"?
Methods
The authors propose a deep learning architecture to learn a similarity metric between two different domains.
- Dual-Network Architecture: They use two separate but identical neural networks (a Siamese-like setup). One network encodes the agent’s current visual state ($G_i$), and the other encodes a cross-domain goal image ($\hat{G}_j$).
- The Reward Function: The reward is calculated as the dot product of the outputs of these two networks: $R(G_i, \hat{G}_j) = \Phi_{G_i}^T \Phi_{\hat{G}_j}$. Essentially, the reward is a measure of how "similar" the agent's state is to the goal in a high-dimensional embedding space.
- Semi-Supervised Training: The networks are trained using a ranking loss. The goal is to ensure that a matching state-goal pair produces a high reward, while mismatched pairs produce low rewards.
- Integration with RL: Once the CDPR is trained, it replaces the standard reward function. The agent then uses a standard Deep RL algorithm (like DQN) to maximize this perceptual reward.
Datasets
The researchers evaluated their approach in two distinct simulated domains:
- Maze Domain: A grid-world where the agent must navigate to rooms of specific colors.
- Cross-domain goals: American Sign Language (ASL) handshapes representing the first letter of the color (e.g., 'G' for Green) and spectrograms of spoken commands ("Go to the green room").
- Music Domain: An agent plays synthesized piano notes to match a target song.
- Cross-domain goals: Spectrograms of the same song played on a guitar and images of the song’s sheet music.
- External Data: They utilized a pre-existing dataset of 2D static hand gestures for the ASL task.
Key Insights and Ideas
- Decoupling Goal from State: The most significant insight is that an agent doesn't need to know its own coordinates to find a goal; it only needs to understand the perceptual relationship between its view and the provided goal image.
- The "GRA" Metric: The authors introduce Goal Retrieval Accuracy (GRA). This measures how often the highest reward is correctly assigned to the true goal state among a set of unseen states. While high GRA is necessary, it isn't always sufficient for RL success.
- The Local Optima Trap: A surprising finding was that even with high GRA, an agent might fail. For example, in the maze task, the handshape CDPR gave "intermediate" rewards in the hallways. This created "positive cycles" where the agent preferred staying in a hallway rather than reaching the actual goal room, highlighting the danger of "noisy" learned rewards.
- Modality Matters: The difficulty of the task depends heavily on the visual correspondence. Matching a piano spectrogram to a guitar spectrogram was relatively successful, but matching it to sheet music proved much harder for the network to generalize.
Key Results
- High Retrieval Accuracy: The CDPRs achieved impressive GRA scores, ranging from 0.88 to 0.98 across the different tasks, proving the network could successfully find correspondences between domains.
- Maze Success: In the Maze domain, the agent successfully learned to reach the correct rooms using both spoken command spectrograms and handshapes, though the spoken commands were more robust.
- Music Success: In the Music domain, the agent achieved up to 75% accuracy in playing the correct notes when guided by guitar spectrograms. However, performance dropped significantly with sheet music on more complex songs, sometimes performing worse than a random agent.
Limitations and Future Work
- Sample Complexity: Training the CDPR requires a significant number of paired examples between the two domains. The authors suggest that future work should focus on reducing the amount of data needed.
- Reward Shaping Issues: As seen in the maze hallways, learned rewards can be "messy." Future research is needed to ensure that rewards don't inadvertently encourage suboptimal "looping" behavior.
- Real-World "Wild" Data: This study used mostly synthetic or controlled cross-domain data. The authors aim to eventually use real-world samples, perhaps obtained via crowd-sourcing, to define goals for robots in the physical world.
Summary updated