← Latest papers
💻 computer science

FastTab: A Fast Table Recognizer with a Tiny Recursive Module and 1D Transformers

FastTab is a low-latency table structure recognition model that combines a lightweight Tiny Recursive Module for global reasoning with axial 1D Transformers to accurately predict grid structures and cell spans without relying on autoregressive HTML decoding.

Original authors: Laziz Hamdi, Amine Tamasna, Pascal Boisson, Thierry Paquet

Published 2026-05-22
📖 5 min read🧠 Deep dive

Original authors: Laziz Hamdi, Amine Tamasna, Pascal Boisson, Thierry Paquet

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are handed a messy, hand-drawn map of a city. Your job is to redraw it perfectly on a computer, figuring out exactly where every street (row) and avenue (column) goes, which buildings are merged together, and which streets are just headers. This is the challenge of Table Structure Recognition (TSR): turning a picture of a table into a clean, digital grid.

Most current AI models try to solve this like a novelist writing a story one word at a time (generating HTML code). This is slow and prone to getting lost in the middle of the sentence.

FastTab is a new, super-fast AI model that takes a different approach. Instead of writing a story, it acts like a surveyor with a laser grid. Here is how it works, broken down into simple concepts:

1. The "Tiny Brain" (The Tiny Recursive Module)

Imagine you are looking at a table from far away. You need to know: "How many rows are there? How many columns? Where is the header?"

  • The Old Way: The AI might try to guess these details by looking at every single pixel individually, which is exhausting.
  • FastTab's Way: It uses a Tiny Recursive Module (TRM). Think of this as a tiny, super-smart assistant who looks at the whole picture, makes a quick guess, then looks at the picture again to refine that guess, and does this a few times (about 6 times).
  • The Analogy: It's like squinting at a blurry photo, then squinting a bit harder, then adjusting your glasses. After a few quick "squints," the assistant knows exactly how big the table is and where the headers are, without needing to read every single word.

2. The "One-Dimensional Scanners" (Axial 1D Transformers)

Once the AI knows the general size, it needs to draw the lines.

  • The Problem: Tables have long rows and long columns. If you look at the whole table at once, it's like trying to read a whole book in one glance.
  • FastTab's Way: It splits the problem. It uses 1D Transformers to scan the table in two separate passes:
    1. Row Scanner: It looks only horizontally, like a laser beam sweeping across a row to find where the vertical lines should go.
    2. Column Scanner: It looks only vertically, like a laser beam sweeping down a column to find where the horizontal lines should go.
  • The Analogy: Imagine a librarian organizing books. Instead of looking at the whole shelf at once, they scan one row of books to find the gaps, then scan one column of shelves to find the gaps. This is much faster and keeps the AI from getting confused by the whole picture at once.

3. The "Merged Cell Detective" (ROI-Aligned Pooling)

Sometimes, a cell in a table spans across two or three columns (a "merged cell").

  • The Old Way: The AI might guess randomly where the merge happens.
  • FastTab's Way: Once the grid lines are drawn, the AI looks only at the specific box where a cell starts (the top-left corner). It asks, "Does this cell stretch to the right? Does it stretch down?"
  • The Analogy: It's like a real estate agent who has already drawn the property lines on a map. They only need to stand at the front door of a house to ask, "Does this house cover two lots?" They don't need to walk the whole property to know.

Why is this a big deal?

  • Speed: Because it doesn't write a long story (HTML code) word-by-word, it is incredibly fast. The paper claims it can process tables in real-time (about 40+ frames per second on powerful computers, and still over 4 frames per second on regular laptops).
  • Accuracy: It is just as good as the slow, complex models at getting the structure right.
  • Robustness: The authors tested it on "anonymized" tables (where the text is blacked out or blurred to hide secrets). FastTab still works well because it focuses on the shape and lines of the table, not the words inside it.
  • Curved Tables: They even showed it can handle tables that are slightly bent or curved (like a photo taken of a table on a curved surface), by allowing the "laser lines" to bend slightly.

Summary

FastTab is like a high-speed construction crew. Instead of building a table brick-by-brick (word-by-word), they:

  1. Use a quick team leader (TRM) to decide the blueprint size.
  2. Send laser scanners (1D Transformers) to draw the straight lines for rows and columns.
  3. Have a specialist check the corners to see if any blocks are merged.

The result is a digital table that is built in a fraction of a second, with high precision, even if the original photo is a bit messy or the text is hidden.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →