利用深度學習技法的暗棋殘局庫壓縮及檢索研究
A deep-learning-based approach for Chinese dark chess endgames compression and retrieval
摘要
殘局理論為電腦對局的重要領域之一,因為在終局時,暗棋棋子的流動性增加,從而使整體運算量大幅增加。然而,建構殘局庫需要耗費大量時間與運算資源,產生出來的殘局資料庫也需要大量空間來存放,因此,如何壓縮殘局庫並減少查詢時間是一個關鍵問題。近年來深度學習大量運用於各領域中,捲積神經網路更是被應用於各類圖像識別任務中,2018年,AlphaGo將捲積神經網路應用於圍棋中並獲取了極大的成功,此後的大部分研究著重於下棋程式的棋力提升,較少有殘局相關的應用。本論文分析了過往使用的殘局壓縮方式,並提出一個利用深度學習預測既有殘局結果並壓縮的演算法。,透過卷積神經網路學習暗棋殘局盤面,並且讓模型過擬合來盡可能提高整體準確性,最後紀錄少數預測錯誤的結果並利用rrr等壓縮方法進一步壓縮。本論文所提出方法相比於傳統儲存方法,有著以下優點1.與透過硬碟讀取殘局庫相比,讀取速度更快2.與透過記憶體讀取殘局庫相比,所需的使用空間大約為未壓縮的20%。關鍵字:深度學習、捲積神經網路、遊戲殘局、資料壓縮
Endgame databases can be used to improve the performance of artificial intelli-gence for strategy board games because they consist of the full information of all reachablepositions in the rest of the game. However, constructing endgame databases takes muchcomputational resources, e.g. time and space, if one hopes that the databases can be usedto handle many cases, so the number of reachable positions can be huge. In this thesis, Iwill present some approaches to reduce the computational resources used by constructingendgame databases and compare them with the ones in the literature.Deep learning has been widely used in many domains, including image recognition(e.g. number-plate recognition), board games (e.g. AI that wins world Go champion), tolist a few, and achieved great successes. However, it was less known how to apply deeplearning to construct endgame databases.My approach is to develop a deep-learning-based program to pre-dict the outcomesof all positions in an endgame and then keep an errata list to correct the errors madeby the program. Compared with the classical approaches, mine has the following twoadvantages: (1) the space used to store the databases is 20% smaller than that of classicalones, and therefore (2) the speed to query the outcomes in the databases is much fasterdue to the performance-and-size tradeoffs between different levels in the current memoryhierarchy.