プリンキピア

第17章強化学習

17.1.1. Definition of an MDP17.1.1 MDPの定義

A Markov decision process (MDP) (Bellman, 1957) is a model for how the state of a system evolves as different actions are applied to the system. A few different quantities come together to form an MDP.
英語のヒント
マルコフ決定過程(MDP)(Bellman, 1957)は、システムにさまざまな行動を当てはめたとき、システムの状態がどう変わっていくかのモデルである。いくつかの異なる量が集まって、MDPを形づくる。
Fig. 17.1.1図17.1.1
A simple gridworld navigation task where the robot not only has to find its way to the goal location (shown as a green house) but also has to avoid trap locations (shown as red cross signs).
英語のヒント
簡単なグリッドワールドの移動のタスク。ロボットは、目標の場所(緑の家で示す)への道を見つけるだけでなく、わなの場所(赤いバツ印で示す)を避けなければならない。
  • Let 𝒮 be the set of states in the MDP. As a concrete example see Fig. 17.1.1, for a robot that is navigating a gridworld. In this case, 𝒮 corresponds to the set of locations that the robot can be at any given timestep.
    英語のヒント
    𝒮をMDPの状態の集合とする。具体的な例として、グリッドワールドの中を移動するロボットについての図17.1.1を見よう。この場合、𝒮は、任意の時間ステップでロボットがいることのできる場所の集合に対応する。
  • Let 𝒜 be the set of actions that the robot can take at each state, e.g., “go forward”, “turn right”, “turn left”, “stay at the same location”, etc. Actions can change the current state of the robot to some other state within the set 𝒮.
    英語のヒント
    𝒜を、各状態でロボットがとれる行動の集合とする。たとえば、「前に進む」「右に曲がる」「左に曲がる」「同じ場所にとどまる」などである。行動は、ロボットの現在の状態を、集合𝒮の中の別の状態に変えうる。
  • It may happen that we do not know how the robot moves exactly but only know it up to some approximation. We model this situation in reinforcement learning as follows: if the robot takes an action “go forward”, there might be a small probability that it stays at the current state, another small probability that it “turns left”, etc. Mathematically, this amounts to defining a “transition function” T:𝒮×𝒜×𝒮→[0,1] such that T(s,a,s′)=P(s′∣s,a) using the conditional probability of reaching a state s′ given that the robot was at state s and took an action a. The transition function is a probability distribution and we therefore have ∑s′∈𝒮T(s,a,s′)=1 for all s∈𝒮 and a∈𝒜, i.e., the robot has to go to some state if it takes an action.
    英語のヒント
    ロボットがどう動くかを正確には知らず、ある程度の近似までしか知らないということもありうる。強化学習では、この状況を次のようにモデル化する。ロボットが行動「前に進む」をとっても、現在の状態にとどまる小さな確率や、「左に曲がる」別の小さな確率などがあるかもしれない。数学的には、これは、ロボットが状態sにいて行動aをとったときに状態s′に到達する条件付き確率を使って、T(s,a,s′)=P(s′∣s,a)となるような「遷移関数」T:𝒮×𝒜×𝒮→[0,1]を定義することに等しい。遷移関数は確率分布なので、すべてのs∈𝒮とa∈𝒜について∑s′∈𝒮T(s,a,s′)=1となる。つまり、ロボットは行動をとれば、どこかの状態に行かなければならない。
  • We now construct a notion of which actions are useful and which ones are not using the concept of a “reward” r:𝒮×𝒜→ℝ. We say that the robot gets a reward r(s,a) if the robot takes an action a at state s. If the reward r(s,a) is large, this indicates that taking the action a at state s is more useful to achieving the goal of the robot, i.e., going to the green house. If the reward r(s,a) is small, then action a is less useful to achieving this goal. It is important to note that the reward is designed by the user (the person who creates the reinforcement learning algorithm) with the goal in mind.
    英語のヒント
    次に、「報酬」r:𝒮×𝒜→ℝという概念を使って、どの行動が役に立ち、どの行動が役に立たないかという考え方を組み立てる。ロボットが状態sで行動aをとったとき、ロボットは報酬r(s,a)を得るという。報酬r(s,a)が大きければ、状態sで行動aをとることが、ロボットの目標、つまり緑の家に行くことを達成するのにより役立つことを示す。報酬r(s,a)が小さければ、行動aはこの目標を達成するのにあまり役立たない。報酬は、目標を念頭に置いて、利用者(強化学習のアルゴリズムを作る人)が設計するものであることに注意することが大切である。