Testing Lightweight LLMs with a Single Geometry Construction Task: A Practical Evaluation Method
As large model vendors ship lightweight versions alongside flagship models, benchmark scores alone no longer reveal real-world capability. This article presents a practical evaluation method built around a single frontend task: generating an HTML animation of a classical compass-and-straightedge construction of a heptagon using a marked ruler. Through a controlled experiment comparing a new lightweight model against a larger flagship model, we show how long-instruction fidelity, cross-domain reasoning, and verifiable output expose capability gaps that benchmarks miss—and what this means for model selection.
1. Why Lightweight Models Need a New Evaluation Method
The large model industry has entered a stage where “flagship + lightweight” lines run in parallel. Alongside top-tier models, vendors increasingly release smaller, cheaper versions designed for high-concurrency, low-latency online services—for example, serving inference on large-scale domestic chip clusters to amortize per-unit compute costs.
The question is: how do you objectively measure a lightweight model’s real capability?
The traditional approach is to look at public benchmark scores. But benchmark gaming means scores often diverge sharply from actual experience. A widely used practical heuristic is to design tasks that “look simple but hide real barriers,” have the model complete them end to end, and infer its capability boundary from the quality of the final artifact. Such tasks should ideally have three properties:
- Long instruction chains: multiple constraint steps that must be followed strictly, testing fidelity to long prompts;
- Cross-domain reasoning: combining mathematical/geometric reasoning with engineering implementation, so no single skill suffices;
- Verifiable results: the output is visual, so correctness is obvious at a glance without subjective scoring.
Frontend animation generation satisfies all three. An HTML page containing geometric construction logic requires the model to understand abstract construction steps, translate them into runnable Canvas or SVG code, and get the interaction details right. Let’s walk through a concrete case.
2. The Evaluation Task: A “Marked Ruler” HTML Construction Problem
2.1 Task Description
The task we designed asks the model to generate an HTML page that dynamically demonstrates a classical geometric construction—an approximate construction of a regular heptagon using a “two-mark ruler” (a ruler with two marked points). The core steps are:
- Draw a square and construct the perpendicular bisector of its bottom edge;
- Draw an auxiliary circle centered at the square’s bottom-right vertex with radius equal to the diagonal length;
- Simulate the marked ruler operation: keep the ruler pivoting tightly against the bottom-left vertex, sliding its first mark along the auxiliary circle until the second mark lands exactly on the bottom edge’s perpendicular bisector;
- Complete the remaining standard compass-and-straightedge steps (perpendicular bisectors, locating the circumcenter, dividing the circle into equal arcs, etc.);
- Detail constraint: when the compass is in use, show the moving point’s trajectory, but leave traces only where necessary;
- Bonus feature: support exporting the animation as a GIF.
2.2 Difficulty Analysis
On the surface, this looks like just a “draw an animation” frontend task, comparable to popular fun tests like “draw a bird riding a bicycle.” But in practice, even some flagship models fail on it, for three reasons:
First, precise understanding of geometric semantics. “Keep the ruler pivoting against a vertex, slide one mark along the circle until the other mark crosses a given line”—this is a mechanical motion description with constraint-solving overtones. The model must convert it into parametric equations or iterative approximation logic, not just draw a line and hope it passes.
Second, faithful reproduction of the construction process. The task explicitly requires completing the omitted compass-and-straightedge steps. The model must genuinely understand the geometric principle behind the heptagon construction to fill in the intermediate stages, rather than skip straight to the final figure.
Third, engineering completeness. The “trace only where needed” trajectory and GIF export involve engineering details like offscreen Canvas rendering, frame capture, and encoding—a further test of code completeness.
3. Experiment Design: Treatment and Control Groups
3.1 Setup
To make the conclusion credible, we ran a controlled experiment: the same prompt was submitted to a recently released lightweight flagship model (treatment group) and a clearly larger flagship model (control group), each run in its official environment. We recorded the thinking process, elapsed time, and final output.
3.2 Treatment Group Performance
The lightweight model displayed a long thinking process before generating code. Subjectively, its thinking output came in segments and bursts rather than a smooth continuous stream, with periods of “thinking for a long time without producing anything.” The whole task took roughly thirty-plus minutes.
But the output quality was impressive: the generated HTML page strictly followed the construction route described in the prompt—from the square, perpendicular bisector, and auxiliary circle, through the marked ruler’s rotational approximation, to locating the circumcenter and dividing the circle. Every step corresponded one-to-one with the instructions. The trajectory tracing and GIF export were both fully implemented.
Taken alone, this result might seem unremarkable. The gap only becomes clear in comparison with the control group.
3.3 The Control Group’s Failure
The flagship model in the control group took nearly twenty minutes to generate a page that seemed to meet the requirements—the screen did show a regular heptagon. But on close inspection of its construction logic, its implementation path did not match the prompt at all. The model skipped the marked-ruler approximation—the core step—and constructed the result directly using a different, equivalent method that was never requested.
In other words, the control model produced the “correct figure” without performing the “requested process.” This kind of deviation is highly deceptive in evaluation: if you only screenshot the final image, you’d wrongly judge it a pass; only by checking the implementation logic line by line do you discover the model dropped a key constraint from the long instruction.
4. Analysis and Capability Interpretation
Several broadly applicable conclusions emerge from this experiment:
First, lightweight models are approaching flagship capability ceilings. On high-barrier tasks like long-instruction following and geometric reasoning, the new lightweight model not only completed the task but was more faithful than some larger models. Plausible reasons include better training data cleaning, stronger instruction-following reinforcement during the RL phase, and more generous thinking budgets at inference time.
Second, inference speed remains the main weakness of lightweight models. The thirty-plus-minute completion time and stuttering thinking output show there’s still room to improve inference efficiency. When selecting models, weigh this against your business’s latency sensitivity.
Third, “correct result” does not mean “correct process.” The control group’s failure reminds us that evaluation must verify the implementation path, not just the final artifact. This matters for engineering too: when models are used for code generation, a “correct result” that deviates from constraints often hides maintainability risks.
5. Recommendations for Model Selection and Evaluation
Based on the above analysis, here are actionable recommendations for developers:
- Build your own task set instead of trusting leaderboards: abstract 2–3 long-constraint, verifiable tasks from your own business scenarios as a private benchmark for model selection;
- Verify the process, not just the result: ask the model to output reasoning or implementation notes, and manually spot-check whether key steps follow the instructions;
- Record thinking processes and elapsed time: inference cost (time, token consumption) should be evaluated alongside quality;
- Test engineering completeness: include edge cases and bonus features (export, error handling) in the prompt to probe the model’s completion floor;
- Keep an eye on lightweight models: in cost-sensitive online services, lightweight models approaching flagship capability can mean order-of-magnitude cost savings—worth validating first.
6. Conclusion
A carefully designed construction problem says more than a pile of abstract scores. Lightweight large models are rapidly closing the gap with flagships, and the “long-instruction fidelity + cross-domain reasoning + verifiable output” triad of evaluation helps developers quickly identify the models that truly fit their business amid a flood of releases. The evaluation method itself is becoming a core competitive capability for putting large models into production.
