arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.02654cs.LGcs.CV
收藏

在机器学习中使用拟随机序列进行模型权重初始化

On Using Quasirandom Sequences in Machine Learning for Model Weight Initialization

Toronto Metropolitan University(多伦多都会大学)

Andriy Miranskyy, Adam Sorrenti, Viral Thakar

AI总结:

本文研究用 Sobol' 拟随机序列替代伪随机数生成器进行神经网络权重初始化,在多种架构、数据集和优化器组合上的实验表明,该方法在 60% 的实验中能提升准确率或加快收敛,从而改善模型训练。

摘要:

训练神经网络的有效性直接影响机器学习应用中的计算成本、资源分配和模型开发时间。优化器充分训练模型的能力(就训练后的模型性能而言)取决于模型的初始权重。模型权重初始化方案使用伪随机数生成器(PRNG)作为随机性来源。我们研究是否可以用低差异拟随机数生成器(QRNG)——即 Sobol' 序列——替代 PRNG 作为初始化器的随机性来源,从而改善模型性能。我们考察了在 MNIST、CIFAR-10 和 IMDB 数据集上使用 SGD 和 Adam 优化器训练的多层感知机(MLP)、卷积神经网络(CNN)、长短期记忆网络(LSTM)和 Transformer 架构。我们的分析使用十种初始化方案:Glorot、He、Lecun(均匀分布和正态分布);正交初始化、随机正态、截断正态和随机均匀。对于数据集、架构、优化器和初始化方案的每种组合,对使用基于 PRNG 和基于 QRNG 的初始化器设置权重的模型进行成对比较。我们的研究结果表明,在所进行的 120 个实验中,基于 QRNG 的神经网络初始化器在 60% 的情况下要么达到更高的准确率,要么比基于 PRNG 的初始化器更快地达到相同准确率。因此,使用基于 QRNG 的初始化器代替基于 PRNG 的初始化器可以加速并改善模型训练。

英文摘要:

The effectiveness of training neural networks directly impacts computational costs, resource allocation, and model development timelines in machine learning applications. An optimizer's ability to train the model adequately (in terms of trained model performance) depends on the model's initial weights. Model weight initialization schemes use pseudorandom number generators (PRNGs) as a source of randomness. We investigate whether substituting PRNGs for low-discrepancy quasirandom number generators (QRNGs) -- namely Sobol' sequences -- as a source of randomness for initializers can improve model performance. We examine Multi-Layer Perceptrons (MLP), Convolutional Neural Networks (CNN), Long Short-Term Memory (LSTM), and Transformer architectures trained on MNIST, CIFAR-10, and IMDB datasets using SGD and Adam optimizers. Our analysis uses ten initialization schemes: Glorot, He, Lecun (both Uniform and Normal); Orthogonal, Random Normal, Truncated Normal, and Random Uniform. Models with weights set using PRNG- and QRNG-based initializers are compared pairwise for each combination of dataset, architecture, optimizer, and initialization scheme. Our findings indicate that QRNG-based neural network initializers either reach a higher accuracy or achieve the same accuracy more quickly than PRNG-based initializers in 60% of the 120 experiments conducted. Thus, using QRNG-based initializers instead of PRNG-based initializers can speed up and improve model training.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑