Skip to main content
QUICK REVIEW

[Paper Review] Large Language Models are few(1)-shot Table Reasoners

Wenhu Chen|arXiv (Cornell University)|Oct 13, 2022
Topic ModelingComputer Science7 citations
TL;DR

This paper demonstrates that large language models (LLMs) like GPT-3 can perform complex table reasoning tasks—such as question answering and fact verification—using only one-shot in-context learning with chain-of-thought prompting. Despite no pre-training on table data, LLMs achieve strong performance (e.g., 78.8% on TabFact and 48.8% on WikiTableQuestions), outperforming fine-tuned T5-large on long-form generation tasks and producing highly faithful reasoning chains.

ABSTRACT

Recent literature has shown that large language models (LLMs) are generally excellent few-shot reasoners to solve text reasoning tasks. However, the capability of LLMs on table reasoning tasks is yet to be explored. In this paper, we aim at understanding how well LLMs can perform table-related tasks with few-shot in-context learning. Specifically, we evaluated LLMs on popular table QA and fact verification datasets like WikiTableQuestion, FetaQA, TabFact, and FEVEROUS and found that LLMs are competent at complex reasoning over table structures, though these models are not pre-trained on any table corpus. When combined with `chain of thoughts' prompting, LLMs can achieve very strong performance with only a 1-shot demonstration, even on par with some SoTA models. We show that LLMs are even more competent at generating comprehensive long-form answers on FetaQA than tuned T5-large. We further manually studied the reasoning chains elicited from LLMs and found that these reasoning chains are highly consistent with the underlying semantic form. We believe that LLMs can serve as a simple yet generic baseline for future research. The code and data are released in https://github.com/wenhuchen/TableCoT.

Motivation & Objective

  • To investigate whether large language models (LLMs) can perform complex table reasoning without task-specific fine-tuning.
  • To evaluate the effectiveness of few-shot in-context learning with chain-of-thought prompting on table-based tasks.
  • To compare LLM performance against fine-tuned models like T5-large on long-form answer generation and fact verification.
  • To analyze the faithfulness and consistency of LLM-generated reasoning chains with ground-truth semantic forms.
  • To identify limitations of LLMs in reasoning over large tables and symbolic operations.

Proposed method

  • Employ few-shot in-context learning with a single demonstration to guide LLMs on table reasoning tasks.
  • Apply chain-of-thought (CoT) prompting to elicit step-by-step reasoning before prediction.
  • Use self-consistency (CoT+SC) to improve reasoning reliability through ensemble decoding.
  • Evaluate LLMs on four benchmark datasets: WikiTableQuestions, FetaQA, TabFact, and FEVEROUS.
  • Conduct human evaluation to assess reasoning chain faithfulness and correctness.
  • Analyze model performance across varying table sizes to identify scalability limitations.

Experimental results

Research questions

  • RQ1Can LLMs perform complex table reasoning tasks using only one-shot in-context learning without fine-tuning?
  • RQ2How does chain-of-thought prompting affect LLM performance on table QA and fact verification tasks?
  • RQ3How do LLM-generated reasoning chains compare in faithfulness and correctness to ground-truth semantic forms?
  • RQ4What is the impact of table size on LLM reasoning performance?
  • RQ5How does LLM performance compare to fine-tuned models like T5-large on long-form answer generation?

Key findings

  • LLMs achieve 48.8% exact match on WikiTableQuestions and 78.8% on TabFact using only one-shot in-context learning with chain-of-thought prompting.
  • On FetaQA, GPT-3 outperforms fine-tuned T5-large by over 30% in human evaluation for correctness and adequacy of long-form answers.
  • Approximately 90% of LLM-generated reasoning chains are faithful to table content, with less than 10% exhibiting hallucination.
  • Model performance degrades significantly on tables exceeding 1,000 tokens, dropping to near-random levels, indicating strong sensitivity to table size.
  • LLMs demonstrate strong symbolic reasoning capabilities, including counting, comparison, and arithmetic operations, when reasoning over tables.
  • Despite strong performance on small-to-medium tables, LLMs remain limited by token context length and are not yet a replacement for symbolic methods in large-scale or deterministic tasks.

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.