Evaluating Lightweight Flagship Models: A Deep Testing Method Using Geometric Construction Animations

    A step-by-step evaluation framework for testing lightweight flagship LLMs with a challenging, low-contamination task: building an animated web demo of a neusis (marked-ruler) construction of a regular heptagon. The article explains why such tasks reveal true reasoning ability, presents a four-layer evaluation framework, and offers practical model selection advice for developers.

    ​## Why You Need a “Non-Toy” Test Task

    Various LLM benchmark questions have circulated in the community, such as asking a model to build a small animation in HTML. These tasks are simple and intuitive, but they quickly reveal a weakness: the task is so common that similar examples almost certainly exist in the training data, allowing the model to “recite the answer.” The results therefore say little about genuine reasoning ability.

    A more valuable test task should satisfy three conditions:

    1. Low data contamination: The task’s steps rarely appear in public text, so the model cannot rely on memorization.
    2. Multi-step reasoning chain: A correct output depends on a series of tightly linked logical deductions, and any mistake in one step becomes visibly exposed in the result.
    3. Verifiable output: The result can be checked objectively—is the geometry correct, is the animation complete, does the interaction work? One glance suffices, with no subjective scoring required.

    A typical example is asking a model to build a web demo of constructing a regular heptagon with a marked ruler (neusis): start with a square and draw the perpendicular bisector of its base; then, using one vertex as the center and the diagonal length as the radius, draw an auxiliary circle; next, simulate the classic neusis process of sliding the marked ruler against another vertex so that the first mark lands on the circle while the second mark passes through the perpendicular bisector; finally, complete all the standard perpendicular-bisector and connecting-line construction steps, and add GIF export functionality.

    The difficulty lies in this: the model must not only understand the geometric construction logic but also translate the dynamic “sliding ruler in search of an intersection” process into a front-end animation, while honoring detail constraints such as “the compass leaves traces only where necessary.” In practice, many flagship-level models fail at exactly this point—the geometric relationships come out wrong, the animation gets disconnected from the construction steps, or the export feature is incomplete. That is precisely why tasks like this serve as a high-bar litmus test for the true ceiling of lightweight models.

    A Layered Evaluation Framework for Lightweight Models

    Around the task above, evaluation can be split into four layers, with pressure applied step by step:

    1. Instruction Understanding

    Can the model accurately parse a long, multi-step instruction? Checkpoints include: whether steps are omitted, whether the process is simplified without authorization, and whether meta-instructions such as “fill in the omitted parts” are understood. A common failure mode in practice is the model compressing the multi-step construction into “just draw a regular heptagon”—delivering an image on the surface while completely ignoring the constraints.

    2. Geometric Reasoning

    This is the core difficulty. The neusis construction depends on the dynamic process of “sliding to find an intersection,” which the model must model explicitly in code: fix one end of the ruler, enumerate the angles of the marked line, compute intersections with the auxiliary circle, and check whether the second mark hits the perpendicular bisector. Any solution that skips this numerical search and simply back-calculates from known heptagon vertex coordinates shows that the model has not genuinely understood the construction.

    Illustrative pseudocode:

    1. function findMark(d, r, e) {
    2. for (let angle = 0; angle < Math.PI; angle += 0.001) {
    3. const p1 = rulerMark1(d, angle); // endpoint of the first mark
    4. if (dist(p1, e) ≈ r) { // endpoint lies on the auxiliary circle
    5. const p2 = rulerMark2(d, angle); // endpoint of the second mark
    6. if (onPerpBisector(p2)) return { p1, p2 };
    7. }
    8. }
    9. }

    Whether the model can write this kind of “enumeration + precise verification” logic is the key to distinguishing memory-based output from reasoning-based output.

    3. Animation Implementation

    Once the static geometry is correct, evaluate the animation organization: do construction traces appear progressively step by step, are there leftover auxiliary lines, do compass traces appear only where necessary? This tests the model’s ability to design a state machine for “process visualization,” not merely to call drawing APIs.

    4. Engineering Delivery

    GIF export is the final gate. The model must capture Canvas frames, encode them into an animated image, and trigger a download. A common problem with lightweight models is ignoring cross-frame timing or producing abnormal frame rates. This layer reflects overall engineering completeness.

    Core Strengths of Lightweight Flagship Models

    Based on real-world feedback from these high-bar tasks, the value of the new generation of lightweight models shows up mainly in three areas:

    • Significantly higher capability density: Parameter count or deployment cost drops by an order of magnitude, yet performance on reasoning-heavy tasks approaches—or even matches—that of much larger models, indicating that training methods (especially reasoning-chain reinforcement) deliver more gains than simply scaling parameters.
    • Stability on long instruction chains: Faced with multi-step instructions containing detailed constraints, models no longer take shortcuts easily, and the step-omission rate has dropped noticeably.
    • Quality of engineering output: Generated code is more complete in structure, and the ability to deliver animations, interactions, and export features in an integrated package has improved.

    Shortcomings should also be acknowledged objectively: some lightweight models are not particularly fast at generating output, and their stability in long-context scenarios remains to be seen.

    Selection Advice for Developers

    Combined with the evaluation method above, when choosing a model it is advisable to:

    1. Build 2–3 in-house benchmarks that are low-contamination, multi-step, and verifiable, rather than relying solely on public leaderboards.
    2. Score across the four layers—“understanding, reasoning, implementation, delivery”—to pinpoint a model’s real bottlenecks.
    3. For lightweight models, focus on long-instruction following and engineering completeness, the two weaknesses most often masked by leaderboards.

    The progress of lightweight flagship models has made “small but strong” a realistic option—but a sound evaluation methodology is the prerequisite for turning that progress into productivity.