Quantifying LLM Capability Boundaries: Evaluation Methods and Engineering Practices

    Many teams choose LLM models based on informal experience, which can introduce bias and overestimate real capability. This article presents a practical framework for measuring LLM capability boundaries: a five-layer capability model from local correctness to long-horizon planning, executable verification for coding tasks, measurable signals for hidden requirement inference, formal verification for open-ended reasoning, blind evaluation for creative generation, and operational metrics for long tasks and tool use. It also covers reproducible evaluation infrastructure, cost-aware decision making, ablation-based attribution, and a practical implementation checklist.

    1. Why “It Felt Good a Few Times” Is Not an Evaluation Conclusion

    Many teams evaluate models through informal, uncontrolled experiences: a few scripts ran smoothly, a few technical questions were answered correctly, or one long-form generation sounded polished. This type of judgment introduces several systematic biases:

    • Exposure bias: People tend to remember tasks where the model performed well, while failed cases are forgotten. This leads to systematic overestimation of model capability.
    • Insufficient task representativeness: A few scripts cannot cover the edge conditions, legacy constraints, and cross-module coupling that appear in real engineering work.
    • Differences in prompt proficiency: Experienced users often have mature prompt templates and context management practices. New users may get only part of the expected performance with the same model. This variable is often uncontrolled in cross-model comparisons.
    • Recency effect: The most recent impressive or disappointing experience can be overweighted, far beyond its statistical significance.

    Therefore, capability boundary assessment must move from subjective impression to reproducible measurement. The goal is not to assign a single overall score to a model, but to locate its position across specific capability layers. Engineering decisions need to answer three questions: where is the model strong, where is it weak, and how much manual work is required to fill the gaps?

    2. Layered Capability Model: Define the Scale Before Measuring

    LLM capability can be divided into five layers, from shallow to deep. Each layer has different failure modes and different engineering compensation methods:

    Layer Capability Definition Typical Failure Modes
    L1 Local correctness Correct syntax, formatting, and local logic Syntax errors, missing fields
    L2 Constraint following Following explicit constraints and output specifications Introducing prohibited dependencies, changing interfaces without permission
    L3 Task completion Producing a usable result in one pass Requiring multiple rounds of rework before it runs
    L4 Requirement inference and self-correction Extracting implicit requirements from under-constrained input Ignoring key boundary conditions, executing mechanically
    L5 Long-horizon planning and transfer Exploration, validation, and rollback across multi-step tasks Invalid loops, error accumulation, context degradation

    The purpose of layering is to avoid misinterpreting strong L1-L3 performance as overall intelligence. L1-L2 issues can almost always be solved through prompting and post-processing. L3 is the dividing line for practical usability. L4-L5 are the areas where current models are often weak and where simple prompt changes cannot easily compensate.

    3. Coding Capability: Replace Subjective Judgment with Executable Verification

    Code is one of the domains most suitable for automatic scoring because it provides objective signals such as compilation, static checks, unit tests, and integration tests. A practical metric set includes:

    • pass@1: The proportion of cases that pass all validation checks on the first attempt.
    • rework_rounds: The number of modification rounds required to reach a usable state. A lower value indicates stronger one-pass delivery ability.
    • constraint_violation_rate: The proportion of outputs that violate explicit constraints, such as prohibited dependencies, interface signatures, or directory structure requirements.
    • critical_defect_rate: The proportion of outputs that introduce severe defects, such as data loss, concurrency errors, or security issues.
    • regression_rate: The proportion of changes that cause existing tests to fail.

    Key considerations for building the evaluation set:

    • Extract desensitized tasks from real business repositories.
    • Sample across task types: single-file modification, cross-file refactoring, defect localization, and new feature implementation.
    • Fix each task with an executable verification suite and a baseline version.
    • Use a paired design for cross-model comparisons: the same prompt budget, the same context window constraints, the same maximum output length, and the same sampling parameters. Otherwise, the comparison results are not valid.

    4. Hidden Requirement Inference: Turn “Not Smart Enough” into Measurable Metrics

    A common pain point can be expressed as a concrete engineering problem: requirement completeness under under-constrained input. This capability can be quantified through purpose-built test cases.

    Given a requirement description that deliberately omits key conditions, the expected behavior can be annotated into three categories:

    • must_ask: Information that the model must actively ask about, otherwise the task will likely fail. Examples include data scale, compatibility requirements, and compliance constraints.
    • acceptable_assumption: Content that the model may assume on its own, but must state explicitly.
    • forbidden_action: Boundaries that the model must not touch, such as directly modifying production configuration.

    This produces four metrics:

    • Clarification question recall rate: How many necessary questions were asked.
    • Assumption explicitness rate: Whether self-defined assumptions were written down.
    • Boundary violation rate: How often the model crossed forbidden boundaries.
    • Second rework rate: How often the result required another round of rework.

    A key conclusion is that weakness at this layer does not make a model unusable. In engineering practice, it can be shifted to the workflow level through requirement templates, pre-questionnaires, and state machine constraints. The cost is a one-time investment in prompt design and workflow design. Recording this cost in the evaluation report helps teams estimate compensation costs in advance rather than discovering them during project execution.

    5. Open-Ended and Verifiable Reasoning: Separate Generation from Retrieval

    Tasks such as mathematical proof, formal derivation, and complex algorithm design are difficult for non-experts to judge automatically. However, they can be evaluated using formal verification environments as objective judges. The conclusion can be submitted to an automatically checkable verification tool. If it passes, the result is correct. If it fails, the tool can provide clues for diagnosis.

    Two traps must be handled in this type of evaluation:

    1. Data contamination: The model may simply reproduce existing solutions from its training corpus. To mitigate this, construct variant tasks by changing parameters, reordering narrative structure, introducing undisclosed constraints, or asking for counterexamples or alternative solutions. If accuracy drops sharply after removing features from the original task, the capability may come mainly from memorization rather than reasoning.
    2. Lack of readability: An output accepted by a verifier is not necessarily easy for humans to understand or maintain. Therefore, evaluation should also collect human readability scores and record reasoning length and redundancy. Verbose reasoning itself creates additional inference cost and latency cost.

    6. Creative Generation: Replace Personal Intuition with Blind Evaluation and Consistency Checks

    Narrative, copywriting, and scriptwriting tasks do not have objective answers. However, statements such as “I feel this is mediocre” must be converted into reproducible procedures before they can support decision-making:

    • Double-blind randomization: Hide source labels and randomize presentation order to eliminate order bias and brand expectations.
    • Multi-person scoring with rubrics: Break the evaluation into independent dimensions such as conflict tension, character motivation consistency, information rhythm, language quality, and reusability. Score each dimension instead of giving a single overall impression.
    • Consistency checks: Sample the same prompts multiple times and calculate inter-rater consistency and variance across repeated samples. Variance is itself an important metric. A model with high average quality but high variance can be more expensive in production than a model with slightly lower average quality but stable output.

    7. Long Tasks and Tool Calls: Quantifying Mechanical Execution

    Long-running tasks often reveal behaviors such as not proactively exploring, failing to self-correct after errors, repeatedly performing invalid actions, and instruction drift as context grows. These can be mapped to concrete metrics:

    • tool_call_validity: The proportion of tool calls with correct parameters that are accepted by the system.
    • loop_count: The number of consecutive repeated invalid actions.
    • recovery_success_rate: The success rate of autonomous recovery after injected failures, such as missing dependencies, interface timeouts, or insufficient permissions.
    • context_consistency: The degree to which original constraints are preserved before and after context compression.
    • cost_per_success: The cumulative number of calls and cost required for each successful task.

    The main engineering compensation is external orchestration: a plan-execute-verify-rollback structure, with verifiable checkpoints inserted at key positions. Combined with automatic reviewers and regression baselines, this can turn an unreliable single-step model into a converging overall workflow.

    8. Evaluation Infrastructure: Reproducible, Regression-Ready, and Statistical

    A long-term evaluation method requires the test case set and scoring logic to be written as versioned configuration.

    Example case definition:

    1. {
    2. "case_id": "refactor-0142",
    3. "layer": "L3_task_completion",
    4. "domain": "backend_refactor",
    5. "prompt": "Change the synchronous calls in this module to retryable asynchronous calls",
    6. "constraints": [
    7. "Do not introduce new dependencies",
    8. "Keep public interface signatures unchanged"
    9. ],
    10. "must_ask": [
    11. "Expected concurrency level",
    12. "Whether database schema changes are allowed"
    13. ],
    14. "forbidden_actions": [
    15. "Modify production configuration"
    16. ],
    17. "verifier": {
    18. "type": "test_suite",
    19. "suite_id": "reg-0142"
    20. },
    21. "weight": 2.0
    22. }

    Example evaluation flow:

    1. function evaluate(cases, model, k):
    2. results = []
    3. for case in cases:
    4. samples = [run(model, case.prompt, case.constraints) for _ in 1..k]
    5. checks = [case.verifier.check(s) for s in samples]
    6. results.append({
    7. case: case.id, weight: case.weight,
    8. pass_at_1: mean(checks),
    9. pass_at_k: any(checks),
    10. rework: mean(patches(s) for s in samples),
    11. clarify: recall(extracted_questions(samples), case.must_ask),
    12. violations: mean(violated(samples, case.forbidden_actions))
    13. })
    14. scores = weighted_aggregate(results)
    15. return { scores, ci95: bootstrap(scores, n=2000) }

    Three hard rules should be followed:

    • Fix random seeds and sampling parameters to ensure rerunnability.
    • Isolate new cases from historical cases to prevent contamination that resembles training-data leakage.
    • Report confidence intervals rather than single-point values. If the difference between two versions falls within overlapping intervals, it should be treated as “no significant difference” rather than “a slight improvement.”

    The computing resources, container orchestration, object storage, log search, and monitoring alerts required by the evaluation system can be built on common cloud platform product categories. The main effort should be focused on building test cases and scoring logic.

    9. Treat Human Guidance Cost as a First-Class Metric

    The core conclusion is an economic one: even if capability meets requirements, a high guidance cost can make the project not worth pursuing. Therefore, the evaluation output must include cost items:

    1. Total cost = call cost + rework cost (rounds × duration per round)
    2. + human guidance cost (prompt iterations + requirement analysis hours)
    3. + operations cost (evaluation regression, prompt maintenance, failure troubleshooting)

    This enables a clear capability boundary confirmation process. After a new model version is released, teams can use short-cycle, high-frequency sampling with a small fixed set of high-value cases to quickly determine whether the model has crossed the business requirement line. If it has, the team can move to a formal pilot. If it has not, the result should be recorded and further investment deferred rather than immediately spending significant engineering effort on deep customization.

    This “keep it simple” strategy has one prerequisite: the small probing set must be highly aligned with real business scenarios. Otherwise, important weaknesses may be missed.

    10. View Scale and Emergent Capability Rationally

    The assumption that “capability will improve only after parameters increase by ten times” is worth testing, but should not be accepted directly. Capability growth usually comes from multiple combined factors:

    • The scale and quality of training data.
    • Data deduplication and data mixing ratios.
    • Post-training and alignment strategies.
    • Inference-time compute allocation.
    • External tools and retrieval integration.
    • Task decomposition and workflow design.

    The only reliable way to make correct attribution is ablation experiments. With the evaluation framework fixed and the case set unchanged, change only one variable at a time and observe which layer-level metrics move. This produces conclusions that can be reused in the next model selection round. If teams only observe changes in overall impression, they may mistakenly attribute workflow improvements to model capability.

    11. Implementation Checklist

    • Build a fixed evaluation set covering at least three capability layers, with enough samples to support confidence interval estimation.
    • Prioritize automatic verifiers for coding and reasoning tasks, and use blind scoring rubrics for creative tasks.
    • Use paired designs for all cross-model comparisons and unify resource budgets.
    • Explicitly record must_ask, acceptable_assumption, and forbidden_action annotations to quantify requirement inference capability.
    • Include human guidance cost and total cost in the evaluation report as a basis for project decisions.
    • Attach confidence intervals to comparison conclusions and avoid overinterpreting small differences.
    • Version the evaluation case set, regularly add anti-contamination variants, and run quarterly regression evaluations.
    • For each new model version, first perform short-cycle boundary probing and decide investment based on whether the model crosses the business requirement line.

    Once model evaluation becomes an executable, regression-ready, and explainable engineering process, the vague question “is the model strong?” can be transformed into a set of answerable questions: What is its first-pass delivery rate on your task distribution? Which requirements will it fail to ask about? Can it correct itself after errors? How many person-days are needed to fill its gaps? These are the answers that directly support technical decisions.