ACCELERATING NEURAL ARCHITECTURE SEARCH USING PERFORMANCE PREDICTION 论文阅读笔记

【Paper Reading】 不过欧洲的会有一个不好,就是他们的人通常英语口音很重,有些人甚至不太会说英文,所以开会和交流的时候,稍微有些费劲。《International Comference on Computer Vision》,正如很多和他一样的名字的会议一行,这样最朴实的名字的会议,通常也是这方面最nb的会议。通常比较 junior 的审稿人会更严厉一些,发现一些小问题就会倾向于给低分,而 senior 的审稿人反倒宽松一些,如果觉得论文确有可取之处,通常不会太计较一些小问题。是一个关于机器学习和计算神经科学的国际会议。 阅读详情

这篇文章从网上也没有找到讲解,所以还是只能自己慢慢啃,如果有错误的话还望能够不吝赐教。

ACCELERATING NEURAL ARCHITECTURE SEARCH USING PERFORMANCE PREDICTION

Bowen Baker, Otkrist Gupta, Ramesh Raskar, Nikhil Naik

ABSTRACT

Methods for neural network hyperparameter optimization and meta-modeling are computationally expensive due to the need to train a large number of model configurations. In this paper, we show that standard frequentist regression models can predict the final performance of partially trained model configurations using features based on network architectures, hyperparameters, and time-series validation performance data. We empirically show that our performance prediction models are much more effective than prominent Bayesian counterparts, are simpler to implement, and are faster to train. Our models can predict final performance in both visual classification and language modeling domains, are effective for predicting performance of drastically varying model architectures, and can even generalize between model classes. Using these prediction models, we also propose an early stopping method for hyperparameter optimization and meta-modeling, which obtains a speedup of a factor up to 6x in both hyperparameter optimization and meta-modeling. Finally, we empirically show that our early stopping method can be seamlessly incorporated into both reinforcement learning-based architecture selection algorithms and bandit based search methods. Through extensive experimentation, we empirically show our performance prediction models and early stopping algorithm are state-of-the-art in terms of prediction accuracy and speedup achieved while still identifying the optimal model configurations.

神经网络超参数优化和元模型(和链接的文章应该是形式上相近,特别恰当元模型解释的没找到)因为需要训练大量模型所以在计算上代价高昂。在这篇文章中,作者发现标准频率回归模型(对frequentist的补充)可以用网络结构的特征、超参数和随时间序列表达的有效数据预测刚刚训练了一小部分的网络参数的最终表现。并且按照经验来看比之前的贝叶斯模型更易实现和训练。这个模型能在图像分类和语言模型中都表现良好,而且对于预测极不相同的模型架构也十分有效。甚至可以概括出模型间类别的不同。利用该模型可以改造出一种中断方法,加速超参数优化和元建模过程达6倍。这种方法还可以和基于强化学习的选择算法与基于bandit算法的搜索算法无缝衔接。通过进一步的拓展实验,作者证实了这是目前在准确预测领域最有效的算法(state-of-the-art),可以在保证优化效果的基础上提升速度。

1 INTRODUCTION

At present, significant human expertise and labor is required for designing high-performing neural network architectures and successfully training them for different applications. Ongoing research in two areas—meta-modeling and hyperparameter optimization—attempts to reduce the amount of human intervention required for these tasks. Hyperparameter optimization methods (e.g., Hutter et al. (2011); Snoek et al. (2015); Li et al. (2017)) focus primarily on obtaining good optimization hyperparameter configurations for training human-designed networks, whereas meta-modeling algorithms (Bergstra et al., 2013; Verbancsics & Harguess, 2013; Baker et al., 2017; Zoph & Le, 2017) aim to design neural network architectures from scratch. Both sets of algorithms require training a large number of neural network configurations for identifying the right set of hyperparameters or the right network architecture—and are hence computationally expensive.

目前有众多专家和实验室致力于设计效果优良的神经网络架构并将它们成功应用到其他领域。目前主要集中在两个方向上——元建模和超参数优化——尽力减少人工的介入。超参数优化方法专注于在人工设计神经网络的基础上获得优良的模型参数。而元建模方法则致力于独立设计神经网络结构。这两种方式都要求训练大量的数据,既要训练参数,又要训练结构。

When sampling many different model configurations, it is likely that many subpar configurations will be explored. Human experts are quite adept at recognizing and terminating suboptimal model configurations by inspecting their partial learning curves. In this paper we seek to emulate this behavior and automatically identify and terminate subpar model configurations in order to speedup both meta-modeling and hyperparameter optimization methods. Our method parameterizes learning curve trajectories with simple features derived from model architectures, training hyperparameters, and early time-series measurements from the learning curve. We use these features to train a set of frequentist regression models that predicts the final validation accuracy of partially trained
neural network configurations using a small training set of fully trained curves from both image classification and language modeling domains. We use these predictions and uncertainty estimates obtained from small model ensembles to construct a simple early stopping algorithm that can speedup
both meta-modeling and hyperparameter optimization methods.

当采样不同的参数结构进行训练的时候,很可能会采集到欠佳的参数结构。人类专家可以通过观察一部分的训练曲线从而识别出来。本文将寻找一种方法可以替代人类专家,自动识别并中断欠佳模型的训练过程从而加速训练过程。我们通过从模型结构、超参数训练、随时间序列数据的测算提取的特征确定学习预测曲线的参数。之后我们用一在图像分类和语言建模上完全训练好的小型学习曲线以及提取的特征训练一组基于频率的回归模型从而预测部分训练的神经网络表现的准确性。最后,用这些预估曲线和从小的模型上得到的不确定的参数共同构建一个简单的可以帮助加速超参数优化和元建模的“停止算法”。

在这里插入图片描述

本文研究包括的学习曲线样例。 注意收敛时间和整体学习曲线形状的多样性。

While there is some prior work on neural network performance prediction using Bayesian methods (Domhan et al., 2015; Klein et al., 2017), our proposed method is significantly more accurate, accessible, and efficient. We hope that our work leads to inclusion of neural network performance
prediction and early stopping in the practical neural network training pipeline.

此前已经有过一些基于贝叶斯方法的成果,而本文的方法相比则更准确,无障碍和有效。我们希望我们的工作能够同时覆盖神经网络性能在实际神经网络训练管道中的预测和及时中断。

2 RELATED WORK

Neural Network Performance Prediction: There has been limited work on predicting neural network performance during the training process. Domhan et al. (2015) introduce a weighted probabilistic model for learning curves and utilize this model for speeding up hyperparameter search in small convolutional neural networks (CNNs) and fully-connected networks (FCNs). Building on Domhan et al. (2015), Klein et al. (2017) train Bayesian neural networks for predicting unobserved learning curves using a training set of fully and partially observed learning curves. Both methods rely on expensive Markov chain Monte Carlo (MCMC) sampling procedures and handcrafted learning curve basis functions. We also note that Swersky et al. (2014) develop a Gaussian Process kernel for predicting individual learning curves, which they use to automatically stop and restart configurations.

神经网络表现预测:之前只有很少一部分相关领域的研究。Domhan 引入了一种概率全职模型用于训练学习曲线并将其应用到小型卷积神经网络和全连接神经网络种超参数的搜索加速过程。基于此,Klein也用一组全部或者部分监督训练的学习曲线训练了一个贝叶斯神经网络用于预测非监督学习曲线。这两种方法都依靠马尔可夫链、蒙特卡洛(MCMC)取样过程和热工学习曲线贝叶斯函数。同时也应注意到Swersky也提出了一种基于高斯过程的预测模型,也能起到中断和重新训练的作用。

Meta-modeling: We define meta-modeling as an algorithmic approach for designing neural network architectures from scratch. The earliest meta-modeling approaches were based on genetic algorithms (Schaffer et al., 1992; Stanley & Miikkulainen, 2002; Verbancsics & Harguess, 2013) or Bayesian optimization (Bergstra et al., 2013; Shahriari et al., 2016). More recently, reinforcement learning methods have become popular. Baker et al. (2017) use Q-learning to design competitive CNNs for image classification. Zoph & Le (2017) use policy gradients to design state-of-the-art CNNs and Recurrent cell architectures. Several methods for architecture search (Cortes et al., 2017; Negrinho & Gordon, 2017; Zoph et al., 2017; Brock et al., 2017; Suganuma et al., 2017) have been proposed this year since the publication of Baker et al. (2017) and Zoph & Le (2017).

元模型:我们定义这里提到的元模型是一种额能够自动设计神经网络拓扑结构的算法。早期的元模型算法是基于遗传算法或者贝叶斯算法的。最近,强化学习方法正在兴起。Baker用Q-learning 设计了一个对抗网络用于图像分类。Zoph和Le用policy gradient设计出了目前最好的CNN网络和循环元胞结构。自从他们的文章发表以来,陆续提出了多种结构搜索方法。

Hyperparameter Optimization: We define hyperparameter optimization as an algorithmic approach for finding optimal values of design-independent hyperparameters such as learning rate and batch size, along with a limited search through the network design space. Bayesian hyperparameter optimization methods include those based on sequential model-based optimization (SMAC) (Hutter et al., 2011), Gaussian processes (GP) (Snoek et al., 2012), TPE (Bergstra et al., 2013), and neural networks Snoek et al. (2015). However, random search or grid search is most commonly used in practical settings (Bergstra & Bengio, 2012). Recently, Li et al. (2017) introduced Hyperband, a multiarmed bandit-based efficient random search technique that outperforms state-of-the-art Bayesian
optimization methods.

超参数优化:我们定义这里的超参数优化是一种能在有限的网络结构空间种进行有限的搜索就能够独立设计诸如学习率、batch大小等参数最优值的算法。贝叶斯超参数优化方法包括了基于序贯模型的SMAC(我怎么觉得是SMBO),基于高斯过程,基于TPE的和神经网络。然后随机搜索和网格搜索还是实践上用的最多的。最近,Li又引入了一种基于多臂老虎机模型的随即搜索技术并在目前来说最好的提升了贝叶斯优化方法。

3 NEURAL NETWORK PERFORMANCE PREDICTION

We first describe our model for neural network performance prediction, followed by a description of the datasets used to evaluate our model, and finally present experimental results.

本文将从三方面展开,分别是描述模型,描述评估模型的数据集,最后呈现实验结果。
3.1 MODELING LEARNING CURVES

在这里插入图片描述

我们的目标是利用之前对表现的观测y(t),对网络配置参数x和时间序列T预测模型的准确性yT。对于以x为参数的第T次训练,我们记录了一组时间序列的有效准确性y(T)。我们训练了n组,从而获得了集合S。注意到这里的形式很像Klein文章所描述的。

在这里插入图片描述

用上面的数据训练回归模型来预测yT。同时,我们用特征集xf确定该模型的参数。此外,我们训练了T-1组回归模型,其中每个连续模型使用时间序列验证数据的另一点。我们可以看到,这种基于SRM的应用比起单独的贝叶斯模型更加精准和容易计算。

在这里插入图片描述

特征:我们使用的特征包括随时间变化的模型准确度TS、网络架构AP和超参数HP。TS:准确度、验证精度的一阶差分方程和二阶差分方程。AP:包含了总的层数;HP:包含了所有用于训练网络的超参数,比如初始的学习率和学习率的衰减。
3.2 DATASETS AND TRAINING PROCEDURES

We experiment with small and very deep CNNs (e.g., ResNet, Cuda-Convnet) trained on image classification datasets and with LSTMs trained with Penn Treebank (PTB), a language modeling dataset. Figure 1 shows example learning curves from three of the datasets considered in our experiments. We provide brief summary of the datasets below. Please see Appendix Section A for further details on the search space, preprocessing, hyperparameters and training settings of all datasets.

我们使用小但是深的CNN里训练进行验证。下面贴一下用到的训练集和训练结果。

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

3.3 PREDICTION PERFORMANCE

Choice of Regression Method: We now describe our results for performing final neural network performance. For all experiments, we train our SRMs on 100 randomly sampled neural network configurations. We obtain the best performing method using random hyperparameter search over 3-fold cross-validation. We then compute the regression performance over the remainder of the dataset using the coefficient of determination R2. We repeat each experiment 10 times and report the results with standard errors. We experiment with a few different frequentist regression models, including ordinary least squares (OLS), random forests, and -support vector machine regressions (v-SVR). As seen in Table 1, v-SVR with linear or RBF kernels perform the best on most datasets,
though not by a large margin. For the rest of this paper, we use -SVR RBF unless otherwise specified.

回归方法的选择:我们将展示我们执行神经网络的对结果的预测性能。对于所有的实验,我们在100个随机采样的神经网络上训练SRM的配置。我们利用随机超参数搜索以及3次交叉验证获得表现最好的模型。然后,我们计算其余部分的回归性能。数据集使用确定系数R^2。我们重复10次实验并记录结果的标准误差。我们用几个不同的频率回归模型进行实验,包括普通的最小二乘法(OLS)、随机森林和v支持向量机回归(V-SVR)。如表1所示,具有线性或RBF内核的v-SVR在大多数数据集上表现最好,虽然差距不是很大。对于本文的其余部分,除非另有说明,我们都默认使用V-SVR RBF。

Ablation Study on Feature Sets: In Table 2, we compare the predictive ability of different feature sets, training SVR (RBF) with time-series (TS) features obtained from 25% of the learning curve, along with features of architecture parameters (AP), and hyperparameters (HP). TS features explain the largest fraction of the variance in all cases. For datasets with varying architectures, AP are more important that HP; and for hyperparameter search datasets, HP are more important than AP, which is expected. AP features almost match TS on the ResNet (TinyImageNet) dataset, indicating that choice of architecture has a large influence on accuracy for ResNets. Figure 2 shows the true vs. predicted performance for all test points in three datasets, trained with TS, AP, and HP features.

特征集消融研究:在表2中,我们比较了不同特征集的预测能力,训练SVR(RBF)和从学习曲线的25%获得的时间序列(TS)特征,以及结构参数(AP)和超参数(HP)的特征。在所有情况下,TS特征对于方差的影响都是最大的。和预期的一样,对于具有不同结构的数据集,AP比HP更重要;而对于超参数搜索数据集,HP比AP更重要。在ResNet(TinyImageNet)数据集上,AP的特征几乎和TS完全一致,这表明体系结构AP的选择对ResNet的准确性有很大的影响。图2显示了三个数据集中所有测试点的真实与预测性能的对比。

在这里插入图片描述

Generalization Between Depths: We also test to see whether SRMs can accurately predict the performance of out-of-distribution neural networks. In particular, we train SVR (RBF) with 25% of TS, along with AP and HP features on ResNets (TinyImagenet) dataset, using 100 models with number of layers less than a threshold d and test on models with number of layers greater than d, averaging over 10 runs. Value of d varies from 14 to 110. For d = 32, R2 is 80:66~3:8. For d = 62,
R2 is 84:58 ~ 2:7.

深度之间的推广:我们还测试SRM是否能够准确地预测分布外神经网络的性能。特别地,我们在ResNets(TinyImagenet)数据集上训练25%TS的SVR(RBF)以及AP和HP特征,使用层数小于阈值d的100个模型,并在层数大于d的模型上测试,平均超过10次运行。d的取值范围从14到110不等,对于d=32这种情况,方差为80.66±3.8;当d为62时,方差为84.58±2.7
3.3.1 COMPARISON WITH EXISTING METHODS:

We now compare the neural network performance prediction ability of SRMs with three existing learning curve prediction methods: (1) Bayesian Neural Network (BNN) (Klein et al., 2017), (2) the learning curve extrapolation (LCE) method (Domhan et al., 2015), and (3) the last seen value (LastSeenValue) heuristic (Li et al., 2017). When training the BNN, we not only present it with the subset of fully observed learning curves but also all other partially observed learning curves from the training set. While we do not present the partially observed curves to the v-SVR SRM for training, we felt this was a fair comparison as v-SVR uses the entire partially observed learning curve during inference. Methods (2) and (3) do not incorporate prior learning curves during training. Figure 3 shows the R2 obtained by each method for predicting the final performance versus the percent of the learning curve used for training the model. We see that in all neural network configuration spaces and across all datasets, either one or both SRMs outperform the competing methods. The LastSeenValue heuristic only becomes viable when the configurations are near convergence, and its performance is worse than an SRM for very deep models. We also find that the SRMs outperform the LCE method in all experiments, even after we remove a few extreme prediction outliers produced by LCE. Finally, while BNN outperforms the LastSeenValue and LCE methods when only a few iterations have been observed, it does worse than our proposed method. In summary, we show that our simple, frequentist SRMs outperforms existing Bayesian approaches on predicting neural network performance on modern, very deep models in computer vision and language modeling tasks.

现在,我们将SRM的神经网络性能预测能力与三种现有的学习曲线预测方法进行比较:(1)贝叶斯神经网络(BNN)(Klein等人,2017),(2)学习曲线外推(LCE)方法(Domhan等人,2015),(3)最后看到的值(LastSeenValue)启发式(Li等人,2017)算法。在训练BNN时,我们不仅给出了完全观测学习曲线的子集,而且还给出了训练集中的所有其他部分观测学习曲线。虽然我们没有将部分观察到的曲线呈现给v-SVR SRM用于训练,但我们认为这是一个公平的比较,因为v-SVR在推理期间使用整个“部分观察到的学习曲线”。方法(2)和(3)在训练过程中没有合并先前的学习曲线。图3显示了每个方法获得的R^2,用于预测最终性能与用于训练模型的学习曲线的百分比。我们看到,在所有神经网络配置空间和所有数据集中,使用一个或两个SRM的性能都优于其他方法。LastSeenValue启发式算法只有在配置接近收敛时才是可行的,而且对于非常深的模型,它的性能比SRM差。我们还发现SRM在所有的实验中都优于LCE方法,即使在我们去除了由LCE产生的一些极端预测异常值之后。最后,当仅观察到少量迭代时,BNN优于LastSeenValue和LCE方法,但其性能比我们提出的方法差。总之,我们发现,在计算机视觉和语言建模任务中,我们的简单、频繁的SRM在预测神经网络性能方面优于现有的贝叶斯方法。

Since most of our experiments perform stepwise learning rate decay; it is conceivable that the performance gap between SRMs and both LCE and BNN results from a lack of sharp jump in their basis functions. We experimented with exponential learning rate decay (ELRD), which the basis functions in LCE are designed for. We trained 630 random nets with ELRD, from the 1000 MetaQNN-CIFAR10 nets. Predicting from 25% of the learning curve, the R2 is 0.95 for v-SVR (RBF), 0.48 for LCE (with extreme outlier removal, negative without), and 0.31 for BNN. This comparison illuminates another benefit of our method: we do not require handcrafted basis functions to model new learning curve types.

由于我们的大多数实验执行逐步学习速率衰减,可以想象,SRM与LCE和BNN之间的性能差距是由于它们的基本函数缺乏急剧跳跃(博主猜测是不是模型因为太稳定了没有变化)造成的。我们实验了指数学习速率衰减(ELRD),同时也是设计在LCE作为基函数使用的。我们在1000 个Meta AQNN-CIFAR10网络中用ELRD训练了630个随机网。从学习曲线的25%预测,V-SVR(RBF)的R^2为0.95,LCE为0.48(去除极端异常值,无负值),BNN为0.31。这个比较说明了我们方法的另一个优点:我们不需要人工干预基函数来建模新的学习曲线类型。

Training and Inference Speed Comparison: Another advantage of our regression approach is speed. SRMs are much faster to train and do inference in than proposed Bayesian methods (Domhan et al., 2015; Klein et al., 2017). On 1 core of a Intel 6700k CPU, an -SVR (RBF) with 100 training points trains in 0.006 seconds, and each inference takes 0.00006 seconds. In comparison, the LCE code takes 60 seconds and BNN code takes 0.024 seconds on the same hardware for each inference.

训练和推理速度比较:我们回归方法的另一个优点是速度快。SRM比之前的贝叶斯方法能更快地训练和推理(Danghanet等人,2015;Klein等人,2017)。在英特尔6700kCPU的一个核心上,一个100个训练点的v-SVR(RBF)在0.006秒内训练,每个推理花费0.00006秒。相比之下,LCE代码需要60秒,BNN代码在同一硬件上每次推理需要0.024秒。

4 APPLYING PERFORMANCE PREDICTION FOR EARLY STOPPING

To speed up hyperparameter optimization and meta-modeling methods, we develop an algorithm to determine whether to continue training a partially trained model configuration using our sequential regression models. If we would like to sample N total neural network configurations, we begin by sampling and training n N configurations to create a training set S. We then train a model f(xf )to predict yT . Now, given the current best performance observed yBEST, we would like to terminate training a new configuration x0 given its partial learning curve y0(t)1– if f(xf 0) = ^yT yBEST so as to not waste computational resources exploring a suboptimal configuration.

为了加速超参数优化和元模型,基于已有的序列回归模型,我们开发了一种算法来判断某模型在训练了一段时间后是否要继续训练。如果我们想采样N个总神经网络的配置参数,我们要从采样并训练n<<N次配置以创建训练集S。然后训练一个模型f(xf)来预测yT。现在,当给定了目前训练的表现最好的观测参数yBEST,我们通过上式的计算就可以终止训练,从而节省资源。

在这里插入图片描述
在这里插入图片描述

然而,当f(xf)的扩展性比较差的时候,可能会造成错误终止训练优化过程。
既然我们可以估计模型的不确定性,就可以据此设定终止阈值。这一阈值可以很好的平衡速度的增长和错误中断的风险。很多情况下,一个人可能会想要多组接近最优配置的参数。对此又两种方法,一种是放宽阈值,另一种是基于最好的观测到的n个参数设置一个可以保证把这些结果都包括进去的阈值。

4.1 EARLY STOPPING FOR META-MODELING

Baker et al. (2017) train a Q-learning agent to design convolutional neural networks. In this method, the agent samples architectures from a large, finite space by traversing a path from input layer to termination layer. However, the MetaQNN method uses 100 GPU-days to train 2700 neural architectures and the similar experiment by Zoph & Le (2017) utilized 10,000 GPU-days to train 12,800 models on CIFAR-10. The amount of computing resources required for these approaches makes them prohibitively expensive for large datasets (e.g., Imagenet) and larger search spaces. The main computational expense of reinforcement learning-based meta-modeling methods is training the neural network configuration to T epochs (where T is typically a large number at which the network stabilizes to peak accuracy).

We now detail the performance of a -SVR (RBF) SRM in speeding up architecture search using sequential configuration selection. First, we take 1,000 random models from the MetaQNN (Baker et al., 2017) search space. We simulate the MetaQNN algorithm by taking 10 random orderings of each set and running our early stopping algorithm. We compare against the LCE early stopping algorithm (Domhan et al., 2015) as a baseline, which has a similar probability threshold termination criterion. Our SRM trains off of the first 100 fully observed curves, while the LCE model trains from each individual partial curve and can begin early termination immediately. Despite this “burn in” time needed by an SRM, it is still able to significantly outperform the LCE model (Figure 4). In addition, fitting the LCE model to a learning curve takes between 1-3 minutes on a modern CPU due to expensive MCMC sampling, and it is necessary to fit a new LCE model each time a new point on the learning curve is observed. Therefore, on a full meta-modeling experiment involving thousands of neural network configurations, our method could be faster by several orders of magnitude as compared to LCE based on current implementations.

现在详细描述一下v-SVR(BRF)SRM的训练细节。首先,随机搭建了1000个模型。然后使用集合的十个随机值模拟NetaQNN算法,并和LCE算法进行比较,二者终止阈值相近。我们的SRM从前100条完全观察的曲线开始训练,而LCE模型从每个单独的部分曲线开始训练,并且可以立即开始早期终止。尽管SRM所需要更多时间,它仍然能够显著优于LCE模型(图4)。此外,由于MCMC采样昂贵,在现代CPU上,将LCE模型拟合到学习曲线需要1-3分钟,并且每次观察到学习曲线上的新点时都需要拟合新的LCE模型。因此,在涉及数千个神经网络配置的完整元建模实验中,与基于当前实现的LCE相比,我们的方法可以快几个数量级。

We furthermore simulate early stopping for ResNets trained on CIFAR-10. We found that only the probability threshold = 0:99 resulted in recovering the top model consistently. However, even with such a conservative threshold, the search was sped up by a factor of 3.4 over the baseline. While we do not have the computational resources to run the full experiment from Zoph & Le (2017), our method could provide similar gains in large scale architecture searches.

我们进一步模拟在CIFAR-10上训练的预测。我们发现,只有概率阈值= 0.99导致恢复顶部模型一致。然而,即使有这样一个保守的阈值,搜索速度提高了3.4倍以上的基线。虽然我们没有计算资源来运行Zoph&Le(2017)的完整实验,我们的方法可以在大规模体系结构搜索中提供类似的增益。

It is not enough, however, to simply simulate the speedup because meta-modeling algorithms typically use the observed performance in order to update an acquisition function to inform future sampling. In the reinforcement learning setting, the performance is given to the agent as a reward, so we also empirically verify that substituting ^yT for yT does not cause the MetaQNN agent to converge to a subpar policy. Replicating the MetaQNN experiment on CIFAR-10 (see Figure 5), we find that integrating early stopping with the Q-learning procedure does not disrupt learning and resulted in a speedup of 3.8x with = 0:99. The speedup is relatively low due to a conservative value of . After training the top models to 300 epochs, we also find that the resulting performance (just under 93%) is on par with original results of Baker et al. (2017).

然而,仅仅模拟加速是不够的,因为元建模算法通常使用观察到的性能来更新采集函数以告知未来的采样。在强化学习设置,表现结果会被作为给代理的奖励,所以我们还实验验证,对yT的近似处理不会引起MetaQNN代理收敛到一个水平一般的策略。在CIFAR-10上复制MetaQNN实验(见图5),我们发现将早期停止与Q-learning过程集成不会中断学习,并导致3.8x的加速速度为= 0.99。由于保守值的原因,加速率相对较低。在将顶级模特训练到300代之后,我们还发现最终的表现(略低于93%)与Baker等人(2017)的原始结果相当。
在这里插入图片描述
在这里插入图片描述
4.2 EARLY STOPPING FOR HYPERPARAMETER OPTIMIZATION

Recently, Li et al. (2017) introduced Hyperband, a random search technique based on multi-armed bandits that obtains state-of-the-art performance in hyperparameter optimization in a variety of settings. The Hyperband algorithm trains a population of models with different hyperparameter configurations and iteratively discards models below a certain percentile in performance among the population until the computational budget is exhausted or satisfactory results are obtained.

最近,Li等人(2017)介绍了Hyperband,这是一种基于多臂老虎机模型的随机搜索技术,在各种设置下都能获得最先进的超参数优化性能。超带算法训练一组具有不同超参数配置的模型,迭代地丢弃模型在种群中的性能低于一定百分位数,直到计算预算耗尽或得到满意的结果。

4.2.1 FAST HYPERBAND

We present a Fast Hyperband (f-Hyperband) algorithm based on our early stopping scheme. During each iteration of successive halving, Hyperband trains ni configurations to ri epochs. In f-Hyperband, we train an SRM to predict yri and do early stopping within each iteration of successive halving. We initialize f-Hyperband in exactly the same way as vanilla Hyperband, except once we have trained 100 models to ri iterations, we begin early stopping for all future successive halving iterations that train to ri iterations. By doing this, we exhibit no initial slowdown to Hyperband due to a “burn-in” phase. We also introduce a parameter which denotes the proportion of the ni models in each iteration that must be trained to the full ri iterations. This is similar to setting the criterion based on
the nth best model in the previous section. See Appendix section C for an algorithmic representation of f-Hyperband.

本文提出了一种基于早期停止方案的快速Fast Hyperband算法。在每次连续减半的迭代中,超带训练ni配置到ri epoch。在f-Hyperband中,我们训练一个SRM来预测yri,并在每次迭代中提前停止。我们初始化f-Hyperband的方式与vanilla Hyperband完全相同,只是一旦我们训练了100个模型来进行ri迭代,我们就开始为所有未来的连续减半迭代提前停止,这些迭代将训练为ri迭代。通过这样做,我们没有显示最初的减速超带由于“burn in”阶段。我们还引入了一个参数,该参数表示每个迭代中ni模型的比例,该比例必须训练到完整的ri迭代。这与基于此设置标准类似上一节中的第n个最佳模型。有关f-超带的算法表示,请参阅附录C部分。

We empirically evaluate f-Hyperband using Cuda-Convnet trained on CIFAR-10 and SVHN datasets. Figure 6 shows that f-Hyperband evaluates the same number of unique configurations as Hyperband within half the compute time, while achieving the same final accuracy within standard error. When reinitializing hyperparameter searches, one can use previously-trained set of SRMs to achieve even larger speedups. Figure 8 in Appendix shows that one can achieve up to a 7x speedup in such cases.

我们使用经过CIFAR-10和SVHN数据集训练的Cuda-Convnet对f-Hyperband进行实证评估。图6显示了f-Hyperband用了一半的时间评估与Hyperband相同数目的配置数,同时在标准误差内实现相同的最终精度。当重新初始化超参数搜索时,可以使用以前训练过的SRM集来实现更大的加速。附录中的图8显示了在这种情况下,可以达到7x的加速。

5 CONCLUSION

In this paper we introduce a simple, fast, and accurate model for predicting future neural network performance using features derived from network architectures, hyperparameters, and time-series performance data. We show that the performance of drastically different network architectures can be jointly learned and predicted on both image classification and language models. Using our simple algorithm, we can speedup hyperparameter search techniques with complex acquisition functions, such as a Q-learning agent, by a factor of 3x to 6x and Hyperband—a state-of-the-art hyperparameter search method—by a factor of 2x, without disturbing the search procedure. We outperform all competing methods for performance prediction in terms of accuracy, train and test time, and speedups obtained on hyperparameter search methods. We hope that the simplicity and success of our method will allow it to be easily incorporated into current hyperparameter optimization pipelines for deep neural networks. With the advent of large scale automated architecture search (Baker et al., 2017; Zoph & Le, 2017), methods such as ours will be vital in exploring even larger and more complex search spaces.

本文介绍一种简单、快速、准确的模型,用于利用从网络结构、超参数和时间序列性能数据中导出的特征来预测未来的神经网络性能。我们显示完全不同的网络架构的性能可以在图像分类和语言模型上联合学习和预测。使用我们的简单算法,我们能够以3x至6x的因子加速具有复杂获取功能的超参数搜索技术,例如Q-学习代理,以及以2x的因子加速Hyperband——最先进的超参数搜索方法。在精度、训练和测试时间以及超参数搜索方法获得的加速方面,我们在性能预测方面优于所有竞争方法。我们希望我们的方法简单和成功,将允许它很容易地结合到当前用于深神经网络的超参数优化流水线中。随着大规模自动化体系结构搜索(Baker等人,2017;Zoph&Le,2017)的出现,像我们这样的方法将在探索更大和更复杂的搜索空间方面至关重要。

REFERENCES

在这里插入图片描述
在这里插入图片描述

APPENDIX

在这里插入图片描述
在这里插入图片描述

B HYPERPARAMETER SELECTION IN RANDOM FOREST AND SVM BASED EXPERIMENTS

在这里插入图片描述
在这里插入图片描述

C F-HYPERBAND

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

视觉特征-自监督-掩码特征预测【2024-11】:D-JEPA·T2I(通过下一词元预测实现高分辨率图像合成)【相对于D-JEPA的优化:文本条件、流匹配损失、VoPE】 近年来,自回归模型在类别条件图像生成方面展现了卓越的性能。然而,将下一词元预测应用于高分辨率文本到图像生成仍未得到充分探索。在本文中,我们提出了基于连续词元的自回归模型D-JEPA·T2I,该模型在架构和训练策略上均进行了创新,能够在高达4K的任意分辨率下生成高质量、照片级真实感的图像。在架构方面,我们采用去噪联合嵌入预测架构(D-JEPA),同时利用多模态视觉Transformer有效融合文本和视觉特征。此外,我们引入流匹配损失以及所提出的视觉旋转位置编码(VoPE),以实现连续分辨率学习。 阅读详情

相关推荐

WAM-202601:LingBot-VA(用于机器人控制的因果世界建模)【自回归扩散框架:利用双流MoT架构将视频与动作统一到单个交错序列中(先预测视频再逆动力解动作)】【基于Wan2.2-5B】

Causal World Modeling for Robot Control用于机器人控制的因果世界建模摘要This work highlights that video world modeling, alongside vision-language pre-training, establishes a fresh and independent foundation for robot learning. Intuitively, video world models provide the ab

u013250861的博客 518

automl-演化算法

参考文献 2019 | Evolutionary Neural AutoML for Deep Learning. | Liang et al.(LEAF) 2019 | Evolving deep neural networks. | Miikkulainen et al. (CoDeepNEAT) 2018 | a multi-objective genetic algorithm fo...

xys430381_1的专栏 1344

视觉特征-自监督-对比学习:SimCLR(在潜空间用对比损失最大化同一样本经不同数据增强所得视图间的一致性来学习表示)【Loss:对比损失函数】【同批次非同源样本作为负样本】【2020-02】

Abstract摘要本文提出了SimCLR:一个用于视觉表征对比学习的简单框架。我们简化了近期提出的对比式自监督学习算法,无需专门的架构或记忆库。为了理解是什么使对比预测任务能够学习到有用的表征,我们系统地研究了该框架的主要组成部分。我们表明:(1)数据增强的组合在定义有效预测任务中起着关键作用;(2)在表征与对比损失之间引入可学习的非线性变换,可显著提升所学习表征的质量;(3)与监督学习相比,对比学习受益于更大的批量大小和更多的训练步骤。

u013250861的博客 82

学界 | 进化算法可以不再需要计算集群,开普敦大学的新方法用一块GPU也能刷新MNIST记录

来源:AI科技评论 概要:最近这项来自南非开普敦大学的研究就带来了新的发现,只用单块GPU的资源就进化出了理想的网络结构,还刷新了三项测试的结果。 作者按:进化算法和生成式对抗性网络GANs类似,提出时大家都觉得是很好的想法,可以帮人类极大地拓展行为和想象空间,然而找到好的、可控的实现方法却没那么简单。GANs方面现在已经有了许多的成果,但是进化算法仍然停留在较为初期的状态,无法生成大

人工智能学家 642

视觉特征-自监督-同源不同crop视图一致性【2023-04】:DINOv2(无监督学习鲁棒视觉特征)【12 亿张互不重复的图像】【判别式自监督方法】【交叉熵损失+iBOT损失】

近期,自然语言处理领域在大量数据上进行模型 Pretraining 取得的突破,为计算机视觉中类似Foundation Model 的发展开辟了道路。这些模型能够生成通用视觉特征,即无需微调即可跨图像分布和任务发挥作用的特征,从而大幅简化图像在任何系统中的使用。本研究表明,现有的 Pretraining 方法,尤其是自监督方法,如果在来自多样化来源的充足精选数据上进行训练,便能够产生此类特征。我们重新审视了现有方法,并结合不同技术,从数据规模和模型规模两方面扩展我们的 Pretraining。

u013250861的博客 365

CV-骨架02:Swin Transformer V2: Scaling Up Capacity and Resolution【2021-11】

Ze Liu* Han Hu*† Yutong Lin Zhuliang Yao Zhenda Xie Yixuan Wei Jia Ning Yue Cao Zheng Zhang Li Dong Furu Wei Baining Guo Microsoft Research Asia{v-zeliu1,hanhu,t-yutonglin,t-zhuyao,t-zhxie,t-yixuanwei,v-jianing}@microsoft.com {yuecao,zhez,lidong1,fuwei,bai

u013250861的博客 80

Understanding Neural Architecture Search: Scope, Strategy, and Performance Estimation

自动神经网络架构设计思想理解

多头注意力探索Now 152

PyCharm启动报错急救指南:3步定位.vmoptions文件位置(Win/Mac路径详解)

本文针对PyCharm启动失败问题,提供了一份详细的急救指南。核心在于精准定位并修复关键的.vmoptions配置文件。文章通过三步法详解了在Windows和macOS系统上查找该文件的具体路径,并分析了因新旧版本冲突、破解补丁残留或参数设置错误导致启动失败的常见场景及解决办法,帮助开发者快速恢复IDE的正常工作。

weixin_28835789的博客 702

神经架构搜索与自然进化的相似性

1.背景介绍 神经架构搜索(Neural Architecture Search, NAS)是一种自动设计神经网络结构的方法,它可以帮助研究人员和工程师在给定的计算资源和性能要求下,自动发现最佳的神经网络架构。自然进化算法(Nature-Inspired Evolutionary Algorithms, NIEA)是一种基于自然进化过程的优化算法,它可以用于解决复杂的优化问题。在这篇文章中,我们...

AI天才研究院 836

画个板子玩一玩STM32F030F4P6,也许是最便宜的32bit MCU

前言,什么是STM32F030F4P6 STM32目前最便宜的芯片之一应该就是这一块,STM32F030F4P6,这一个芯片没有USB,但是其他都有,引脚少,价格低廉,如果找不到原厂,可以买替代的国产芯片,性能也一样。 不管怎么样也是Cortex-M0,比8bit和16bit的性能都强,总的来说就是低价,引脚少,体积小的同时,还容易开发,有很多模拟输入可玩,还有SPI,硬件I2C等等 所以,这一款MCU真的是从理论来说又便宜又好用,非常适合把玩。 画个板,最小系统 STM32F030其..

arenascat的博客 2万+

InfiniBand(IB)实战指南:从硬件配置到性能优化

本文是一份详尽的InfiniBand实战指南,涵盖从硬件选型、部署到驱动配置、性能优化的全流程。重点解析了InfiniBand作为AI训练与高性能计算(HPC)核心网络的优势,特别是其支持的RDMA技术如何实现微秒级低延迟。文章提供了硬件匹配、NCCL压测、内核参数调优及在PyTorch分布式训练中启用IB的实操步骤,旨在帮助工程师构建和优化高性能计算集群。

mqtt6iot的博客 580

神经网络架构搜索(Neural Architecture Search)杂谈

机器学习从业者被戏称为“调参工”已经不是一天两天了。我们知道,机器学习算法的效果好坏不仅取决于参数,而且很大程度上取决于各种超参数。超参数的自动搜索优化是一个古老的话题了。深度学习前它主要针对传统机器学习算法的参数,比较经典的方法有random search, grid search,Bayesian optimization,Reinforcement learning, Evolutionar...

世事难料,保持低调 8万+

SAP物料主数据表结构全解析:ABAP开发与MM模块必知必会

本文深入解析SAP物料主数据的核心表结构,涵盖MARA、MAKT、MARC、MARD及MVKE等关键表。详细阐述了物料主数据在ABAP开发和MM模块中的存储逻辑与关联关系,帮助开发者和顾问高效处理数据查询、增强功能及业务故障排查,是掌握SAP物料管理基础的必读指南。

weixin_29216957的博客 379

ACCELERATING NEURAL ARCHITECTURE SEARCH USING PERFORMANCE PREDICTION阅读笔记

ACCELERATING NEURAL ARCHITECTURE SEARCH USING PERFORMANCE PREDICTION 目录ACCELERATING NEURAL ARCHITECTURE SEARCH USING PERFORMANCE PREDICTION作者的方法对learning curve的建模features数据集和训prediction performance17...

u013517182的博客 188

【芯片设计- RTL 数字逻辑设计入门 番外篇6 -- 术语 Tile 介绍】

在系统级芯片(System on Chip, SoC)设计中,“tile” 是一个可以指代不同概念的术语,但通常它指的是芯片上的一个独立的功能单元或核心。一个 tile 可以包含一个或多个处理器核心、缓存、内存控制器、输入输出设备、外设接口或其他功能模块。在 SoC 上,多个 tile 可以被组合和连接起来,以形成一个完整的系统。

CodingCos的博客 3067

事件驱动的 SAP 工作流:从 BOR 事件到 Event Linkage 的落地与排障全景图

摘要: SAP工作流中的Event是业务对象状态变化的系统广播机制,如发票录入、采购订单释放等事件。通过事件驱动,业务程序与流程引擎解耦,业务只需发布事件,流程引擎负责后续处理。文章详细解析了SAP工作流事件的完整链路,包括事件定义、触发机制、事件容器传递、SWE2配置的关键作用,以及事件不触发时的排查方法。重点介绍了事件在启动流程、终止任务、等待步骤和主动创建中的应用,并结合采购订单审批案例说明事件的实际使用场景和配置要点。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 188

ViT:An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale

尽管 Transformer 架构已成为自然语言处理任务事实上的标准,但其在计算机视觉中的应用仍然有限。在视觉领域,注意力机制要么与卷积网络结合应用,要么用于替代卷积网络的某些组件,同时保留其整体结构。我们表明,这种对 CNN 的依赖并非必要,直接应用于图像块序列的纯 Transformer 在图像分类任务上也能表现出色。

u013250861的博客 79

ABAP BDC 处理踩坑笔记:把错误挡在录制之前,把稳定做进每一行 BDCDATA

本文总结了SAP BDC(批输入)开发中的常见问题和解决方案。重点包括:1)理解BDCDATA本质是模拟人工操作而非直接操作数据库;2)数据格式化技巧,如金额、日期、物料号等字段的标准化处理;3)通过CTU_PARAMS参数控制执行环境,确保屏幕尺寸和更新模式一致;4)不要依赖sy-subrc,应通过解析MESSTAB消息判断业务是否成功;5)录制阶段的常见陷阱及解决方法;6)疑难问题的系统性解决思路;7)建议建立完善的错误处理机制,包括日志记录和重跑功能。文章提供了实用的ABAP代码示例和配置建议,帮助开

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 265

【信息科学与工程学】【产品体系】第二十篇 CDN网络 05

每个条目聚焦底层算法、成本、与电信运营商网络、地理位置和人员密度结合,包含完整的字段内容和逐步推理的数学表达式。如何在全国范围内设置备件仓库,确定各仓库的库存水平,使得在满足服务水平(如95%故障在4小时内修复)的前提下,备件总成本最低?:LEO卫星星座(如Starlink)可作为CDN的边缘节点,但卫星高速移动导致覆盖变化。:降低备件库存成本(通常占运维成本的10-20%),同时保证故障修复时效,维持CDN可用性。:为偏远地区(海洋、沙漠、空中)提供CDN服务,补充地面网络覆盖不足。LEO/MEO星座;

weixin_49199313的博客 696

Python爬虫实战:利用最新技术爬取微信公众号文章(基于搜狗搜索)

使用最新Python版本确保兼容性和性能:比传统Requests更强大的HTML解析库Playwright:新一代浏览器自动化工具,比Selenium更高效Asyncio:异步IO框架提升爬虫效率Redis:分布式任务队列和去重MongoDB:非关系型数据库存储结构化数据本文详细介绍了如何利用Python最新技术栈构建一个功能强大的微信公众号文章爬虫。通过结合Playwright浏览器自动化、异步IO、分布式任务队列等技术,我们实现了一个能够绕过反爬机制、高效稳定抓取数据的解决方案。

2201_76125261的博客 1795

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

(顶刊)神经结构搜索的综述(关于NAS的一篇非常好的综述)

A Survey on Neural Architecture Search 1.摘要 神经网络架构的搜索和深度学习一样近些年变成了一个相当热门的领域。深度学习方面的很多进步都源于NAS(Neural Architecture Search)的进步。深度学习非常耗时,且需要丰富的领域知识才能很好地用它。 在这篇论文里,讨论了基于强化学习,进化算法,代理模型等NA优化算法。还讨论了该领域的一些新研究,包括考虑约束,多目标,数据增强,优化器和激活函数搜索。 2.介绍 这里作者提到,搜索合适的神经网络体系结构任务

大模型天花板 1万+

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

深度学习 调参数

这次活动的主题是 hyperparameter optimization 和 bayesian optimization,简单说就是如何更有效率地调参,或者。。如何调得一手好参。这个方向近几年论文出来不少,研究潜力不小;而且实用性很强,不仅可用在深度学习中,也可用于其他机器学习方法的调参。选几篇论文讨论清楚,我想无论对学术还是工程都会有不小帮助。 主要讨论以下几篇论文: 1

liuheng0111的博客 3206

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

Accelerating Neural Architecture Search via Proxy Data

Accelerating Neural Architecture Search via Proxy Data 利用代理数据加速神经网络结构搜索 摘要 尽管人们对神经结构搜索(NAS)越来越感兴趣,但NAS的巨大计算成本仍然是研究人员的一大障碍。因此,我们建议使用代理数据来降低NAS的成本,即。E在不牺牲搜索性能的情况下,目标数据的代表子集。尽管数据选择已在各个领域使用,但我们对NAS-BECH1SHOT1提供的NAS算法的现有选择方法的评估表明,这些方法并不总是适用于NAS,因此有必要采.

Douzaikongcheng的博客 672

【源头活水】顶刊解读!IEEE T-PAMI (CCF-A,IF 23.6)2024年46卷第二期

“问渠那得清如许,为有源头活水来”,通过前沿领域知识的学习,从其他研究领域得到启发,对研究问题的本质有更清晰的认识和理解,是自我提高的不竭源泉。为此,我们特别精选论文阅读笔记,开辟“源头活水”专栏,帮助你广泛而深入的阅读科研文献,敬请关注!扩散残差网络(Diff-ResNet)1. T. Wang, Z. Dou, C. Bao and Z. Shi, "Diffusion Mechanism i...

weixin_48294000的博客 704

AutoML论文笔记(十六)Neural Architecture Search without Training

文章题目:Neural Architecture Search without Training 链接:link https://arxiv.org/pdf/2006.04647 论文内容 论文阅读笔记,帮助记忆的同时,方便和大家讨论。因能力有限,可能有些地方理解的不到位,如有谬误,请及时指正。  常规的NAS在训练和单个结构验证的过程都非常耗时,动辄几百上千个GPU小时。本文在富含各种网络结构的数据集NAS-Bench-201中,根据相关性频谱得到最终的验证精度和网络结构的训练无关,因此提出了一个全新的

luzheai6913的博客 1774
上一篇: 爬虫实时保存优快云编辑页面内容
下一篇: 项目组织与管理知识点总结
Maybemust
博客等级 码龄10年 98粉丝 67原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值