隨機梯度法及其相關演算法概觀與分析
A Survey of Algorithms and Analysis for Stochastic Gradient Methods
摘要
在此篇論文中,我們對於隨機梯度法以及其相關演算法進行了分析與介紹。其中包括了:根據二次微分信息進行改進的隨機牛頓法、運用梯度去雜訊的技巧進行改進的隨機降方差梯度法(SVRG)和近年來被運用最廣泛的自適應動差估計法(Adam)。我們將從各方面對這些方法進行比較,討論其優點、缺點,以及適用的情況。
過去機器學習領域中,訓練模型使用的是批次最佳化方法。受限於每次迭代必須將完整的測試資料集檢驗過,導致隨著資料大小而線性成長的計算複雜度。在這樣的背景之下,面對巨量的資料機器學習模型的訓練時間往往超出了可接受的範圍。所幸,隨機最佳化方法讓由於資料巨量成長,一度陷入困境的機器學習領域,再次注入新的希望。
與批次最佳化方法不同,隨機最佳化方法是根據抽樣的樣本進行最佳化。這樣的方式不僅大量降低每次更新的計算成本,在觀察了相同數量的樣本之下,也對模型進行更多次的更新。然而,這樣貪婪的策略對於每次更新的實質效率做了取捨。在最壞的情形之下,甚至可能導致無法收斂到最佳解。因此,近年來基於隨機梯度法作為模板的改良方法被大量地提出。我們基於其運用的改良技巧,將這些方法分成兩種類型:運用二次信息的方法、降低雜訊的方法。除此之外,也從更新步長的策略和類型以及小批次取樣的大小,對這些改良過後的變體方法進行討論。
最後,我們在機器學習中經典的二元分類問題上,對這些隨機最佳化方法進行數值結果的比較。採用縮減核支持向量機(RSVM)作為模型主體,其良好的強凸性質和平滑性質,能夠讓最佳化演算法的實作結果更加接近理論分析。
過去機器學習領域中,訓練模型使用的是批次最佳化方法。受限於每次迭代必須將完整的測試資料集檢驗過,導致隨著資料大小而線性成長的計算複雜度。在這樣的背景之下,面對巨量的資料機器學習模型的訓練時間往往超出了可接受的範圍。所幸,隨機最佳化方法讓由於資料巨量成長,一度陷入困境的機器學習領域,再次注入新的希望。
與批次最佳化方法不同,隨機最佳化方法是根據抽樣的樣本進行最佳化。這樣的方式不僅大量降低每次更新的計算成本,在觀察了相同數量的樣本之下,也對模型進行更多次的更新。然而,這樣貪婪的策略對於每次更新的實質效率做了取捨。在最壞的情形之下,甚至可能導致無法收斂到最佳解。因此,近年來基於隨機梯度法作為模板的改良方法被大量地提出。我們基於其運用的改良技巧,將這些方法分成兩種類型:運用二次信息的方法、降低雜訊的方法。除此之外,也從更新步長的策略和類型以及小批次取樣的大小,對這些改良過後的變體方法進行討論。
最後,我們在機器學習中經典的二元分類問題上,對這些隨機最佳化方法進行數值結果的比較。採用縮減核支持向量機(RSVM)作為模型主體,其良好的強凸性質和平滑性質,能夠讓最佳化演算法的實作結果更加接近理論分析。
In this thesis, we give a survey of the variant algorithms for stochastic gradient methods, including Stochastic Newton methods (SN), Stochastic Variance Reduced Gradient method (SVRG), and Adam. There are two main categories of the stochastic gradient methods improvement: noise reduction and second-order information. We will discuss the advantage and disadvantage of these methods from different aspects.
Conventionally, machine learning problems utilize the batch approaches to train the model because they directly optimize the empirical risk. However, the computational complexity of the batch approaches depends on the size of the entire training dataset. The huge training dataset lead to the large-scale problems. Therefore, researchers turn to the stochastic approaches.
Compare to batch approaches, stochastic approaches optimize the model based on the random sampling from the training dataset. Under this rule, the computational cost of stochastic approaches is obviously cheaper than batch approaches. In contrast, we cannot guarantee the updating efficiency of stochastic approaches in every iteration. Thus, the variant algorithms are proposed for improving the shortcomings.
In experiments, we implement these stochastic optimization problems to solve the binary classification problems based on the reduced support vector machine(RSVM) with the good properties strongly convexity and smoothness.
Conventionally, machine learning problems utilize the batch approaches to train the model because they directly optimize the empirical risk. However, the computational complexity of the batch approaches depends on the size of the entire training dataset. The huge training dataset lead to the large-scale problems. Therefore, researchers turn to the stochastic approaches.
Compare to batch approaches, stochastic approaches optimize the model based on the random sampling from the training dataset. Under this rule, the computational cost of stochastic approaches is obviously cheaper than batch approaches. In contrast, we cannot guarantee the updating efficiency of stochastic approaches in every iteration. Thus, the variant algorithms are proposed for improving the shortcomings.
In experiments, we implement these stochastic optimization problems to solve the binary classification problems based on the reduced support vector machine(RSVM) with the good properties strongly convexity and smoothness.