Skip to main content
QUICK REVIEW

[Paper Review] Cross-Domain Perceptual Reward Functions

Ashley D. Edwards, Srijan Sood|arXiv (Cornell University)|May 25, 2017
Neural and Behavioral Psychology StudiesNeuroscience40 references7 citations
TL;DR

This paper introduces Cross-Domain Perceptual Reward (CDPR) functions, a deep learning-based method that enables reinforcement learning agents to learn tasks by matching their current state to goal images from a different environment. By training a neural network to measure visual similarity between agent states and cross-domain goal images, CDPRs enable accurate, generalizable reward signals without hand-engineered rewards, achieving high task success in both maze navigation and music generation tasks.

ABSTRACT

In reinforcement learning, we often define goals by specifying rewards within desirable states. One problem with this approach is that we typically need to redefine the rewards each time the goal changes, which often requires some understanding of the solution in the agents environment. When humans are learning to complete tasks, we regularly utilize alternative sources that guide our understanding of the problem. Such task representations allow one to specify goals on their own terms, thus providing specifications that can be appropriately interpreted across various environments. This motivates our own work, in which we represent goals in environments that are different from the agents. We introduce Cross-Domain Perceptual Reward (CDPR) functions, learned rewards that represent the visual similarity between an agents state and a cross-domain goal image. We report results for learning the CDPRs with a deep neural network and using them to solve two tasks with deep reinforcement learning.

Motivation & Objective

  • To address the challenge of manually engineering environment-specific reward functions in reinforcement learning for each new task.
  • To enable goal specification in surrogate environments—such as images, diagrams, or spoken descriptions—rather than relying on the agent’s native environment.
  • To develop a general, transferable reward function that can be applied across diverse goal configurations without retraining.
  • To evaluate whether learned perceptual similarity between cross-domain goals and agent states can effectively guide deep reinforcement learning.
  • To demonstrate that CDPRs generalize across unseen goals and support successful policy learning in complex tasks.

Proposed method

  • Train a deep neural network to learn a perceptual embedding space where the distance between a state image and a cross-domain goal image reflects their visual similarity.
  • Use contrastive learning with a Siamese network architecture to optimize the CDPR function, minimizing distance between matching state-goal pairs and maximizing it for non-matching pairs.
  • Define the CDPR as a learned reward function: r(s, g) = -||f(s) - f(g)||₂, where f is the learned feature encoder for state s and goal g.
  • Apply the CDPR as the reward signal in deep reinforcement learning algorithms (e.g., SAC or PPO) to train agents in environments like grid-world mazes and music generation tasks.
  • Use both real-world goal images (e.g., handshapes, spoken commands, sheet music) and synthetic goal representations as cross-domain inputs.
  • Evaluate CDPRs using multiple metrics: goal retrieval accuracy (GRA), reward consistency, and downstream RL performance on unseen goal instances.

Experimental results

Research questions

  • RQ1Can perceptual similarity between agent states and cross-domain goal images be effectively learned to serve as a general reward function in RL?
  • RQ2To what extent can CDPRs generalize to new, unseen goal configurations without retraining?
  • RQ3How does the performance of CDPRs compare to handcrafted rewards in terms of task success and policy quality?
  • RQ4What are the limitations of CDPRs when the visual or semantic gap between domains is large?
  • RQ5Can CDPRs support learning in complex, sequential tasks such as music generation and navigation with sparse rewards?

Key findings

  • The CDPR approach achieved high goal retrieval accuracy (GRA) of 1.0 for both handshape and spoken command goal representations, indicating strong perceptual alignment between agent states and cross-domain goals.
  • In the maze navigation task, the CDPR with spoken commands successfully trained agents to reach both the blue and green rooms, while the handshape CDPR failed on one goal due to spurious intermediate rewards.
  • In the music generation task, both guitar and sheet music goal representations achieved up to 75% accuracy on the first song, though performance dropped on the more complex second song, indicating sensitivity to task complexity.
  • The CDPR with handshape goals showed high GRA but suboptimal RL performance, revealing that GRA alone is insufficient for evaluating reward functions, as intermediate rewards can mislead policies.
  • The feature encoding network produced non-negative rewards only when states matched goals, avoiding positive feedback loops and ensuring stable learning.
  • The results demonstrate that CDPRs can be used without modification across multiple goal instantiations, confirming their generalization capability in cross-domain goal specification.

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.