深度增強式學習中探索狀態轉移不確定性之研究

Exploring State Transition Uncertainty in Deep Reinforcement Learning

檔案

全文未公開。

日期

2018

類型

語言

英文

摘要

  在機器學習的領域中,增強式學習扮演著重要的角色,持續與環境互動及做決策的情況下,最大化從環境得到的累積獎勵。近年來,深度增強式學習在多媒體與工業應用,像是自動控制、電子遊戲、圍棋、電腦視覺與自然語言處理的表現上有了重大的進展。增強式學習中有兩大主體 - 代理人與環境。代理人的目標是根據環境給的狀態,選出能使得未來拿到更多獎勵的動作。依照代理人的更新程序與選擇動作的方式,可以將代理人分為幾大類。首先是基於模型假設與非模型假設的代理人。對非模型假設的代理人,可分為基於策略、基於值以及演員-評論家。
  如我們所知,人類遇到未知的狀況通常會試著理解環境,並且預測環境接下來的狀態。但是對於學習者來說,我們通常希望建立基於模型的代理人來處理這個問題。馬可夫決策程序是用來讓基於模型假設的代理人透過學習環境讓獎勵最大化。在某些情況下,非模型假設代理人更適合因為不用去學習環境,只要根據看到的狀態去最大化獎勵。
對於基於非模型假設的代理人,策略是給定當下狀態,在動作空間上可以得到更多累積獎勵的機率分佈。基於策略的代理人是直接從策略的分類分佈取樣出動作,實際從環境得到的累積獎勵用來進行策略梯度更新代理人。值則是對於特定動作,所能得的累積獎勵之估計值。基於值的代理人有ϵ的機率會隨機選擇動作,而1-ϵ 的機率選值最大的動作。最後,演員-評論家的代理人是融結合策略網路與值網路的代理人,策略網路使用值網路之值來更新。
雖然基於非模型假設的代理人在性能上領令人驚艷,但依舊受到訓練效率不足的問題。所以將基於模型假設的概念導入非模型假設的代理人中是現在的研究趨勢。 傳統上,狀態轉移的學習過程通常是藉由目前的狀態跟動作預測下一個時間的狀態。然而直接學習狀態轉移是相當困難的,因為分辨出不同動作所導致的轉移對代理人來說是相當困難的。如我們所知,馬可夫決策程序是馬可夫鏈加上動作的概念。學習馬可夫決策程序會比學習馬可夫鏈還要困難。先前的工作,變異性資訊最大化探索,只著重於環境的不確定性而沒有考慮不同動作之間的差異。動作的好壞是由當下的狀態與動作未來所能得到的總和獎勵來估計。在增強式模型中,用包含未來資訊的潛在變數來預測動作的好壞是有意義的。
  在這些考量之下,我們提出了新穎的深度增強式學習模型稱作轉移不確定評論家,能夠探索結構性的狀態轉移,藉由強大的生成式模型變異自編碼機與深度神經網路。整體架構模型由三個部分所組成-編碼器、解碼器與評論家。基本上馬可夫決策程序是由數個馬可夫鏈所組成。每個馬可夫鏈對應到一種動作,如果代理人固定同樣動作,那麼學習歷程就是從馬可夫鏈所取樣。學習馬可夫鏈比直接學習馬可夫決策程序還要簡單。我們提出的轉移不確定性評論家,具有將馬可夫決策程序分解成數個馬可夫鏈,然後在潛在空間中重組的能力。分解的過程是根據動作-閘控機制所執行。分解之後我們能用熵探索去衡量每個動作的不確性,然後去探索環境。不同於變異性資訊最大化探索,動作-閘控機制能在潛在空間中分別去學習不同馬可夫鏈的轉移。轉移不確定評論家有辦法計算不同時間點動作的熵差量。我們將這樣的潛在變數模型用來實現一個深度增強式學習中基於模型的代理人。
在實驗中,我們以三個不同的環境進行實驗。首先,是經典的推車桿實驗,代理人要藉由左右移動來平衡桿子,平衡時間越久得到的累積獎勵就越多。第二個環境是改良版的方格世界,代理人要移動到目標物上,同時躲避移動的障礙物。碰到障礙物會有懲罰、目標物則是拿到獎勵同時結束遊戲。第三個實驗是電腦視覺的物件追蹤。增強式學習用於物件追蹤的優點是 (1) 對於某些幀可能沒標籤的情況下,依舊能學習 (2) 有效率的探索機制去找出感興趣的區域。動作決策網路用策略網路選出動作去移動追蹤目標,過程中追求最大的重疊面積。然後環境的外在獎勵跟重疊面積有關。沒有標籤的幀相當於零獎勵,因為零獎勵無法提供更新量。我們提出的模型會產生內在的獎勵去引導代理人搜尋有興趣的區域。實驗結果證明轉移不確定性評論家有能力學到不同馬可夫鏈的潛在變數,同時也能讓總和回饋或累積獎勵表現更好。最後一個實驗是階層式物件偵測,概念與物件追蹤一樣,只是目標變成在同一張影像中找出目標。
Reinforcement learning (RL) plays an important role in sequential decision where the total reward estimated from environment is maximized. In recent years, deep reinforcement learning has made influential progress especially in the applications for automatic control, video game, computer chess, computer vision and natural language processing. There are two parts in reinforcement learning – agent and environment. The goal of agent is to choose an action to receive high total reward in the future by using the state from environment. According to the updating procedure and the way of making decisions, agents can be categorized into model-based agent and model-free agent. For model-free agent, there are policy-based, value-based and actor-critic agents.
As we know, human can easily understand the environment and predict the future when encountering unknown problem. But, for a reinforcement learner, it is desirable and efficient to build model-based agent to deal with this problem. Markov decision process (MDP) is introduced to carry out model-based agent where the total reward is maximized through understanding the state transition of environment. In some cases, model-free agent is desirable because model-free agent maximize the total reward according to the observed states without any assumption on the environment.
Using model-free agent, policy is seen as the distribution on action space to receive high total reward given current state. Policy-based agent chooses an action by sampling from categorical distribution. Agent is updated with the total reward from environment based on policy gradient. In addition, the value in RL is the estimation of future total reward of an action. Value-based agent chooses a random action with probability ϵ and an optimal action with probability 1-ϵ. Furthermore, the actor-critic agent combines the policy-based agent with value-based agent. Policy network is updated with the value from the value network.
Model-free agent performs well for RL tasks but still suffers from the problem of inefficient training procedure. The current research trend is to incorporate model-based module into a model-free agent. Traditionally, state transition is learned to make prediction of next state based on current state and action at each time step. Nonetheless, learning the state transition may be difficult if the agent would like to distinguish the influence from different actions. As we know, MDP is the extension of Markov chain by merging with actions. Learning MDP becomes more difficult than learning Markov chain. The model-based module in MDP is easily confused by the transition among different actions. The previous work, such as variational information maximum exploration (VIME), only focused on the uncertainty of environment without considering the difference between actions. Action is evaluated by estimating the future total reward based on state-action value using current state and action. It is meaningful to predict this value according to the latent variables in RL model which contain future information.
Under these considerations, we proposed new deep reinforcement learning (DRL) by incorporating a so-called transition uncertainty critic (TUC) which is derived by exploring the uncertainty of structured state transition in model-based agent where the powerful generative models using variational autoencoder and deep neural network are combined. The overall architecture consists of three parts including encoder, decoder and critic where MDP can be fulfilled. Basically, MDP is made of several Markov chains. Each Markov chain corresponds to an action. If an agent keeps executing the same action, the trajectory is sampled from a Markov chain. Learning the state transition from Markov chain is easier than learning for Markov decision process directly. The proposed TUC is capable of decomposing MDP into several Markov chains and reconstructing overall transition information in latent variable space. The decomposition procedure is performed according to action-gating mechanism. Owing to this decomposition, we are able to carry out entropy search to measure the uncertainty corresponding to different actions for environment exploration. Different from VIME-based entropy search adopting Bayes-by-backprop network, the proposed action-gating mechanism can separately learn state transitions in different Markov chains in latent variable space. TUC is capable of computing the entropy reduction for those actions between current time step and previous time step. A dedicated latent variable model is developed to realize a model-based agent for DRL.
In the experiments, the proposed method is evaluated by using three environments. First, the evaluation is performed for cart-pole task which provides a typical RL environment. Agent receives the increased total reward if the cart-pole is balanced for longer time. Secondly, the evaluation is performed in an advanced grid-world. The goal of agent is to catch the moving target and avoid the moving obstacles at the same time. If agent touches obstacle, then negative reward is received. The game ends when agent captures the target and receives the positive reward. The third environment is the object tracking for computer vision. The advantages of applying reinforcement learning to object tracking are (1) ability to utilize unlabeled frames (2) efficient search mechanism to find the region of interest. Action decision network (ADN) uses policy network to select the action to move the bounding box with high intersection-over-union (IoU). Extrinsic reward is related to IoU. Unlabeled frames correspond to the cases with zero reward, because several zero rewards could not provide efficient gradient to update the network. The proposed model, TUC, generates intrinsic reward to guide agent to search the region of interest. The results of experiments show that TUC is able to learn the latent variable of different Markov chain and gets more total reward. The final experiment is hierarchical object detection. The idea of hierarchical object detection is the same the object tracking. The goal of detection is searching the target in the same image.

所屬典藏

電機工程學系
顯示完整詮釋資料 統計資料

引用此條目

Liao, W.-L. (2018). Exploring State Transition Uncertainty in Deep Reinforcement Learning. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/69397

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/69397