Large-Scale Pretraining unlocks Few-Shot Prediction for Relational Data
Rishabh Ranjan, Vignesh Kothapalli, Harshvardhan Agarwal, Charilaos Kanatsoulis, Roshan Upendra, Tom Palczewski, Carlos Guestrin, Jure Leskovec
NeurIPS page · OpenReview · Open on the map
Category: Time Series, PDEs & Probabilistic ML › Latent Space Bayesian Optimization · Type: new method · Keywords: relational data, few-shot learning, foundation models, pretraining recipe, context ensembling, context tuning
Areas: LLM Reasoning › Language Model Reasoning › Structured Reasoning
Summary
Relational Transformers (RTs) pretrained on THE JOIN with a multi-scale recipe achieve state-of-the-art few-shot predictions on relational data using only hundreds of labels.
Explained to a 5-year-old
The researchers made a huge book of tables from many different places. They taught a computer program to read these tables and understand how the numbers relate. After learning from many tables, the program can solve new table problems by looking at just a few examples. They added tricks to help the program think more carefully when answering. This makes it easier to use computers for table tasks without needing lots of data.
Explained to a 5-year-old, longer
The researchers collected a massive set of tables from many different real-world databases, like a big picture book of numbers. They built a computer program that can look at these tables and learn how the rows and columns are connected. The program was trained using several new tricks: it saw tables with different sizes, it learned from many cells at once, and it could find related parts of a table quickly. After this training, the program could solve new table problems by only seeing a handful of examples, just like a child learns from a few pictures. They also added extra ways for the program to think together and adjust its answers when it was unsure, which made it even better. The new method performed as well as other complex systems that needed a lot of data, but used far fewer examples. It even beat the best previous methods that required training on all available data for each new task. This progress means people can now create useful table-based tools without gathering massive amounts of labeled data. The approach also highlights the value of carefully designing how a model sees and uses information. Overall, the work opens the door to more flexible and efficient AI systems for working with structured data.
For a technical reader
The paper introduces a large-scale pretraining corpus (THE JOIN) and a new recipe combining mixed context sizes, multi-cell masking, and a random-walk retriever. Relational Transformers pretrained on this data achieve state-of-the-art few-shot performance on RelBench regression tasks, matching prior pipelines while using 23-32× fewer labels. Context ensembling and tuning further improve results by up to 3% and 4% respectively, demonstrating the effectiveness of scaling test-time compute.
Problem
Foundation models for structured data such as tables and relational databases currently require large labeled datasets to perform well on new tasks, limiting few-shot learning capabilities.
Method
The approach assembles a large pretraining corpus of relational data, uses mixed context sizes, multi-cell masking, and a random-walk-based retriever for context gathering, and employs context ensembling and tuning at test time to boost few-shot performance.
Results
The approach achieves parity with prior pipelines using 23-32× fewer labels and surpasses prior state-of-the-art full task-specific training on average nMAE, with further gains of up to 3% from context ensembling and 4% from context tuning.
Contributions
The work introduces a large-scale pretraining corpus of relational data, a multi-scale pretraining recipe with mixed context sizes, multi-cell masking, and random-walk retrieval, and demonstrates that relational foundation models can achieve strong few-shot performance on regression tasks.
Practical relevance
It enables building relational foundation models that can be adapted to new tasks with very little labeled data, reducing data collection and training costs.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction