プリンキピア

第17章強化学習

17.1.2. Return and Discount Factor17.1.2 収益と割引率

The different components above together form a Markov decision process (MDP)
英語のヒント
上のさまざまな構成要素が合わさって、マルコフ決定過程(MDP)をなす。
MDP:(𝒮,𝒜,T,r).(17.1.1)
Let’s now consider the situation when the robot starts at a particular state s0∈𝒮 and continues taking actions to result in a trajectory
英語のヒント
では、ロボットがある特定の状態s0∈𝒮から出発し、行動をとり続けて、次の軌跡が生じる状況を考えよう。
τ=(s0,a0,r0,s1,a1,r1,s2,a2,r2,…).(17.1.2)
At each time step t the robot is at a state st and takes an action at which results in a reward rt=r(st,at). The return of a trajectory is the total reward obtained by the robot along such a trajectory
英語のヒント
各時間ステップtで、ロボットは状態stにいて行動atをとり、その結果報酬rt=r(st,at)を得る。軌跡の収益は、そうした軌跡に沿ってロボットが得た報酬の合計である。
R(τ)=r0+r1+r2+⋯.(17.1.3)
The goal in reinforcement learning is to find a trajectory that has the largest return.
英語のヒント
強化学習の目標は、収益が最も大きい軌跡を見つけることである。
Think of the situation when the robot continues to travel in the gridworld without ever reaching the goal location. The sequence of states and actions in a trajectory can be infinitely long in this case and the return of any such infinitely long trajectory will be infinite. In order to keep the reinforcement learning formulation meaningful even for such trajectories, we introduce the notion of a discount factor γ<1. We write the discounted return as
英語のヒント
ロボットが目標の場所に一度もたどり着かずに、グリッドワールドの中を移動し続ける状況を考えよう。この場合、軌跡の中の状態と行動の系列は無限に長くなりえて、そうした無限に長い軌跡の収益は無限大になる。そうした軌跡に対しても強化学習の定式化を意味のあるものに保つため、割引率γ<1という考え方を導入する。割引した収益を次のように書く。
R(τ)=r0+γr1+γ2r2+⋯=∑t=0∞γtrt.(17.1.4)
Note that if γ is very small, the rewards earned by the robot in the far future, say t=1000, are heavily discounted by the factor γ1000. This encourages the robot to select short trajectories that achieve its goal, namely that of going to the green house in the gridwold example (see Fig. 17.1.1). For large values of the discount factor, say γ=0.99, the robot is encouraged to explore and then find the best trajectory to go to the goal location.
英語のヒント
γがとても小さいと、遠い将来、たとえばt=1000でロボットが得る報酬は、因子γ1000によって大きく割り引かれることに注意しよう。これは、ロボットが目標、つまりグリッドワールドの例(図17.1.1を参照)では緑の家に行くことを達成する短い軌跡を選ぶよう促す。割引率の値が大きいとき、たとえばγ=0.99のときは、ロボットは探索して、それから目標の場所に行く最良の軌跡を見つけるよう促される。