TableLlama: Towards Open Large Generalist Models for Tables

Tianshu Zhang, Xiang Yue, Yifei Li, Huan Sun
11/15/2023
cs.CLcs.AIcs.DB

No official code found. Best implementation: OSU-NLP-Group/TableLlama (137 stars, MIT, last commit 2024-05-14).

Abstract

Semi-structured tables are ubiquitous. There has been a variety of tasks that aim to automatically interpret, augment, and query tables. Current methods often require pretraining on tables or special model architecture design, are restricted to specific table types, or have simplifying assumptions about tables and tasks. This paper makes the first step towards developing open-source large language models (LLMs) as generalists for a diversity of table-based tasks. Towards that end, we construct TableInstruct, a new dataset with a variety of realistic tables and tasks, for instruction tuning and evaluating LLMs. We further develop the first open-source generalist model for tables, TableLlama, by fine-tuning Llama 2 (7B) with LongLoRA to address the long context challenge. We experiment under both in-domain setting and out-of-domain setting. On 7 out of 8 in-domain tasks, TableLlama achieves comparable or better performance than the SOTA for each task, despite the latter often has task-specific design. On 6 out-of-domain datasets, it achieves 5-44 absolute point gains compared with the base model, showing that training on TableInstruct enhances the model's generalizability. We open-source our dataset and trained model to boost future work on developing open generalist models for tables.

View on arXivView PDF

Code Implementations(1)

MIT

[NAACL'24] Dataset, code and models for "TableLlama: Towards Open Large Generalist Models for Tables".

13714PythonNov 16, 20232 years agoMIT

Similar Papers

Cite this paper

@article{zhang2023tablellama,
  title  = {TableLlama: Towards Open Large Generalist Models for Tables},
  author = {Tianshu Zhang and Xiang Yue and Yifei Li and Huan Sun},
  year   = {2023},
  eprint = {2311.09206},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.09206v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.09206.svg)](https://codeofpaper.com/paper/2311.09206)

Discussion