深度學會學習法於多細緻度貝氏最佳化之研究
Neural Meta Learning for Multifidelity Bayesian Optimization
摘要
貝氏最佳化(Bayesian optimzation)已經證明了它在優化未知目標函數(可能是非凸的,沒有封閉形式的導數)方面的強大功能,並能使用有限的預算來評估一個複雜且計算代價昂貴的函數。此方法通常採用高斯過程(Gaussian Process)來獲取函數的資訊。實際上,計算複雜的目標函數大多數都能與一些更低成本或容易計算的不同細緻度(在重現目標函數的準確度)的輔助函數相輔相成。在此提到的成本所指的是計算函數所消耗的任何資源,例如在評估查詢時所計算的時間。就所消耗的資源而言,評估這些函數代價可能會非常高。 多細緻度的輔助函數可
以有效地提高貝氏最佳化的性能。
對於機器學習模型的超參數調優任務,可以通過一個低細緻度的輔助函數來加速調優過程並優化其目標函數,其中超參數視為輸入及驗證準確率為輸出。對於真實機器人的參數設置或模型配置任務,可以通過在低細緻度、低成本、無噪聲的仿真環境中模擬機器人的運動來快速校正。上述任務促使我們需要設計和開發一種多細緻度的貝氏最佳化演算法,它不僅選擇信息量最大的輸入,而且選擇目標函數或不同細緻度的輔助函數。本文的研究重點在於全局目標最佳化器對於選擇輸入的評估及性能的提高。
一般來說,多細緻度貝氏最佳化演算法的性能取決於離散化的輸入,也很容易被目標函數和輔助函數之間的探索和開發的權衡所影響。實際上,如果沒有關於如何收斂於最佳的過往知識,系統性能就會不理想。此外,雖然高斯過程是貝氏最佳化的自然概率模型,但不幸的是,它們在數據點數量上的複雜度是立方量級的,而且它們通常不能很好地擴展到高維度。爲了克服這些缺點,我們提出了一種學會學習方法來訓練遞歸神經網絡(recurrent neural network)來執行多細緻度貝氏最佳化作為深度時序列學習和搜索。該框架在基於長短期記憶的遞歸模型能有
效地在探索與開發之間權衡並執行最佳化。爲了預測新的查詢輸入點,會依序提供輸入並對目標函數進行最優搜索。
本研究將學會學習法作爲多層遞歸神經網絡進行多細緻度貝氏最佳化。此主要目的是利用元數據(meta-data)瞭解自動學習在解決各種學習問題時如何變得靈活,從而提高現有學習算法的性能。學會學習法大多數是一個典型的遞歸神經網絡,它可以記住更新學習模型的方法,並能夠存儲關於之前查詢點的潛在特徵,並學習使用其內存,以決定要對輸入區域的哪一部分進行探索或開發。我們通過低細緻度的函數來探索空間,並在一個連續較小的區域對高細緻度函數進行有效率的探索。多細緻度貝氏最佳化演算法會比單細緻度的性能更好。採集函數(acquisition functions)會利用於指導優化器的訓練過程來處理黑箱優化。雖然該模型保持了高斯過程的良好特性,如可跟蹤性和不確定性管理,但它極大地提高了其可伸縮性,並隨觀測數量的變化從立方到線性量級。該方法可以大大加快貝氏最佳化過程,而不涉及矩陣求逆或採集函數的優化。
在實驗中,我們將使用大量高斯過程所生成的可微函數及其輔助函數來訓練一個遞歸神經網絡優化器。我們展示了這些學習過的優化器能表現出顯著的轉移,因爲它們可以有效地優化其他領域的黑箱函數,包括高斯過程,全局優化基準及超參數調優。此外在訓練範圍內,遞歸神經網絡優化器與在此方面的工程平台(如GPflowOpt)相比具有競爭力。我們的實驗將表明遞歸神經網絡優化器更快,並趨向於在其訓練範圍內獲得更好的性能。然而,由於它還沒有學會持續性探索,因此它在較長的範圍內與貝氏最佳化算法的競爭中表現不佳。實驗表明,該算法以最小的代價找到了一個黑盒函數的全局最佳解,優於現有的單細緻度最佳化算法。我們的演算法使用低細緻度來探索空間,並在連續較小的區域上使用高細緻度來查詢,從而能夠以更低的成本更接近全局最優。
以有效地提高貝氏最佳化的性能。
對於機器學習模型的超參數調優任務,可以通過一個低細緻度的輔助函數來加速調優過程並優化其目標函數,其中超參數視為輸入及驗證準確率為輸出。對於真實機器人的參數設置或模型配置任務,可以通過在低細緻度、低成本、無噪聲的仿真環境中模擬機器人的運動來快速校正。上述任務促使我們需要設計和開發一種多細緻度的貝氏最佳化演算法,它不僅選擇信息量最大的輸入,而且選擇目標函數或不同細緻度的輔助函數。本文的研究重點在於全局目標最佳化器對於選擇輸入的評估及性能的提高。
一般來說,多細緻度貝氏最佳化演算法的性能取決於離散化的輸入,也很容易被目標函數和輔助函數之間的探索和開發的權衡所影響。實際上,如果沒有關於如何收斂於最佳的過往知識,系統性能就會不理想。此外,雖然高斯過程是貝氏最佳化的自然概率模型,但不幸的是,它們在數據點數量上的複雜度是立方量級的,而且它們通常不能很好地擴展到高維度。爲了克服這些缺點,我們提出了一種學會學習方法來訓練遞歸神經網絡(recurrent neural network)來執行多細緻度貝氏最佳化作為深度時序列學習和搜索。該框架在基於長短期記憶的遞歸模型能有
效地在探索與開發之間權衡並執行最佳化。爲了預測新的查詢輸入點,會依序提供輸入並對目標函數進行最優搜索。
本研究將學會學習法作爲多層遞歸神經網絡進行多細緻度貝氏最佳化。此主要目的是利用元數據(meta-data)瞭解自動學習在解決各種學習問題時如何變得靈活,從而提高現有學習算法的性能。學會學習法大多數是一個典型的遞歸神經網絡,它可以記住更新學習模型的方法,並能夠存儲關於之前查詢點的潛在特徵,並學習使用其內存,以決定要對輸入區域的哪一部分進行探索或開發。我們通過低細緻度的函數來探索空間,並在一個連續較小的區域對高細緻度函數進行有效率的探索。多細緻度貝氏最佳化演算法會比單細緻度的性能更好。採集函數(acquisition functions)會利用於指導優化器的訓練過程來處理黑箱優化。雖然該模型保持了高斯過程的良好特性,如可跟蹤性和不確定性管理,但它極大地提高了其可伸縮性,並隨觀測數量的變化從立方到線性量級。該方法可以大大加快貝氏最佳化過程,而不涉及矩陣求逆或採集函數的優化。
在實驗中,我們將使用大量高斯過程所生成的可微函數及其輔助函數來訓練一個遞歸神經網絡優化器。我們展示了這些學習過的優化器能表現出顯著的轉移,因爲它們可以有效地優化其他領域的黑箱函數,包括高斯過程,全局優化基準及超參數調優。此外在訓練範圍內,遞歸神經網絡優化器與在此方面的工程平台(如GPflowOpt)相比具有競爭力。我們的實驗將表明遞歸神經網絡優化器更快,並趨向於在其訓練範圍內獲得更好的性能。然而,由於它還沒有學會持續性探索,因此它在較長的範圍內與貝氏最佳化算法的競爭中表現不佳。實驗表明,該算法以最小的代價找到了一個黑盒函數的全局最佳解,優於現有的單細緻度最佳化算法。我們的演算法使用低細緻度來探索空間,並在連續較小的區域上使用高細緻度來查詢,從而能夠以更低的成本更接近全局最優。
Bayesian optimization (BO) has recently demonstrated to be powerful in optimizing an unknown (possibly non-convex with no closed-form derivative) target function using a finite budget to evaluate a complicated and computationally expensive function. BO methods typically employ a Gaussian Process (GP) to gain information about function. In practice, the expensive-to-evaluate target function often correlates well with some auxiliary functions of varying fidelities (i.e., degrees of accuracy in reproducing the target function) that may be less cost and cheaper to evaluate. Cost in this context refers to any resource consumed while evaluating
function, e.g., the computational time to evaluate a query. Evaluating these functions can be very costly in terms of the resources consumed. Auxiliary functions with
multiple fidelities are feasible to boost the BO performance.
For the task of hyperparameters tuning of a machine learning model, one may speed up the tuning process and optimize the target function by considering a low-fidelity auxiliary function where the hyperparameters are used as inputs and the validation accuracy is viewed as output. For the task of parameter setting or model configuration of a real robot, one may rapid the calibration by simulating the motion of robot in a low-fidelity, low-cost and noise-free simulation environment. The above practical tasks motivate us the need to design and develop a multi-fidelity BO algorithm that selects not just the most informative inputs but also the target or auxiliary functions with varying fidelities. This thesis focuses on the evaluation of the selected inputs and the improvement of the belief for a global target optimizer.
In general, the performance of multi-fidelity BO algorithm depends on the input discretization and is sensitive to the tradeoff between exploration and exploitation over the target and auxiliary functions with varying fidelities. In practice, the system performance will be undesirable if there is no previous knowledge about how to converge on the optimum. Furthermore, While GPs are the natural probabilistic models for BO, unfortunately, their complexity is cubic in the number of data points and they often do not gracefully scale to high dimensions. To tackle these weaknesses, we present a meta learning approach to train the recurrent neural networks (RNNs) to perform the multi-fidelity Bayesian optimization for deep sequential learning and searching. The proposed framework can jointly and naturally optimize for the non-trivial exploration-exploitation trade-off based on a recurrent model using the long short-term memory. Inputs are sequentially provided to predict a new query input point for searching the optimum of target function.
In this study, meta learning is implemented as a multi-layer RNN for multi-fidelity Bayesian optimization. The main goal is to use meta-data to understand how automatic learning can become flexible in solving different kinds of learning problems, hence to improve the performance of existing learning algorithms. Using this method, an optimizer, also known as the meta-learner, is provided with the performance of an optimizee, also seen as the learner. Optimizer performs the updating to increase the performance of optimizee. The meta-learner is typically a
recurrent neural network, which can memorize the way of updating the learner model. RNN is capable of storing the latent features about the previous query points and learning to access its memory to make decision about which part of the input region for exploration or exploitation. We explore the space via cheap or low fidelity, and leverage the exploration with high fidelity on a successively smaller region. BO with multifidelity can achieve better performance than that with single fidelity. The acquisition functions are used to guide the process of training the RNN-based optimizee. The optimizer and optimizee are trained to deal with black-box optimization. While this model maintains desirable properties of the GP such as tractability and principled management of uncertainty, it greatly improves its
scalability from cubic to linear as a function of the number of observations. This approach can significantly speed up the procedure of Bayesian optimization without
involving matrix inversion or optimization of acquisition functions.
In the experiments, we will use a large number of differentiable functions and its auxiliary functions both generated with GP to train an RNN optimizer. We show that these learned optimizers exhibit a remarkable degree of transfer in that they can be used to efficiently optimize a broad range of derivative-free black-box functions,
including Gaussian process bandits, global optimization benchmarks and hyperparameters tuning. Moreover, within the training horizon, the RNN optimizers are competitive with heavily engineered packages such as GPflowopt. Our
experiments will show that the RNN optimizer is faster and tends to achieve better performance within the horizon for which it is trained. It however underperforms
against Bayesian optimization for much longer horizons as it has not learned to explore for longer horizons. Besides, our experiments show that the algorithm
discovers the global optima of a black-box function with minimal cost and outperforms existing single-fidelity optimization algorithms. Our algorithm explores
the space using the cheap lower fidelities, and uses the higher fidelity queries on successively smaller regions, hence is able to converge closer to the global optima
with lesser cost.
function, e.g., the computational time to evaluate a query. Evaluating these functions can be very costly in terms of the resources consumed. Auxiliary functions with
multiple fidelities are feasible to boost the BO performance.
For the task of hyperparameters tuning of a machine learning model, one may speed up the tuning process and optimize the target function by considering a low-fidelity auxiliary function where the hyperparameters are used as inputs and the validation accuracy is viewed as output. For the task of parameter setting or model configuration of a real robot, one may rapid the calibration by simulating the motion of robot in a low-fidelity, low-cost and noise-free simulation environment. The above practical tasks motivate us the need to design and develop a multi-fidelity BO algorithm that selects not just the most informative inputs but also the target or auxiliary functions with varying fidelities. This thesis focuses on the evaluation of the selected inputs and the improvement of the belief for a global target optimizer.
In general, the performance of multi-fidelity BO algorithm depends on the input discretization and is sensitive to the tradeoff between exploration and exploitation over the target and auxiliary functions with varying fidelities. In practice, the system performance will be undesirable if there is no previous knowledge about how to converge on the optimum. Furthermore, While GPs are the natural probabilistic models for BO, unfortunately, their complexity is cubic in the number of data points and they often do not gracefully scale to high dimensions. To tackle these weaknesses, we present a meta learning approach to train the recurrent neural networks (RNNs) to perform the multi-fidelity Bayesian optimization for deep sequential learning and searching. The proposed framework can jointly and naturally optimize for the non-trivial exploration-exploitation trade-off based on a recurrent model using the long short-term memory. Inputs are sequentially provided to predict a new query input point for searching the optimum of target function.
In this study, meta learning is implemented as a multi-layer RNN for multi-fidelity Bayesian optimization. The main goal is to use meta-data to understand how automatic learning can become flexible in solving different kinds of learning problems, hence to improve the performance of existing learning algorithms. Using this method, an optimizer, also known as the meta-learner, is provided with the performance of an optimizee, also seen as the learner. Optimizer performs the updating to increase the performance of optimizee. The meta-learner is typically a
recurrent neural network, which can memorize the way of updating the learner model. RNN is capable of storing the latent features about the previous query points and learning to access its memory to make decision about which part of the input region for exploration or exploitation. We explore the space via cheap or low fidelity, and leverage the exploration with high fidelity on a successively smaller region. BO with multifidelity can achieve better performance than that with single fidelity. The acquisition functions are used to guide the process of training the RNN-based optimizee. The optimizer and optimizee are trained to deal with black-box optimization. While this model maintains desirable properties of the GP such as tractability and principled management of uncertainty, it greatly improves its
scalability from cubic to linear as a function of the number of observations. This approach can significantly speed up the procedure of Bayesian optimization without
involving matrix inversion or optimization of acquisition functions.
In the experiments, we will use a large number of differentiable functions and its auxiliary functions both generated with GP to train an RNN optimizer. We show that these learned optimizers exhibit a remarkable degree of transfer in that they can be used to efficiently optimize a broad range of derivative-free black-box functions,
including Gaussian process bandits, global optimization benchmarks and hyperparameters tuning. Moreover, within the training horizon, the RNN optimizers are competitive with heavily engineered packages such as GPflowopt. Our
experiments will show that the RNN optimizer is faster and tends to achieve better performance within the horizon for which it is trained. It however underperforms
against Bayesian optimization for much longer horizons as it has not learned to explore for longer horizons. Besides, our experiments show that the algorithm
discovers the global optima of a black-box function with minimal cost and outperforms existing single-fidelity optimization algorithms. Our algorithm explores
the space using the cheap lower fidelities, and uses the higher fidelity queries on successively smaller regions, hence is able to converge closer to the global optima
with lesser cost.