Hierarchical Skill Learning for Bipedal Robots: Concepts and Examples
Concepts
-
Pretrained skills (预训练技能, yùxùnliàn jìnéng): In reinforcement learning, pretrained skills refer to abilities or behaviors that an agent has already learned before tackling a new task. These skills can be acquired through prior training on related tasks or through unsupervised learning. For example, a bipedal robot may have pretrained skills for walking, jumping, or balancing that can be used in various new tasks.
-
Balance between generality and specificity (通用性与特异性的平衡, tōngyòngxìng yǔ tèyìxìng de píng héng): This refers to the trade-off between designing skills that are broadly applicable across many tasks (generality) and skills that are tailored to a specific task (specificity). For instance, a general skill for a robot could be walking, while a specific skill might be walking on a tightrope. General skills can be useful for many tasks, but may require more fine-tuning for optimal performance. Specific skills can lead to faster learning, but are limited in their applicability.
-
Continuous control (连续控制, liánxù kòngzhì): Continuous control is a type of reinforcement learning problem where the agent’s actions are continuous rather than discrete. For example, a robot’s joint angles or motor torques are continuous variables. Continuous control is often more challenging than discrete control due to the infinite number of possible actions.
-
Locomotion (运动, yùndòng): In the context of robotics and reinforcement learning, locomotion refers to the ability of an agent, like a bipedal robot, to move from one place to another. Locomotion skills can include walking, running, jumping, or crawling.
-
Sparse-reward (稀疏奖励, xīshū jiǎnglì): Sparse-reward refers to reinforcement learning tasks where the agent receives feedback (rewards or penalties) infrequently. This can make it difficult for the agent to learn, as it has to explore the environment extensively to discover which actions lead to rewards. For example, a robot trying to find a hidden object in a room might only receive a reward once it successfully locates the object, without any intermediate feedback.
The paper presents a hierarchical skill learning framework that allows the agent to learn skills of varying complexity without prior knowledge of the task. This framework helps the agent effectively balance generality and specificity, leading to better performance in diverse, sparse-reward tasks for bipedal robots.
advanced concepts
Imagine a bipedal robot learning to navigate through a complex environment filled with obstacles. The robot needs to learn various skills, such as walking, turning, and climbing, to efficiently explore and complete tasks in the environment.
- Skill policy (技能策略, jìnéng cèlüè): Individual skill policies control specific aspects of the robot’s behavior. For example, one skill policy might control the movement of the left leg, while another controls the right leg.
- Shared policy (共享策略, gòngxiǎng cèlüè): The shared policy is used to represent multiple skills or behaviors with a single policy. In this example, the shared policy could represent both the left and right leg movements, as well as more complex behaviors like turning or climbing.
- Hierarchy of skills (技能层次, jìnéng céngcì): Skills are organized into a hierarchy based on their complexity. In this case, simpler skills like moving individual legs form the lower levels of the hierarchy, while more complex skills like turning and climbing are at higher levels.
- High-level control signal (高级控制信号, gāojí kòngzhì xìnhào): The high-level control signal is provided by a higher-level policy that guides the robot’s overall behavior. In our example, the high-level control signal might instruct the robot to move towards a specific target or avoid an obstacle, which then influences the low-level skill policies, such as leg movements and turning.
- Robot configuration (机器人配置, jīqìrén pèizhì): The robot’s configuration refers to its current state, including positions, orientations, and joint angles. In this scenario, the robot’s configuration might include the positions of its legs, torso, and other body parts.
method
personal (GPT4’s) notes
The authors propose an approach that first acquires low-level policies capable of carrying out a useful set of skills in an unsupervised manner, meaning without reward signals from the main tasks of interest. These skills are then used in a hierarchical reinforcement learning setting.
The pre-training environment consists only of the robot, while in downstream tasks, additional objects may be present. These objects could be fixed (e.g., obstacles) or only indirectly controllable (such as a ball).
Low-Level Skills and Goal Spaces
The usefulness of a skill policy comes from providing additional structure for effective exploration. To provide benefits across a wide range of tasks, skills need to support both fast, directed exploration (e.g., locomotion) and precise movements (e.g., lift the left foot while bending down). The authors propose short-horizon, goal-directed low-level policies trained to achieve target configurations of robot-level state features, such as the position or orientation of its torso or relative limb positions.
This approach allows defining a hierarchy of skills by controlling single features and their combinations, resulting in varying amounts of control exposed to high-level policies. Each skill is trained to reach goals in a goal space defined over a set of features, yielding policies without task-specific rewards. These policies rely solely on state features related to the specific robot and the prescribed hierarchy of goal spaces.
A feature, in the context of this work, refers to a specific property or characteristic of the robot’s state. State features can include the position, orientation, or relative limb positions of the robot. These features help describe the current situation or configuration of the robot in the environment.
In this approach, low-level policies are trained to achieve target configurations of robot-level state features, such as reaching a certain position or orientation. The authors define a hierarchy of skills by controlling single features and their combinations, which results in different levels of control exposed to high-level policies.
A goal space is defined over a set of features. In this case, the goal space represents a collection of possible goals that can be achieved by manipulating these specific features. For instance, a goal space could be defined over the position and orientation features, meaning that the goals within this space would be related to reaching different positions and orientations.
These low-level policies (skills) do not rely on task-specific rewards; instead, they are trained based on the state features of the robot and the prescribed hierarchy of goal spaces. By focusing on state features and goal spaces, the approach enables the robot to learn a variety of skills that can be useful across a wide range of tasks. The high-level policy then selects and combines these low-level skills to accomplish the specific tasks it is given.
High-Level Policy and Task-Specific Features
On downstream tasks, high-level policies operate with a combinatorial action space. State spaces are enriched with task-specific features containing information regarding additional objects in the downstream task. This enriched state space is only available to the high-level policy. The high-level policy is modeled hierarchically with two policies that prescribe a goal space and a goal, respectively.
- “Prescribe” here means that the high-level policy determines or selects the goal space and goal to be used by the low-level policies. It chooses the appropriate goal space and goal based on the current state and the task requirements.
- Action space refers to the set of all possible actions that an agent (in this case, the robot) can take in a given environment. In the context of this work, “operate with a combinatorial action space” means that the high-level policy chooses a combination of low-level skills (goal space) and goals from the available options. This allows the high-level policy to create diverse and complex actions by combining the skills and goals it has access to.
- The high-level policy can be seen as a decision-making mechanism that directs the low-level policies (skills) to achieve specific tasks. It is modeled hierarchically, with two components: one that selects a goal space (which skill to use) and another that selects a specific goal within that goal space. By doing so, the high-level policy can dynamically switch between different skills and goals as needed for the given task, while the low-level policies focus on executing the chosen skill to reach the desired goal. The high-level policy’s primary function is to adapt and combine the low-level skills in a way that allows the robot to effectively perform various tasks.
Temporal Abstraction and HSD-3
With a task- and state-dependent policy, it is possible to not only select the required set of skills for a given environment but also switch between them within an episode. In this three-level hierarchy, the higher-level policy explores the hierarchy of goal spaces and dynamically trades off between generality and specificity. Temporal abstraction is obtained by selecting new high-level actions at regular intervals but with a reduced frequency compared to low-level actions. The resulting learning algorithm is called HSD-3, emphasizing the three different levels of control obtained after the hierarchical skill discovery phase.
“Switch between them within an episode” refers to the ability of the high-level policy to change the selected skill and goal as needed during a single episode of the task being performed. An episode typically refers to a single run or attempt at solving a task, starting from an initial state and ending when the task is completed or a termination condition is met. By switching between different skills and goals during an episode, the high-level policy can adapt to changing requirements of the task and environment.
“Temporal abstraction” is a concept in hierarchical reinforcement learning where decisions can be made at different time scales. In the context of this work, it means that the high-level policy selects new actions (which skill to use and which goal to pursue) at a slower frequency compared to the low-level policies. This allows the high-level policy to make long-term decisions while the low-level policies focus on the shorter-term execution of those decisions. By having different levels of control operating at different time scales, the system can achieve more efficient learning and better performance in complex tasks.
formulization
In the original text, the following mathematical symbols are used:
related work
在这部分中,作者回顾了与层次化强化学习相关的工作。下面是对这部分内容的梳理和分类:
- 经典规划系统中的宏观操作符和抽象
- 该部分讨论了经典规划系统中宏观操作符和抽象对层次化强化学习的影响。
- 层次化强化学习方法
- 介绍了层次化强化学习方法的发展历程,以及为现代神经网络基础学习系统带来的主要优势,如改进的探索能力。
- 低级策略(选项;技能)的获取
- 回顾了从随机游走、互信息目标、代理或专家轨迹数据集、运动捕捉数据以及专用预训练任务中发现低级原语的各种方法。
- 通用性和特异性的权衡
- 讨论了低级技能在实践中如何在通用性(广泛适用性)和特异性(特定任务的益处)之间产生权衡。
- 选项发现和层次化强化学习的先前工作
- 通过测试环境的选择,例如传统的网格迷宫导航任务和类似的模拟机器人导航问题,说明了先前工作在解决通用性和特异性权衡方面的偏向性。
- 非导航环境的技能获取
- 介绍了针对非导航环境的技能获取方法,如使用定制的预训练任务或领域内运动捕捉数据。
- 与现有工作的对比
- 与现有方法相比,本文关注于在不借助额外监督或预训练任务设计的情况下学习低级技能,不强制要求针对特定行为类型的固定权衡。
通过梳理和分类这些内容,您可以更好地理解文献回顾部分,并重点关注每个部分的核心内容。