Lightweight LLM Evaluation: An HTML Geometry Construction Test for Reasoning Performance
Lightweight flagship models promise lower cost and latency, but can they handle complex tasks? This article presents a reproducible evaluation approach built around an HTML geometry construction test, covering test design, common failure modes, controlled comparisons, reasoning-process assessment, and practical model-selection guidance for enterprises.
1. Background: Why Lightweight Flagship Models Deserve Serious Evaluation
In recent years, a clear trend has emerged in the large-model industry: in addition to flagship models, vendors have been releasing “lightweight flagship” variants with fewer parameters, lower inference costs, and faster response times. These models typically emphasize high throughput, low latency, and low cost, and they are often used in high-concurrency online services such as intelligent customer support, code completion, and content summarization.
But a common question follows: can lightweight models actually handle complex tasks that were previously entrusted only to flagship models? Marketing specification sheets are not enough to answer this. A scientific, reproducible capability evaluation method is required. This article uses a specific HTML geometry construction test as an example to break down a complete approach to evaluating lightweight model capabilities.
2. Why Use “HTML Geometry Construction” as a Test Case
2.1 Test Case Design Principles
The industry has seen toy-like HTML tests, such as drawing small animal animations, but as model capabilities have generally improved, the discriminative power of such tests is declining. A more discriminative test couples mathematical reasoning with code implementation, for example:
Draw an HTML page that implements the marked-ruler construction of a regular heptagon using geometric construction steps, presents the complete construction steps as an animation, and finally adds a GIF export feature.
The elegance of this test case is that it examines multiple layers of capability at once:
- Mathematical understanding: The model needs to understand the geometric principles of marked-ruler construction, including perpendicular bisectors and the logic of auxiliary circles.
- Instruction following: The prompt explicitly specifies the order of construction steps, and the model must not “decide on its own” to switch to an easier-to-implement method.
- Code engineering capability: The model needs to implement dynamic drawing with Canvas or SVG and handle details such as coordinate transforms and trajectory rendering.
- Long-task patience: A complete implementation requires thousands of lines of code, which tests the model’s output stability and context consistency.
2.2 Common Failure Modes
In actual evaluations, model failures mainly fall into three categories:
- Method deviation: The model eventually draws a regular heptagon, but the implementation does not match the steps described in the prompt at all. This may look like a “correct result,” but it violates the instructions. For scenarios that require a verifiable process, such as teaching demonstrations, this is unacceptable.
- Thinking without output: Reasoning models spend a large amount of time on the chain of thought but do not produce actual code for a long time, or even fall into repetitive thinking loops.
- Abandonment midway: The code logic collapses halfway through, the figure is incomplete, or the animation freezes.
3. Evaluation Methodology: How to Observe a Model Scientifically
3.1 Establish Experimental and Control Groups
A single-point test is not persuasive. The correct approach is to set up controls:
- Experimental group: The lightweight model being tested.
- Upper-bound control: The max-class flagship model in the same series, which is known to fail this test case.
- Baseline control: Lightweight models from other vendors in the same positioning.
If a lightweight model can complete a task on which even the flagship model fails, it shows that its reasoning density is significantly higher than its parameter scale would suggest. This is also evidence of the value of the recent “small models plus strong reasoning training” route.
3.2 Focus on the Thinking Process, Not Just the Result
For reasoning models, evaluation should cover three dimensions:
- Chain-of-thought quality: Does the model correctly break down the geometry construction steps? Does it correct wrong assumptions midway? This can be observed through a sandbox environment or reasoning logs.
- Output completeness: Can the final code run directly? Does it omit features explicitly required in the prompt, such as GIF export?
- Resource consumption: Thinking time, token consumption, and output fluency. Some lightweight models produce stuttering, chunked thinking output. Although this does not affect the final result, it has a real impact on the streaming interaction experience.
A simple record table structure can serve as a reference:
{"case": "regular heptagon via marked-ruler construction","method_compliance": true,"runnable": true,"extra_features": ["gif_export"],"thinking_time_sec": 2040,"output_fluency": "chunked"}
3.3 Distinguish “Capability Issues” from “Experience Issues”
During evaluation, the two types of issues should be recorded separately. Slow output is an experience issue and may be solved through inference optimization such as speculative decoding or KV-cache optimization. Method deviation and logic collapse are capability issues and are shortcomings at the model-training level. When selecting a model, capability issues should carry much more weight than experience issues, because the former cannot be compensated for through engineering methods.
4. Implications for Enterprises: Practical Lightweight Model Selection
Based on the evaluation approach above, enterprises can follow these principles when selecting lightweight models:
- Test with cases that can distinguish gradients, not toy-level demos. Abstract real complex business tasks, such as multi-step reasoning, long instructions, and format constraints, into a standardized test set.
- Verify instruction following, not just results. Especially for process-sensitive businesses, process correctness is more important than result correctness.
- Cost-capability trade-offs should be supported by data. If a lightweight model reaches more than 80% of flagship-level performance on core test cases while costing only one-tenth as much to call, replacing the flagship model in high-concurrency scenarios is worthwhile.
- Implement with a complete cloud toolchain. Beyond the model service, use object storage to manage generated artifacts, message queues to smooth traffic spikes, and monitoring and alerting to ensure service stability. Only then can the high-throughput advantages of lightweight models be fully realized.
5. Conclusion
The rise of lightweight flagship models shows that model capability is no longer “determined entirely by parameter scale.” By designing discriminative evaluation cases, establishing controlled experiments, and separating capability issues from experience issues, developers and enterprises can move beyond marketing language and use data-driven methods to find the model that best fits their business. Tests like HTML geometry construction, which look simple but contain real barriers, are the sharpest ruler in this evaluation system.
