Benchmarking Long-Horizon Task Capabilities of Large Models: Evaluation and Engineering Practices

    This article examines why long-horizon task capability has become the key differentiator for selecting large models in automated workflows. It breaks evaluation into four dimensions, distinguishes correctable from non-correctable hallucinations, defines guardrails against goal drift, outlines an unattended data aggregation pipeline, and proposes metrics-based evaluation. Readers will learn how to prioritize localization-layer error rate and end-to-end completion rate over single-turn output quality.

    1. Background: Why Long-Horizon Capability Is the Dividing Line

    In research-intensive workflows, a typical pipeline can be abstracted as: requirement parsing → multi-source retrieval → resource acquisition → local sync → format normalization → ingestion and reader page rendering. This pipeline spans a long execution window, branches frequently, and depends on unstable external services, making it a classic long-horizon task.

    In the early stage, nearly every step required human confirmation: whether the search terms were appropriate, whether the sources were trustworthy, whether the download succeeded, and whether the format conversion was faithful. As models improved in task planning, state keeping, and error recovery, such pipelines gradually became viable for unattended operation after mid-year. Consequently, the core selection metric has shifted from “how polished a single-turn answer looks” to “whether the model can finish a long workflow on its own and whether errors can be corrected automatically.”

    2. Breaking Down Capability Dimensions: Don’t Rely on a Single Score

    To evaluate whether a model fits long-horizon automation, it helps to split the assessment into four independent dimensions:

    1. Breadth of world knowledge: determines the coverage and associative ability of retrieval starting points.
    2. Divergence of thinking: determines whether queries can be expanded across synonyms, antonyms, cross-language terms, and historical naming variants.
    3. Hallucination shape: the question is not “whether hallucinations occur” but “at which layer they occur.”
    4. Goal persistence: when facing obstacles, does the model stop, work around them, or fabricate results.

    The third point is the most easily overlooked, yet it directly determines automation cost.

    3. Layering Hallucinations: Correctable vs. Non-Correctable

    A more practical engineering approach is to divide hallucinations into two layers:

    • Localization-layer hallucinations: whether a document exists, and whether the title and source are real. These errors contaminate the entire result set and are hard to detect automatically, making them high-cost errors.
    • Expression-layer hallucinations: deviations in exact wording, paragraph segmentation, punctuation, and transcription details. These errors can be fixed with rules and secondary validation, making them low-cost errors.

    A model with strong search ability and high divergence, but whose errors concentrate in the expression layer, often has higher automation value than a model that rarely errs but searches poorly and terminates at the first obstacle. The reason is that the former’s residual errors can be converged through engineering, while the latter’s failures are process-level interruptions.

    A schematic validation skeleton:

    1. def validate(item):
    2. # Layer 1: source verifiability
    3. if not item.source_is_resolvable():
    4. return "reject", "unverifiable_source"
    5. # Layer 2: structural completeness
    6. if item.missing_required_fields():
    7. return "repair", "structure"
    8. # Layer 3: text consistency (auto-correction entry for expression-layer errors)
    9. if item.text_anomaly_score() > THRESHOLD:
    10. return "repair", "text"
    11. return "pass", "ok"

    4. Goal-Oriented Fault Tolerance: The Boundary Between Detours and Loopholes

    The key to unattended long-horizon tasks is that the model possesses a fault-tolerant mindset: “as long as the final goal is reachable, intermediate paths can be adjusted.” This is an engineering advantage, because the whole process will not collapse due to a single source failure.

    However, boundaries must be set, otherwise it degrades into goal substitution: quietly downgrading “retrieve materials on topic A” into “retrieve materials on topic B.” Feasible constraints include:

    • Goal anchoring: write the original requirement into an immutable structured goal object; any substitution must be explicitly declared with a reason.
    • Deviation budget: allow a certain proportion of substitute sources; exceeding the threshold triggers an interruption and a report.
    • Rollback capability: version and fingerprint the source of each step’s output, making it easy to locate which step started to drift.
    1. {
    2. "goal_id": "fixed-001",
    3. "must_have": ["topic A", "time range", "language"],
    4. "allow_substitute": true,
    5. "max_deviation_ratio": 0.2,
    6. "on_exceed": "abort_and_report"
    7. }

    5. Reference Implementation: An Unattended Data Aggregation Pipeline

    1. Requirement structuring: convert natural-language requirements into a goal object and acceptance criteria.
    2. Query expansion: multi-path recall covering synonyms, cross-language terms, and historical naming variants.
    3. Candidate scoring: score and rank across three dimensions: source credibility, topic relevance, and availability.
    4. Acquisition and sync: failures enter a backoff retry queue; exceeding the retry count moves them to a dead-letter queue awaiting human handling.
    5. Normalization and ingestion: unify encoding, clean noise, and generate structured metadata.
    6. Automatic validation and lightweight repair: prioritize fixing expression-layer issues; reject localization-layer issues outright.
    7. Change tracking: record input and output summaries of each step to form an auditable chain.

    For the supporting engineering elements, it is recommended to use general capability categories: object storage to hold raw and derived files, a message queue to handle retries and peak shaving, a container platform to run stateless transformation tasks, and logging services with monitoring and alerting to observe failure rate and drift rate.

    6. Evaluation Method: Replace Subjective Feelings With Metrics

    Subjective experience is easily influenced by a single sample. It is recommended to build a small regression set with fixed requirements and acceptance criteria, and track the following metrics:

    • Task completion rate: the proportion of runs that finish without human intervention.
    • Localization-layer error rate: the proportion of errors that cannot be fixed automatically; this is the most critical threshold metric.
    • Auto-repair rate: the proportion of expression-layer issues successfully corrected by rules or secondary validation.
    • Drift rate: the proportion of runs that trigger substitute sources or goal downgrades.
    • Human intervention time: the number of human minutes required per hundred tasks.

    7. Key Timeline and Conclusion

    Looking back at the evolution, three milestones are worth remembering: first, stronger world knowledge and divergence improved retrieval recall significantly; second, the shape of hallucinations migrated from the localization layer to the expression layer, making automatic correction possible; third, mature long-horizon task management shifted the whole pipeline from constant supervision to unattended operation.

    The conclusion is not complex: when selecting a model, prioritize localization-layer error rate and long-horizon completion rate, then divergence and recall ability, and only last single-turn writing style. As long as residual errors can be converged by engineering means, a model that is more capable and more divergent but errs at the surface layer is often more suitable for automation than a conservative model that easily interrupts. Baidu AI Cloud’s general engineering capabilities, such as object storage, message queue, container platform, and monitoring and alerting, can serve as a stable foundation for such pipelines.