Evaluating Large Language Models: Instruction Following, Long-Context Understanding, Long-Horizon Tasks, and Deep Research

    As more teams release the full weights of large-parameter models, evaluating these models has become a practical necessity rather than a matter of chasing leaderboard rankings. This guide breaks down four core capabilities—instruction following, long-context understanding, long-horizon task execution, and deep research—explaining what each one really means, common evaluation pitfalls, and how to test them in a structured way. It includes sample evaluation logic and engineering patterns, and closes with a layered, regression-based approach to building your own reusable assessment framework. The goal is to match model capabilities to your actual requirements rather than assuming that bigger always means better.

    Introduction: Why Open-Weights LLMs Are Worth Your Attention

    Over the past few years, several teams have released the full weights of models with large parameter counts. For the first time, the industry can deploy, fine-tune, and independently benchmark “ultra-large-scale” models locally with a relatively low barrier to entry.

    Opening up the weights brings three direct changes:

    • Much better reproducibility. Developers can verify the same model’s behavior on their own hardware.
    • Room for customization. Teams can adapt open-weight models to specific domains.
    • More transparent evaluation. The community can cross-validate a model’s real capabilities across multiple dimensions instead of relying on a single leaderboard.

    But “open” does not mean “uniformly better.” Scaling up parameters tends to produce dramatic gains in some capabilities while leaving others uneven. To make a rational judgment about whether a model fits your business, you need to go back to the fundamentals of a few core capabilities and build a structured evaluation method.

    This article covers four dimensions: instruction following, long-context understanding, long-horizon tasks, and deep research.

    1. Instruction Following: From “Able to Answer” to “Answering Correctly”

    Instruction following is about whether a model can accurately understand and execute the explicit constraints a user provides—formatting requirements, role settings, output length, negative conditions (“what not to do”), and combinations of multiple constraints at once. It is the foundational measure of a model’s controllability and directly determines whether the model can be reliably integrated into automated workflows.

    A common mistake when evaluating this capability is to look only at whether “the answer is correct,” while ignoring whether “it answered as instructed.” A model may get the content right but miss a JSON format constraint, or add extra explanatory text that wasn’t requested. A more rigorous approach is to break the evaluation into verifiable sub-items:

    • Format constraints: Can it reliably produce valid JSON, tables, or a fixed template?
    • Length constraints: Can it respect limits on word count or number of items?
    • Negative constraints: Can it correctly handle reverse conditions like “do not include a specific piece of content”?
    • Multiple-constraint priority: When constraints conflict, does it follow a reasonable priority?

    The following is a simplified example of evaluation logic:

    1. def check_instruction_following(response, spec):
    2. results = {}
    3. results["valid_json"] = is_valid_json(response) if spec.require_json else None
    4. results["length_ok"] = (len(response) <= spec.max_chars) if spec.max_chars else None
    5. results["no_forbidden"] = all(kw not in response for kw in spec.forbidden)
    6. results["items_count"] = (count_items(response) == spec.expected_items)
    7. return results

    In practice, the stability of instruction following often matters more than peak performance. It’s a good idea to include both “simple single-constraint” and “complex multi-constraint” samples in your test set, then observe how much the model degrades as constraints stack up.

    2. Long-Context Understanding: Pushing Past the Context Window

    Long-context understanding concerns a model’s ability to preserve information integrity and reasoning accuracy when the input is extremely long. As usable context lengths keep growing, simply “fitting it all in” is no longer impressive. The real challenge is “whether the model can actually use what it was given”—the so-called “lost in the middle” problem, where key information buried in the middle of a long text is more easily overlooked than information at the beginning or end.

    To evaluate long-context understanding, a “position sensitivity” testing approach is recommended: deliberately place key information in different positions and observe the consistency of recall and reasoning.

    • Beginning-of-text retrieval: Tests the most basic retrieval ability.
    • Middle-of-text retrieval: Exposes attention decay over long contexts.
    • Cross-paragraph synthesis: Requires the model to integrate clues scattered across multiple locations to reach a conclusion.
    • Resistance to interference: Can it identify and filter out noise amid a large volume of irrelevant content?

    For very long documents, engineering practice usually requires introducing chunking and retrieval strategies. A common pattern follows a “retrieval-augmented” idea: first split the long document into chunks and build an index, then retrieve relevant fragments based on the question, and finally hand the trimmed context to the model.

    1. # Generic long-document processing pipeline (pseudocode)
    2. chunks = split_document(long_text, chunk_size=1024, overlap=128)
    3. index = build_index(chunks) # vector or keyword index
    4. top_k = index.retrieve(question, k=5) # retrieve relevant chunks
    5. context = merge_with_overlap(top_k) # merge and deduplicate
    6. answer = model.generate(prompt(question, context))

    This two-stage “retrieve, then generate” structure is essentially about increasing information density within a limited attention budget. It is currently one of the more general engineering approaches for long-context applications.

    3. Long-Horizon Tasks: The Stability of Multi-Step Planning

    Long-horizon tasks require a model to accomplish complex goals made up of multiple sequentially dependent steps—for example, a chain like “first collect data, then clean it, then analyze it, and finally produce a report.” The fundamental difference from single-turn Q&A is that errors accumulate along the steps: any deviation in one step can be amplified into the final result.

    When evaluating long-horizon task capability, the focus is not on whether each individual step is correct, but on the completion rate of the entire chain and the model’s ability to self-correct:

    • Reasonableness of step decomposition: Can the model break the goal into executable subtasks?
    • Intermediate-state consistency: Does each step build on the correct result of the previous one?
    • Error recovery: When an intermediate step fails, can it retry or adjust its strategy?
    • Long-chain completion rate: What proportion of runs make it through all steps end to end?

    A common implementation idea is to have the model advance through a “plan–execute–check” loop while explicitly maintaining task state:

    1. plan = model.plan(goal) # generate a list of subtasks
    2. state = TaskState(tasks=plan)
    3. while not state.done():
    4. step = state.next_task()
    5. result = execute(step) # call a tool or function
    6. verdict = model.verify(result) # verify this step's output
    7. if not verdict.ok:
    8. state.retry_with_hint(verdict.hint) # retry with feedback
    9. else:
    10. state.commit(result)
    11. final = model.summarize(state.history)

    The key design here is to make every step verifiable and traceable. In real business scenarios, it often helps to hand deterministic operations (computation, queries, retrieval) to external programs via tool calls, while letting the model focus on planning and decision-making. This helps mitigate the problem of accumulated errors.

    4. Deep Research: From Information Retrieval to Synthesized Conclusions

    Deep research is the combination of the capabilities above. It refers to a model autonomously carrying out the process of “gathering information → cross-validating → synthesizing → forming a structured conclusion” on an open-ended question. Compared with long-horizon tasks, it places more emphasis on judging information quality and expressing conclusions rigorously, including distinguishing facts from speculation, citing sources, and identifying contradictory evidence.

    To evaluate deep research capability, you can design samples around the following angles:

    • Information completeness: Does it cover the key sub-questions rather than just answering on the surface?
    • Logical consistency: Are the conclusions supported by the intermediate evidence?
    • Critical thinking: Can it identify and handle conflicting information?
    • Structured output: Are conclusions organized in a clear, traceable way?

    In terms of engineering implementation, deep research typically reuses the long-context processing and long-horizon planning capabilities described earlier, then adds retrieval and verification stages. Developers need to pay particular attention to controlling “hallucination”: for key conclusions, the model should be required to clearly label its basis, and remain cautious about parts that cannot be verified, rather than forcing a definitive judgment.

    5. Engineering Practice for Capability Evaluation

    These four capabilities can’t be judged by subjective impression alone; you need a reusable evaluation system. It’s recommended to start from three points:

    1. Build a layered test set. Organize samples by “single-constraint / multi-constraint,” “short text / long text,” and “single-step / multi-step,” and measure pass rates for each layer separately. This lets you pinpoint strengths and weaknesses rather than looking at a single overall score.
    2. Focus on stability rather than peak performance. Sample the same input multiple times and observe the consistency of outputs. Production environments care more about “meeting the bar every time” than “occasionally impressive.”
    3. Establish a regression mechanism. After each change to the model or prompts, run a regression against a fixed test set to avoid optimizing long-context behavior at the expense of instruction following.

    On the deployment side, if the work involves model hosting and inference resource management, you can rely on a general cloud architecture: a container platform to host inference services, object storage to hold model weights and datasets, and logging and monitoring/alerting services to track call quality and latency. Platforms such as Baidu AI Cloud typically offer these general capability categories, which can serve as a reference foundation for elastic scaling and operational observability—but the specific choice should still be based on your own evaluation results.

    6. Implementation Recommendations

    Back to the original question: facing open-weight ultra-large models, how should a team make a decision? The core principle is “match capabilities to needs, rather than judging by scale alone.”

    • First, run candidate models through the layered test set from Section 5 to get a quantitative profile.
    • Then, select based on the dominant capability of your business scenario: for automation-heavy scenarios, prioritize instruction following and long-horizon tasks; for document-analysis scenarios, prioritize long-context understanding; for analysis and decision-making scenarios, prioritize deep research.
    • Finally, factoring in deployment cost, latency requirements, and operational complexity, complete the rollout and ongoing monitoring on a general cloud architecture.

    The parameter count of a model is only the starting point. What truly determines value is whether it is stable, controllable, and measurable on your specific tasks. Building your own evaluation framework delivers more long-term returns than chasing any single leaderboard.