Evaluating LLM Capabilities: From Intent Understanding to Hidden Routing

    Evaluating large language models (LLMs) requires a systematic approach that goes beyond single interactions. This article explores methodologies for assessing LLM capabilities, focusing on intent understanding, knowledge timeliness, multi-step generation tasks, and the impact of hidden instructions. By establishing reproducible tests, fixed probe questions, and a combination of automated metrics with human review, developers can accurately diagnose performance variations and ensure result comparability across different service layers and access channels.

    1. Why Systematic Model Evaluation is Needed

    LLM services typically consist of multiple layers: base model, system prompts, routing strategies, safety filters, and output post-processing. End users only see the final response. When the same API returns inconsistent styles or capabilities across different times or channels, it is difficult for developers to determine whether the cause is a model version update, a routing change, or contextual differences.

    Single interactions provide too few samples and are subject to model randomness. Therefore, evaluation must achieve three goals: task reproducibility, comprehensive logging, and statistical conclusions rather than subjective impressions.

    2. Evaluating Intent Understanding

    Intent understanding refers to whether the model can identify the underlying goal of a user’s request, rather than merely executing literal instructions. Bug fixing is a typical scenario. Given a specific error, the model might just modify the exact line where the error occurred, or it could locate the common root cause—such as missing null checks for a certain variable type or unescaped external inputs—and proactively ask whether a unified fix is needed.

    During evaluation, a set of samples can be prepared, with each sample manually labeled with a common root cause, to statistically analyze the model’s performance. Key metrics include:

    • Root cause localization rate: Whether the response accurately identifies the common root cause;
    • Out-of-bounds modification rate: Whether it makes extensive code changes without confirmation;
    • Proactive inquiry rate: Whether it confirms the scope before taking action when the boundaries are unclear.

    Keyword matching can only serve as a coarse filter. An example is as follows:

    1. from dataclasses import dataclass
    2. @dataclass
    3. class Case:
    4. prompt: str
    5. expected_root_cause: str # Manually labeled common root cause keyword
    6. def score_intent(answer: str, case: Case) -> dict:
    7. found_root = case.expected_root_cause in answer
    8. asks_scope = any(k in answer for k in ["need to", "want to", "should we"])
    9. return {
    10. "root_cause_found": found_root,
    11. "asks_before_wide_change": asks_scope,
    12. }

    In formal evaluations, keyword results need to be reviewed by humans or an independent review process to prevent mistaking “mentioning a keyword” for “understanding the problem.”

    3. Knowledge Timeliness and Service Version Identification

    A common practice is to ask about events that occurred after a certain point in time to infer the model’s training data cutoff. Two prerequisites must be noted for this method.

    First, a model’s description of its own knowledge cutoff is unreliable. The model may not know its actual cutoff or might provide a plausible but incorrect date.

    Second, the answer might come from retrieval tools rather than its internal parametric memory. If retrieval is enabled during testing, the result cannot indicate the model’s internal knowledge state. Retrieval should be explicitly disabled during tests, or its status should be logged.

    A more robust approach is to establish a set of fixed probe questions and fix the following variables:

    • The same set of system prompts and version numbers;
    • Fixed sampling parameters, such as temperature and maximum output length;
    • Each question is sampled at least N times to record the response distribution.

    When determining if a channel or version has changed, the distribution differences between two sample groups should be compared, for example, using a Chi-square test or calculating the confidence interval of proportions. A single response is insufficient to draw a conclusion.

    4. Multi-Step Generation Tasks: Evaluating Reasoning with Graphics and Animation

    Asking the model to generate SVGs or draw animations frame by frame can simultaneously test its structural understanding, coordinate calculation, and code organization skills. Such tasks are suitable for hierarchical evaluation.

    1. Syntax validity: Whether the output can be parsed correctly;
    2. Structural correctness: Whether the nesting levels, element counts, and coordinate ranges meet the requirements;
    3. Visual scoring: Rendered results are scored by humans using a unified scale; the model’s self-evaluation is not accepted.

    Syntax validation can be done directly using standard libraries:

    1. import xml.etree.ElementTree as ET
    2. def svg_is_well_formed(svg_text: str) -> bool:
    3. try:
    4. root = ET.fromstring(svg_text)
    5. except ET.ParseError:
    6. return False
    7. return root.tag.endswith("svg")

    Animation tasks incur higher costs. In addition to quality metrics, the number of input and output tokens, execution time, and retry attempts should be recorded to calculate the actual cost per task. Long-chain generation may consume far more resources than expected, and cost data can help teams decide whether to split tasks.

    5. Hidden Instructions and Result Comparability

    On the product side, system-level instructions are often added beyond user-visible prompts, such as output format constraints, safety policies, and persona settings. This is a common industry practice, but it affects the comparability of evaluations. The same underlying model placed in different product interfaces or accessed via different methods may perform noticeably differently.

    Engineering measures can be taken as follows:

    • Log complete call parameters, access methods, and system prompt versions;
    • Specify in the evaluation report whether the test was conducted via direct API or product UI;
    • Only compare samples with identical access conditions when comparing results;
    • Disclose necessary data processing rules and behavioral constraints to users to avoid misunderstandings about the source of responses.

    6. Implementation Checklist

    • Establish a fixed set of probe questions and tag them with version numbers;
    • Log access channels, sampling parameters, and retrieval status for every test;
    • Base every conclusion on multiple repeated samples;
    • Use both automated metrics and human review simultaneously;
    • Distinguish observed facts, data-driven inferences, and unconfirmed parts in reports.