TL;DR
TEN (Table Explicitization, Neurosymbolically) is a new iterative framework that extracts structured tables from "flattened" text—the kind of messy, delimiter-free output you get from OCR or copy-pasting from a PDF. By combining a specialized "Structural Decomposition" prompting technique with a symbolic rule-based checker and an LLM-based critic, TEN significantly reduces hallucinations and outperforms purely neural baselines in both accuracy and user preference.
What Problem Does This Paper Address?
Extracting tables from documents is a classic "last mile" problem in data engineering. While tools like Tesseract or Tabula work well when visual layout information (coordinates, lines) is available, they fail when you only have linearized text—for example, when a user copy-pasts a table from a PDF into a text field.
In these "flattened" scenarios, row and column boundaries vanish, and delimiters become ambiguous. Purely symbolic (rule-based) systems are too brittle to handle irregular formatting, while Large Language Models (LLMs) often "hallucinate" structure, fabricate data, or misalign columns because they lack hard structural constraints. The authors call this task Table Explicitization: transforming an unstructured string into a well-defined structured format (like JSON or HTML).
Methods
TEN employs a neurosymbolic feedback loop consisting of three main components:
- Structural Decomposition Prompting: Instead of asking an LLM to "extract this table," TEN uses a specialized Chain-of-Thought (CoT) approach. It first instructs the LLM to identify table-like regions and propose row/column delimiters (the "schema") before filling in the actual data. This "structure-first" approach helps the model commit to a layout before getting bogged down in cell values.
- Symbolic Sanity Checker: The generated table is passed to a suite of deterministic, domain-agnostic rules. These rules check for "badness" indicators: mismatched parentheses, "merged" cells (multiple numbers in one cell), inconsistent data types within a column (e.g., a date in a numeric column), and empty rows.
- Critique-LLM: Rather than just giving the generator a "fail" grade, the output of the symbolic checker is fed to a second LLM. This "Critic" translates the dry rule violations into actionable, natural language guidance (e.g., "Column 2 is empty; you likely shifted the data to the right").
The system then enters a self-debug loop, regenerating the table based on the critique until it passes the checker or hits a maximum iteration limit.
Datasets
The authors evaluated TEN across several diverse benchmarks:
- PubTabNet & FinTabNet: Large-scale datasets of scientific and financial tables, processed via raw OCR to simulate real-world noise.
- WikiTables: Tables from Wikipedia which rely heavily on contextual richness.
- BrokenCSV: A dataset specifically designed with intentionally malformed data and inconsistent delimiters.
- FinReCon20: A new, curated dataset introduced in this paper, consisting of 20 complex tables manually extracted from real-world financial documents (balance sheets, earnings reports) to test "copy-paste" recovery.
Key Insights and Ideas
- "Structure First" Beats "Reason More": The authors found that their Structural Decomposition (SD) prompting outperformed standard Chain-of-Thought. By forcing the model to define the "skeleton" of the table first, they significantly narrowed the performance gap between smaller models (like o3-mini) and larger ones (like GPT-4).
- The Power of Actionable Feedback: Simply telling an LLM it made a mistake isn't enough. The "Critique-LLM" acts as a vital bridge, turning a symbolic "Signature Mismatch" error into a specific instruction to realign a header.
- Semantic vs. Structural Complexity: A surprising finding was that models performed better on "semantically rich" tables (like scientific papers) than on "structurally precise" ones (like financial spreadsheets). In scientific text, the words provide clues to the structure; in finance, a single missing delimiter in a sea of numbers can cause the entire table to collapse.
Key Results
- Accuracy Boost: On the challenging BrokenCSV dataset, TEN (using GPT-4o) achieved an Exact Match (EM) score of 81.6%, compared to 60.96% for the neurosymbolic baseline Revilio and 53.8% for the symbolic SplitText.
- Reduced Hallucination: Across all datasets, the iterative feedback loop consistently lowered hallucination rates and improved "Column Value Match" scores by 5–15 points.
- User Preference: In a study with 21 spreadsheet power users, tables generated by TEN were rated significantly more accurate (5.0 vs 4.3 on a 7-point scale) and were preferred for ease of verification and correction in over 60% of cases.
Limitations and Future Work
Despite its strengths, TEN still struggles with very large tables (wide or deep), where the probability of a single alignment error increases. The authors also noted that while the system is great at content fidelity, it sometimes diverges from the "ground truth" in how it handles hierarchical headers (e.g., flattening a multi-row header), which can hurt structural metrics like Tree Edit Distance (TED) even if the data is correct.
Future work includes extending TEN to handle more complex visual formatting (like font styles or indentation) and optimizing the loop to handle extremely large documents without hitting LLM context limits.
Summary updated