← Latest papers
🤖 machine learning

DocHRL: A Hierarchical Reinforcement Learning Framework for Cost-Optimised Document Classification

DocHRL is a hierarchical reinforcement learning framework that dynamically selects the most cost-effective classification policy for each document by balancing inference, misclassification, and human review costs, achieving superior performance and operational efficiency on the RVL-CDIP benchmark compared to fixed pipelines.

Original authors: Mohammed Yousif, Prabhjot Singh, Arjun Pankajakshan, Madhu Reddiboina

Published 2026-07-28
📖 4 min read☕ Coffee break read

Original authors: Mohammed Yousif, Prabhjot Singh, Arjun Pankajakshan, Madhu Reddiboina

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 a world where every time you asked a question, the answer came from a giant, all-knowing library. But here's the catch: the library has two kinds of librarians. One is a super-fast, tiny robot that can read a simple note in a split second but might miss a tricky detail. The other is a brilliant, slow-thinking professor who can solve any puzzle but takes forever and costs a fortune to hire. In the world of computer science, specifically in a field called "document classification," computers are constantly trying to sort millions of papers, receipts, and emails into the right folders. For a long time, the standard way to do this was to force every single document through the same process. It was like hiring the expensive professor to read a grocery list just to make sure they didn't miss a typo, while the robot sat idle. This wasted huge amounts of money and computing power on easy tasks, while sometimes failing to give the hard tasks enough attention. The big question researchers are asking is: Can we build a smart manager that knows when to call the robot and when to call the professor, saving money without losing accuracy?

This is exactly what the paper "DocHRL" tackles. The authors introduce a new system called DocHRL, which acts like a clever, cost-conscious traffic controller for document sorting. Instead of using a fixed rule (like "always use the robot unless the paper looks messy"), DocHRL uses a technique called Hierarchical Reinforcement Learning. Think of this as training a video game character that learns by playing thousands of rounds. The character gets a reward for being right, but it also gets "fined" for every dollar it spends on expensive tools. Over time, the character learns a strategy: "If the document looks like a simple email, I'll use the cheap robot. If it looks like a confusing scientific report, I'll call the professor. If I'm still unsure, I'll ask a human to double-check."

The researchers tested this system on a massive collection of 400,000 documents covering 16 different types, from resumes to scientific reports. They compared DocHRL against a lineup of "standalone" models (just the robot, just the professor, or a mix of them) and even systems that always ask a human for help. The results were striking. DocHRL didn't just save money; it actually got better at sorting the documents than any of the other methods. While the best traditional system got about 91.3% of the documents right, DocHRL achieved a 97.3% success rate. Even more impressive, it did this while slashing the average cost per document down to 2.74 "normalised units," compared to costs of 8.74 or higher for the other systems.

The secret sauce is how DocHRL handles the "cost of failure." In the training game, if the system guesses wrong, it pays a heavy penalty (set at 100 units in their simulation). If it calls a human, it pays a smaller but still significant fee (about 2.25 units). By trying to minimize these penalties, the system learned a "difficulty-aware" strategy. For easy documents like emails or resumes, it stopped after just one cheap step, getting 100% accuracy. But for tricky documents like "forms" or "scientific reports," where other systems struggled, DocHRL knew to spend a little extra time and money, bringing the accuracy up from around 82% to 93.5%.

The paper explicitly argues against the idea that you have to choose between being cheap and being accurate. They show that by treating document sorting as a dynamic decision-making problem rather than a fixed pipeline, you can have both. They also rule out the idea that a simple "if-then" rule (like "if confidence is low, ask a human") is the best solution; their learning-based approach outperformed even the best-tuned versions of those fixed rules. However, the authors are careful to note that this is a proof-of-concept. The "human" in their experiment was a computer simulation, not a real person, and the costs were based on specific cloud computing prices. While the results are measured and robust within their test environment, they suggest that real-world deployment would need to account for things like human fatigue or changing document types.

In short, DocHRL proves that a smart, adaptive manager can save a lot of money and do a better job than a rigid, one-size-fits-all approach. It's a step toward computer systems that are not just smart, but also economically efficient, knowing exactly how much effort to spend on every single piece of paper they encounter.

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 →