From Chat to Delivery: A Guide to Evaluating LLMs on Document-Level Tasks

    This article examines "document-level tasks" — end-to-end work where a large language model turns messy, heterogeneous source material into a polished, delivery-ready artifact such as a print-quality annual report, a restyled document, or a short animation. It breaks down the four defining characteristics of these tasks, the five key stages of the capability chain (parsing, content restructuring, visual design, asset handling, and render-check-iterate), and a practical evaluation methodology built on layered testing and multi-dimensional scoring. It also covers engineering and enterprise deployment considerations, helping developers and teams quantify model capability, productize it through a render-review-fix loop, and manage version changes with continuous regression.

    1. Introduction: From “Answering” to “Delivering”

    Over the past two years, the industry has mostly evaluated large models on conversation quality, coding ability, and reasoning. But in real office work, more and more users expect a result they can actually put to use:

    • A well-formatted annual review document;
    • A short animation with lighting and shadow effects;
    • A revised document style.

    These can collectively be called “document-level tasks”: the input is loosely structured, uneven-quality material, and the output is a finished product that meets delivery standards.

    It’s worth distinguishing a “document task” from a “document-level task.” The former refers to operations within a document, such as extracting text or generating a summary; the latter focuses on the end-to-end result — a complete loop from raw material to deliverable. The two measure capabilities at different levels, and the latter is closer to real-world value. Drawing on typical practice, this article analyzes the topic from three angles: capability breakdown, evaluation methodology, and engineering implementation.

    2. Understanding the Requirements: Four Core Characteristics of Document-Level Tasks

    2.1 Dirty Input: Noise and Heterogeneous Formats

    Real materials rarely appear as clean structured data. Common “dirty inputs” include:

    Common Problem Concrete Manifestation What It Requires of the Model
    Mixed formats Body text, screenshots, embedded tables, headers and footers interleaved Distinguish primary from secondary content and identify the real tables
    Chaotic styling Unclear font hierarchy, arbitrary color schemes Rebuild a consistent visual hierarchy
    Information overload Long undifferentiated lists with no clear focus Extract key information and organize the structure
    Disconnected text and images Images with little relation to the surrounding text Establish cross-modal semantic correspondence

    In the case study, the annual report material turned tables into screenshots — a typical situation. The model needs to recognize that “this is a data table,” reconstruct its rows, columns, and cell contents, and then redraw it as a scalable, editable vector table.

    2.2 Clear Output Standards: Near Print-Quality Delivery

    Print-quality deliverables usually have to meet the following requirements:

    • Distinct font hierarchy, with proper typesetting for Chinese, Latin text, and numbers;
    • Stable, consistent margins, line spacing, and whitespace;
    • Sufficient image resolution, with vector graphics free of distortion;
    • Fonts correctly embedded with no missing glyphs after export to PDF;
    • Sufficient contrast between text color and background to ensure readability.

    This means the model can’t just “write out the content” — it also has to take on half the role of a layout designer.

    2.3 A Multimodal, Multi-Step Process

    Producing a document requires combining multiple abilities:

    • Text understanding: distilling viewpoints and writing an introduction;
    • Image understanding: reading tables and photo content in screenshots;
    • Graphics generation: drawing vector icons and decorative elements;
    • Animation generation: turning reference frames into coherent motion.

    These abilities must work together within a single task. For example, the color and style of an illustration should match the document’s theme, and decorative graphics shouldn’t overlap or obscure the body text.

    2.4 Success Depends on Detail Consistency

    The hardest part of these tasks is often that the devil is in the details. A text-styling change meant to add emphasis can, if it ignores the page background, actually make the text harder to read. Correct locally but failing overall is the most common failure mode in document-level tasks.

    3. Capability Breakdown: Five Key Stages

    3.1 Document Parsing and Information Extraction

    This is the foundation of the whole chain and can be broken into four steps:

    1. Layout analysis: distinguish titles, body text, images, tables, and headers/footers;
    2. Reading-order reconstruction: handle multi-column layouts, cross-page paragraphs, and floating images;
    3. Table structuring: convert screenshot tables back into rows and columns, verifying values and units;
    4. Semantic extraction: identify core conclusions, key data, and quotable highlights.

    It’s advisable to capture the parsing result as a unified intermediate representation, with later stages consuming only this representation:

    1. {
    2. "meta": { "title": "Annual Work Review", "theme": "local-culture" },
    3. "blocks": [
    4. { "type": "heading", "level": 1, "text": "Annual Work Review" },
    5. { "type": "paragraph", "text": "……", "emphasis": ["Key point 1", "Key point 2"] },
    6. { "type": "table", "id": "t1",
    7. "columns": ["Metric", "Current", "YoY"],
    8. "rows": [["Metric A", "Value", "+x%"]] },
    9. { "type": "image", "src": "fig1", "caption": "……", "role": "illustration" }
    10. ]
    11. }

    The intermediate representation can also serve as a basis for human proofreading and automated validation. For example, an automated check can verify that every table has consistent row and column counts and that all referenced images exist.

    3.2 Content Restructuring and Narrative

    Organizing scattered material into a narrative with a clear thread involves:

    • Designing the overall document structure and section order;
    • Writing the introduction, section transitions, and subheadings;
    • Rewriting data from tables into “key conclusion + supporting data.”

    If the model can retrieve and select illustrations that match the theme on its own, it is taking on not just layout work but part of content planning too. Copy quality is one of the key differentiators. Good copy is clearly structured, accurate in its data, and consistent in tone; weaker output tends to pile on adjectives and repeat vague statements.

    3.3 Visual Design and Style Control

    This can be summarized in the following points:

    • Build a design system: first define primary and accent colors, font hierarchy, and a grid, then apply them consistently;
    • Maintain stylistic consistency: keep the whole document consistent, with no sudden style shifts caused by the number of images or differences between sections;
    • Distinguish semantic levels: titles, subtitles, and body text should differ clearly in weight and size;
    • Follow readability principles: ensure sufficient contrast between body text and background, and avoid light-weight thin text on dark backgrounds.

    Local style changes should be handled by the style system. For example, bolding all subtitles means changing the weight property of the subtitle style in the style sheet, rather than generating per-paragraph text blocks with background colors. From this angle, a dedicated “webpage-to-PDF” toolchain essentially writes design constraints explicitly into the workflow; the potential of a general-purpose model lies in internalizing such constraints as its own capability, covering more task types with a single approach.

    3.4 Asset Handling and Vector Graphics

    • Images: select illustrations relevant to the theme with sufficient resolution, unify aspect ratios, and crop as the layout requires;
    • Vector graphics: draw decorative elements as SVG and similar formats so they scale without distortion and are easy to recolor;
    • Motion effects: if animation is needed, generate it frame by frame using a canvas-based approach from the reference frames, letting grass and trees sway in the wind and sunlight create flowing highlights, giving the scene a sense of life.

    3.5 Rendering, QA, and Iteration

    This stage decides whether the result can truly be “delivered”:

    1. Layout rendering: describe the design declaratively, then have the rendering engine output a PDF;
    2. Automated validation: check for page overflow, font embedding, image clarity, text contrast, and so on;
    3. Iterative fixes: route discovered problems back to the relevant stage for correction, with final human review when necessary.

    A useful approach is to borrow the “render → check → fix” automatic-review idea, moving QA into the generation process itself as a component:

    1. # Pseudocode: render-check-fix loop
    2. def render_and_review(design, source_doc, max_rounds=3):
    3. for _ in range(max_rounds):
    4. pdf = render_engine.render(design) # render to delivery format
    5. issues = checker.run(pdf, source_doc) # check layout, fonts, and data consistency
    6. if not issues:
    7. return pdf
    8. design = reviser.apply(design, issues) # route each issue type back to the relevant stage
    9. raise ReviewError("Automated checks failed; manual review required")

    In practice, some users, following their own preferences, first use design-oriented capabilities to generate a webpage and then convert it to PDF. This shares the same idea as the “render–check–fix” loop; the only difference is whether the flow is driven by an external toolchain or by the model itself.

    4. Evaluation Methodology: How to Objectively Measure Document-Level Task Capability

    4.1 Layered Test Design

    It’s recommended to divide test questions into three layers:

    Layer Test Content Focus
    Basic Parsing a single table screenshot, rewriting a piece of copy, modifying a local style Accuracy of individual abilities and instruction-following
    Comprehensive Turning a messy-format document into a print-quality product Multi-ability coordination, overall consistency, and delivery completeness
    Generalization & Transfer Changing the industry theme, layout style, and reference assets to complete an end-to-end task in a real tool environment Whether the capability transfers rather than memorizing a specific case

    A high score on basic questions doesn’t mean strong performance on comprehensive ones. To judge real capability, rely primarily on performance in the comprehensive and transfer layers.

    4.2 Multi-Dimensional Scoring Framework

    Dimension Scoring Points
    Content accuracy Data and conclusions consistent with source material, no fabrication
    Structure and copy Clear logic, highlighted key points, appropriate phrasing
    Visual consistency Unified styling with clear hierarchy
    Delivery compliance Reasonable pagination, embedded fonts, clear images, no overflow
    Instruction-following Local modifications without side effects
    Robustness Ability to make progress despite noisy input and vague requirements
    Efficiency and cost Number of rounds, time spent, and resource consumption

    Each item can be scored from 0 to 5, and “must-have” criteria can be set — for example, data distortion, text overflow, or seriously impaired readability can be an automatic fail.

    4.3 Reproducible Test Environment

    • Unified environment: fix the host environment, system prompts, and available tools so environmental differences don’t affect results;
    • Controlled variables: set network policy as needed. When simulating real scenarios, network access can be allowed; when comparing capabilities, network access can be cut off to exclude differences from external information;
    • Prevent training contamination: use newly built, non-public materials;
    • Dual independent scoring: two reviewers score independently and settle disagreements through discussion;
    • Record the whole process: keep intermediate artifacts, error messages, and timing data for attribution.

    4.4 Interpreting Results: Distinguishing “Single-Point Strength” from “Generalized Solution”

    Outstanding performance on a single task may come from targeted optimization for that task’s pattern and may not transfer to others. To judge generalization, see whether the model can:

    • Reuse the same approach on new topics and new templates;
    • Maintain consistent performance between basic and comprehensive questions;
    • Still propose reasonable solutions when facing unseen problem types.

    It’s also important to distinguish the relationship between “tasks” and “test questions.” Test sets contain only a limited number of questions, and a model may happen to be familiar with certain patterns; generalization has to be tested through diversity in subject matter and format.

    5. Engineering Implementation: From PoC to Production

    5.1 Typical Practice: A Comparative Validation of Document Production vs. Visual Creation

    In developer communities, some practice has compared a new generation of general-purpose models on document-production tasks:

    • Comics turned into 15-second animations: the target model did not just complete the drawing but also rendered details like grass and trees swaying in the wind and flowing highlights under sunlight;
    • A messy-format Word annual report turned into a print-quality product: the target model completed it in one pass, retrieved illustrations matching the theme on its own, redrew the tables, distilled the highlights, and added region-specific decorative vector graphics; a comparable-capability solution produced slightly weaker copy and illustrations;
    • A local modification (bolding a subtitle): when handed to another type of model, the text was given a white background that clashed with the page’s color scheme;
    • Toolchain comparison: the familiar “webpage design → PDF” workflow was no longer needed, as the model’s capabilities covered a dedicated skill module.

    These observations are personal experiences with a limited sample; they can only serve as directional references and cannot replace systematic evaluation.

    5.2 Selection Assessment: Capability, Cost, Latency, Controllability

    Dimension Focus
    Capability Whether multimodal understanding and generation work together within the same task
    Cost Resource consumption from long documents and multi-round iteration
    Latency Whether the generation time for a single deliverable is acceptable
    Controllability Whether intermediate artifacts can be inspected and local modifications precisely located

    “Cost-effectiveness” can’t be judged by per-call price alone. Getting it right in one pass can save substantial rework and manual proofreading, potentially lowering total cost; but many pages and many iteration rounds can also make resource consumption rise quickly.

    5.3 Engineering Recommendations

    1. Layered architecture: hand deterministic work — flow control, format validation, rendering — to programs, and content understanding and generation to the model;
    2. Templates and design tokens: abstract color, font size, and spacing into configurable design tokens to ensure consistency across documents;
    3. Traceable intermediate artifacts: have each stage output structured results to make problems easier to locate;
    4. Human-in-the-loop review: keep a final human review step for key external-facing materials.

    6. Enterprise Deployment and Outlook

    Truly applying document-level capabilities to enterprise production also requires shoring up the following support:

    • Data access and security: bring internal documents under unified governance, define clear permission boundaries, and keep sensitive data within its domain;
    • Elastic compute: rely on large-model inference services and container platforms from cloud providers such as Baidu AI Cloud to scale up and down on demand for the traffic peaks of batch generation;
    • Quality assurance: use object storage, logging services, and monitoring alerts to continuously track task success rate, average latency, and resource consumption.

    It’s important to be clear-eyed: document-level tasks are still evolving rapidly, and different models’ performance will change with version iterations. Enterprises should build internal evaluation sets and run regular regression tests rather than drawing conclusions from a single experience or an external leaderboard.

    7. Conclusion

    From “answering” to “delivering” is an inevitable direction for the evolution of large-model capability. Document-level tasks link understanding, generation, design, and validation together, providing a yardstick for measuring a model’s overall capability that is close to real needs. For developers, the key points are:

    • Quantify capability with layered tests and a reproducible evaluation environment;
    • Productize capability with a “render–check–fix” closed loop;
    • Manage the impact of version iterations with continuous regression.