Evaluating Large Language Models on Long-Running Tasks: Delivery Capability and Cost Optimization
This article reframes large language model evaluation from benchmark scores to actual delivery capability, introducing a reusable framework for assessing two general-purpose LLM approaches on long-running tasks. It covers a three-task test design (long-text localization, an interactive browser game, and a 3D interactive component), key observations on execution-environment limits, state-machine correctness, and self-testing, plus practical guidance on cost control, a two-track architecture of interactive and batch processing, and a deployment checklist. Readers will learn how to turn "can answer" into "can deliver" through environment probing, task decomposition, failure recovery, and automated acceptance.
1. Reframing the Problem: From “Which Model Is Stronger” to “Who Can Actually Deliver”
Many technology selection discussions stop at leaderboard scores. But in real projects, there is a considerable engineering gap between a model that can answer questions and a model that can deliver a usable result on your behalf. That gap consists of four things: how the interface is integrated, how the task is decomposed, how failures are detected and retried, and how results are accepted. If any one of these is missing, even the highest evaluation score cannot be converted into a deliverable.
So this article does not compare any specific products. Instead, it abstracts the original hands-on testing into a reusable evaluation framework: under the same task set and the same reasoning effort, observe two general-purpose large model approaches on long-cycle tasks in terms of completion, latency, and cost structure, and draw a division-of-labor conclusion from that. The conclusion is neutral and engineering-oriented—there is no universally better model, only models that match the shape of the task. The approach with faster responses suits high-frequency interaction and time-sensitive scenarios; the approach with lower unit cost suits the backend, handling long-running, highly repetitive batch tasks.
2. Test Design: Three Tasks and Unified Constraints
To make the comparison reproducible, the task set needs to cover three typical workloads, and all of them must be automatically verifiable.
- Long-text conversion and localization: input an entire public-domain book of about 140,000 English characters (in a structured e-book format), and require a Chinese document output that preserves the chapter structure.
- Interactive front-end mini-game: a lightweight “cat steals fish” gameplay that must run directly in the browser, including collision detection, scoring, and restart logic.
- 3D interactive component: a rotatable, shuffleable, and restorable 3D Rubik’s cube, requiring a correct state machine and lag-free interaction.
Unified constraints: both sides use medium reasoning effort; one side integrates through an API into an intelligent coding tool, while the other uses its desktop client. Therefore, only the actual cost on the API side is recorded, rather than forcing a comparison based on the list prices of both. This point is critical—mixing “how much I actually spent” with “what the catalog price is” is a common cause of distorted cost conclusions.
3. Hands-On Observations: Real Gaps Exposed by Three Workloads
3.1 Long-Text Localization: The Easiest to “Look Done”
This round was the most surprising. The lightweight mode refused the task outright, on the grounds that the current execution environment had no available local translation capability and was not allowed to call external services, so the full-book translation could not be completed. After switching to medium mode, the task ran for more than five minutes and produced a 185-page document, but on opening it, only the cover and table of contents had been localized—the body was still in the original language.
Engineering interpretation: this is not a model capability problem, but a capability-boundary problem of the execution environment. The intelligent coding tool runs in a sandbox that by default has no network access or external service permissions, and long-text localization must rely on callable model capabilities or local inference resources. There are three transferable practices:
- Probe environment capabilities first, then decide whether a task can be dispatched, to avoid handing an unexecutable task to the model;
- Long text must be chunked while preserving chapter boundaries, with explicit state passed between chunks to carry context;
- Acceptance must be automated; you cannot judge completion by “the file was generated successfully.”
A minimal illustration of chunking and acceptance:
def translate_long_text(chunks, translate, glossary):outputs, cursor = [], 0for idx, ch in enumerate(chunks):for attempt in range(3): # failure recovery: limited retriestry:out = translate(ch, glossary=glossary)if not out or len(out) < len(ch) * 0.5:raise ValueError("suspicious output")outputs.append(out)cursor = idx + 1 # resume from checkpointbreakexcept Exception as e:if attempt == 2:return outputs, cursor, str(e)return outputs, cursor, None
For the acceptance step, three checks are recommended: whether the number of chapters matches the original, whether sampled body text has been localized, and whether the glossary hit rate meets the target. Without these three, you end up with a “translated for nothing” result.
3.2 Front-End Mini-Game: Completion Depends on Whether Iterative Self-Testing Is Allowed
The difference in the mini-game is mainly reflected in whether it proactively runs and self-tests. The better-performing side first generates a page skeleton, then fills in collision and scoring, and finally starts a local server on its own to run a round of verification; the weaker side often outputs a large block of code in one shot, lacks runtime verification, and requires manual rework on interaction details. The transferable practice is to make “runnable” a hard acceptance condition and explicitly require self-check steps in the prompt.
3.3 3D Interactive Component: State Correctness and Performance Matter Equally
The difficulty of a cube-type task lies not in rendering but in the state machine: whether rotation preserves invariants, whether a shuffled state can be restored, and whether repeated clicks produce illegal states. Evaluation should look at both structural correctness (whether state invariants are broken) and runtime smoothness (whether the interaction frame rate is stable), rather than only visual effects.
4. Cost and Latency: Control the Variables Before Judging Superiority
In the original hands-on test, the actual cost of the three tasks on the API side did not exceed one yuan each. The mini-game was completed before the price increase and during off-peak hours, while the latter two tasks were completed during peak hours after the price increase, and their difficulty also differed. This shows that the single-run cost is jointly affected by four variables: input/output length, reasoning effort, time-of-day load, and task difficulty. To make a cost conclusion hold, you must fix at least three of these variables; otherwise it can only serve as a reference rather than a basis.
The practical recommendation is to build your own cost ledger, with fields including at least task type, input/output scale, number of retries, end-to-end latency, and actual charges, then aggregate weekly. With a ledger, “which type of task to put in the background” is no longer a matter of feeling.
5. Division-of-Labor Strategy: Primary Interaction Plus Background Batch Processing
Overall, a reasonable architecture is a dual-track system:
- Interactive track: latency-first, handling high-frequency short tasks such as completion, Q&A, and small code changes;
- Batch track: unit-cost-first, handling long-cycle tasks such as batch document processing, batch refactoring, and regression test generation, scheduled through message queues and container platforms, with logging services and monitoring alerts for failure retries and tracing.
When the interactive track’s quota is tight and upgrading to a higher tier is not cost-effective, offloading high-volume, long-running, asynchronous tasks to the batch track is the most cost-effective way to relieve pressure. It is worth noting that pure text capability and the completeness of the multimodal and tool ecosystem remain important variables in selection; tasks involving image or audio input should confirm in advance whether the pipeline supports them.
6. Deployment Checklist
- Environment probing: confirm whether the sandbox allows network access and whether local inference resources are available;
- Task decomposition: chunk long tasks and define inter-chunk contracts;
- Failure recovery: limited retries + resume from checkpoint + idempotent writes;
- Automated acceptance: a three-piece set of structural checks, sampling checks, and runtime checks;
- Cost ledger: fix variables and review weekly;
- Routing strategy: split traffic by dual goals of latency and cost.
Model capability is only the starting point. Building the engineering chain of interface, decomposition, recovery, and acceptance is the key to turning “can answer” into “can deliver.”
