Comprehensive Solution Program Centric Pretraining for Table-and-Text Hybrid Numerical Reasoning

Qianying Liu, Dongsheng Yang, Wenjie Zhong, Fei Cheng, Sadao KurohashiarXiv 2023

TL;DR

This paper introduces three novel pretraining tasks designed to improve numerical reasoning over hybrid table-and-text data, such as financial reports. By providing fine-grained supervision at both the program and sub-program levels, the authors significantly boost the accuracy of models in identifying relevant variables and constructing correct mathematical solutions.

What Problem Does This Paper Address?

Numerical reasoning in natural language processing (NLP) has evolved from simple word problems to complex analysis of hybrid documents containing both text and tables. Financial reports are a prime example: to answer a question like "What was the ratio of units disposed to units acquired?", a model must navigate a sea of irrelevant numbers (noise) to find specific values tucked away in table cells and surrounding prose.

Current "retrieve-then-solve" frameworks face two major hurdles:

  1. Noise Sensitivity: Retrievers often pull in "distractor" variables that mislead the reasoning engine.
  2. Coarse Supervision: Models are typically trained only on the final mathematical program (e.g., divide(1760, add(279, 320))). They aren't explicitly taught the intermediate steps or which specific piece of evidence supports which part of the calculation, making it difficult to learn the underlying logic.

Methods

The authors propose a Solution Program Centric Pretraining approach. Instead of relying solely on standard language modeling, they introduce three auxiliary tasks that leverage the structure of the reasoning programs themselves.

Figure 1: Example of Hybrid Numerical QA and our proposal. The yellow, purple and blue color denotes required variables for solving the question. The red variables denotes irrelavant variables.

1. Variable Integrity Ranking (VIR)

This task operates at the whole-program level. The model is trained to rank different sets of evidence based on how many "gold" (required) variables they contain. By comparing a set with all required variables against sets where some are replaced by random noise, the model learns to distinguish essential information from irrelevant distractors.

2. Variable Operator Prediction (VOP)

This is a sub-program level task. The authors decompose complex programs into their simplest units: two variables and an operator (e.g., add(279, 320)). The model is then trained to predict the correct operator given the two variables and the context. This provides the fine-grained supervision missing in standard training.

3. Variable Keyphrase Masking (VKM)

Also at the sub-program level, this task focuses on the "connective tissue" of reasoning. Keyphrases like "Units" or "December 31" are extracted from the evidence using TextRank or table headers and then masked. The model must recover these terms, forcing it to understand how specific descriptors link textual evidence to numerical variables.

Figure 2: Pipeline of the construction of pretraining data.

Datasets

The primary benchmark used is FinQA, a large-scale dataset containing 8,281 financial questions based on S&P 500 reports. Each entry includes a hybrid text-table passage, a question, the "gold" evidence sentences, and the mathematical program required to reach the answer.

Key Insights and Ideas

  • Decomposition is Key: Breaking a complex mathematical program into atomic sub-programs allows the model to learn the "building blocks" of reasoning rather than just memorizing final outputs.
  • Ranking as a Denoising Tool: Framing evidence selection as a ranking problem (VIR) rather than just binary classification helps the model handle the massive amount of irrelevant data found in real-world financial documents.
  • Keyphrases are Anchors: The VKM task highlights that numerical reasoning isn't just about the numbers; it's about the semantic labels (dates, units, categories) that give those numbers meaning.

Key Results

The proposed pretraining tasks led to substantial gains across different model scales:

  • BERT-Base: Achieved a 4.37% improvement in execution accuracy and a 4.18% jump in program accuracy on the FinQA test set.
  • RoBERTa-Large: Showed a 3.56% increase in execution accuracy, reaching a final score of 65.51%.
  • Retriever Performance: The "Noisy VIR" task specifically improved the retriever's ability to find the correct evidence, gaining over 1% in top-3 recall.

A case study (Figure 3 in the paper) demonstrates that while baseline models often fail to construct the correct program structure or get distracted by irrelevant variables (like "Minority Interests"), the pretrained model successfully identifies the correct logic and variables.

Figure 3: Case study on FinQA test set. We abbreviate unused model input evidence.

Limitations and Future Work

  • Supervision Dependency: The current method relies on human-annotated programs for pretraining. The authors suggest exploring semi-supervised or self-supervised objectives to leverage the vast amount of unlabelled financial data available online.
  • Constant Numbers: The model still struggles with "constant" concepts that aren't explicitly in the text, such as unit conversions (e.g., knowing that "million" implies a factor of 1,000,000). Future work aims to incorporate these constant annotations to help the model understand number magnitude and units better.

Summary updated

BibTeX
@misc{liu2023comprehensive,
  author = {Qianying Liu and Dongsheng Yang and Wenjie Zhong and Fei Cheng and Sadao Kurohashi},
  title = {{Comprehensive Solution Program Centric Pretraining for Table-and-Text Hybrid Numerical Reasoning}},
  year = {2023},
  eprint = {2305.07475},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.07475},
}
Figure