← Latest papers
💻 computer science

CTC Drafts, Transformer Verifies: Fast and Exact Khmer Text Recognition across Print, Scene and Handwriting

This paper proposes a fast and exact Khmer text recognition framework that employs a novel lossless speculative decoding scheme, pairing a non-autoregressive CTC draft model with an autoregressive Transformer target model to achieve AR-level accuracy while significantly reducing latency and sequential decoding steps across print, scene, and handwritten text.

Original authors: Marry Kong, Rina Buoy, Sovisal Chenda, Kimchheang Chhea, Nguonly Taing, Masakazu Iwamura, Koichi Kise

Published 2026-11-26
📖 7 min read🧠 Deep dive

Original authors: Marry Kong, Rina Buoy, Sovisal Chenda, Kimchheang Chhea, Nguonly Taing, Masakazu Iwamura, Koichi Kise

Original paper licensed under CC BY 4.0 (https://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

In the world of computer vision, teaching machines to read is a task that often splits into two distinct approaches. One method, known as non-autoregressive decoding, acts like a rapid scanner, attempting to identify every letter in a word simultaneously in a single, fast pass. It is quick but can stumble when letters are ambiguous or the image is messy, because it does not pause to consider how one letter might influence the next. The other method, called autoregressive decoding, is more deliberate. It reads one character at a time, using the context of what it has already read to predict the next symbol. This approach is far more accurate, especially for complex scripts, but it is slow, as the computer must wait for each step to finish before starting the next. For decades, engineers have faced a frustrating choice: speed or accuracy. You could have a fast system that makes mistakes, or a slow system that reads perfectly, but you could rarely have both. This dilemma is particularly acute for Khmer, the language of Cambodia, which uses a script with intricate shapes, no spaces between words, and a structure that makes it notoriously difficult for standard reading software to handle.

A team of researchers from Cambodia and Japan has now found a way to break this trade-off. They developed a new system that allows a computer to read Khmer text with the high accuracy of the slow, careful method while moving at nearly the speed of the fast, simultaneous method. Their solution does not rely on a single, monolithic brain but rather on a clever collaboration between two different types of reading engines working together. The system uses a fast, non-autoregressive decoder to make a quick first guess at the entire text, essentially drafting a rough version of what the words might be. It then passes this draft to a slower, more powerful autoregressive decoder, which acts as a verifier. This second engine checks the draft in a single, parallel sweep, accepting the parts that are correct and fixing the parts that are wrong. The result is a final output that is identical to what the slow, careful method would have produced on its own, but the process takes significantly less time because the system does not have to generate every single letter from scratch.

The researchers tested this approach on a wide variety of text, including printed documents, handwritten notes, and words captured in real-world scenes like street signs and billboards. They found that their new system, which they built using a hybrid vision transformer backbone, achieved the lowest error rates ever recorded for Khmer text recognition across these different types of images. In practical terms, the system reduced the time it took to read a line of text by more than six times compared to the standard slow method, and it required fewer than two sequential passes through the data to complete the job, compared to the dozens of passes the traditional method usually needs. Crucially, this speed did not come at the cost of precision; the system matched the accuracy of the slowest, most careful method exactly.

To understand why this is a significant leap forward, consider the challenge of reading a handwritten note where a letter might look like two different characters depending on the context. A fast scanner might guess the wrong letter immediately and move on, locking in an error. A slow, careful reader would look at the surrounding letters to figure out the correct one, but it would take a long time to do so. The new system combines the best of both worlds: the fast scanner provides a quick starting point, and the careful reader instantly validates and corrects it. The researchers trained their models on millions of synthetic images and thousands of real-world examples, including difficult cases like blurred text, curved signs, and low-light conditions. They discovered that by using a specific type of visual encoder based on a hybrid vision transformer, they could capture the fine details of the Khmer script better than previous methods that relied on older convolutional networks.

The study also explored how the system handles different types of input data. They found that the system works best when it is allowed to adapt to the specific nature of the text, whether it is a clean printed document or a messy handwritten note. By using a flexible routing mechanism that can blend different processing pathways, the model learns to handle the unique challenges of each text type without needing separate software for each one. The researchers confirmed that their method works consistently across printed, scene, and handwritten text, outperforming existing commercial and open-source tools that struggle with the complexities of the Khmer script. For instance, while other systems failed dramatically on handwritten samples, producing error rates that made the text unreadable, this new approach maintained a high level of accuracy.

One of the most striking findings was how the system's speed improved as the models became more complex. Usually, making a computer model smarter and more accurate requires more computing power and time, which slows it down. However, in this case, the researchers found that using a larger, more powerful model actually made the overall process more efficient when paired with their new decoding strategy. The larger model was better at making the initial draft, which meant the verifier had fewer mistakes to correct, leading to a faster final result. This suggests that the traditional assumption that bigger models are always slower may not hold true when using this specific collaborative approach.

The researchers also compared their method against several other existing techniques, including those that use different types of neural networks and decoding strategies. They found that their approach was superior in almost every category, delivering the best balance of speed and accuracy. They noted that while some other fast methods could produce results quickly, they often made too many errors to be useful for real-world applications. Conversely, the most accurate methods were often too slow for practical use in applications like real-time translation or document digitization. The new system bridges this gap, offering a solution that is both fast enough for real-time use and accurate enough for professional applications.

The implications of this work extend beyond just speed and accuracy. By making high-quality text recognition accessible for a low-resource language like Khmer, the technology opens the door for better digital preservation of historical documents, more efficient processing of government records, and improved accessibility for people who rely on digital text. The researchers made their code, models, and datasets available to the public, allowing others to build upon their work and apply it to other languages and scripts. They acknowledged that while their system is a major step forward, there is still room for improvement, particularly in handling extremely difficult cases like ancient palm-leaf manuscripts or text with severe damage. However, the core innovation of using a fast draft and a slow verifier to achieve both speed and accuracy represents a fundamental shift in how machines can be taught to read complex human languages.

In the end, the success of this project lies in its simplicity of concept and its sophistication of execution. Instead of trying to force a single model to be both fast and accurate, the researchers let two models work together, each doing what it does best. The fast model provides the momentum, and the accurate model provides the direction. The result is a system that reads Khmer text with a fluency and speed that was previously thought impossible, proving that sometimes the best way to move forward is to let different parts of the system work in harmony rather than in competition. This approach not only solves a specific problem for Khmer text but also offers a new blueprint for how artificial intelligence can be designed to handle complex, real-world tasks where speed and precision are both essential.

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 →