A Benchmark of State-Space Models vs. Transformers and BiLSTM-based Models for Historical Newspaper OCR
This paper introduces the first OCR architecture based on State-Space Models (Mamba) for historical newspapers, demonstrating that it achieves competitive accuracy with significantly improved computational efficiency and memory scaling compared to Transformer and BiLSTM-based baselines.
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 a librarian in a massive, ancient library. Your job is to read millions of old, crumbling newspapers and type out exactly what they say so people can search for them on computers. These newspapers are tricky: the ink is faded, the paper is stained, the fonts are weird (some look like gothic script), and the text is sometimes squished together in messy columns.
This paper is about a new tool the librarians are testing to do this typing job faster and better.
The Problem: The "Over-Thinker" vs. The "Speed Reader"
For the last few years, the best tools for this job have been based on Transformers. Think of a Transformer like a meticulous, over-achieving student.
- How it works: When it reads a sentence, it looks at every single word and checks how it relates to every other word in the sentence to understand the context.
- The Good: It's incredibly smart and accurate.
- The Bad: It gets overwhelmed. If the sentence is short, it's fine. But if the sentence is a whole paragraph (like a whole newspaper column), this student has to do a massive amount of math to connect every word to every other word. It gets slow, uses up all the computer's memory, and takes forever to finish the job.
The authors of this paper asked: "Is there a way to be just as smart, but much faster?"
The New Contender: The "Mamba" (State-Space Models)
Enter the Mamba model. Think of Mamba like a highly efficient, focused speed-reader.
- How it works: Instead of looking back at everything it just read to understand the current word, Mamba keeps a running summary in its "mind" (a state). It updates this summary as it reads, keeping only the most important information and forgetting the rest.
- The Analogy: Imagine reading a long novel.
- The Transformer stops after every sentence to re-read the whole book from page one to make sure it understands the current sentence.
- The Mamba just remembers the plot so far and moves to the next sentence. It doesn't need to re-read the whole book.
What Did They Do?
The researchers built a new system using this "Mamba" technology and tested it against the old "Transformer" students and some other older methods (like BiLSTMs, which are like a slightly older, slower version of the speed-reader).
They tested these systems on real, messy, historical newspapers from Luxembourg. They didn't just test short words; they tested:
- Single lines of text.
- Whole paragraphs (which are much longer and harder).
They also tested three different "reading styles" for the Mamba:
- Autoregressive: Reading one letter at a time, guessing the next based on the previous ones (like writing a story).
- CTC: Looking at the whole image and guessing the letters all at once, then cleaning up the mess.
- Non-Autoregressive: A middle-ground approach.
The Results: The Race is On
Here is what happened when they put them to the test:
1. Accuracy (Who got the words right?)
- The Good News: All the modern AI models (Transformers, Mamba, etc.) were actually very good. They all got about 98% of the letters right on short lines.
- The Bad News: When the text got very long (whole paragraphs) or very messy, the "over-achieving student" (Transformer) started to struggle with the sheer volume of data, while the "speed-reader" (Mamba) stayed steady.
2. Speed and Memory (Who finished first?)
- The Big Winner: The Mamba model was the clear winner for long texts.
- It was 2 times faster than the best Transformer model when reading whole paragraphs.
- It used half the computer memory.
- The Analogy: If the Transformer needs a giant warehouse to store its notes while reading a long paragraph, the Mamba only needs a small notebook. This means you can run many Mamba models at the same time on one computer, but you'd need a supercomputer to run the same number of Transformers.
3. The "Off-the-Shelf" Test
They also tested famous, ready-made tools like Google's Gemini and Tesseract.
- Result: These tools were okay, but they weren't as good as the custom-trained models. It's like using a generic dictionary vs. a specialist who has studied only 19th-century newspapers for years.
The Takeaway
This paper proves that State-Space Models (Mamba) are a game-changer for digitizing history.
- For short notes: The old methods are fine.
- For massive archives (millions of pages): The new Mamba models are the future. They are fast, they don't crash your computer, and they are just as accurate as the heavy, slow giants.
In simple terms: The authors found a way to make the computer "read" history without getting a headache from the length of the text. This means libraries can finally digitize their entire collections much faster and cheaper, making our history accessible to everyone.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.