Evaluating Lightweight LLMs: Insights from Complex Geometric Construction Tasks

    Lightweight large language models (LLMs) are increasingly popular for their cost-effectiveness, but objectively assessing their true capabilities remains a challenge. This article explores the limitations of conventional evaluation methods and introduces a high-discrimination testing approach using a complex geometric construction task. By analyzing model performance across correctness, process compliance, reasoning health, and efficiency, we provide a comprehensive framework and engineering pipeline to help developers accurately evaluate lightweight LLMs and make informed technical decisions.

    Evaluating Lightweight LLMs: Insights from Complex Geometric Construction Tasks

    I. Why We Need to Re-examine Lightweight Model Evaluation

    In recent years, a clear trend has emerged in the large language model (LLM) space: vendors are releasing “lightweight flagship” models. Positioned between top-tier flagship models and cheap small models, they promise “flagship-like capabilities at a lower inference cost.” For developers and enterprise users, these models are often the most cost-effective choice, as the vast majority of production scenarios involve massive call volumes where the cost difference per million tokens is amplified significantly.

    However, a critical question arises: How do we objectively determine the true capability level of a lightweight model?

    Currently, common community evaluation methods have several obvious limitations:

    1. Public benchmarks are easily optimized for. The questions of many mainstream evaluation sets have long entered training corpora. The scores on these tests are disconnected from actual generalization capabilities; a high score does not necessarily mean good real-world performance.
    2. Simple Q&A lacks discrimination. Mainstream lightweight models can almost all complete tasks like common-sense Q&A or regular code completion, making it difficult to differentiate their capabilities.
    3. “Toy tests” still hold threshold value. Tests that involve generating web animations or drawing complex graphics are often criticized as “toy-like,” but tasks of a specific difficulty can actually serve as an effective threshold to filter out underperforming models. The key is not whether the test format is “serious,” but whether the task truly touches the model’s capability boundary.

    Therefore, the core of a good evaluation method lies in designing tasks that “look easy but are extremely easy to fail” and inspecting the model’s problem-solving process rather than just the final result.

    II. Designing a High-Discrimination Test Task

    To illustrate the design approach, let’s look at a specific test task. The task requires the model to generate a webpage that animates an approximate construction method for a regular heptagon using restricted tools.

    Constructing a precise regular heptagon is a classic impossible problem with just a compass and straightedge. However, historical approximate construction methods exist using a “marked ruler” (a straightedge with two marked graduations that can perform sliding and alignment operations). The core requirements of the test task include:

    • Starting from a square, first construct the perpendicular bisector of the bottom edge.
    • Draw an auxiliary circle centered on a specific vertex with the diagonal length as the radius.
    • Simulate the “marked ruler” operation: keep the ruler against a fixed vertex and rotate it so that the first mark slides along the auxiliary circle until the second mark falls exactly on the perpendicular bisector. This is a classic “sliding-alignment” (neusis) construction process.
    • Complete all omitted standard compass-and-straightedge steps (such as finding the circumcenter by drawing perpendicular bisectors).
    • The movement of the compass in the animation should produce trajectories, but only leave marks at necessary steps.
    • Finally, implement a feature to export the animation as a GIF.

    Where is the Difficulty in Such Tasks?

    On the surface, this seems like a simple “make a web animation” task, seemingly comparable in difficulty to popular tests like generating a bird riding a bicycle. However, executing this task poses multiple overlapping challenges for the model:

    First, depth of mathematical understanding. The model must truly understand the principle of the “marked ruler construction,” a non-standard geometric construction, rather than retrieving a ready-made heptagon drawing method from its training corpus. Most existing approximate methods (like those based on the 51.43° angle) are completely different from the construction path described here.

    Second, process compliance. This is the most critical design of the problem. The prompt explicitly specifies the construction path, and the model must implement it strictly according to the specified steps rather than “inventing” its own method to piece together the final result. This effectively tests the model’s instruction-following and constraint-satisfaction capabilities—which are among the most critical abilities in engineering deployment.

    Third, coupling of code and geometry. Translating geometric constructions into precise coordinate calculations and animation logic requires the model to switch between symbolic reasoning and engineering implementation. Any coordinate error in any step will be exposed in the animation.

    Fourth, stability of long-chain output. A complete implementation typically requires hundreds of lines of code. The model must maintain logical consistency throughout the long output, without variable reference confusion or missing steps.

    III. Four Dimensions to Focus on in Evaluation

    Based on the above task, we can distill an evaluation framework for lightweight models, focusing on the following dimensions:

    1. Separation of Result Correctness and Process Correctness

    The most common trap in evaluation is “the result looks correct.” In this example, some models (even flagship-level ones) generate pages that ultimately draw a regular heptagon, but the implementation path completely violates the requirements. They “force” the final result by adding non-existent auxiliary steps or simply calculating the heptagon’s vertex coordinates directly.

    This brings an important evaluation principle: You must manually or semi-automatically verify the consistency between the problem-solving process and the task constraints, rather than just looking at the final screenshot. In actual engineering scenarios, this corresponds to “whether the model secretly violated the business constraints you set.” For example, in a code generation task, if a model unilaterally uses a prohibited dependency library, even if the code runs, the output is unqualified.

    2. Coordination of Thinking and Output

    For models that support long thinking chains, the health of their reasoning process should also be observed. Typical anomalies include:

    • “Thinking without output”: The model consumes a large number of tokens in internal reasoning but ultimately produces minimal content or breaks off.
    • Output rhythm stuttering: Streaming output shows obvious intermittent pauses, affecting the interactive experience and timeout control.
    • Reasoning time out of control: A single task takes tens of minutes, which is unacceptable in a production environment.

    These phenomena will not be reflected in the quality of the final answer, but they directly determine whether the model can be integrated into latency-sensitive business systems. Metrics such as Time to First Token (TTFT), total time, and output throughput rate should be recorded during evaluation.

    3. Cross-Benchmarking Lightweight vs. Flagship Models

    When evaluating lightweight models, a valuable reference point is: run the same batch of high-difficulty tasks on flagship models simultaneously. If a lightweight model provides correct answers on tasks where flagship models fail, this strongly suggests that the lightweight model’s capability exceeds its positioning tier. Conversely, if the lightweight model only performs well on medium-to-low difficulty tasks, its “approaching flagship” marketing needs to be discounted.

    This cross-benchmarking also helps identify an interesting phenomenon: it is not impossible for lightweight models to outperform flagship models on certain tasks. Differences in training data distribution and reasoning strategies across models mean that the capability map does not strictly follow the assumption that “flagships are universally stronger than lightweight models.”

    4. Identifying Efficiency Shortcomings

    A common shortcoming of lightweight models is output speed. Because these models often employ aggressive inference optimization strategies, throughput may drop in ultra-long output scenarios. The evaluation conclusion should explicitly state: if a model meets capability standards but generates significantly slower, it is more suitable for asynchronous batch processing scenarios (such as offline code review or document generation) rather than real-time interactive scenarios (such as conversational assistants or IDE inline completions).

    IV. Building a Reusable Evaluation Pipeline

    To engineer the above ideas, it is recommended to build an evaluation pipeline following these steps:

    Step 1: Establish a tiered task pool. Divide test tasks into three tiers: basic (which all qualified models should pass), discriminating (used to separate the gap between lightweight models), and extreme (where even flagship models might fail, used to probe the capability ceiling). The geometric construction task in this article belongs to the extreme tier.

    Step 2: Define a process verification checklist. For each problem, pre-list the “constraints that must be met” and “shortcuts that are prohibited.” For example, in this task, “directly calculating the heptagon vertex coordinates” is a prohibited shortcut. The checklist can be partially automated—for instance, by using static analysis to check whether forbidden API call patterns appear in the generated code.

    Step 3: Record full-link metrics. In addition to answer correctness, uniformly record the number of thinking tokens, output tokens, TTFT, total time, and output rate to form a structured report for horizontal comparison.

    Step 4: Multiple repetitions and temperature control. Single generations have randomness; key tasks should be repeated multiple times to obtain a success rate. Tasks requiring creative play and tasks requiring precise execution should be tested with different sampling parameters.

    Step 5: Apply weights based on business scenarios. The final selection decision should not be based on a single score, but rather weighted across dimensions based on the distribution of your own business scenarios. For example, a team focused on asynchronous document processing can tolerate slower output speeds in exchange for a higher success rate on complex tasks.

    V. Practical Advice for Landing the Evaluation System on the Cloud

    For teams looking to run model evaluations routinely within their enterprises, consider building an evaluation platform based on general cloud infrastructure. Use container platforms to orchestrate batch evaluation tasks, save generated code and screenshots via object storage, track time consumption and failure rates during evaluation using log services and monitoring alerts, and sink evaluation results into a structured database to form a traceable capability baseline as model versions iterate. This type of architecture has mature general components available for reuse on major mainstream cloud platforms (including the LLM development and evaluation capabilities provided by Baidu AI Cloud). Teams only need to focus on task pool design and refining judgment criteria.

    VI. Conclusion

    The capabilities of lightweight LLMs are rapidly approaching those of flagship models, but the gap between “marketing claims” and “true capability levels” can only be identified through carefully designed evaluations. This article demonstrated the design points of a high-discrimination test through a restricted-tool geometric construction task: tasks must touch capability boundaries, explicitly constrain the problem-solving path, and facilitate process verification. Meanwhile, evaluation conclusions must cover four dimensions—correctness, process compliance, reasoning health, and efficiency—and incorporate weighted decisions based on your business scenarios. For developers, building a “private evaluation set” is far more instructive for real technical selection than following public leaderboards.