With the explosive increase of big data, training a Machine Learning (ML) model becomes a computation-intensive workload, which would take days or even weeks. Thus, reusing an already trained model has received attention, which is called transfer learning. Transfer learning avoids training a new model from scratch by transferring knowledge from a source task to a target task. Existing transfer learning methods mostly focus on how to improve the performance of the target task through a specific source model, and assume that the source model is given. Although many source models are available, it is difficult for data scientists to select the best source model for the target task manually. Hence, how to efficiently select a suitable source model in a model database for model reuse is an interesting but unsolved problem. In this paper, we propose SMS, an effective, efficient, and flexible source model selection framework. SMS is effective even when the source and target datasets have significantly different data labels, and is flexible to support source models with any type of structure, and is efficient to avoid any training process. For each source model, SMS first vectorizes the samples in the target dataset into soft labels by directly applying this model to the target dataset, then uses Gaussian distributions to fit for clusters of soft labels, and finally measures the distinguishing ability of the source model using Gaussian mixture-based metric. Moreover, we present an improved SMS (I-SMS), which decreases the output number of the source model. I-SMS can significantly reduce the selection time while retaining the selection performance of SMS. Extensive experiments on a range of practical model reuse workloads demonstrate the effectiveness and efficiency of SMS.
翻译:随着大数据的爆炸性增加,培训机器学习(ML)模式成为计算密集的工作量,需要数日甚至数周时间。因此,重新使用已经受过训练的模型受到注意,被称之为转移学习。转移学习避免通过将知识从源任务转移到目标任务,从零到零地培训新模式。现有的传输学习方法主要侧重于如何通过特定源模式改进目标任务的业绩,并假设源模式已经提供。虽然有许多源模式,但数据科学家很难为目标任务手工选择最佳源源数据流模式。因此,如何在模型数据库中有效选择一个适合的源模型,用于模式的再利用,这是一个有趣的但尚未解决的问题。在本文件中,我们建议SMS,一个有效、高效和灵活的源模式选择框架,即使源和目标数据集有显著不同的数据标签,也能够灵活地支持源模式,并且能够避免任何类型的培训进程。对于每个源模式,SMS首先将标本模型中的样本存储量转化为软标签,同时直接将S的S-S-lair 能力用于S-S-lair 数据流模型的升级。