Repository navigation
MinerU 4.x Parsing Tiers: A Practical Guide #5709
myhloli
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Tip
Start with
standardfor most PDF and image parsing tasks.Choose
basicwhen CPU compatibility and resource usage are your main concerns, andflashwhen you only need to extract content quickly. If the results fromstandardclearly fail to meet your requirements, tryadvancedon the documents that need further attention.1. From multiple parsing modes to one model with four tiers
MinerU 4.x replaces the implementation-oriented names used in 3.x, such as
pipeline,hybrid(medium/high), andvlm, with a unified model identifier:mineru-<version>. Four parsing tiers let you choose the balance between quality and cost:flash→basic→standard→advancedHere, “one model, multiple tiers” refers to a unified product interface and model identifier. Internally, each tier combines native parsing rules, conventional small models, and vision-language models (VLMs) as needed. When choosing a tier, focus on your quality requirements, available resources, and acceptable processing time.
As a rough analogy, you can think of these tiers as reasoning-effort levels in an LLM:
flashlowbasicmediumstandardhighadvancedmaxThis analogy describes effort and trade-offs. Lower tiers are generally faster and use fewer resources. Higher tiers can handle more complex documents, but parsing accuracy does not necessarily improve with every increase in tier, especially when moving from
standardtoadvanced.The four-tier comparison in this guide mainly applies to PDFs and images. Supported native document formats, such as Office files, use
flash. For these formats, a lower tier does not imply lower accuracy. See Tiers and Runtimes for supported formats and interface-specific behavior.2. Understanding speed, accuracy, and cost
The illustration below shows the trade-offs between the four tiers. It is not based on measured benchmark results and does not compare MinerU with other document parsing tools.
3. Why we recommend standard as the starting point
standardis our recommended tier for everyday parsing and the sweet spot between quality and cost. It aims to deliver accuracy close to full-page VLM parsing in most scenarios, while keeping resource use and processing time closer tobasic.As with LLM reasoning levels, the highest setting is not necessarily the recommended default. OpenAI's reasoning model documentation likewise recommends evaluating higher reasoning effort on your specific tasks to determine whether the improvement justifies the extra latency and cost.
For MinerU, you should not expect
advancedto substantially outperformstandardin most common scenarios, or send every task to it simply because it is the highest tier. Its additional value is mainly in edge cases: when a small model makes a significant layout error, a VLM's greater ability to generalize may improve the result or even solve the problem outright.If your goal is to improve parsing accuracy, we recommend trying
advancedonly after reviewing the results and findingstandardclearly unacceptable for your use case, and only if you are willing to spend substantially more time and compute. Compare the results on the problematic pages first. If the improvement is meaningful, you can then decide whether to use it more broadly.If you specifically need image descriptions or chart interpretation, you can also choose
advancedfor those capabilities, as described below.4. What each tier does
flash: Primarily rules and native content extraction
flashaims to rely on deterministic rules and native document structure wherever possible, minimizing model inference. For scanned PDFs, images, and other inputs without usable native text, it uses OCR as needed to extract content.It is primarily intended for two types of tasks:
For PDFs,
flashis intended as a fast content extraction tool, with no guarantee of layout or content accuracy. If reading order, complex formulas, table structure, or content completeness is critical, usebasicorstandardand review the results.basic: No VLM dependency, with an emphasis on CPU compatibility
basicuses the necessary conventional computer vision (CV) small models and does not depend on a VLM. Its main components include:Lightweight inference options such as ONNX support a broad range of CPU devices, making this tier suitable for limited-resource environments and simpler deployments. A Torch backend for small models is also supported; the inference backend and the parsing tier are separate choices.
For PDFs with a usable text layer,
basicextracts embedded native text wherever possible to avoid unnecessary OCR.standard: Apply VLM inference where it adds the most value
standardaims for the best balance of parsing quality and cost. Small models handle layout detection, while a VLM handles formulas, tables, and text regions that require recognition, improving results for complex content that conventional small models struggle with.For PDFs with a usable text layer, it also makes use of embedded native text wherever possible, reducing redundant recognition and unnecessary model generation.
The goal is accuracy close to conventional full-page VLM parsing at a cost closer to
basic. This is a design goal; actual processing time and quality gains depend on the document and runtime environment.If you have no specific resource constraints or special requirements, start with
standard.advanced: Use VLM inference more broadly and spend more compute on difficult cases
advancedassigns more parsing stages to a VLM, spending more compute and time on difficult scenarios. It also extracts embedded native PDF text when available to help reduce hallucinations from model-generated content.The main difference from
standardis thatadvancedalso uses the VLM for layout analysis. This significantly increases inference cost. However, a VLM's ability to generalize may produce better results on unusual layouts or documents where small models make incorrect predictions.advancedalso enables the following capabilities by default:image): Describe image content in text.chart): Attempt to extract or describe information in bar charts, line charts, and similar visualizations.These capabilities can help turn visual information into searchable text, but the output may be inaccurate. In particular, verify numerical values and relationships extracted from charts. Here,
chartrefers to data visualizations; it is distinct from thetableparsing already supported bybasicandstandard.advancedandstandardshare model resources. Switching tiers does not require downloading a separate “Advanced model.” The additional cost comes primarily from differences in the parsing workflow and the amount of VLM inference performed.5. Practical recommendations
flashflashbasicstandardstandardclearly falls short on specific documents, and you are willing to spend more to try to improve themadvanced; compare the problematic pages firstadvanced; manually verify the outputUse
--tierto select a tier with the local CLI:When investigating a specific page, add
--pages 3to both commands to compare page 3 first and avoid processing unrelated pages.In the API or WebUI, the available tiers depend on what the service has enabled.
autois an automatic selection strategy, not a fifth parsing tier. Whether the server enablesadvancedand which tier an individual request selects are separate decisions.When reviewing results, check for missing text, incorrect reading order, inaccurate formulas, and broken table row or column relationships. If
advancedstill does not meet your requirements, please share the original sample or a minimal reproduction file, together with your MinerU version, selected tier, affected page numbers, actual output, and expected result. This helps us identify the problem.All reactions