arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.08598cs.LG
收藏

MotherNet:通过超网络Transformer实现快速训练与推理

MotherNet: Fast Training and Inference via Hyper-Network Transformers

Gray Systems Lab(灰色系统实验室);Microsoft(微软)

Andreas Müller, Carlo Curino, Raghu Ramakrishnan

AI总结:

MotherNet是一种超网络Transformer架构,通过单次前向传播的上下文学习为任意表格分类任务生成子网络权重,无需梯度下降或数据集特定调参,在小数据集上性能优于梯度下降训练的神经网络,且推理高效。

摘要:

基础模型正在改变许多模态下的机器学习,上下文学习正在取代经典模型训练。最近关于表格数据的工作暗示了为数值数据分类构建基础模型的类似机会。然而,现有的元学习方法在推理时间上无法与基于树的方法竞争。在本文中,我们提出了MotherNet,这是一种在合成分类任务上训练的超网络架构,一旦用从未见过的训练集进行提示,就能通过单次前向传播的上下文学习生成一个已训练的“子”神经网络的权重。与大多数通常针对相对受限的多任务设置训练的超网络不同,MotherNet可以在任意表格数据集上为多类分类创建模型,而无需任何数据集特定的梯度下降。MotherNet生成的子网络在小数据集上优于使用梯度下降训练的神经网络,并且与TabPFN以及梯度提升等标准机器学习方法的预测结果相当。与直接应用TabPFN不同,MotherNet生成的网络在推理时非常高效。我们还证明HyperFast无法在小数据集上进行有效的上下文学习,并且严重依赖数据集特定的微调和超参数调优,而MotherNet不需要微调或针对每个数据集的超参数。

英文摘要:

Foundation models are transforming machine learning across many modalities, with in-context learning replacing classical model training. Recent work on tabular data hints at a similar opportunity to build foundation models for classification for numerical data. However, existing meta-learning approaches can not compete with tree-based methods in terms of inference time. In this paper, we propose MotherNet, a hypernetwork architecture trained on synthetic classification tasks that, once prompted with a never-seen-before training set generates the weights of a trained ``child'' neural-network by in-context learning using a single forward pass. In contrast to most existing hypernetworks that are usually trained for relatively constrained multi-task settings, MotherNet can create models for multiclass classification on arbitrary tabular datasets without any dataset specific gradient descent. The child network generated by MotherNet outperforms neural networks trained using gradient descent on small datasets, and is comparable to predictions by TabPFN and standard ML methods like Gradient Boosting. Unlike a direct application of TabPFN, MotherNet generated networks are highly efficient at inference time. We also demonstrate that HyperFast is unable to perform effective in-context learning on small datasets, and heavily relies on dataset specific fine-tuning and hyper-parameter tuning, while MotherNet requires no fine-tuning or per-dataset hyper-parameters.

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

↑