
MinerU-Diffusion: Rethinking Document OCR as Inverse Rendering via Diffusion Decoding
About this episode
🤗 Upvotes: 112 | cs.CV
Authors:
Hejun Dong, Junbo Niu, Bin Wang, Weijun Zeng, Wentao Zhang, Conghui He
Title:
MinerU-Diffusion: Rethinking Document OCR as Inverse Rendering via Diffusion Decoding
Arxiv:
http://arxiv.org/abs/2603.22458v1
Abstract:
Optical character recognition (OCR) has evolved from line-level transcription to structured document parsing, requiring models to recover long-form sequences containing layout, tables, and formulas. Despite recent advances in vision-language models, most existing systems rely on autoregressive decoding, which introduces sequential latency and amplifies error propagation in long documents. In this work, we revisit document OCR from an inverse rendering perspective, arguing that left-to-right causal generation is an artifact of serialization rather than an intrinsic property of the task. Motivated by this insight, we propose MinerU-Diffusion, a unified diffusion-based framework that replaces autoregressive sequential decoding with parallel diffusion denoising under visual conditioning. MinerU-Diffusion employs a block-wise diffusion decoder and an uncertainty-driven curriculum learning strategy to enable stable training and efficient long-sequence inference. Extensive experiments demonstrate that MinerU-Diffusion consistently improves robustness while achieving up to 3.2x faster decoding compared to autoregressive baselines. Evaluations on the proposed Semantic Shuffle benchmark further confirm its reduced dependence on linguistic priors and stronger visual OCR capability.
Interactive timestamps
Jump to segmentGet every episode summarized
Each time Daily Paper Cast publishes, we email you a written briefing from the transcript — the topics, who appeared, and any specific claims, with the ad reads skipped.
Email me new episodesFree for 3 shows. No card needed.
Hosts & guests
Transcript ready
250 searchable segments. Every word is indexed and playable.
Full transcript
Daily Paper Cast — MinerU-Diffusion: Rethinking Document OCR as Inverse Rendering via Diffusion Decoding. Machine-transcribed; use the interactive transcript above to jump the player to any line.
0:00Welcome to the Daily Papercast, your go-to podcast for the latest insights from the world of AI, NLP, CV, and much more. I'm Echo, your host for today, and joining me on this deep dive journey is my co-host, Nova. Hey Echo, hey everyone, we have a fascinating episode lined up for you today. We're breaking down a brand new paper from Hugging Faces Daily Paper List. This episode is packed with insights across four main sections. Introduction, methods, experiments, and related work. Each section will take about four to five minutes, so stay tuned folks. Absolutely, Nova. Today's paper is titled, and stick with me, it's a mouthful, minor U-Defusion, rethinking document OCR as inverse rendering, via diffusion decoding. It's authored by Junbo Niu, Zheng Liu, and the last author is Minghua Dang from the Chinese University of Hong Kong. Exciting stuff, right? Totally. Now let's dive right into the introduction.
1:01This section sets the stage for the entire paper, giving us insights into the motivation behind this research, the key objectives, and the contributions it makes to the field. All right then, here we go. The paper's introduction starts off by discussing the recent advancements in vision language models, or VLMs, for document optical character recognition, or OCR. These VLMs encode textual images into visual representations and generate structured text sequentially. That is, left to right autoregressive decoding. This method has shown strong performance across various benchmarks. Exactly, Echo. But despite their effectiveness, these autoregressive methods come with several limitations. The main issues are efficiency and reliability, particularly when dealing with complex layouts and long documents. For instance, tables and formulas and documents are highly structured and present quite a challenge. Right. And the author's note that the ideal OCR system should rely primarily on visual evidence for character recognition, rather than on semantic
2:06completion from a language model. However, the current autoregressive methods inherently depend on linguistic context, which can sometimes lead to errors, especially when visual evidence is ambiguous. This brings us to the core motivation of the paper. The authors propose a shift from autoregressive decoding to diffusion-based decoding. They introduce minor U diffusion, a unified framework tailored specifically for document OCR. So what's the big deal about diffusion-based decoding, Echo? Great question, Nova. Diffusion language models, or DLMs, use a non-autoregressive generative framework based on discrete diffusion processes. Essentially, it involves a process where tokens in a clean sequence are progressively replaced by mask tokens under a continuous corruption schedule. Over time, this approach helps reconstruct the sequence with improved accuracy and efficiency by leveraging the global context rather than relying on the sequential order of tokens.
3:07Got it. And this approach contrasts sharply with autoregressive models, which generate each token one by one in sequence. The diffusion-based method allows for parallel generation, aiming to reduce the latency and improve the efficiency of OCR tasks, especially for long and complex documents. Exactly. By using minor U diffusion, the authors aim to address the inefficiencies and limitations of autoregressive decoders. Their framework integrates blockwise diffusion decoding and an uncertainty-driven curriculum learning strategy. Blockwise diffusion decoding. That sounds intriguing. Could you break that down for us? Certainly. Blockwise diffusion decoding is a method that processes blocks of text simultaneously, which contrasts with the token-by-token approach of autoregressive methods. This means the model can decode multiple tokens in parallel, which significantly improves the processing speed and efficiency. Essentially, it divides the document into blocks and
4:11reconstructs these blocks concurrently. Ah, I see. So it's like dividing a big task into smaller chunks and working on them at the same time. Pretty smart. Exactly. The authors also introduce an uncertainty-driven curriculum learning strategy. This helps the model refine its predictions by focusing on more uncertain or difficult parts of the document, ensuring higher accuracy in the final output. That's clever. By targeting the tricky parts, the model can improve its overall robustness and performance. So, to sum up, the introduction lays out a solid case for why a shift to diffusion-based decoding in OCR can be beneficial. The authors aim to provide a framework that is not only more efficient, but also more robust and accurate, especially in complex scenarios. Absolutely. The introduction sets the stage for the rest of the paper, giving us a clear understanding of the motivation and objectives behind this research. And with that, we wrap up the introduction section of our podcast episode. All right, Nova,
5:16let's dive into the meat of this beast, the method section. This is where the authors really lay out their approach for tackling document OCR with diffusion-based decoding. Shall we start with the overall problem formulation? Yes, let's do that. So, the core idea here is quite interesting. The authors frame document OCR as inverse rendering via diffusion. Essentially, they treat the OCR process as converting a 2D document into a 1D token sequence, but with a twist. A twist? Tell me more. Well, traditional OCR methods often assume a causal sequence, processing documents from left to right or top to bottom. But in this paper, they propose to model the OCR output as a spatially coupled discrete random field rather than a directional sequence. This means they consider the spatial relationships in the document layout rather than just the order of the words. Ah, I see. This approach can accommodate the complex structure of documents much better.
6:17Instead of just sequential text, it can also handle elements like tables, formulas, and layout markers more naturally. Exactly. The authors call this unified structured token sequence, and it encompasses not just text, but also layout markers, table delimiters, and mathematical operators within a single sequential interface. The idea is to serialize this 2D structure into a 1D sequence for easier processing. Okay, so that's the big picture. Now, how do they actually implement this diffusion-based decoding? They introduce what they call minor u-diffusion, a diffusion-based approach tailored for OCR. In diffusion models, the idea is to iteratively refine an initial noisy state towards a cleaner, more structured target state through a series of denoising steps. Oh, it sounds a bit like the process of decanting wine. You filter out the noise progressively to get to the pure stuff. Ha-ha, quite the analogy echo. But yes, in essence, it's a bit like concentrating the useful
7:19information from a noisy starting point. So, how do they ensure that this denoising process aligns well with the document structure? Great question. They use a block attention mechanism instead of full attention. Traditional full attention methods have quadratic complexity, which becomes impractical for long documents. By using block attention, they introduce structural locality into the refinement process, focusing on smaller, more manageable chunks of the sequence at each step. Hmm, focusing on localized regions make sense given the complex layouts of documents. How does the block attention make the process efficient? Exactly. With block attention, each block operates semi-independentry, which makes it both more efficient computationally and more structurally stable. This reduces the risk of long-range errors that can arise from global full attention and ensures that each part of the document is given appropriate focus.
8:20Moreover, they leverage the conditional independence assumption where each token can be predicted independently given the input and the partially observed sequence. This is particularly useful in OCR, where the mapping between image and text is largely deterministic. Got it. The authors are solving a big computational problem here by breaking it down into smaller independent chunks. What do they say about handling the various elements in documents like tables and formulas? Good point. They propose a two-stage curriculum learning strategy to enhance the model's understanding. The first stage involves diversity-driven foundational learning to teach the model the basics across broad categories. Then, in the second stage, they focus on uncertainty-driven boundary refinement, where the model hones in on more complex cases that it initially found difficult. Sounds smart. By iteratively challenging the model with harder cases, they can refine its capacity to handle edge cases. So, what's the first stage all about? The first stage, diversity-driven foundational learning,
9:25aims to give the model exposure to a wide variety of document structures and contents. They use a broad dataset to ensure the model learns from a rich set of examples. This forms the foundational layer of learning, focusing on diverse structures such as paragraphs, tables, and formulas. And how do they navigate the noisy annotations that come with such diverse datasets? To mitigate the noise, they organize the curriculum in a way that starts with simpler, more clearly labeled examples, and gradually moves towards more complex, noisier ones. This helps the model build up a robust understanding gradually, rather than overwhelming it with hard cases early on. That definitely sounds like a solid plan. Then, what happens in the second stage, the uncertainty-driven boundary refinement? In the second stage, they focus on the boundary cases, the tricky ones, that are hard to get right. They do something called hard case mining, using an inference consistency method.
10:25This involves running multiple stochastic inference passes on each sample and measuring consistency. Low consistency indicates high uncertainty, flagging the sample as a hard case. Ah, so they're basically identifying the hardest nuts to crack? Then what do they do with those? Exactly. These samples, now identified as hard cases, are then passed through an AI-assisted human annotation pipeline to produce high precision labels. These refined samples are combined with randomly sampled easier cases from the earlier stage to create the fine-tuning dataset for the second stage of training. Aha, and I bet this helps in ensuring that the model doesn't get too comfortable and keeps learning to handle almost everything thrown at it. Precisely. Additionally, they use an adaptive sample waiting system, where samples with higher uncertainty are given more weight during training. This ensures the model pays more attention to refining its understanding of these difficult cases. Wow. They've really thought this through.
11:26It's like giving more practice problems on the tricky questions to a student who's okay with the basics, but struggles with advanced problems. Exactly. It's all about those iterative refinements to ensure the model can handle a broad spectrum of document complexities. That's awesome. It sounds like a solid methodology to me, but I bet there's more in their evaluation and experimental setup, which we'll dive into next. Yes, that's the end of the method section. They've definitely laid a strong foundational approach with diffusion-based decoding and a two-stage curriculum learning. Let's take a short break, and when we're back, we'll delve into how they went about their experiments and the results. Stay tuned. All right, let's dive into the most exciting part, the experiments and results. Buckle up everyone. Yep. This is where the rubber meets the road. So, echo, what's the layout for our experiment section? The paper lays it out comprehensively. They start with the experimental setups, including the data, models, and optimization strategies. Then they showcase results across
12:32different document parsing tasks, followed by ablation studies, fascinating stuff. Let's kick off with the experimental setups. What's the lowdown on the data they're using? All meta-training data are derived from the minor U2.5 data set, which consists of approximately 7.5 million samples. This data set mainly focuses on Chinese and English document parsing tasks, which means no dedicated evaluation for low resource languages was conducted. Whoa, that's a lot of data. And what models and optimization strategies did they employ? They used a block-wise attention DVLM architecture. Specifically, the SDAR 1.7B chat B32 model with a block size of 32. The key difference from the minor U2.5 architecture is the removal of M-ROPE. They fine-tuned the minor U diffusion on the LLVA next data set for visual question answering before specializing it for document OCR. Interesting approach. Now let's get into the results.
13:37How does minor U diffusion fare in full document parsing tasks? According to the results on Omni-Doc Bench V1.5, minor U diffusion achieved an overall score of 88.94 under the fully automatic setting without GT layout. With GT layout, it further improved to 93.37 overall, which is pretty impressive considering its close to top tier AR-based systems. That's solid performance. How about the element specific parsing tasks? Let's start with table recognition. For table recognition, minor U diffusion was competitive, achieving 81.18, 88.66 Teds, Teds S on OCR Bench V2 and 73.77 82.06 on CC OCR. It either matched or surpassed several strong AR baselines in the same evaluation setting. Not bad at all. And how did it handle formula recognition? In formula recognition, it did remarkably well, scoring 91.6 in CPE, HWE,
14:46SE, and even 96.8 in SPE on the Univer test. So across handwritten, printed, and complex settings, it was consistently strong. Seems like minor U diffusion is quite robust across various tests. What about the ablation studies? Anything not worthy there? Yes, the ablation studies are thorough. They looked into the impact of confidence thresholds on decoding parallelism. Essentially, as they increase the threshold from 0.5 to 0.99, both tokens per forward, TPF, and throughput per second TPS decreased. Low thresholds allowed greater parallel decoding and higher throughput, while higher thresholds reduced efficiency but improved accuracy. So it's a trade-off between speed and accuracy. Make sense. Did they compare different decoding strategies to? Absolutely. They compare static decoding with dynamic scheduling. Dynamic
15:46scheduling outperforms static step six in both overall and sub-task metrics while achieving higher throughput. This shows that confidence-based adaptive token selection effectively balances efficiency with accuracy. Interesting insights. Any other highlights from the ablation studies worth mentioning? One more thing. They analyzed full Atten versus Block Atten diffusion. They found that Block Atten, which involves less attention computed per step, maintains stability without the redundancy seen in over-provisioned full Atten settings. This balances efficiency with stability. Looks like their experimental setup was pretty rigorous and thorough. Makes the results even more compelling. Indeed. So that's a wrap on the experiments and results section. Minor U diffusion shows competitive performance across the board with innovative improvements in efficiency and accuracy. Great stuff. Let's move on to the next section. Stay tuned, folks. So Nova, it's time to dive into the related work section.
16:49Always fascinating to see how research builds on the shoulders of giants, right? Absolutely. Echo. You know, it's like connecting the dots in a bigger picture. This paper provides an interesting perspective on vision-language models for document OCR, tracing how we got to where we are now with technologies like Minor U diffusion. Right. The paper mentions that document OCR has really shifted from traditional modular pipelines to end-to-end vision-language models or VLMs, you know? Yes, and these models essentially generate structured text directly from the images. It's akin to jumping straight from raw pixels to readable text without the intermediary steps we used to have in traditional systems. Exactly, Nova. The paper highlights systems like Minor U 2.5 and paddle OCR VL, which use auto-regressive or AR decoters to produce text token by token. And while this paradigm simplifies things, it also comes with some baggage.
17:50Specifically, the inference latency or the delay in generating tokens scales linearly with the length of the output text. That can be quite a bottleneck for long documents. Not to mention the added dependence on language priors, which might not always match the visual evidence leading to errors or semantic hallucinations as the paper calls it. Interesting term, don't you think? Definitely a term that catches the ear. Now, building from these limitations, the paper introduces alternative paradigms. It brings up diffusion-language models or DLMs that use discrete diffusion processes. Right. And in these models, tokens in a clean sequence are progressively replaced by mask tokens under a continuous corruption schedule. This method is termed mask diffusion, and it allows for non-auto-regressive generation. What's particularly interesting is that this approach aligns better with the deterministic nature of document OCR tasks. It enables parallel decoding of long
18:51textual segments while maintaining global coherence. Quite a game changer. When you put it that way, it makes a lot of sense, Nova. By allowing for parallel multi-token updates, it significantly boosts inference efficiency, especially for long documents. Definitely a crucial point for handling large-scale OCR tasks. Indeed, the discussion in the paper also touches on the stability issues in high-resolution settings with current diffusion-based models. However, it suggests that these can be mitigated through better model design and training strategies. A promising area of improvement, for sure. The MinorU diffusion approach, as proposed here, combines blockwise diffusion decoding with uncertainty-driven curriculum learning. They really seem to be aiming for a balance between recognition accuracy, robustness, and decoding efficiency. That's right. The related work section crucially sets up how MinorU diffusion fits into the broader landscape of document OCR, and showcases its distinct advantages over AR-based systems.
19:55It's fascinating, really. This kind of innovation not only aims to improve efficiency, but also addresses the robustness aspect by linking the whole process more directly to the visual signals under varied conditions. Exactly. Echo. And addressing robustness is key, because real-world documents are rarely as clean and predictable as benchmark data sets suggest. They often come with all sorts of visual noise and distortions. You mean those perfectly aligned, noiseless documents we all wish were real? If only. But seriously, navigating the variability of real-world documents is no small feat, and that's where diffusion models potentially have an edge. Absolutely. So that's a wrap on the related work section. It's clear how MinorU diffusion builds on existing technologies and seeks to address the limitations inherent to those systems. Moving forward, it'll be interesting to see how it holds up in real-world applications. I'm excited to see that too, Echo. But for now, let's move on to the next part of our discussion.
20:57All right, folks. We've covered a lot of ground today discussing MinorU diffusion. Let's sum it all up with the key takeaways from this fascinating research. Nova, where do we begin? Absolutely, Echo. So MinorU diffusion redefines how we approach document OCR by framing it as an inverse rendering problem, shifting from autoregressive decoding to diffusion-based decoding. Ah, right. And this shift allows for what they call blockwise parallel diffusion decoding, which really improves the efficiency of long sequence inference, doesn't it? Exactly. Alongside this, the paper introduced a two-stage curriculum learning strategy. The first stage focuses on broad foundational learning using a diverse data set. And the second stage refines this further using an uncertainty-driven approach, especially honing in on those tricky edge cases. That's a smart move, and it sounds like their approach significantly boosts not only recognition accuracy, but also robustness and decoding efficiency, which are critical and practical OCR tasks.
22:00Yeah, it's like OCR on steroids. They ran extensive experiments and found that MinorU diffusion holds its own against state-of-the-art models, especially under challenging conditions. It's remarkably resilient to disruptions in semantic structure. You got to love that data-driven robustness. For sure, Nova. And if I remember correctly, they presented a new benchmark called Semantic Shuffle, which validated their hypothesis about the visual decoding capabilities, right? You got it. The Semantic Shuffle showed how MinorU diffusion maintains performance, even when the semantic coherence of text is disrupted, which is a significant indicator of its reliance on solid visual evidence rather than linguistic priors. Hey, forget about those old school methods just filling in blanks with whatever fits linguistically. MinorU diffusion sticks to what it sees. I like that method. It feels more authentic, you know? Totally agree. Plus, the results across different benchmarks like tables and formulas were
23:02quite impressive. This suggests that MinorU diffusion isn't just good at parsing text, but excels in understanding complex structures as well. Yep, that comprehensive ability is game changing. Before we wrap up, any thoughts on what this means for future OCR systems? Well, with the significantly improved efficiency and resilience demonstrated by diffusion-based models, we could expect a shift in the industry towards these new paradigms. It opens up possibilities for more reliable, faster, and contextually aware OCR applications. Sounds like we're in for some exciting times ahead. Well, folks, that's a wrap for today's episode of Daily Papercast. We hope you enjoyed diving into the details of MinorU diffusion as much as we did. Absolutely. Echo. Thanks for joining us today, everyone. Don't forget to tune in next time. We've got more cutting-edge research to unpack. And as always, keep questioning, keep learning. Bye for now, and stay curious.
More episodes
More from Daily Paper Cast

Seedance 2.0: Advancing Video Generation for World Complexity
Daily Paper Cast

GameWorld: Towards Standardized and Verifiable Evaluation of Multimodal Game Age...
Daily Paper Cast

RationalRewards: Reasoning Rewards Scale Visual Generation Both Training and Tes...
Daily Paper Cast

SpatialEvo: Self-Evolving Spatial Intelligence via Deterministic Geometric Envir...
Daily Paper Cast