Axisdream
Written and Published byAxisdream·

How to Benchmark AI Agents on Real Documents

Evaluation framework diagram showing task injection, sandboxed agent execution, and programmatic artifact scoring against multi-tier rubrics

Key Takeaways

  • •Benchmarking agents on real documents requires sandbox harnesses that grade final deliverable files, formula logic, and citations rather than text strings.
  • •Examines from string matching to artifact-level evaluation, analyzing the structural bottlenecks and trade-offs in real-world deployments.
  • •Provides engineering benchmarks and verification criteria for core components of an agent document benchmark.

On 10 November 2026, Artificial Analysis published the technical methodology for the Multimodal Knowledge Agent benchmark, demonstrating that evaluating autonomous agents requires replacing multiple-choice tests with artifact-grading harnesses that inspect full spreadsheets, slide presentations, and formatted reports. Evaluating whether an agent can perform enterprise document work requires testing its ability to generate verified file outputs within realistic execution sandboxes.

Traditional language model evaluations evaluate string outputs. A model receives a prompt and generates a text response, which an automated evaluator compares against a reference answer using exact matching or semantic embeddings. When evaluating autonomous agents intended for real-world knowledge work, this string-centric approach is completely inadequate. An enterprise analyst is not evaluated on generating a single text sentence; they are evaluated on reading messy source documents, performing multi-step data transformations, and delivering formatted files that adhere to institutional accounting and legal standards.

From string matching to artifact-level evaluation

Benchmarking autonomous agents requires evaluating complete task outcomes rather than intermediate conversation text:

  • Evaluating file structures and schemas: when an agent generates a financial workbook, an evaluator must inspect internal spreadsheet mechanics. It must verify that cell references employ dynamic mathematical formulas (such as SUM and VLOOKUP) rather than static hardcoded values, ensuring models understand financial relationships.
  • Multi-modal artifact verification: for slide presentations and executive briefings, evaluation harnesses must inspect visual composition. Programmatic evaluators check whether data charts align with slide margins, whether visual hierarchy emphasizes primary findings, and whether fonts remain legible across display viewports.
  • Verifying source citations: in auditing and compliance workflows, assertions within a generated report must reference exact source documents. The evaluation harness validates that cited page numbers, table rows, and document dates correspond to actual facts in the input data bundle.
text axisdream
┌────────────────────────────────────────────────────────┐
│             Artifact-Level Evaluation Flow             │
│                                                        │
│  [Heterogeneous Input Bundle: PDFs, Excel, Blueprints] │
│                           │                            │
│                           ▼                            │
│  [Isolated Agent Execution Sandbox (Stirrup Harness)]  │
│  - Shell tools, Python runtime, image rendering        │
│                           │                            │
│                           ▼                            │
│  [Target Deliverable Generated: financial_model.xlsx]  │
│                           │                            │
│                           ▼                            │
│  [Automated Rubric Inspection Engine]                  │
│  - Checks formula dependencies (not just values)       │
│  - Validates balance sheet reconciliation               │
│  - Verifies source citation coordinates                │
└────────────────────────────────────────────────────────┘

Core components of an agent document benchmark

Building a rigorous evaluation testbed for document-working agents requires four structural components:

  1. Heterogeneous input bundles: real tasks require realistic documentation friction. Inputs must combine high-resolution scans, multi-page PDFs with rotated tables, low-contrast engineering schematics, and raw CSV files, forcing the agent to demonstrate visual and tabular grounding.
  2. Sandboxed execution runtime: agents must operate within an isolated execution environment, such as the open-source Stirrup evaluation harness developed by Artificial Analysis. The sandbox provides file system access, Python execution environments, and document conversion utilities, allowing the agent to plan and iterate.
  3. Constrained turn and token budgets: tasks must enforce explicit operational limits: maximum tool invocations, maximum token expenditures, and strict wall-clock timeouts. This prevents agents from running expensive brute-force search loops and allows evaluators to measure economic efficiency.
  4. Tiered evaluation rubrics: grading must balance binary baseline criteria (such as file creation and syntax validity) with qualitative scoring (such as layout polish and logical synthesis), providing a granular score distribution across model tiers.

Preventing benchmark contamination and gaming

A major threat to artificial intelligence evaluation integrity is dataset contamination. When benchmark tasks are published openly on the web, subsequent base models inadvertently ingest the task questions and target answers during pretraining crawls, rendering subsequent evaluations meaningless.

Modern document evaluation suites protect integrity through strict operational controls:

  • Private held-out evaluation sets: the primary evaluation suite remains strictly confidential. The Multimodal Knowledge Agent benchmark maintains two hundred private tasks, releasing only ten representative public samples to illustrate methodology.
  • Automated task rotation: benchmark maintainers periodically rotate underlying numerical values, company names, and document layouts while preserving identical structural difficulty, preventing fine-tuned models from overfitting to static schemas.
  • Adversarial distractor documents: input document bundles include irrelevant invoices, duplicate receipts, and outdated policy memos, testing whether the agent can identify authoritative records while filtering out misleading background data.

Measuring economic efficiency alongside task success

In commercial enterprise deployments, raw capability is inseparable from operating cost. An agent that achieves a 90 percent success rate while consuming twenty dollars in inference calls and eighty tool turns per task is commercially unviable for routine document processing.

Production benchmark harnesses report multi-dimensional efficiency metrics:

  • Cost per successful deliverable: dividing total inference and tool compute expenditures by the number of passing tasks, penalizing agents that rely on frequent retry loops.
  • Turn efficiency: measuring the average number of tool invocations required to complete a task, identifying models that execute targeted actions rather than wandering aimlessly through file systems.
  • Latency distributions: recording time-to-deliverable metrics to ensure autonomous workflows complete within acceptable business windows.
Benchmarking artificial intelligence agents on real documents represents an essential shift toward practical accountability. By testing models inside isolated execution sandboxes and grading complete deliverables against rigorous multi-tier rubrics, the industry establishes a verifiable measure of autonomous enterprise capability.

Sources

Related Dispatches