Benchmarking LLMs on Long-Horizon Tasks: Delivery Evaluation and Engineering Practices

    Choosing a large language model is less about benchmark scores and more about whether it can actually deliver finished work. This article presents a product-agnostic evaluation framework built around three task types that expose different failure modes: long-form rewriting, interactive front-end apps, and structured generation. It covers controlled variables, metrics such as time to first token, total elapsed time, artifact completeness, and manual rework time, plus executable acceptance assertions that separate "a file was produced" from "the task is done." It also catalogs common failures, explains how to account for cost and latency fairly, and outlines a minimal pipeline architecture with ingestion, orchestration, tooling, observability, and acceptance layers.

    1. Ask the Right Question: From “Which Model Is Stronger” to “Which Model Can Deliver”

    Many teams repeatedly compare benchmark scores during model selection, only to discover after the project starts that there is a wide gap between a model that can answer questions and a model that can deliver results on your behalf. The most valuable observation to preserve is this: no model is absolutely better or worse than another. The differences show up mainly in response latency, cost per unit, and the completeness of multimodal and tool ecosystems. A more reasonable approach is therefore to divide work by task profile: hand interaction-heavy steps that require immediate feedback to faster-responding options, and hand batch, repetitive, long-running, asynchronous tasks to options with lower unit cost that can run in the background over long periods.

    For this conclusion to hold, it must be supported by reproducible experiments rather than subjective impressions. Below is an evaluation framework that is independent of any specific product.

    2. Evaluation Design: Three Task Types Covering Three Typical Failures

    The principle for selecting tasks is to “cover different failure modes,” not to “cover different difficulty levels.” At least the following three types are recommended:

    1. Long-text rewriting: for example, translating a public-domain novel of roughly a hundred thousand characters in full. The focus is long-context consistency, uniform terminology and character names, and whether the output is actually written to disk as a complete artifact.
    2. Interactive front-end mini-app: for example, a small game with keyboard control, collision detection, and scoring logic. The focus is state retention across multiple iterations and the ability to make localized changes after requirements shift.
    3. Structured generation: for example, rendering a rotatable 3D Rubik’s cube using front-end 3D capabilities. The focus is mathematical correctness, handling of coordinates and occlusion relationships, and whether the visual result can be verified.

    Control variables uniformly: both sides use medium reasoning effort, the same prompts, and the same acceptance script. Record four metrics: time to first token, total elapsed time, artifact completeness, and manual rework time. The last one, “manual rework time,” is the easiest to overlook yet the closest to real cost.

    3. Reproducible Acceptance: Turning “Done” into a Decidable Condition

    The biggest pitfall in evaluation is vague acceptance criteria. A better approach is to convert each task into executable assertions, for example:

    1. # Pseudocode: artifact acceptance for a long-text task
    2. def check_translation(artifact_path, source_epub):
    3. text = extract_text(artifact_path) # supports pdf/epub/txt
    4. src_chars = count_chars(source_epub)
    5. zh_ratio = detect_chinese_ratio(text) # share of Chinese characters
    6. coverage = len(text) / src_chars # length coverage, 0.7~1.3 fluctuation allowed
    7. assert zh_ratio > 0.85, "body text was not effectively translated"
    8. assert 0.7 < coverage < 1.3, "truncation or large-scale loss detected"
    9. return {"zh_ratio": zh_ratio, "coverage": coverage}
    1. // Smoke test essentials for a front-end mini-app
    2. const checks = {
    3. initState: () => score === 0 && lives === 3,
    4. collision: () => onHit() === "gameover",
    5. restart: () => reset().score === 0,
    6. renderLoop: () => frameCountAfter(1000) > 30
    7. };

    With assertions in place, “a file was generated” and “the task was completed” can be told apart.

    4. Typical Failure Modes and Root Causes

    Four kinds of failures recurred across experiments and deserve a dedicated checklist:

    • Precondition-based refusal: the model refuses to execute, citing that “the current environment lacks a local model or an external service is unavailable.” This is essentially a judgment about tool reachability rather than a capability gap, and the ambiguity should be removed by pre-installing dependencies and providing an explicit list of available tools.
    • Shell-replacement delivery: the artifact has the correct format and the right page count, but only the container conversion was done (for example, converting an e-book into a document) while the body text language stayed unchanged. This failure is the most hidden and must be caught by content-level assertions rather than by checking whether a file exists.
    • Long-range forgetting: early constraints are lost after multiple iterations, showing up as naming drift and style regression. A mitigation is to write constraints into a separate configuration file and feed them back in every prompt round.
    • Mathematical and spatial errors: rotation matrices and depth ordering go wrong in 3D scenes and are hard to locate by eye. It is advisable to output intermediate values (such as vertex coordinates and rotation angles) and unit-test them.

    5. Cost and Latency: Account for Them Separately, Avoid Unequal Comparisons

    If one side is accessed through an API and the other through a desktop client, comparing unit prices directly is meaningless. A workable approach is to count token usage and cost only on the controllable side, record wall-clock time and human waiting on the other, and explicitly note the difference in measurement basis in the report. Also state the time window of the test (peak or off-peak) and whether it falls before or after a pricing change, so external factors are not misread as model differences.

    What matters more in engineering is the “cost per unit of effective output”:

    1. effective cost = total spend / number of artifacts passing acceptance

    A cheap option that requires a lot of rework may have a far higher effective cost than an option with shorter latency.

    6. Engineering Implementation: Put the Model in a Pipeline, Not in a Chat Box

    The work that really takes time is never the asking; it is integration, task decomposition, failure handling, and acceptance. The recommended minimum viable architecture:

    1. Ingestion layer: uniformly wrap authentication, retries, timeouts, and rate limiting to hide differences between backends.
    2. Orchestration layer: split tasks into three stages, “plan-execute-self-check”; make long tasks asynchronous with a message queue and write state to object storage so runs can resume from breakpoints.
    3. Tooling layer: expose capabilities such as file read/write, retrieval, and code execution through a whitelist, with dependencies pre-installed in the container platform image to avoid runtime gaps.
    4. Observability layer: use logging services and monitoring alerts to collect latency, failure rate, and rework counts, forming a baseline that supports continuous comparison.
    5. Acceptance layer: run every artifact through the assertion script, and on failure roll back automatically and regenerate with the failure reason attached.
    1. # Task orchestration sketch
    2. task:
    3. name: long_form_translation
    4. max_retry: 2
    5. timeout_sec: 1800
    6. tools: [file_read, file_write, text_detect]
    7. checks: [zh_ratio>0.85, coverage∈(0.7,1.3)]
    8. on_fail: notify_and_requeue

    7. Conclusions and Action Checklist

    • Do not ask “which model is the best”; ask “how much latency, how much rework, and how much cost does this task allow.”
    • For interaction-heavy scenarios, prioritize response speed; for background batch scenarios, prioritize unit cost and the ability to run long; multimodal and tool ecosystem completeness sets the ceiling.
    • Build acceptance assertions first, then run comparisons; otherwise the conclusions are not reproducible.
    • Standardize the four things—ingestion, orchestration, observability, and acceptance—and the model becomes just one replaceable component.

    Walk through this method once and you will find the selection question naturally converges into an engineering question. And once the engineering question is standardized, the replacement cost caused by model iteration drops significantly.