← Latest papers
💻 computer science

DocPO: Advancing Document Policy Optimization via Tailored Step-Aware Rewards

This paper introduces DocPO, a document policy optimization framework that employs a novel Step-Aware Annealing mechanism to sharpen reference-based rewards, thereby overcoming the weak discriminative signals of traditional edit-distance metrics and significantly improving reinforcement learning performance for high-accuracy document parsing.

Original authors: Yunhao Wang, Binghong Wu, Zhenyu Huang, Jiacheng Shi, Shuo Huang, Tinghao Yu, Feng Zhang

Published 2026-08-04
📖 6 min read🧠 Deep dive

Original authors: Yunhao Wang, Binghong Wu, Zhenyu Huang, Jiacheng Shi, Shuo Huang, Tinghao Yu, Feng Zhang

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 teaching a robot to read a messy, handwritten recipe card. The robot has to figure out not just the words, but also where the ingredients list ends and the cooking steps begin, and how to handle a table of measurements or a complex math formula. This is the world of Document Parsing, a branch of Artificial Intelligence where computers try to turn 2D images of paper (or screens) into clean, organized digital text. For a long time, the best way to teach these robots was Supervised Fine-Tuning (SFT), which is like a teacher showing the robot thousands of perfect examples and saying, "Copy this exactly." But just like a student who memorizes answers without understanding, the robot sometimes gets confused when it sees something slightly different.

To fix this, scientists started using Reinforcement Learning (RL). Think of this as a video game where the robot tries to solve the puzzle, and every time it gets it right, it gets a "score" or a reward. The robot learns to play better by trying to get the highest score possible. However, there's a tricky problem: when the robot is already pretty good, the scores it gets for "almost perfect" and "perfect" are almost identical. It's like getting a 98% and a 99% on a test; the difference feels tiny, so the robot doesn't know exactly which small change to make to get to 100%. This paper tackles that specific "high-score plateau" problem.


The Problem: The Robot is Stuck on "Almost Perfect"

Meet DocPO, a new method designed to help these document-reading robots break through their high-score plateaus. The researchers found that when a robot is already doing a great job, the usual way of giving it feedback (the "reward") becomes too fuzzy.

Imagine you are training a dog to fetch a ball. If the dog brings the ball back 90% of the way, you might say "Good job!" If it brings it 95% of the way, you also say "Good job!" The dog hears the same thing for both, so it doesn't know that bringing it all the way is much better. In the world of document parsing, this happens when the robot is already getting 90% of the text or table structure right. The computer's "score" for a 90% correct answer and a 95% correct answer is so close that the robot can't tell the difference, and it stops learning how to get the last few details perfect.

The Solution: A "Step-Aware" Reward System

The team at Tencent Hunyuan proposed a clever fix called Step-Aware Annealing (SAA). Think of this as a smart coach who changes the rules of the game as the player gets better.

In the beginning, when the robot is still learning the basics, the coach gives gentle, broad feedback. "Good job!" is fine. But as the robot starts getting really good (the "high-accuracy regime"), the coach switches to a sharper, more critical ear. Suddenly, the difference between a 90% score and a 95% score isn't just a tiny gap; the coach amplifies it, making the 95% score feel much better than the 90%. This "sharpening" forces the robot to pay attention to the tiny, subtle details it was previously ignoring.

The magic of SAA is that it doesn't just make the scores higher; it changes the curvature of the reward over time. It starts soft and slowly gets "spikier," ensuring that the robot always has a clear signal on how to improve, even when it's already near the top.

Tailored Rewards for Different Tasks

The paper also realized that you can't judge a table the same way you judge a paragraph of text.

  • For Text: They use a simple "edit distance" score. If you miss a letter, you lose a tiny bit of points.
  • For Tables: Tables are like trees with branches (rows and columns). If you mess up the structure (like putting a cell in the wrong row), it's a bigger deal than a typo. The robot gets a special "Tree Edit Distance" score that penalizes structural mistakes more heavily.
  • For Math Formulas: This is the trickiest. A formula might look different but mean the same thing (like writing a/ba/b instead of a÷ba \div b). The team created a "hybrid" reward that checks if the math is valid first (a "syntax gate"), and then checks if the meaning is right, even if the symbols are slightly different.

What They Found

The researchers tested their new DocPO framework on two big sets of test documents: OmniDocBench (a public dataset with 1,355 pages) and DocElemHard (a tougher, custom-made set with 9,400 images).

Here is what the data suggests:

  • Faster Learning: When they used the "sharpened" reward system, the robot reached a high level of table-reading accuracy about 1.8 times faster than when using the old, standard rewards.
  • Better Final Scores: The robot didn't just learn faster; it got better at the end. On the tough DocElemHard test, the new method achieved an overall score of 93.76, beating the previous best specialized models (which often use much more complex and expensive hardware setups).
  • No Extra Hardware Needed: One of the coolest parts is that they didn't need to build a new, giant robot brain. They used a standard, off-the-shelf model called Qwen2.5-VL-3B and just changed how they gave it feedback. This suggests that sometimes, improving the "coach's" feedback is more powerful than building a bigger "player."

The Catch and the Future

The authors are careful to note that this isn't a magic wand for everything. Training the robot this way is more expensive and time-consuming than the old methods because the robot has to play the game many times to learn. Also, the "rewards" are still based on rules the humans wrote, so if the rules miss a subtle nuance, the robot might still get confused. Finally, they only tested this on text, tables, and math formulas; they haven't tried it on charts or diagrams yet.

But the main takeaway is clear: by making the feedback sharper and smarter as the robot improves, we can help it master the tricky details of reading documents without needing to reinvent the robot itself. It's a reminder that sometimes, the secret to getting better isn't working harder, but knowing exactly what to work on.

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 →