In plain words: Each table row is turned into a short plain-English sentence with a one-line task description, then a language model labels it, optionally after tuning on a few examples. This beat earlier deep-learning table classifiers and matched gradient-boosted trees when only a handful of labels were available.
Abstract · TabLLM: Few-shot Classification of Tabular Data with Large Language Models
We study the application of large language models to zero-shot and few-shot classification of tabular data. We prompt the large language model with a serialization of the tabular data to a natural-language string, together with a short description of the classification problem. In the few-shot setting, we fine-tune the large language model using some labeled examples. We evaluate several serialization methods including templates, table-to-text models, and large language models. Despite its simplicity, we find that this technique outperforms prior deep-learning-based tabular classification methods on several benchmark datasets. In most cases, even zero-shot classification obtains non-trivial performance, illustrating the method's ability to exploit prior knowledge encoded in large language models. Unlike many deep learning methods for tabular datasets, this approach is also competitive with strong traditional baselines like gradient-boosted trees, especially in the very-few-shot setting.
Stefan Hegselmann, Alejandro Buendia, Hunter Lang, Monica Agrawal, Xiaoyi Jiang, David Sontag
arXiv:2210.10723 · cs.CL, cs.AI · submitted Oct 19, 2022 · updated Mar 17, 2023
abstract · pdf · html
I worked for a startup that was interested in this sort of thing that eventually got bought by a major clothing and shoe manufacturer.