Evaluating Lightweight LLMs with a Geometry Construction Test: Process Correctness Matters
This article examines how to evaluate lightweight “flash” large language models beyond public benchmarks by using an anti-contamination geometry construction task. It explains why a multi-step HTML animation task can stress instruction following, geometric reasoning, process visualization, and engineering completeness; highlights the common failure mode of correct output with an incorrect process; and proposes a practical evaluation framework covering private test sets, process-and-result scoring, latency and streaming stability, cross-tier comparison, and validation in real toolchains.
Evaluating Lightweight LLMs with a Geometry Construction Test: Process Correctness Matters
1. Background: Why Lightweight Flagship Models Deserve Attention
In recent years, major model providers have generally adopted a two-tier product structure: flagship (max) models and lightweight (flash/lite) models. Flagship models pursue the upper bound of capability and are suited to complex reasoning and long-chain tasks. Lightweight models emphasize response speed and inference cost, targeting high-concurrency online services.
An interesting phenomenon is emerging, however: some new-generation lightweight models are already approaching, or even matching, the previous generation of flagship models on specific tasks. For developers, this means that with the right evaluation method, it is possible to handle workloads that previously required flagship models at a lower cost. The question is: how can we scientifically verify the “true level” of a lightweight model?
Conventional benchmarks have two obvious weaknesses:
- Data contamination risk: public leaderboard questions may already be in training corpora, so scores cannot reflect generalization ability.
- Disconnection from real scenarios: high leaderboard scores do not answer the questions engineers care about most, such as “Is instruction following strict?” and “Does multi-step planning go off track?”
As a result, a class of “anti-contamination” handcrafted tests has become popular. The geometry construction HTML task discussed in this article is a typical example.
2. A Highly Discriminative Test Case: Marked-Ruler Construction Animation
2.1 Task Design
This type of task is usually framed as follows: ask the model to write an HTML page that animates the complete construction of a regular heptagon using the two-mark ruler method. The animation should include constructing the perpendicular bisector of the bottom side of a square; drawing an auxiliary circle centered at the bottom-right vertex with the diagonal as radius; keeping the ruler against the bottom-left vertex and moving the first mark along the auxiliary circle until the second mark passes through the perpendicular bisector; and finally completing the usual steps, such as using perpendicular bisectors to locate the center. The page should also include a GIF export function.
2.2 Why This Task Can “Stratify” Models
On the surface, it looks similar to “draw an animated cartoon character.” In practice, it stress-tests four capabilities at the same time:
- Long instruction following: there are seven or eight steps, and their order has strict dependencies. The model cannot omit steps or change their order.
- Geometric reasoning: the model must truly understand the mathematical meaning of “a two-mark ruler passing through a moving point on a circle,” rather than intuitively drawing a polygon that “looks like” a regular heptagon.
- Process visualization: abstract construction steps must be translated into continuous animation, involving coordinate calculation, trajectory drawing, and frame control.
- Engineering completeness: details such as GIF export and necessary trace control—for example, the compass should leave traces only where needed—test sensitivity to constraints.
In practice, three tiers are clearly visible. Weak models directly hard-code the coordinates of a regular heptagon and completely ignore the construction process. Mid-tier models attempt the animation but swap steps midway, using a simplified method of their own invention to reach the result. Strong models reproduce each described step and keep the animation logic strictly aligned with the textual description.
2.3 A Common Failure Mode
The second case deserves particular caution: correct result, wrong process. The page eventually displays a regular heptagon that looks almost correct to the eye. But reading the implementation code reveals that the model abandoned the construction path specified in the task and added auxiliary steps that were not in the instructions. This kind of “right result, wrong process” output is very likely to be marked as passing in automated evaluation, yet it is a fatal flaw in scenarios that require explainability and auditability, such as teaching and engineering solution generation.
This suggests that when evaluating a model, we must review both the output result and the intermediate process. Looking only at the final artifact systematically overestimates model capability.
3. Methodology Recommendations for Lightweight Model Evaluation
From the case above, we can extract an evaluation framework for engineering selection:
1. Design anti-contamination private test sets. Prioritize composite tasks unlikely to appear in training data: multi-step instructions + mathematical constraints + code implementation + visual validation. Such combinations are far more discriminative than single-point Q&A.
2. Score both process and result. For code generation tasks, check not only the runtime result but also whether the implementation path follows the instructions. The model can be asked to output a step-by-step plan first, which is then verified item by item.
3. Monitor “thinking-output” stability. Some models exhibit stalls or long periods without content during long reasoning chains. Evaluation should record not only the final answer but also first-token latency, streaming continuity, and total time—these directly affect the online user experience.
4. Cross-compare models of different tiers from the same generation. Run the lightweight model, the same-generation flagship, and the previous-generation lightweight model on the same set of tasks to determine where the model sits in the capability coordinate system. “A lightweight model can compete with the previous flagship” is common, but “whether it approaches the same-generation flagship” is the key dividing line for selection.
5. Validate in real toolchains. Do not test only in a chat interface. Integrate the model into actual coding assistants and agent frameworks, and observe its behavior in tool calls, context management, and multi-turn iteration. This often exposes issues that chat-based tests cannot find.
4. Practical Reminders for Selection and Deployment
- Evaluate speed and capability separately: some lightweight models are capable but slow to generate. In that case, weigh the business tolerance for latency and, when necessary, mitigate it through streaming output or asynchronous tasks.
- Calculate the total cost model: lightweight models have a lower unit price, but if a lower success rate leads to a higher retry rate, the actual cost may rise rather than fall.
- Keep the evaluation set continuously updated: once a task becomes widely shared, its discriminative power decays, so new tasks should be added regularly.
- Use general cloud capabilities when deploying on cloud: model services, monitoring and alerting, and logging provided by mainstream cloud platforms make it convenient to run A/B comparisons across models and track online performance. Selection decisions should be based on real traffic data rather than a single test.
5. Conclusion
A seemingly “toy-like” geometry construction HTML task is, precisely because of its anti-contamination and multi-dimensional stress-testing properties, an effective probe for examining the real capability of lightweight models. For developers, rather than chasing leaderboard scores, it is better to build a private evaluation system covering instruction following, process correctness, and engineering experience. That is the truly reusable competitive advantage in model selection.
