In unsupervised learning, collecting more data is not always a costly process unlike the training. For example, it is not hard to enlarge the 40GB WebText used for training GPT-2 by modifying its sampling methodology considering how many webpages there are in the Internet. On the other hand, given that training on this dataset already costs tens of thousands of dollars, training on a larger dataset naively is not cost-wise feasible. In this paper, we suggest to train on a larger dataset for only one epoch unlike the current practice, in which the unsupervised models are trained for from tens to hundreds of epochs. Furthermore, we suggest to adjust the model size and the number of iterations to be performed appropriately. We show that the performance of Transformer language model becomes dramatically improved in this way, especially if the original number of epochs is greater. For example, by replacing the training for 10 epochs with the one epoch training, this translates to 1.9-3.3x speedup in wall-clock time in our settings and more if the original number of epochs is greater. Under one epoch training, no overfitting occurs, and regularization method does nothing but slows down the training. Also, the curve of test loss over iterations follows power-law extensively. We compare the wall-clock time of the training of models with different parameter budget under one epoch training, and we show that size/iteration adjustment based on our proposed heuristics leads to 1-2.7x speedup in our cases. With the two methods combined, we achieve 3.3-5.1x speedup. Finally, we speculate various implications of one epoch training and size/iteration adjustment. In particular, based on our analysis we believe that we can reduce the cost to train the state-of-the-art models as BERT and GPT-2 dramatically, maybe even by the factor of 10.
MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);CUNY ITS(纽约市立大学信息与技术服务部);Facebook AI Research(Facebook人工智能研究院)
最近的研究表明,神经网络学习的许多重要方面都发生在最早的迭代或训练时期。例如,稀疏的、可训练的子网络出现(Frankle等人,2019),梯度下降移动到一个小子空间(Gur-Ari等人,2018年),并且网络经历关键时期(Rehle等人,2019年)。在这里,我们研究了深度神经网络在训练的早期阶段所经历的变化。我们在这些早期的训练迭代中对网络状态进行了广泛的测量,并利用Frankle et al.(2019)的框架来定量地探测权重分布及其对数据集各个方面的依赖性。我们发现,在这个框架内,深度网络在保持符号的同时用随机权重重新初始化时并不稳健,并且即使在仅仅几百次迭代之后,权重分布也是高度非独立的。尽管存在这种行为,但使用模糊输入或辅助自监督任务进行预训练可以近似监督网络中的变化,这表明这些变化本质上并不依赖于标签,尽管标签显著加速了这一过程。总之,这些结果有助于阐明在这个关键的学习初始阶段发生的网络变化。
Large-Scale Distributed Second-Order Optimization Using Kronecker-Factored Approximate Curvature for Deep Convolutional Neural Networks
School of Computing, Tokyo Institute of Technology(东京工业大学计算学院);NVIDIA(英伟达);Global Scientific Information and Computing Center, Tokyo Institute of Technology(东京工业大学全球科学信息与计算中心);RIKEN Center for Computational Science(理化学研究所计算科学中心)
The Unreasonable Effectiveness Of Early Discarding After One Epoch In Neural Network Hyperparameter Optimization
Argonne National Laboratory(阿贡国家实验室);Université Paris-Saclay(巴黎-萨克雷大学);Universidad de La Sabana(萨瓦纳大学);Delft University of Technology(代尔夫特理工大学);Oak Ridge National Laboratory(橡树岭国家实验室)
A Unitary Weights Based One-Iteration Quantum Perceptron Algorithm for Non-Ideal Training Sets
Jiangsu Engineering Center of Network Monitoring(江苏省网络监控工程中心);Nanjing University of Information Science and Technology(南京信息工程大学);School of Computer and Software, Nanjing University of Information Science and Technology(南京信息工程大学计算机与软件学院);School of Mathematics and Computing Science, Guilin University of Electronic Technology(桂林电子科技大学数学与计算科学学院);College of Computer Science and Information Technology, Guangxi Normal University(广西师范大学计算机科学与信息工程学院)