页面简介
Public benchmarks make a shortlist. Your own test set makes the decision. See which metric fits each job and how to score a fair head-to-head run.
正文摘录
ModelsProductsPricingDocsBlogAboutContactGet Started🎉 MiniMax-H3 is available on SiliconFlow. Try it NOW.🎉 MiniMax-H3 is available on SiliconFlow. Try it NOW.Back to BlogsLLM Evaluation Metrics: How to Compare Models on Your Own TasksNov 10, 2026Table of ContentsThe most reliable way to compare LLM performance is to test models on the work your application actually performs. Public benchmarks can help you create a shortlist, but they cannot tell you which model will follow your instructions, handle your edge cases, meet your latency target, or deliver the lowest cost per successful task.A useful evaluation combines application-specific metrics, representative test cases, repeated trials, automated checks, calibrated human review, and production-relevant cost and latency measurements. The goal is not to identify one universally "best" model. It is to find the model and deployment configuration that meet your requirements with acceptable consistency and operating cost.Choose Evaluation Metrics That Match Your ApplicationStart by defining what success means for your product. A customer-support assistant, extraction pipeline, coding agent, and summarization tool should not be graded with the same metrics.ApplicationPrimary MetricSupporting MetricsCommon MistakeClassificationAccuracy, precision, recall, or F1Invalid-label rate and latencyUsing accuracy when classes are highly imbalancedStructured extractionField-level accuracySchema validity and missing-field ratePassing valid JSON that contains incorrect valuesQuestion answeringTask success or rubric scoreFactuality, relevance, and citation supportTreating word overlap as correctnessSummarizationCoverage and factual consistencyConcision and instruction complianceRewarding longer summaries automaticallyRAGAnswer correctnessGroundedness, retrieval recall, and citation accuracyGrading the answer without checking retrieved evidenceCodingTest pass rateRegression rate, security checks, and maintainabilityAccepting code that passes one test but breaks existing behaviorAgentsEnd-state successTool-call validity, policy compliance, recovery rate, latency, and costGrading only the final messageCreative contentRubric score or pairwise preferenceBrand fit, constraints, and human acceptanceRelying on exact-match metricsA strong metric changes a real decision. If improving the metric would not make the application more useful, safer, faster, or less expensive, it probably should not be a release metric.For deterministic tasks, calculate the accepted-run rate as:Accepted-Run Rate = Number of Accepted Runs ÷ Total Number of Attempted RunsDo not exclude malformed responses, timeouts, or tool failures simply because they are inconvenient to grade. If users would experience the event as a failed task, it normally belongs in the denominator.Open-ended tasks need a scoring rubric. Instead of asking whether an answer is "good," define separate dimensions such as:CorrectnessCompletenessRelevanceInstruction complianceGroundednessTone or styleSafetyGive each dimension clear pass conditions or scoring anchors. "Score factuality from 1 to 5" is too vague. A better rubric explains what evidence separates a 3 from a 4 and identifies any error that causes an automatic failure.For agent workflows, inspect both the execution trace and final outcome. An agent may claim that it issued a refund, updated a file, or completed a booking even when the underlying state did not change. Outcome checks should therefore inspect the database, file system, application state, or other relevant environment whenever possible.Repeated trials reveal another important distinction:pass@k measures whether at least one of kk attempts succeeds.pass^k measures whether every one of kk attempts succeeds.Use pass@k when several attempts are acceptable and one successful result is enough. Use pass^k or a per-trial success rate when users expect the workflow to work reliably every time.Build a Test Set From Real Tasks and Known FailuresAn effective LLM evaluation dataset should resemble production traffic without becoming a random sample of everything users have ever submitted.Start with four sources:Common production tasks with meaningful usage volumeHigh-impact workflows tied to revenue, trust, or safetyEdge cases involving unusual formats, missing context, or conflicting instructionsKnown failures from support tickets, logs, bug reports, and manual testingEach test case should contain enough information to reproduce and grade the task:{ "id": "support_refund_014", "category": "refund_policy", "input": "Can I return an opened item after 35 days?", "context": "Refunds are allowed within 30 days with a receipt.", "expected_behavior": "Explain that the request falls outside the stated window.", "acceptance_criteria": [ "Does not claim that the return is automatically eligible", "States the 30-day limit", "Does not invent an exception" ], "severity": "high", "source": "known_failure" }{ "id": "support_refund_014", "category": "refund_policy", "input": "Can I return an opened item after 35 days?", "context": "Refunds are allowed within 30 days with a receipt.", "expected_behavior": "Explain that the request falls outside the stated window.", "acceptance_criteria": [ "Does not claim that the return is automatically eligible", "States the 30-day limit", "Does not invent an exception" ], "severity": "high", "source": "known_failure" }{ "id": "support_refund_014", "category": "refund_policy", "input": "Can I return an opened item after 35 days?", "context": "Refunds are allowed within 30 days with a receipt.", "expected_behavior": "Explain that the request falls outside the stated window.", "acceptance_criteria": [ "Does not claim that the return is automatically eligible", "States the 30-day limit", "Does not invent an exception" ], "severity": "high", "source": "known_failure" }Not every task needs a single reference answer. Reference answers work well for classification, extraction, and questions with one verifiable result. For open-ended tasks, expected behavior and explicit acceptance criteria are usually more reliable than demanding a specific sentence.Your dataset should also include paired cases that test both sides of a behavior. If an agent should escalate suspicious activity, include cases where escalation is required and cases where it is unnecessary. Otherwise, the model may appear successful simply by escalating everything.Keep development and holdout sets separate. Use the development set while changing prompts, tools, or routing logic. Reserve the holdout set for final comparisons so repeated tuning does not turn the evaluation into a memorization exercise.Version the dataset and record where each case came from. When a production failure appears, add a minimized reproduction to the regression suite. This turns real failures into permanent checks instead of one-time fixes.Combine Automated Checks, Human Review, and LLM JudgesNo single grader works for every output. Use the cheapest reliable method for each criterion, then add more subjective review only where necessary.Grading MethodBest UsesMain LimitationExact match or regexLabels, IDs, required fields, and fixed formatsRejects valid variationsSchema validationJSON structure, data types, and required keysCannot confirm semantic correctnessUnit or integration testsCode, calculations, tools, and state changesRequires a testable environmentRule-based checksLength, prohibited content, citations, and tool argumentsRules may miss nuanced failuresLLM judgeRelevance, completeness, style, and open-ended qualityCan be biased or inconsistentHuman reviewAmbiguous, high-risk, and expert-dependent tasksSlow and expensiveRun deterministic checks first. There is no reason to pay an LLM judge to review an output that is invalid JSON or failed a required unit test.Use LLM judges for narrowly defined criteria rather than asking for one overall impression. Give the judge the task, relevant context, candidate output, rubric, and permitted labels. Allow an unknown or insufficient evidence result when the judge cannot decide confidently.Pairwise comparisons can be easier than absolute scoring, but answer order must be controlled. LLM judges may prefer a response because of its placement rather than its quality, a documented form of position bias. Run important pairwise comparisons in both orders and investigate results that reverse when the positions change.Human reviewers should calibrate the automated system. Have qualified reviewers independently grade a sample, resolve disagreements, and compare their decisions with the LLM judge. Continue sampling after launch, especially for new failure categories and high-impact tasks.Define task-specific evaluation criteria before running the comparison. Changing the rubric after seeing which model wins introduces bias and makes the reported result difficult to reproduce.Run a Fair Comparison Across ModelsA fair comparison changes the model while keeping the rest of the evaluation controlled.Keep these elements consistent unless the experiment is specifically testing them:System and user promptsSupplied contextTool definitionsRetrieval resultsMaximum output allowanceTimeout policyRetry policyTest-case orderGrading logicNumber of trialsConcurrency conditionsUse the exact model identifier for each deployment. Model names, supported parameters, and available versions can differ between an upstream developer, SiliconFlow, another API provider, and a self-hosted deployment. Populate your evaluation configuration with IDs returned by the SiliconFlow model-list endpoint.Do not force every model to use an unsupported parameter merely to make the request bodies identical. Hold supported settings constant and document any required model-specific difference. The comparison should reflect a valid configuration for every candidate.Run multiple trials because LLM outputs are nondeterministic. Interleave models instead of running all trials for one model befor