[Paper Review] Perceptual Reward Functions
This paper introduces Perceptual Reward Functions (PRFs), a method for specifying reinforcement learning tasks using visual similarity between an agent's state and a goal image, without relying on domain-specific reward parameters. By using motion templates and HOG features to compare visual representations, PRFs enable agents to learn complex behaviors—such as facial expressions or origami folding—directly from raw pixels, demonstrating effective task learning even when the agent and goal representations differ in source or appearance.
Reinforcement learning problems are often described through rewards that indicate if an agent has completed some task. This specification can yield desirable behavior, however many problems are difficult to specify in this manner, as one often needs to know the proper configuration for the agent. When humans are learning to solve tasks, we often learn from visual instructions composed of images or videos. Such representations motivate our development of Perceptual Reward Functions, which provide a mechanism for creating visual task descriptions. We show that this approach allows an agent to learn from rewards that are based on raw pixels rather than internal parameters.
Motivation & Objective
- To address the challenge of specifying complex reinforcement learning tasks through manually engineered reward functions that depend on domain-specific state variables.
- To enable task specification using visual demonstrations or goal images, mimicking how humans learn from videos or images.
- To develop a general, visual-based reward function that does not require modification of internal task parameters when changing tasks.
- To evaluate whether visual representations such as motion templates and HOG features can effectively encode task goals and support successful learning.
- To demonstrate that agents can learn desired behaviors even when the agent’s visual state and the goal representation differ in source or appearance.
Proposed method
- The paper proposes Perceptual Reward Functions (PRFs), where the reward is computed based on visual similarity between the agent’s current state and a goal representation, using raw pixel inputs.
- Motion templates are used to encode temporal motion patterns from video sequences, with higher intensity indicating more recent motion, enabling spatiotemporal representation of actions.
- Histogram of Oriented Gradients (HOG) features are extracted from motion templates to create a compact, discriminative representation for comparing agent and goal states.
- Three task representation methods are introduced: visual reward functions (VRF), keypoint-based reward functions (KPRF), and human-perceived reward functions (HPRF), each using different visual descriptors.
- A Deep Q-Network (DQN) is used to approximate the Q-value function, enabling value-based learning with visual state inputs.
- The reward is computed as the inverse of the L2 distance between the HOG features of the agent’s motion template and the goal template, encouraging alignment with the desired behavior.
Experimental results
Research questions
- RQ1Can reinforcement learning tasks be effectively specified using visual similarity between agent state and goal image, without relying on internal domain parameters?
- RQ2Can motion templates and HOG features serve as effective visual descriptors for task representation in reinforcement learning?
- RQ3Does the agent learn meaningful behavior when the goal representation is derived from a different source (e.g., human video) than the agent’s own observations?
- RQ4How does the visual similarity between the agent’s behavior and the goal template evolve during training, and does it correlate with task success?
- RQ5Can PRFs generalize across different tasks and representations, such as facial expressions or object manipulation, using the same reward mechanism?
Key findings
- The HPRF agent successfully learned to perform facial expressions such as happiness and surprise, mimicking characteristic actions like mouth stretching or eyebrow raising, despite using a human-demonstrated goal template.
- The distance between the HPRF goal template and the motion templates generated by the agent decreased over time, indicating that the agent’s behavior became visually similar to the desired goal.
- The VRF and KPRF agents achieved high success rates on the surprise and happiness tasks, with the HPRF agent showing comparable performance in learning the correct action patterns.
- The motion template representation effectively captured spatiotemporal dynamics of actions, enabling reliable visual comparison even when the agent and goal sources differed.
- The use of HOG features on motion templates provided a robust and generalizable way to compute visual similarity, supporting effective learning without task-specific reward engineering.
- The results demonstrate that PRFs can support learning of complex behaviors using only visual task descriptions, without modifying internal reward parameters.
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.