How to Evaluate Large Language Models: Metrics and Interpretation for Complex Tasks
This article explains why complex, multi-constraint prompts reveal real model capability better than simple Q&A, and how to build an automated evaluation pipeline around them. It covers the division of labor across instruction-following, Chinese, and English evaluation sets, the engineering workflow from atomic constraint definitions and rule-based validators to score normalization and reproducibility, common pitfalls in reading results such as total-score masking, length bias, and over-extrapolation from single-turn tests, and practical advice for teams building their own regression-ready evaluation system.
1. Why Complex Prompts Reflect Real Capability
In real engineering deployments, model requests are rarely single-turn, single-point, fixed-format questions. They are long instructions with multiple constraints, implicit premises, cross-paragraph reasoning, and mixed Chinese-English text. Simple Q&A benchmarks are losing discriminative power: most candidate models score closely on basic tasks, which makes selection decisions meaningless. The industry is therefore shifting toward evaluation built around more complex prompts, using items closer to the real business distribution to separate models.
Complex-prompt evaluation delivers value in three ways:
- Higher discriminative power: a prompt requires several conditions to be satisfied at once, so a single omission costs points and exposes differences in detail compliance.
- Closer to the business distribution: format constraints, length constraints, role constraints, and language switching are common in real traffic, and complex items resemble online requests more closely.
- Stronger attributability: once results are split by capability dimension, you can tell whether the weakness lies in instruction parsing, knowledge organization, or language expression.
The goal is not a leaderboard rank. It is an explainable, reproducible, regression-capable capability profile that informs model selection, prompt engineering, and post-training optimization.
2. How Three Evaluation Sets Divide the Work
A common approach is to pick three evaluation sets that cover different capability surfaces and complement each other:
- Instruction-following evaluation: focuses on how strictly the model executes format, structure, and constraint requirements, such as a specified output structure, a bounded length range, itemized enumeration, or a ban on certain content. This set is the most sensitive to compliance.
- Chinese general capability evaluation: covers semantic understanding in Chinese contexts, cultural common sense, expression conventions, and multi-turn context continuity, measuring the accuracy and naturalness of Chinese output.
- English general capability evaluation: covers long-text comprehension in English, terminology consistency, logical cohesion, and cross-lingual transfer, so a model cannot look good in only one language.
The point of combining them is that a high score on a single dimension may come from a pleasing style or redundant length, while simultaneous gains across dimensions are more likely to reflect genuine improvement in underlying capability. When a new generation improves steadily on all three sets and clearly pulls ahead of some baseline models on instruction following and Chinese-English general capability, its capability structure is more balanced.
3. Engineering the Automated Evaluation Pipeline
Automated evaluation turns subjective quality into computable metrics. It typically involves the following stages.
3.1 Item and Reference Answer Construction
Each item contains an input instruction, a constraint list, and key points. The constraint list is the basis for automated scoring and should be as atomic as possible, for example:
{"id": "case_0421","prompt": "Explain the causes and mitigation of cache penetration in three paragraphs, each no more than 80 characters, without using lists","constraints": [{"type": "paragraph_count", "value": 3},{"type": "max_chars_per_paragraph", "value": 80},{"type": "forbid_format", "value": "list"}],"key_points": ["null caching", "Bloom filter", "request parameter validation"]}
3.2 Constraint Validators
Constraints that can be judged programmatically (structure, length, forbidden formats, required points) are checked with rules, which is cheap and stable. Semantic requirements add model review or human spot checks.
3.3 Scoring and Normalization
Score scales differ across evaluation sets, so averaging raw scores introduces bias. The common practice is to normalize within each set first, then aggregate with weights:
score_norm = (score_raw - min) / (max - min)score_total = w1 * score_instruct + w2 * score_zh + w3 * score_en
Weights should follow the business language distribution. A Chinese-first business can raise the weight of the Chinese dimension. Record the weight version explicitly so results stay comparable across rounds.
3.4 Consistency and Reproducibility
Fix inference parameters, fix the prompt template, and fix the scoring version. For the semantic review portion, sample multiple times and average to reduce misjudgment from random fluctuation.
4. Common Mistakes in Reading Results
- Total score hides weaknesses: close totals can hide large gaps on format constraints, so go back to the per-dimension view.
- Length bias: longer answers are often rated as more thorough, so bound length explicitly in the constraints to reduce the style bonus.
- Over-extrapolating from single-turn evaluation: strong single-turn performance does not mean multi-turn stability; add multi-turn context and conflicting-instruction scenarios.
- Ignoring the distribution of failure types: classifying failures as missed constraints, out-of-range length, missing key points, or mixed languages is more actionable than a single score.
5. Implementation Advice
Teams building their own evaluation system can proceed in small, regression-friendly steps: first accumulate 100-300 complex instruction items that fit their own business, with atomic constraints and key-point lists; then wire evaluation into the CI pipeline so every prompt or model version change triggers a regression run; and keep a human spot-check channel to calibrate the bias of automated review. For large volumes of items and result data, object storage can hold samples and artifacts, a message queue can decouple evaluation task scheduling, a container platform can scale concurrent inference elastically, and logging plus monitoring alerts can track failure rates and latency shifts.
The value of an evaluation system is turning “it feels better” into “the metric proves it, the problem is locatable, and the optimization is regression-testable.” That is the most essential advance of complex-prompt evaluation over simple Q&A evaluation.
