應用多頭神經網路於 AlphaZero 演算法
A Multi-Head Neural Network Approach to AlphaZero
摘要
深度強化學習(DRL;Deep Reinforcement Learning)已成功應用於許多序列決策問題,在各式應用領域當中皆獲得不錯的效果。雖然深度強化學習的訓練結果通常能達到相當優異的表現,但在訓練過程中往往需要耗費大量的訓練資料跟時間,因此,如何提升訓練過程的效率便成為了一個重要的研究方向。而在AlphaZero 這類電腦對局遊戲常見的深度強化學習架構中,蒙地卡羅樹搜尋則是另一個提升效率的重要研究方向,因為搜尋結果的品質跟所執行的總模擬次數息息相關。
本篇論文受文獻中巨觀行動 (Macro-Actions)、長期規劃與預測 (Long Term Planning and Prediction) 等概念的啟發,基於多顆頭神經網路等技術,發展出一套能夠加大跨距並且聚焦的蒙地卡羅樹搜尋方法,用在 AlphaZero 此一深度強化學習架構中。當應用於外圍開局五子棋時,的確能達成有效提升搜尋最好下一著效率的目的。與奕心對弈,結果顯示本方法在使用 1600 次 MCTS 模擬時達到了 67.25% 的勝率,接近原本程式在 3200 次 MCTS 模擬時所擁有之強度(68.00%),意即僅需原程式所需之一半運算資源,即可達到相近之勝率。
本篇論文受文獻中巨觀行動 (Macro-Actions)、長期規劃與預測 (Long Term Planning and Prediction) 等概念的啟發,基於多顆頭神經網路等技術,發展出一套能夠加大跨距並且聚焦的蒙地卡羅樹搜尋方法,用在 AlphaZero 此一深度強化學習架構中。當應用於外圍開局五子棋時,的確能達成有效提升搜尋最好下一著效率的目的。與奕心對弈,結果顯示本方法在使用 1600 次 MCTS 模擬時達到了 67.25% 的勝率,接近原本程式在 3200 次 MCTS 模擬時所擁有之強度(68.00%),意即僅需原程式所需之一半運算資源,即可達到相近之勝率。
Deep Reinforcement Learning (DRL) has been successfully applied to sequential decision problems and succeeded in various fields. Although DRL generally demonstrates outstanding performance in many problem domains, it often requires a lot of training data and time to achieve that. Therefore, improving the efficiency of the DRL training process has become an important research issue. Moreover, in AlphaZero, a well-known DRL framework for computer games, efficiency of Monte Carlo Tree Search (MCTS) is another important research issue requiring further improvement because the quality of search results is closely related to the total number of simulations.
Inspired by the concepts of Macro-Actions and Long Term Planning and Prediction, in this thesis we propose a more concentrative and long-span MCTS method to be used in AlphaZero. When applied to the outer-opening Gomoku, it can effectively improve the efficiency of searching for the best move. Playing against Yixin, the proposed method achieves a 67.25% winning rate with 1600 MCTS simulations, which is close to the strength of the original program with 3200 MCTS simulations (68.00%). In other words, only half of the computing resources are required to achieve a similar winning rate.
Inspired by the concepts of Macro-Actions and Long Term Planning and Prediction, in this thesis we propose a more concentrative and long-span MCTS method to be used in AlphaZero. When applied to the outer-opening Gomoku, it can effectively improve the efficiency of searching for the best move. Playing against Yixin, the proposed method achieves a 67.25% winning rate with 1600 MCTS simulations, which is close to the strength of the original program with 3200 MCTS simulations (68.00%). In other words, only half of the computing resources are required to achieve a similar winning rate.