第17章強化学習
17.3.3. Exploration in Q-Learning17.3.3 Q学習での探索
The policy used by the robot to collect data is critical to ensure that Q-Learning works well. Afterall, we have replaced the expectation over using the transition function using the data collected by the robot. If the policy does not reach diverse parts of the state-action space, then it is easy to imagine our estimate will be a poor approximation of the optimal . It is also important to note that in such a situation, the estimate of at all states will be bad, not just the ones visited by . This is because the Q-Learning objective (or value iteration) is a constraint that ties together the value of all state-action pairs. It is therefore critical to pick the correct policy to collect data.
英語のヒント
ロボットがデータを集めるのに使う方策は、Q学習がうまく働くことを確かにするうえで決定的に重要である。結局のところ、遷移関数を使ったについての期待値を、ロボットが集めたデータを使って置き換えたのである。方策が状態と行動の空間のさまざまな部分に到達しなければ、推定値が最適なの貧弱な近似になることは容易に想像できる。そうした状況では、が訪れた状態だけでなく、すべての状態での推定値が悪くなることにも注意することが大切である。これは、Q学習の目的関数(あるいは価値反復)が、すべての状態と行動の組の価値を互いに結びつける制約だからである。したがって、データを集めるために正しい方策を選ぶことは決定的に重要である。
We can mitigate this concern by picking a completely random policy that samples actions uniformly randomly from . Such a policy would visit all states, but it will take a large number of trajectories before it does so.
英語のヒント
から一様にランダムに行動を抜き出す完全にランダムな方策を選べば、この懸念を和らげられる。そうした方策はすべての状態を訪れるだろうが、そうなるまでに多数の軌跡が必要になる。
We thus arrive at the second key idea in Q-Learning, namely exploration. Typical implementations of Q-Learning tie together the current estimate of and the policy to set
英語のヒント
こうして、Q学習の2番目の鍵となる考え方、つまり探索にたどり着く。Q学習の典型的な実装では、の現在の推定値と方策を結びつけて、次のように設定する。
(17.3.6)
where is called the “exploration parameter” and is chosen by the user. The policy is called an exploration policy. This particular is called an -greedy exploration policy because it chooses the optimal action (under the current estimate ) with probability but explores randomly with the remainder probability . We can also use the so-called softmax exploration policy
英語のヒント
ここで、は「探索パラメータ」と呼ばれ、利用者が選ぶ。方策は探索方策と呼ばれる。この特定のはグリーディ探索方策と呼ばれる。確率で(現在の推定値のもとでの)最適な行動を選ぶが、残りの確率でランダムに探索するからである。いわゆるソフトマックス探索方策を使うこともできる。
(17.3.7)
where the hyper-parameter is called temperature. A large value of in -greedy policy functions similarly to a large value of temperature for the softmax policy.
英語のヒント
ここで、ハイパーパラメータは温度と呼ばれる。グリーディ方策でのの大きな値は、ソフトマックス方策での温度の大きな値と同じように働く。
It is important to note that when we pick an exploration that depends upon the current estimate of the action-value function , we need to resolve the optimization problem periodically. Typical implementations of Q-Learning make one mini-batch update using a few state-action pairs in the collected dataset (typically the ones collected from the previous timestep of the robot) after taking every action using .
英語のヒント
行動価値関数の現在の推定値に依存する探索を選ぶときは、最適化問題を定期的に解き直す必要があることに注意することが大切である。Q学習の典型的な実装では、を使って行動をとるたびに、集めたデータセットの中のいくつかの状態と行動の組(ふつうはロボットの前の時間ステップで集めたもの)を使って、ミニバッチの更新を1回行う。