Table-to-Text Generation with Effective Hierarchical Encoder on Three Dimensions (Row, Column and Time)

Heng Gong, Xiaocheng Feng, Bing Qin, Ting Liu

Abstract

Generating natural language summaries from structured tabular data remains a significant challenge in natural language processing. Traditional sequence-to-sequence models often flatten tables into 1D sequences, losing critical 2D structural relationships and temporal context. This paper introduces a novel three-layer hierarchical encoder that explicitly models tabular data across three distinct dimensions: rows, columns, and time. By capturing the relationships between an entity's current statistics, their peers' performance, and their own historical data, the proposed model generates significantly more accurate, coherent, and context-rich summaries. Evaluated on the ROTOWIRE NBA dataset, the model achieves state-of-the-art results, particularly in factual accuracy and content selection.

Introduction

Table-to-text generation involves translating structured data, such as a sports box score or financial spreadsheet, into a descriptive natural language summary. Previous neural models typically treat tables as unordered sets of records or simple linear sequences. This approach is fundamentally flawed as it ignores the 2D grid structure where a cell's value is only meaningful in context—comparing a player's points to the rest of their row (overall game performance) and the rest of the column (team-wide performance).

Figure 1: Example of NBA box score tables alongside baseline and gold standard natural language summaries.

Furthermore, human sports writers frequently contextualize current games with historical data (e.g., "his second double-double in a row"). Existing models often lack the mechanism to reference such history, leading to flat summaries or hallucinated "streaks" that are not grounded in data.

Methodology

To address these limitations, the authors propose a hierarchical encoder that models the row, column, and time dimensions through three specialized layers.

Figure 4: The architecture of the proposed hierarchical encoder, illustrating the three-layer process from record encoding to row-level representation and decoding.

Layer 1: Record Encoders

Instead of encoding cells in isolation, the model employs three separate self-attention mechanisms to create distinct representations for every cell:

  • Row Dimension: Attends to other records in the same row (e.g., linking points to assists).
  • Column Dimension: Attends to records in the same column (e.g., identifying a game-high score).
  • Time Dimension: Attends to a chronological window of historical records for that specific entity, utilizing position embeddings to track temporal sequences.

Layer 2: Record Fusion Gate

Recognizing that not every dimension is equally important for every statistic, a learned fusion gate dynamically weighs the row, column, and time representations based on their saliency, combining them into a single dense vector for each cell.

Layer 3: Row-Level Encoder

The fused cell representations are pooled to create a representation for the entire row (e.g., a player's total performance). A content selection gate then filters out unimportant rows, such as players with minimal impact on the game outcome.

Finally, the decoder uses a Dual Attention mechanism. it first attends to the most important rows and then zooms in on specific cells within those rows, utilizing a copy mechanism to ensure numerical precision in the generated text.

Experimental Results

The model was evaluated on the ROTOWIRE benchmark, which contains NBA game statistics paired with human-written summaries. The proposed model significantly outperformed strong baselines, including the Conditional Copy (CC) model and Neural Content Planning (NCP).

  • BLEU Score: Improved from 14.19 to 16.85.
  • Relation Generation (RG) Precision: Increased from 74.80% to 91.46%, demonstrating a vast improvement in factual accuracy.
  • Content Selection (CS) F1: Improved from 32.49% to 41.21%, indicating better identification of noteworthy statistics.

Human evaluations corroborated these metrics, with raters finding the generated texts more grammatical, coherent, and concise, with a notable reduction in factual contradictions.

Conclusion and Future Work

By explicitly modeling the multi-dimensional nature of tables—particularly the temporal dimension—this research provides a framework for generating more grounded and contextually aware natural language summaries. While the current work focuses on sports data, the 3D hierarchical encoding approach is highly applicable to other time-series tabular domains, such as automated financial reporting or medical patient monitoring. Future work may address the inherent noise in human-written reference texts to further refine model training and evaluation.

Summary updated

BibTeX
@inproceedings{gong2019table,
  author = {Heng Gong and Xiaocheng Feng and Bing Qin and Ting Liu},
  title = {{Table-to-Text Generation with Effective Hierarchical Encoder on Three Dimensions (Row, Column and Time)}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1310},
}
Figure