# Rank2Reward: Learning Shaped Reward Functions from Passive Video

> 原标题：Rank2Reward: Learning Shaped Reward Functions from Passive Video

- 来源：MIT Improbable AI / Pulkit Agrawal
- 文章发布日期：2024-04-23
- Physical AI Hot：https://physical-ai-hot.pages.dev/items/h8mc1x6ngb2gx27cqj8x0ip3g
- 原文：https://arxiv.org/abs/2404.14735

## 一句话结论

Rank2Reward利用无动作视频中的帧时序排序学习任务进度奖励，使机器人能够在缺少低层状态和动作的条件下，通过强化学习完成桌面操作任务，并已在仿真与真实机械臂上展示效果。

## 摘要

Teaching robots novel skills with demonstrations via human-in-the-loop data collection techniques like kinesthetic teaching or teleoperation puts a heavy burden on human supervisors. In contrast to this paradigm, it is often significantly easier to provide raw, action-free visual data of tasks being performed. Moreover, this data can even be mined from video datasets or the web. Ideally, this data can serve to guide robot learning for new tasks in novel environments, informing both "what" to do and "how" to do it. A powerful way to encode both the "what" and the "how" is to infer a well-shaped reward function for reinforcement learning. The challenge is determining how to ground visual demonstration inputs into a well-shaped and informative reward function. We propose a technique Rank2Reward for learning behaviors from videos of tasks being performed without access to any low-level states and actions. We do so by leveraging the videos to learn a reward function that measures incremental "progress" through a task by learning how to temporally rank the video frames in a demonstration. By inferring an appropriate ranking, the reward function is able to guide reinforcement learning by indicating when task progress is being made. This ranking function can be integrated into an adversarial imitation learning scheme resulting in an algorithm that can learn behaviors without exploiting the learned reward function. We demonstrate the effectiveness of Rank2Reward at learning behaviors from raw video on a number of tabletop manipulation tasks in both simulations and on a real-world robotic arm. We also demonstrate how Rank2Reward can be easily extended to be applicable to web-scale video datasets.

## 为什么重要

以下为编辑分析，不能视作已验证结果。

它把容易获取的无动作视觉数据转化为能够表达任务进度的奖励信号，连接了视频示范、奖励学习与强化学习，降低了依赖人工动作示范的门槛。

## 对 AI 研究或应用的影响

以下为编辑分析，不能视作已验证结果。

如果这种进度奖励在更多任务和环境中保持有效，机器人训练可能更多利用网络或视频数据来学习任务目标与执行方式；但材料目前仅说明其在若干桌面操作任务中的仿真和真实机械臂演示。

## 值得继续追的问题

- 在不同任务、视角、环境和视频质量下，帧排序学习到的奖励是否仍能稳定指导强化学习？
- 将Rank2Reward扩展到web-scale视频数据时，数据筛选、训练规模和实际可复现条件是什么？

