Lightweight LLM Benchmarking: An In-Depth Test on Geometric Construction Generation
This article describes a hands-on evaluation of lightweight large language models. The test asks each model to generate an animated HTML page that demonstrates how to construct a regular heptagon with a neusis (marked ruler) method. The article compares a lightweight model with a top-tier model and explains how to judge model capability by process consistency, reasoning behavior, and cost.
1. Why Revisit “Lightweight” Models
In the LLM field, models labeled “Flash,” “Lite,” or “Mini” have long been seen as reduced versions. They respond quickly and cost less, but they usually perform poorly on complex reasoning. Model architecture improvements, better training data, and wider use of inference-time compute are changing that view. Some lightweight models now perform on certain complex tasks at a level comparable to top-tier models, often labeled “Max,” “Pro,” or “Ultra.”
This raises a practical engineering question: when choosing a model for a business use case, how do you judge the real capability limits of a lightweight model?
Standard benchmark leaderboards often fail to reflect real-world performance. Standardized test sets carry a risk of data contamination, and their task types may not match actual business needs. A better approach is to build a task that looks simple but has hidden difficulty, then observe the model’s full solution process. This reveals reasoning, planning, and code generation ability more accurately. This article walks through one such case.
2. Designing a High-Discrimination Test Case
2.1 Test Task Description
The test asks the model to generate an HTML page that animates a classic geometry problem: constructing a regular heptagon using a neusis (a ruler with two marks). The steps are as follows:
- Construct a square and draw the perpendicular bisector of its bottom edge.
- Draw an auxiliary circle centered at the bottom-right vertex of the square, with a radius equal to the length of the diagonal.
- Keep the neusis ruler pressed against the bottom-left vertex and slide it so that the first mark moves along the auxiliary circle. Continue until the second mark passes through a specific point on the perpendicular bisector of the bottom edge. This is the core step of the construction and the key to building the heptagon.
- Complete the remaining standard compass-and-straightedge steps, such as drawing the perpendicular bisector to locate the circumcenter and marking off the side lengths in sequence.
- The animation should show the movement of the compass and ruler, but leave construction marks only where necessary.
- Optional feature: export the construction process as a GIF.
2.2 Why This Task Discriminates
This task may look similar to common small HTML animations, such as an animal riding a bicycle. In practice, it has several hidden barriers:
- Geometry knowledge: The model must understand the mathematics of neusis construction, not just recognize the term. A regular heptagon cannot be constructed with compass and straightedge alone. The neusis method is one of the classic solutions, and it draws on relatively obscure history of mathematics.
- Instruction following: The prompt specifies the construction steps in detail. A common failure mode occurs when a model without the right capability produces a page that does show a regular heptagon, but the construction steps it uses are invented and do not match the method in the prompt. This is a typical case where the result looks correct but the process deviates completely. Evaluators need to check carefully to catch it.
- Code implementation: The animation requires precise coordinate calculations in Canvas or SVG, control of animation timing, and rendering logic that keeps the ruler and compass movement visible while leaving marks only where needed. GIF export typically requires capturing the canvas frame by frame and encoding the frames. This places high demands on the completeness and runnability of the generated code.
3. Results and Analysis
3.1 Performance of the Lightweight Model
We connected a lightweight flagship model, recently released by one vendor, to an AI coding assistant. We observed several notable behaviors:
Behavior 1: Output arrives in bursts. Most models stream tokens smoothly. This model paused for long stretches, with no visible output, and then released large blocks of content at once. This pattern usually indicates a long internal reasoning chain, which is typical of reasoning-enhanced models.
Behavior 2: Long reasoning without a final answer. During generation, the reasoning content kept scrolling for a long time, but the formal answer did not start. The full task took about 34 minutes to produce a complete result. Slow output is currently the most obvious weakness of this model.
Behavior 3: The final output followed the prescribed construction method. The generated HTML page implemented the specified neusis steps: building the square, drawing the perpendicular bisector and auxiliary circle, sliding the ruler to position it, and completing the remaining compass-and-straightedge steps. The mark-retention logic and GIF export both worked. One case alone looks unremarkable, but the comparison with the control group showed a clear difference.
3.2 Control Group: A Hidden Failure in a Top-Tier Model
As a control, we ran the same prompt on the official platform of a top-tier (Max-level) model. After about 20 minutes, it produced a page that appeared to meet the requirements. The regular heptagon was drawn.
A closer review of the construction logic showed that the implementation did not follow the neusis method described in the prompt. Unable to reproduce the specified method, the model added auxiliary steps that the prompt did not include and took a detour to produce the heptagon.
This failure mode is easy to miss. If an evaluator only checks whether a heptagon appears, the model passes. Only a step-by-step comparison of the construction process against the prompt’s constraints reveals that the model did not complete the task.
3.3 Comparison
| Dimension | Lightweight model | Top-tier model (control) |
|---|---|---|
| Strict instruction following | Reproduced the specified method | Deviated from the prompt and invented steps |
| Result correctness | Correct, with a credible process | Correct result, distorted process |
| Generation time | About 34 minutes | About 20 minutes |
| Output fluency | Bursty, with pauses | Relatively smooth |
This case suggests that the lightweight model’s reasoning and instruction-following ability is higher than its tier would normally indicate. Lightweight models from other vendors in the same tier showed a more pronounced performance gap on this task. This article does not cover those results in detail.
4. Methodology: Evaluating the Real Capability of Lightweight Models
Based on this practice, we identified several evaluation methods that apply broadly to developers selecting models:
4.1 Use Process Consistency as the Core Metric
In complex generation tasks, a model may produce a result that looks correct by taking shortcuts. Evaluation tasks should have processes that can be verified step by step, such as multi-step geometric construction, multi-stage calculation, or code refactoring with constraints. Check each step against the instructions instead of checking only the final output.
4.2 Pay Attention to Reasoning Behavior
The length of the reasoning chain, the rhythm of the output (smooth versus bursty), and long periods of silent reasoning all offer clues about how a model reasons. Reasoning-enhanced models often take longer but perform better on complex tasks. When choosing a model, weigh latency against capability based on the business scenario:
- For real-time interaction, such as customer support or chat, prioritize low-latency models.
- For offline batch processing, complex code generation, or deep analysis, accept higher latency in exchange for higher accuracy.
4.3 Be Wary of the Limits of Toy Tests
Community tests based on small HTML animations are increasingly viewed as toy tasks. Most models can write runnable pages, so these tests do not separate models well. A more effective approach adds domain-specific constraints to a toy task, such as a particular mathematical construction, a specific algorithm paradigm, or a protocol specification. This moves the question from “Can the model write code?” to “Can the model write correct code under strict constraints?”
4.4 Estimate Costs Based on Business Workloads
The main value of lightweight models lies in cost and throughput. When a lightweight model can handle the complex tasks in your business, replacing a top-tier model can significantly reduce inference costs. In cloud deployments, you can combine elastic compute, model inference services, and monitoring and alerting to build a tiered routing strategy. Simple requests go to a lightweight model, and complex requests escalate to a flagship model. This balances cost and quality dynamically.
5. Conclusion and Outlook
This evaluation points to a clear trend: the capability gap between lightweight and flagship models is narrowing quickly. Using a carefully designed geometric construction task, the lightweight model produced a correct result and followed a complex, multi-step set of constraints closely. Some top-tier models did not manage this. The model’s slow output and bursty generation are real limitations, however, and make it a poor fit for latency-sensitive applications.
For developers, three takeaways stand out. First, drop the assumption that lightweight means weak, and make selection decisions based on measured results. Second, evaluate process consistency and instruction following rather than surface results. Third, build a tiered scheduling mechanism so that models at each capability level handle the tasks they suit. As reasoning-enhancement techniques spread, lightweight models may become the most cost-effective choice in more production scenarios.
