MotherNet: Fast Training and Inference via Hyper-Network Transformers
Andreas Müller, Carlo Curino, Raghu Ramakrishnan
TL;DR
The paper tackles the challenge of applying foundation-model style learning to tabular data by introducing MotherNet, a transformer-based hypernetwork that generates a compact, two-hidden-layer MLP in a single forward pass via in-context learning on synthetic data. By decoupling dataset-specific gradient descent from inference, MotherNet achieves fast predictions and competitive accuracy on small tabular datasets, outperforming several baselines and offering significant speedups over tuned AutoML approaches. The approach relies on a low-rank weight decomposition to keep the produced child network compact, while meta-training on synthetic tasks provides broad generalization across diverse datasets. Compared to TabPFN and HyperFast, MotherNet delivers faster inference with comparable or superior performance on small datasets, suggesting a practical path for fast, tuning-free foundation-model-type models in tabular domains.
Abstract
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.
