Skip to main content
QUICK REVIEW

[Paper Review] TAT-LLM: A Specialized Language Model for Discrete Reasoning over Tabular and Textual Data

Fengbin Zhu, Ziyang Liu|arXiv (Cornell University)|Jan 24, 2024
Semantic Web and OntologiesComputer Science4 citations
TL;DR

TAT-LLM is a specialized language model fine-tuned on LLaMA 2 to perform discrete reasoning over tabular and textual data using a three-step pipeline: Extractor, Reasoner, and Executor. It outperforms both smaller base models and large models like GPT-4 on FinQA, TAT-QA, and TAT-DQA benchmarks, demonstrating that task-specific specialization enables smaller models to match or exceed the reasoning performance of much larger models.

ABSTRACT

In this work, we address question answering (QA) over a hybrid of tabular and textual data that are very common content on the Web (e.g. SEC filings), where discrete reasoning capabilities are often required. Recently, large language models (LLMs) like GPT-4 have demonstrated strong multi-step reasoning capabilities. We then consider harnessing the amazing power of LLMs to solve our task. We abstract a Step-wise Pipeline for tabular and textual QA, which consists of three key steps, including Extractor, Reasoner and Executor, and initially design an instruction to instantiate the pipeline and validate that GPT-4 outperforms all existing methods. However, utilizing an online LLM like GPT-4 holds various challenges in terms of cost, latency, and data security risk, which motivates us to specialize smaller LLMs in this task. We develop a TAT-LLM language model by fine-tuning LLaMA 2 with the training data generated automatically from existing expert-annotated datasets following the Step-wise Pipeline. The experimental results have verified that our TAT-LLM model can outperform all baseline models, including the previous best fine-tuned models and very large-scale LLMs like GPT-4 on FinQA, TAT-QA and TAT-DQA benchmarks.

Motivation & Objective

  • To address the challenge of question answering over hybrid tabular and textual data, which requires complex discrete reasoning such as arithmetic, comparison, and counting.
  • To overcome limitations of direct answer generation by decomposing QA into a structured, step-wise pipeline with distinct reasoning stages.
  • To develop a cost-effective, secure, and high-performing alternative to large online LLMs like GPT-4 by specializing smaller models for this task.
  • To validate that fine-tuning smaller LLMs with automatically generated data from expert-annotated datasets can achieve superior performance on tabular and textual QA.

Proposed method

  • The TAT-LLM model is fine-tuned on LLaMA 2 using a synthetic dataset generated from expert-annotated tabular and textual QA datasets via a step-wise pipeline.
  • The pipeline consists of three stages: Extractor (identifies relevant evidence), Reasoner (generates a logical or mathematical expression), and Executor (executes the expression to derive the answer).
  • Each training instance is structured as Instruction, Table, Text, Question, and Response, with the response formatted as a structured table of step-by-step outputs.
  • An External Executor is integrated to ensure precise execution of mathematical and logical operations, improving reliability and reducing errors in calculation.
  • The model is trained to generate multi-step reasoning outputs in a structured, human-readable format, enabling better evaluation and refinement.
  • The training data is automatically synthesized by applying the pipeline to existing expert-annotated QA examples, ensuring alignment with the required reasoning structure.
Figure 1 . Examples of QA with discrete reasoning over a hybrid of tabular and textual data.
Figure 1 . Examples of QA with discrete reasoning over a hybrid of tabular and textual data.

Experimental results

Research questions

  • RQ1Can a specialized, smaller language model outperform large, general-purpose LLMs like GPT-4 in discrete reasoning over tabular and textual data?
  • RQ2How effective is a step-wise pipeline architecture—comprising Extractor, Reasoner, and Executor—in improving reasoning accuracy for hybrid data QA?
  • RQ3To what extent does fine-tuning LLaMA 2 on automatically generated, pipeline-structured data improve performance on tabular and textual QA benchmarks?
  • RQ4How does the integration of an External Executor enhance the reliability of mathematical and logical execution in the reasoning pipeline?
  • RQ5What are the primary error sources in the reasoning pipeline, and how can they be mitigated through model specialization and data augmentation?

Key findings

  • TAT-LLM (7B) outperforms all baseline models, including the previous best fine-tuned models and GPT-4, on the FinQA, TAT-QA, and TAT-DQA benchmarks.
  • The model achieves a 109.1% relative improvement on Counting questions in TAT-QA and over 200% improvement on Arithmetic questions in TAT-DQA compared to LLaMA 2-Chat (7B).
  • The External Executor reduces execution errors, particularly in arithmetic and logic operations, and contributes significantly to performance gains in reasoning-intensive tasks.
  • Error analysis shows that 48% of errors originate in the Extractor stage, primarily due to incorrect evidence selection, indicating a key challenge in precise interpretation of tabular and textual content.
  • The performance gap between TAT-LLM (7B) and LLaMA 2-Chat (7B) is most pronounced in Arithmetic and Counting questions, with gains exceeding 100%, while improvements in Span and Multiple Spans types are still over 30%.
  • Even the 70B parameter version of TAT-LLM without the External Executor shows less than a 7-point drop in EM across datasets, indicating that larger models inherently have stronger reasoning capabilities, but the External Executor still provides measurable benefit in precision.
Figure 2 . Comparison between a) End-to-end Pipeline and b) Step-wise Pipeline . c) Our TAT-LLM language model is developed by fine-tuning LLaMA 2 (Touvron et al . , 2023b ) following the Step-wise Pipeline .
Figure 2 . Comparison between a) End-to-end Pipeline and b) Step-wise Pipeline . c) Our TAT-LLM language model is developed by fine-tuning LLaMA 2 (Touvron et al . , 2023b ) following the Step-wise Pipeline .

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.