Saved in:
Bibliographic Details
Main Authors: Schindler, Günther, Schambach, Maximilian, Medek, Michael, Thelin, Sam
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.03570
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915600201154560
author Schindler, Günther
Schambach, Maximilian
Medek, Michael
Thelin, Sam
author_facet Schindler, Günther
Schambach, Maximilian
Medek, Michael
Thelin, Sam
contents We study LLMs for tabular prediction with mixed text, numeric, and categorical fields. We introduce TabGemma, a schema-agnostic in-context learner that treats rows as sequences and tackles two practical hurdles when adapting pretrained LLMs for tabular predictions: unstable numeric tokenization and limited context size. We propose to canonicalize numbers via signed scientific notation and continue pretraining of a 12B Gemma 3 model with a target imputation objective using a large-scale real world dataset. For inference, we use a compact n-gram-based retrieval to select informative exemplars that fit within a 128k-token window. On semantically rich benchmarks, TabGemma establishes a new state of the art on classification across low- and high-data regimes and improves monotonically with more context rows. For regression, it is competitive at small sample sizes but trails conventional approaches as data grows. Our results show that LLMs can be effective tabular in-context learners on highly semantic tasks when paired with dedicated numeric handling and context retrieval, while motivating further advances in numeric modeling and long-context scaling.
format Preprint
id arxiv_https___arxiv_org_abs_2511_03570
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle TabGemma: Text-Based Tabular ICL via LLM using Continued Pretraining and Retrieval
Schindler, Günther
Schambach, Maximilian
Medek, Michael
Thelin, Sam
Machine Learning
We study LLMs for tabular prediction with mixed text, numeric, and categorical fields. We introduce TabGemma, a schema-agnostic in-context learner that treats rows as sequences and tackles two practical hurdles when adapting pretrained LLMs for tabular predictions: unstable numeric tokenization and limited context size. We propose to canonicalize numbers via signed scientific notation and continue pretraining of a 12B Gemma 3 model with a target imputation objective using a large-scale real world dataset. For inference, we use a compact n-gram-based retrieval to select informative exemplars that fit within a 128k-token window. On semantically rich benchmarks, TabGemma establishes a new state of the art on classification across low- and high-data regimes and improves monotonically with more context rows. For regression, it is competitive at small sample sizes but trails conventional approaches as data grows. Our results show that LLMs can be effective tabular in-context learners on highly semantic tasks when paired with dedicated numeric handling and context retrieval, while motivating further advances in numeric modeling and long-context scaling.
title TabGemma: Text-Based Tabular ICL via LLM using Continued Pretraining and Retrieval
topic Machine Learning
url https://arxiv.org/abs/2511.03570