分布策略優化於多目標增強式學習之研究
Distributional Policy Optimization for Multi-Goal Reinforcement Learning
摘要
增強式學習(reinforcement learning)主要是利用與環境的互動來學習。在學習過程中,電腦代理(agent)將與環境互動,並從環境取得觀測資料(observations),接著做出行動(actions)並取得獎勵(rewards)。增強式學習可以視為藉由試誤法處理連續型決策問題的一種學習方式。增強式學習是利用累積與環境互動所取得的知識來學習。藉由應用近年來發展出來的許多突破,在許多實際系統中已經實現了顯著的表現。在深度學習的幫助下,增強式學習能夠處理那些使用傳統方法在經驗上難以處理的複雜問題,例如下列已經成功開發了深度強化學習算法:用於構建可以直接從影像像素中學習的遊戲AI,進行可以直接從相機輸入中學習的機器控制,以及訓練可以從自我遊戲中學習的圍棋AI,搜索神經網絡架構等等。一般而言,根據更新方式和決策方式進行分類,有三種類型的增強式學習方法:基於估值(value-based)的方法、基於策略(policy-based)的方法與行為者評論者(actor-critic)的方法。對於基於估值的方法,只有估值函數藉由最優貝爾曼運算子(optimality Bellman operator)更新;而對於基於策略(policy-based)的方法,則是藉由策略優化來直接更新參數化策略。行為者評論者的方法則是在學習過程中既更新參數化策略又更新估值函數。本文論述了多目標行為者評論者在增強式學習中的挑戰,並提出了利用軌跡,也就是多個連續狀態和動作的歷史,作為更新信息,並且在稀疏獎勵(sparse reward)的問題中將性能提升。分布策略優化不僅建議通過估計可以容納環境探索中不確定性的折扣獎勵總和分佈來實現估值分布的概念,而且還應用於獎勵不足的多目標增強式學習當中。
在本研究中,該算法用於估計折扣獎勵總和分佈,也就是估值分佈,該分佈的期望值為增強式學習中的估值函數。基本上,估值分佈提供了狀態對於估值的表徵且含有不確定性資訊。這種算法表現良好,但是受到僅考慮兩個連續時間步驟中的狀態和動作的限制。我們提出了一種分布策略優化語法,其中考慮了軌跡以算得策略優化的估值分佈。另一方面,我們在多目標增強式學習當中面臨稀疏獎勵的挑戰,其中環境涉及多個目標,因此與個體目標相對應的獎勵變得稀疏。通過測量目標之間的距離是否接近,結合事後經驗(hindsight experience replay)來處理稀疏獎勵問題。此外,多目標問題是通過提供行為者網路(actor network)和估值分布網路(value distribution network)方法來應對的,並且使用軌跡進行更新。這樣的框架提供了構建代理(agent)以實現期望性能的方式。OpenAI gym中倒立擺實驗環境下,我們的一個模型,分布近端策略優化,確實表明估值分佈可以從與環境相互作用的歷史中得出。與學習確定性估值網路的行為者評論者方法相比,我們的模型學習了可以進行推理的估值分佈。此外,我們還提出一個可以利用經驗的修改模型,這被稱為分佈式行為者評論者經驗模型。此外,為了協同使用事後經驗,我們利用通用估值函數估計法(universal value function estimator)的兩個估值分佈之間的距離作為軌跡之間的距離的標準,以實現不同的目標。
在本研究中,該算法用於估計折扣獎勵總和分佈,也就是估值分佈,該分佈的期望值為增強式學習中的估值函數。基本上,估值分佈提供了狀態對於估值的表徵且含有不確定性資訊。這種算法表現良好,但是受到僅考慮兩個連續時間步驟中的狀態和動作的限制。我們提出了一種分布策略優化語法,其中考慮了軌跡以算得策略優化的估值分佈。另一方面,我們在多目標增強式學習當中面臨稀疏獎勵的挑戰,其中環境涉及多個目標,因此與個體目標相對應的獎勵變得稀疏。通過測量目標之間的距離是否接近,結合事後經驗(hindsight experience replay)來處理稀疏獎勵問題。此外,多目標問題是通過提供行為者網路(actor network)和估值分布網路(value distribution network)方法來應對的,並且使用軌跡進行更新。這樣的框架提供了構建代理(agent)以實現期望性能的方式。OpenAI gym中倒立擺實驗環境下,我們的一個模型,分布近端策略優化,確實表明估值分佈可以從與環境相互作用的歷史中得出。與學習確定性估值網路的行為者評論者方法相比,我們的模型學習了可以進行推理的估值分佈。此外,我們還提出一個可以利用經驗的修改模型,這被稱為分佈式行為者評論者經驗模型。此外,為了協同使用事後經驗,我們利用通用估值函數估計法(universal value function estimator)的兩個估值分佈之間的距離作為軌跡之間的距離的標準,以實現不同的目標。
Reinforcement learning generally performs learning though interaction with environment. During learning procedure, the agent will interact with environment, acquire the observations from environment, decide the actions and then receive the rewards. Reinforcement learning is seen as a kind of trial-and-error learning to deal with the sequential decision-making problem. Reinforcement learning leverages the accumulation of knowledge from interaction with environment. Remarkable performance has been achieved in numerous practical systems by applying many breakthroughs developed in recent years. With the help of deep learning, reinforcement learning is capable of dealing with those complicated problems which were empirically intractable by using conventional methods. For examples, deep reinforcement learning algorithms have been successfully developed for building the video game agent which can directly learn from image pixels, conducting the robotic control which can directly learn from camera inputs, and training the Go agent which can learn from self-play and neural network architecture search. In general, there are three types of reinforcement learning methods which are categorized in terms of the updating procedure and the way of decision making. The value-based agent, the policy-based agent and the actor-critic are constructed accordingly. For value-based agent, only the state value estimator is continuously updated through the optimality Bellman operator. The policy-based agent directly updates the parameterized policy through policy optimization. The actor-critic does not only update the parameterized policy but also update the state value estimator in learning procedure. This thesis deals with the challenges in multi-goal actor-critic reinforcement learning and proposes the method elevating the performance to the sparse reward problem by utilizing the updating information from the trajectories or equivalently the histories of many successive states and actions. Distributional policy optimization is not only proposed to carry out the concept of value distributional through estimating the distribution of sum of discounted rewards which can accommodate the uncertainty in exploration of environment but also applied in multi-goal reinforcement learning with insufficient reward.
In this study, the algorithm is adopted to estimate the value distribution or the distribution of the sum of discounted rewards. The expectation of this distribution is calculated as the value function for reinforcement learning. Basically, the value distribution provides the value representation of state where the uncertainty information is merged. Such an algorithm performs well but suffers from the limitation of considering only the states and actions in two successive time steps. We present a distributional policy optimization where a trajectory is taken into account to carry out the value distribution for policy optimization. On the other hand, we face the challenge of sparse reward in multi-goal reinforcement learning where the environment involves with multiple goals and accordingly the rewards corresponding to individual goals become sparse. An enhancement of hindsight experience replay is incorporated to deal with sparse reward problem by measuring whether the distances between goals are close or not. In addition, the issue of multiple goals is coped with an actor-critic method where an actor network and a value distribution network are provided. The updating is performed using the trajectories. Such a framework provides a way to construct the agents to achieve desirable performance. The experiment under the environment, inverted pendulum, from OpenAI gym for one of our models, distributional proximal policy optimization, indeed shows that the value distribution can be derived from the history where agent interacts with environment. Compare to normal actor-critic which learns a deterministic value network estimating expectation of sum of discounted rewards, our model learns a value distribution where an inference can be made. Nonetheless, we also propose a modified model that leverage the experience replay, which is called distributional actor critic experience replay. Moreover, to accompany with hindsight experience replay, the last model called distributional actor critic hindsight experience replay leverages the distance between two value distributions of universal value function estimator as a criterion for the distance between trajectories to achieve different goals.
In this study, the algorithm is adopted to estimate the value distribution or the distribution of the sum of discounted rewards. The expectation of this distribution is calculated as the value function for reinforcement learning. Basically, the value distribution provides the value representation of state where the uncertainty information is merged. Such an algorithm performs well but suffers from the limitation of considering only the states and actions in two successive time steps. We present a distributional policy optimization where a trajectory is taken into account to carry out the value distribution for policy optimization. On the other hand, we face the challenge of sparse reward in multi-goal reinforcement learning where the environment involves with multiple goals and accordingly the rewards corresponding to individual goals become sparse. An enhancement of hindsight experience replay is incorporated to deal with sparse reward problem by measuring whether the distances between goals are close or not. In addition, the issue of multiple goals is coped with an actor-critic method where an actor network and a value distribution network are provided. The updating is performed using the trajectories. Such a framework provides a way to construct the agents to achieve desirable performance. The experiment under the environment, inverted pendulum, from OpenAI gym for one of our models, distributional proximal policy optimization, indeed shows that the value distribution can be derived from the history where agent interacts with environment. Compare to normal actor-critic which learns a deterministic value network estimating expectation of sum of discounted rewards, our model learns a value distribution where an inference can be made. Nonetheless, we also propose a modified model that leverage the experience replay, which is called distributional actor critic experience replay. Moreover, to accompany with hindsight experience replay, the last model called distributional actor critic hindsight experience replay leverages the distance between two value distributions of universal value function estimator as a criterion for the distance between trajectories to achieve different goals.