Table as a Modality for Large Language Models
Liyao Li, Chao Ye, Wentao Ye, Yifei Sun, Zhe Jiang, Haobo Wang, Jiaming Tian, Yiming Zhang, Ningtao Wang, Xing Fu, Gang Chen, Junbo Zhao
TL;DR
The paper tackles the difficulty of tabular reasoning with LLMs due to loss of structural information when tables are serialized as text. It introduces TaMo, a multimodal framework that encodes table structure with a hypergraph transformer and integrates it with LLMs via a learnable interface, achieving substantial generalization gains. A new StructQA benchmark assesses table-structure understanding and permutation invariance, showing current text-only approaches underperform. Across five table-reasoning datasets, TaMo delivers large improvements over text baselines and competitive performance with specialist SOTA methods, illustrating the value of explicitly modeling table structure as a separate modality for robust tabular QA.
Abstract
To migrate the remarkable successes of Large Language Models (LLMs), the community has made numerous efforts to generalize them to the table reasoning tasks for the widely deployed tabular data. Despite that, in this work, by showing a probing experiment on our proposed StructQA benchmark, we postulate that even the most advanced LLMs (such as GPTs) may still fall short of coping with tabular data. More specifically, the current scheme often simply relies on serializing the tabular data, together with the meta information, then inputting them through the LLMs. We argue that the loss of structural information is the root of this shortcoming. In this work, we further propose TAMO, which bears an ideology to treat the tables as an independent modality integrated with the text tokens. The resulting model in TAMO is a multimodal framework consisting of a hypergraph neural network as the global table encoder seamlessly integrated with the mainstream LLM. Empirical results on various benchmarking datasets, including HiTab, WikiTQ, WikiSQL, FeTaQA, and StructQA, have demonstrated significant improvements on generalization with an average relative gain of 42.65%.
