隨機好奇心最大化探索於深度學習之研究
Stochastic Curiosity Maximizing Exploration
摘要
強化式學習在機器學習領域出現熱門的研究趨勢。近年來,迅速發展的深度學習幫助強化式學習在大量實際與複雜的應用上取得成功,像是自然語言處理、電腦視覺和機器人控制。強化式學習系統基本包含兩個主體-代理人與環境,並訓練用來解決序列決策問題。在學習過程中,代理人會與環境互動,也會從環境獲得觀測資料,還會根據策略決定行動,並且接收獎勵回饋。代理人必須學習如何透過大量嘗試錯誤中來選擇對的行動。而強化式學習的目的是藉由最大化環境給予的總和獎勵來建立一個代理人。
一般來說,強化式學習根據更新過程與決策方式分成無模型之強化式學習與基於模型之強化式學習。無模型之強化學習可以分為基於估值、基於策略與演員-評論者的代理人。基於估值的代理人會根據機率選擇隨機行動或是最優行動,並持續更新估值函數;而基於策略的代理人,則是藉由策略梯度來直接更新參數化的策略;另外演員-評論者的代理人是在學習過程中不僅更新參數化的策略和估值函數。對於人類來說,我們在面臨未知的情況下,可以輕易的理解環境並預測未來。但是對於強化式學習需要建立基於模型的代理人來處理序列決策問題。這個論文提出了使用馬可夫決策程序來實現基於模型的代理人,並透過理解環境的狀態轉變來最大化總和獎勵。
在很多現實世界場景,環境給予代理人的外在獎勵極度稀疏或甚至沒有。稀疏獎勵限制代理人的學習能力,因為代理人只有在成功達到目標狀態才能更新決策。為了處理稀疏獎勵問題,代理人需要額外資訊來更新決策,即使是無法與環境互動。對於強化式學習,內在動機/獎勵在外在獎勵稀疏時顯得重要。內在獎勵提供代理人額外有用的資訊。基於好奇心探索是一種內在獎勵方法。好奇心可以被用來探索環境與發現新穎的狀態。以人類為例,我們經常被新事情吸引與期待未來會發生什麼事情。好奇心探索的方法可以讓代理人更人性化。我們透過鼓勵代理人探索新穎的狀態來解決稀疏獎勵問題。為了實現此目的,我們首先使用變分自動編碼器建立潛在動態系統。變分自動編碼器包括一個推理模型(編碼器)和一個生成模型(解碼器)。編碼器壓縮狀態和行動成潛在表徵,同時解碼器從潛在狀態與行動空間中生成合成樣本。再來我們藉由潛在狀態與行動預測出多變的未來。如果未來潛在狀態與實際潛在狀態差異甚大,這代表代理人仍有很多尚未探索的空間。最後我們評估預測的潛在狀態和潛在行動之間的互消息。如果互消息越大,代表預測的潛在狀態越需要去探索。藉由把預測錯誤與互消息當作內在獎勵,我們可以幫助代理人透過最大化的探索來學習。在實驗中,我們使用對話系統來評估我們提出的隨機好奇心最大化探索的模型。任務型對話具有稀疏獎勵問題,因為只有當代理人對話成功完成任務才會拿到獎勵。有許多處理稀疏獎勵問題的評估顯示出模型的優點。還有另一個在人工智慧健身房的實驗也說明了我們的模型在深度強化式學習的效果。
一般來說,強化式學習根據更新過程與決策方式分成無模型之強化式學習與基於模型之強化式學習。無模型之強化學習可以分為基於估值、基於策略與演員-評論者的代理人。基於估值的代理人會根據機率選擇隨機行動或是最優行動,並持續更新估值函數;而基於策略的代理人,則是藉由策略梯度來直接更新參數化的策略;另外演員-評論者的代理人是在學習過程中不僅更新參數化的策略和估值函數。對於人類來說,我們在面臨未知的情況下,可以輕易的理解環境並預測未來。但是對於強化式學習需要建立基於模型的代理人來處理序列決策問題。這個論文提出了使用馬可夫決策程序來實現基於模型的代理人,並透過理解環境的狀態轉變來最大化總和獎勵。
在很多現實世界場景,環境給予代理人的外在獎勵極度稀疏或甚至沒有。稀疏獎勵限制代理人的學習能力,因為代理人只有在成功達到目標狀態才能更新決策。為了處理稀疏獎勵問題,代理人需要額外資訊來更新決策,即使是無法與環境互動。對於強化式學習,內在動機/獎勵在外在獎勵稀疏時顯得重要。內在獎勵提供代理人額外有用的資訊。基於好奇心探索是一種內在獎勵方法。好奇心可以被用來探索環境與發現新穎的狀態。以人類為例,我們經常被新事情吸引與期待未來會發生什麼事情。好奇心探索的方法可以讓代理人更人性化。我們透過鼓勵代理人探索新穎的狀態來解決稀疏獎勵問題。為了實現此目的,我們首先使用變分自動編碼器建立潛在動態系統。變分自動編碼器包括一個推理模型(編碼器)和一個生成模型(解碼器)。編碼器壓縮狀態和行動成潛在表徵,同時解碼器從潛在狀態與行動空間中生成合成樣本。再來我們藉由潛在狀態與行動預測出多變的未來。如果未來潛在狀態與實際潛在狀態差異甚大,這代表代理人仍有很多尚未探索的空間。最後我們評估預測的潛在狀態和潛在行動之間的互消息。如果互消息越大,代表預測的潛在狀態越需要去探索。藉由把預測錯誤與互消息當作內在獎勵,我們可以幫助代理人透過最大化的探索來學習。在實驗中,我們使用對話系統來評估我們提出的隨機好奇心最大化探索的模型。任務型對話具有稀疏獎勵問題,因為只有當代理人對話成功完成任務才會拿到獎勵。有許多處理稀疏獎勵問題的評估顯示出模型的優點。還有另一個在人工智慧健身房的實驗也說明了我們的模型在深度強化式學習的效果。
Reinforcement learning (RL) is known as an emerging research trend in machine learning. Recent rapid development of deep learning has brought a great success of deep reinforcement learning in many practical and complicated applications, such as natural language processing, computer vision, and robotic control. RL system basically consists of an agent and an environment, and is generally trained to deal with the challenges of sequential decision making. During the learning procedure, such an agent interacts with environment, obtains the observations from environment, decides an action according to the policy and then receives the feedback called the rewards. Agent is learned to choose an action through many trials and errors. The goal of RL is to build an agent by maximizing the total rewards provided by environment.
In general, RL methods are categorized into model-free RL and model-based RL according to the updating procedure and the way of making decisions. The agents in model-free RL can be further divided into value-based, policy-based and actor-critic agents. The value-based agent decides a random action or an optimal action with probability. Agent continuously updates the state value estimator. The policy-based agent directly updates the parameterized policy through the policy gradient. The actor-critic agent is seen as a hybrid agent in sequential learning which is not only trained by updating the parameterized policy but also the state value estimator. As a human being, we can easily understand the environment and predict the future when facing the unseen scenarios. But, reinforcement learner needs to build the model-based agent to deal with sequential decision problem. This thesis presents the Markov decision process to carry out model-based agent where the total reward is maximized through understanding the state transition of environments.
In real-world scenarios, the extrinsic rewards, acquired from environment based on an agent, are usually missing or extremely sparse. Sparse reward constrains the learning capability of agent because the agent only updates policy when it succeeds in achieving the goal state. To tackle sparse reward problem, the agent needs other helpful information to update its policy even when there is no interaction with the environment. The intrinsic motivations or rewards become critical for reinforcement learning especially when extrinsic rewards are sparse. Intrinsic reward provides extra useful information. The curiosity-driven exploration is developed as an intrinsic reward method. Curiosity has been used to explore the environment by discovering the novel states. Taking humans as example, we are always attracted by new things and expect what will happen in near future. Such a learning strategy is explored to allow agent to act as human. We therefore cope with the sparse reward problem by encouraging the agent to explore “novel” states. To do so, we first use the variational autoencoder (VAE) to build a latent dynamic system. VAE comprises an inference model (or encoder) and a generative model (or decoder). The encoder compresses the state and action into a latent representation, and the decoder generates the synthesized samples from latent state and action space. Given the latent states and actions, the second step is to predict the variational future. If the future latent state differs from the actual latent state, it means that the agent still has some region which has not been explored. Finally, the agent measures the mutual information between the predicted latent state and the latent action. If the mutual information is larger, the predicted latent state is more likely unexplored. By using the predicted error and mutual information as intrinsic reward, the agent is learned by maximizing such an exploration. In the experiments, we evaluate the proposed stochastic curiosity maximizing exploration (SCME) by using the statistical spoken dialogue system. Task-oriented dialogue is a sparse reward task because the agent gets rewards only if the successful dialogue is obtained. A number of evaluations is reported to show the merit of SCME in tackling sparse reward problem. Another task on OpenAI Gym is also illustrated to validate the performance in deep reinforcement learning.
In general, RL methods are categorized into model-free RL and model-based RL according to the updating procedure and the way of making decisions. The agents in model-free RL can be further divided into value-based, policy-based and actor-critic agents. The value-based agent decides a random action or an optimal action with probability. Agent continuously updates the state value estimator. The policy-based agent directly updates the parameterized policy through the policy gradient. The actor-critic agent is seen as a hybrid agent in sequential learning which is not only trained by updating the parameterized policy but also the state value estimator. As a human being, we can easily understand the environment and predict the future when facing the unseen scenarios. But, reinforcement learner needs to build the model-based agent to deal with sequential decision problem. This thesis presents the Markov decision process to carry out model-based agent where the total reward is maximized through understanding the state transition of environments.
In real-world scenarios, the extrinsic rewards, acquired from environment based on an agent, are usually missing or extremely sparse. Sparse reward constrains the learning capability of agent because the agent only updates policy when it succeeds in achieving the goal state. To tackle sparse reward problem, the agent needs other helpful information to update its policy even when there is no interaction with the environment. The intrinsic motivations or rewards become critical for reinforcement learning especially when extrinsic rewards are sparse. Intrinsic reward provides extra useful information. The curiosity-driven exploration is developed as an intrinsic reward method. Curiosity has been used to explore the environment by discovering the novel states. Taking humans as example, we are always attracted by new things and expect what will happen in near future. Such a learning strategy is explored to allow agent to act as human. We therefore cope with the sparse reward problem by encouraging the agent to explore “novel” states. To do so, we first use the variational autoencoder (VAE) to build a latent dynamic system. VAE comprises an inference model (or encoder) and a generative model (or decoder). The encoder compresses the state and action into a latent representation, and the decoder generates the synthesized samples from latent state and action space. Given the latent states and actions, the second step is to predict the variational future. If the future latent state differs from the actual latent state, it means that the agent still has some region which has not been explored. Finally, the agent measures the mutual information between the predicted latent state and the latent action. If the mutual information is larger, the predicted latent state is more likely unexplored. By using the predicted error and mutual information as intrinsic reward, the agent is learned by maximizing such an exploration. In the experiments, we evaluate the proposed stochastic curiosity maximizing exploration (SCME) by using the statistical spoken dialogue system. Task-oriented dialogue is a sparse reward task because the agent gets rewards only if the successful dialogue is obtained. A number of evaluations is reported to show the merit of SCME in tackling sparse reward problem. Another task on OpenAI Gym is also illustrated to validate the performance in deep reinforcement learning.