Evaluating Complex Task Performance of Lightweight Inference Models

    This article examines why lightweight inference models deserve a separate evaluation focused on complex, process-dependent tasks rather than casual Q&A. It introduces a geometry construction task as a verifiable benchmark, outlines five observation dimensions such as instruction adherence and state consistency, and presents a comparative experiment showing that higher peak capability does not automatically translate into constraint compliance. The article closes with practical engineering recommendations, including layered routing, explicit constraints, automated validation, observability, and cost-per-successful-task metrics.

    1. The Problem: Why “Lightweight Flagship” Models Need a Separate Evaluation

    Model portfolios usually contain two types of offerings: one optimized for peak capability, and one optimized for usable capability per unit of cost. The latter is often labeled “lightweight” or “fast,” but lightweight does not mean weak. In engineering terms, it means allocating compute first to the parts of a task that actually determine success or failure under a limited inference budget.

    As a result, evaluating a lightweight model should go beyond how smoothly it handles routine questions. It should focus on stability in tasks with long instructions, multiple constraints, and strong sequential dependencies. These tasks share one trait: any deviation in an intermediate step propagates forward, so the final output may “look correct” while the process is completely unacceptable.

    2. Evaluation Design: A Geometry Task as a Hard Gate

    Traditional “small web animation” tests have lost discriminative power because they place limited demands on reasoning depth, allowing models to pass through pattern matching. A more useful approach is to design process-verifiable tasks. Example instruction (illustrative):

    1. Generate a single-file webpage that animates the construction of a regular heptagon using only a "two-mark ruler":
    2. 1. Start with a square and construct the perpendicular bisector of the base;
    3. 2. Using the bottom-right vertex as the center and the diagonal as the radius, draw a circle;
    4. 3. Keep the two-mark ruler flush against the bottom-left vertex, move the first mark along the circle,
    5. until the second mark passes through the perpendicular bisector of the base;
    6. 4. Complete the remaining standard construction steps to determine the center and vertices;
    7. 5. Keep only necessary compass traces, with no extra trajectories;
    8. 6. Add a function to export a GIF.

    The difficulty of this task comes from three factors:

    • Many constraints: geometric constraints, drawing-trace constraints, interaction constraints, and export constraints exist simultaneously;
    • Strong sequential dependency: the ruler position in step 3 is determined by the constructions in steps 1 and 2;
    • Verifiable results: checking whether any “extra auxiliary steps” appear in the animation reveals whether the model followed the instruction or switched to its own path.

    3. Observation Dimensions: Do Not Look Only at the Final Answer

    Record the process and the result separately. At minimum, cover five dimensions:

    1. Instruction adherence: whether the given construction route is followed strictly, without adding steps that do not exist;
    2. State consistency: whether variables, coordinates, and layer names remain consistent across a long output;
    3. Runnability: whether the artifact opens directly and whether the console reports errors;
    4. Resource and performance: whether rendering stutters and whether the export flow blocks the main thread;
    5. Process observability: whether the reasoning process is continuous and whether there are long periods of reasoning without output.

    The first dimension is the most discriminative. Two typical failure modes can be observed in practice:

    • Result-oriented deviation: the final figure looks correct, but the implementation path is replaced with a more “convenient” algorithm, which is a process violation;
    • Broken-chain deviation: the first half is correct, but constraints are lost in the second half (for example, forgetting to clean up extra traces or forgetting the export function), which reflects insufficient long-context maintenance.

    4. Interpreting Results: A Typical Controlled Comparison

    In one controlled comparison, the lightweight model produced a complete implementation that matched the required construction order, with geometric relationships and steps corresponding one to one and no extra auxiliary lines. A general-purpose solution with a higher capability ceiling finished faster and produced a similar-looking figure, but its implementation path did not match the instruction. It was a false pass that only “looked compliant.”

    This leads to an important conclusion: on process-verifiable tasks, a higher capability ceiling does not automatically translate into constraint-following ability. If a business scenario requires output through a fixed process (such as compliance reports, fixed-pipeline code generation, or visualization of a predefined algorithm), process consistency matters more than peak capability.

    Another notable phenomenon is uneven output pacing and staged “reasoning without output.” This suggests that the engineering side must provide streaming timeouts, stage checkpoints, and artifact persistence, rather than passively waiting for the final result.

    5. Engineering Recommendations

    • Layered routing: classify tasks by “constraint complexity,” route high-constraint tasks to solutions with better long-chain stability, and route low-risk tasks to lightweight solutions to control cost;
    • Explicit constraints: rewrite implicit requirements as a numbered list to significantly reduce the model’s room for improvisation;
    • Automated validation: write assertion-based checks for artifacts (whether extra elements exist, whether the export function is called, whether the console is error-free);
    • Observability and fault tolerance: log stage durations and intermediate artifacts, set timeouts and retries, and avoid wasting resources on long periods without output;
    • Unified cost metric: use “cost per successful task” rather than “price per token” as the selection criterion.

    6. Conclusion

    The value of a lightweight flagship model is not to surpass high-ceiling solutions across the board, but to complete high-constraint tasks stably at lower cost. When evaluating such models, move away from “toy-style” tests and toward process-verifiable, result-decidable task design, and place instruction adherence, state consistency, and engineering fault tolerance on equal footing. General capabilities offered by Baidu AI Cloud in model services and engineering support (such as container platforms, logging services, monitoring and alerting, and object storage) can serve as general-purpose infrastructure references for implementing the evaluation and routing system described above.