Answering Numerical Reasoning Questions in Table-Text Hybrid Contents with Graph-based Encoder and Tree-based Decoder

Fangyu Lei, Shizhu He, Xiang Li, Jun Zhao, Kang Liu

Introduction

In real-world domains like financial reporting, critical information is often distributed across structured tables and unstructured textual paragraphs. Answering complex questions in these contexts—such as calculating ratios or percentage changes—requires a model to perform joint reasoning over both data formats. Traditional approaches to this "TextTableQA" task often treat it as a sequence-tagging problem, which introduces significant limitations in handling complex mathematical expressions and effectively fusing disparate data sources.

The Challenge of Hybrid Numerical Reasoning

Existing models for hybrid question answering typically rely on a fixed set of mathematical operators. This rigidity makes it difficult to handle "undefined" arithmetic expressions that do not fit a pre-set template. Furthermore, standard sequence models often fail to capture the structural relationships between table headers, cell values, and the descriptive text that provides context for those numbers. For instance, a question might require extracting a value from a table and a corresponding growth rate mentioned only in a footnote or a surrounding paragraph.

Methods: The RegHNT Framework

To address these challenges, the authors introduce RegHNT (Relational Graph enhanced Hybrid table-text Numerical reasoning model with Tree decoder). This framework shifts the paradigm from simple tagging to a flexible graph-to-tree architecture.

Relational Graph Encoder

Instead of processing table and text as a flat sequence, RegHNT constructs a heterogeneous relational graph. Nodes in this graph represent question tokens, table cells (categorized by row, column, or time), and paragraph sentences. The model explicitly defines "intra-relations" (e.g., cells within the same row) and "inter-relations" (e.g., a sentence referencing a specific table header). A Relational Graph Attention Network (RGAT) then facilitates message passing across these nodes, allowing the model to align the question with relevant data across different formats.

Tree-based Decoder

RegHNT replaces the standard classification layer with a tree-structured decoder. Inspired by solvers for math word problems, this decoder generates a mathematical expression tree in Polish (prefix) notation.

  • Internal nodes represent operators ($+, -, \times, \div$).
  • Leaf nodes are either constants or numbers extracted directly from the input table or text.

This approach allows the model to generate arbitrary, multi-step mathematical expressions on the fly, overcoming the limitations of predefined operator templates.

The overall RegHNT architecture, featuring graph construction, relational message passing, and the tree-based decoder.

Evaluation and Results

The model was evaluated on the TAT-QA (Tabular and Textual Question Answering) benchmark, which contains over 16,000 question-answer pairs derived from real financial reports. RegHNT achieved a state-of-the-art performance of 70.3 EM (Exact Match) and 78.0 F1, representing a substantial 20% improvement over previous baselines like TAGOP.

Key Insights

  • Expression Generation as Reasoning: Treating the answer as a generated program (the expression tree) provides the flexibility necessary for complex financial calculations.
  • Structural Awareness: By modeling table structures as graph relations, the model maintains the context of numerical values, significantly improving its ability to select the correct operands.
  • Handling Complexity: RegHNT's tree decoder excels at "undefined" arithmetic problems where previous models, limited by fixed templates, often failed completely.
Comparison between RegHNT and the TAGOP baseline, illustrating RegHNT's ability to generate complex derivations that baselines miss.

Conclusion

RegHNT demonstrates that combining relational graph encoders with tree-based decoders is a powerful strategy for hybrid numerical reasoning. By explicitly modeling the structural and semantic links between tables and text, the framework achieves a significant performance leap on complex financial QA tasks. Future work will explore extending this architecture to broader encyclopedic datasets and further refining factual extraction capabilities alongside numerical reasoning.

Summary updated

BibTeX
@inproceedings{lei2022answering,
  author = {Fangyu Lei and Shizhu He and Xiang Li and Jun Zhao and Kang Liu},
  title = {{Answering Numerical Reasoning Questions in Table-Text Hybrid Contents with Graph-based Encoder and Tree-based Decoder}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=OR9iDKFC7v},
}

Loading related content...

Figure