Introduction
The task of text-to-table generation involves extracting structured information from narrative text—for example, converting a sports recap into a box score or a restaurant review into a set of attributes. Traditionally, this has been approached by "serializing" the table, flattening it into a single long string of tokens for a standard sequence-to-sequence (seq2seq) model.
However, this approach suffers from two fundamental flaws. First, it introduces order bias: in most tables, the order of rows is arbitrary, yet seq2seq models penalize any deviation from a fixed training order. Second, it leads to error propagation: because tokens are generated autoregressively, a single mistake early in a long table sequence can cause the entire structure to collapse. This paper proposes a hybrid Sequence-to-Sequence&Set model to address these issues by treating table rows as an unordered set rather than a sequence.
Methodology
The core innovation of this work is the decomposition of table generation into two distinct components: a sequential header and a set-based body.
Hybrid Architecture
The model first generates the table header using a standard autoregressive approach. This is logical because the header defines the table's schema and column order. Once the header is established, the Table Body Generator produces all rows simultaneously as a set. To maintain structural integrity, the model uses learnable row and column embeddings to distinguish between different cells while ensuring each row contains the correct number of columns.
Bipartite Matching
Because the body rows are generated as a set, there is no predefined order to compare them against the ground truth during training. The authors utilize the Hungarian Algorithm to perform bipartite matching. This process finds the optimal one-to-one assignment between generated rows and target rows, typically using the first cell (the "anchor" or primary key) to calculate matching costs. This allows the model to learn the content of the table without being forced into a specific row order.
Experimental Results
The model was evaluated on four diverse benchmarks: Rotowire (NBA stats), E2E (restaurant reviews), WikiTableText, and WikiBio.
Performance and Robustness
The Seq2Seq&Set model achieved state-of-the-art (SOTA) results across all datasets, particularly in Data Cell F1 scores. A key finding was the model's robustness to table length. In standard seq2seq models, performance degrades as tables get longer due to the accumulation of errors. In contrast, the parallel nature of the set-based generator maintains high accuracy even for complex, multi-row tables.
Efficiency Gains
By bypassing the autoregressive bottleneck for the table body, the model achieves significant inference speedups. On the E2E and Rotowire Player datasets, the model was approximately 3.5x faster than standard BART-based seq2seq models. Furthermore, the structural constraints imposed by the architecture virtually eliminated "format errors" (e.g., rows with missing columns) that frequently plague traditional models.
Conclusion and Future Work
The Sequence-to-Sequence&Set model effectively bridges the gap between structured data and natural language processing. By recognizing that table rows are inherently a set, the model improves both accuracy and efficiency. While the current approach excels at standard tabular formats, future work will explore more complex layouts, such as tables with hierarchical headers or merged cells, and incorporate deeper logical reasoning capabilities.
Summary updated