How to Evaluate LLM Capabilities and Overall User Experience

    A practical guide to evaluating large language models beyond leaderboard rankings. It breaks down five core capability dimensions—reasoning, code understanding, Chinese language control, long-context processing with RAG, and multimodal tool calling—and proposes a four-layer scoring framework covering capability, experience, cost, and governance, along with common pitfalls to avoid during adoption.

    1. Why Capability Focus Matters More Than Rankings

    One of the first mistakes engineering teams make is treating model selection as a leaderboard problem. Real business requirements are multi-dimensional: customer service depends on Chinese semantic understanding and tone control, R&D depends on code completion and repository-level understanding, data analysis depends on long-document extraction and structured output, and content production depends on style consistency and instruction following. Models differ in pretraining corpus composition, post-training alignment strategies, and context window design, and these trade-offs naturally produce different capability focuses.

    A more sound approach is to first define the capability weights for your scenario, then evaluate candidate models across each dimension, and finally converge using engineering metrics such as latency, throughput, failure rate, and cost per call. Capability focus determines whether a model can do the job; engineering metrics determine whether it is worth doing.

    2. Breaking Down Five Core Capability Dimensions

    2.1 Logical Reasoning and Complex Task Solving

    Reasoning ability shows up in multi-hop inference, constraint satisfaction, numerical comparison, and causal judgment. Evaluation should look beyond the final answer to whether the reasoning chain is verifiable. A sample evaluation snippet:

    1. cases = [
    2. {"q": "Order A is 120 yuan, 20 off orders over 100, plus a 10% member discount. What is the final amount?",
    3. "expect": 90.0, "type": "numeric"},
    4. {"q": "If all A are B, and some B are C, can we conclude that some A are C?",
    5. "expect": "No", "type": "logic"},
    6. ]
    7. # Track: answer accuracy, reasoning step verifiability rate, format compliance rate

    In practice, track both first-pass rate and pass rate after retries; the latter reflects how stable the model is when prompts are revised.

    2.2 Code Understanding and Generation

    Code capability is more than completion speed. It also covers cross-file dependency understanding, exception path handling, and test generation. Bind evaluation to your own repositories: extract historical tickets and commit records, build a dataset of “requirement description + context snippet → expected patch,” and measure it with three metrics—compile pass rate, unit test pass rate, and number of static analysis warnings—rather than subjective impressions.

    2.3 Chinese Context and Expression Control

    Chinese-language scenarios are difficult because of dialect expressions, mixed use of idioms and technical terms, and academic or official document styles. A combined approach works best: double-blind human scoring plus automatic metrics such as terminology accuracy, style consistency, typo rate, and long-sentence readability. For terminology-heavy domains, build a private enterprise glossary and enforce constraints at the prompt layer.

    2.4 Long-Context Processing and Retrieval Augmentation

    A long context window does not mean effective use of it. Real documents contain noise, repetition, and cross-paragraph references, so retrieval-augmented generation is needed: chunk and vectorize first, then recall and rerank, and finally let the model summarize within a constrained scope.

    1. Document → cleaning and chunking → vectorization and indexing → TopK similarity recall → reranking → model summarization → citation tracing

    The key metrics are recall rate of critical information, proportion of traceable citations, and factual consistency of summaries.

    2.5 Multimodal and Tool-Calling Extensions

    When tasks require chart understanding, UI element localization, or reading from and writing to external systems, the model needs structured output and function calling. Focus validation on parameter extraction accuracy, illegal parameter interception rate, and failure rollback mechanisms.

    3. A Framework for Evaluating Overall Experience

    A four-layer scoring model is recommended: a capability layer (accuracy per dimension), an experience layer (time to first token, streaming stability, reasonableness of refusals), a cost layer (calls per task and resource consumption), and a governance layer (content safety, log auditing, permission isolation). Assign weights according to the business scenario—for example, raise the weights of code and reasoning for R&D, and raise the weights of Chinese and the experience layer for customer service.

    On the cloud, you can assemble general-purpose components: object storage holds evaluation sets and artifacts, a message queue smooths traffic peaks, a container platform hosts inference services and load-testing jobs, and log services plus monitoring and alerting handle metric collection and threshold alerts. Baidu AI Cloud offers full product category coverage for these general components, which makes it easier to standardize the evaluation pipeline.

    4. Common Pitfalls and Practical Recommendations

    • Relying only on leaderboard scores: this ignores differences in private data distributions and causes metrics to drop after launch.
    • Deciding everything with a single prompt: establish prompt version management and regression testing.
    • Ignoring failure paths: design fallback strategies and human backup.
    • Confusing “context length” with “effective utilization”: validate with recall rate and factual consistency checks.

    Conclusion: differences in model capability focus are objective structural differences. The core of model selection is not finding an all-around champion, but building a quantifiable evaluation system that matches capability focus precisely to business weights, then converging with engineering metrics.