Evaluating Complex Generation in Lightweight Flagship Models: Process Consistency and Key Strengths
This article examines how a lightweight flagship model handles a complex HTML task: building a regular heptagon with a two-mark straightedge and exporting the construction as an animated GIF. It argues that such models should be judged on whether they follow the construction process, not only on whether the final figure looks correct. The article covers why the task is difficult, a three-layer evaluation method, observations from a single test case, the model's strengths and limits, and practical engineering steps such as task routing, process logging, asynchronous execution, and regression testing.
1. Background: Judging Lightweight Flagship Models Requires More Than a Final Screenshot
As model families expand, “lightweight flagship” has become a common product positioning. These models are usually not the largest or highest-throughput versions, and they are not tiny models limited to simple Q&A. They aim to balance capability, cost, deployment flexibility, and response speed. For developers, the key question is not whether a lightweight model can write a piece of code. It is whether the model stays stable under complex constraints, long-horizon planning, executable verification, and multi-step tasks.
Traditional evaluation usually checks only whether the final answer is correct. That approach works for simple Q&A but can be misleading for complex generation. Consider the task “generate an interactive HTML page.” The final page may look correct even if the model did not follow every constraint in the prompt. It may have skipped key steps and forced the result with extra logic. For tasks such as geometric construction, animation demos, and process visualization, process consistency matters as much as final result correctness.
This article uses a difficult HTML geometric construction task as its starting point. It discusses how a lightweight flagship model performs in complex generation, how to evaluate that performance, its core strengths and limits, and engineering recommendations. To avoid a narrow product comparison, the article does not focus on specific brands. Instead, it frames the question this way: In complex, constraint-based generation tasks, can a lightweight flagship model come close to the process-following ability of a higher-tier model from the same generation? And what are the trade-offs?
2. Why the Task Is Hard: A Complex HTML Geometry Build Is Not a Toy Problem
The original task asked for an HTML page that constructs a regular heptagon with a two-mark straightedge, fills in the omitted compass-and-straightedge steps, and adds a feature to export an animated GIF. It looks like a small HTML project, but it combines several difficulties.
1. Multi-step geometric constraints
The task includes a square, the perpendicular bisector of the bottom edge, a circle centered at the bottom-right vertex, a two-mark straightedge placed against the bottom-left vertex, a first mark that slides along the circle, a second mark that passes through the perpendicular bisector, and then standard perpendicular bisector steps to determine the circle’s center. Each step depends on the geometric state produced by the previous one. The model must maintain intermediate state. It cannot simply generate a figure that looks like a regular heptagon.
Constructing a regular heptagon is a classic problem. A straightedge without marks and a compass cannot construct it exactly. A two-mark straightedge allows the specific sliding constraint through mark alignment. The model therefore needs to understand that a two-mark straightedge is neither an ordinary ruler nor a compass. It is a marked tool that slides and aligns against points. If the model ignores this distinction, it may use an approximate algorithm or extra steps instead. The final figure may look close, but the process no longer matches the prompt.
2. Dynamic solving and animation export
The prompt asks for more than a static figure. It also asks the page to show the two-mark straightedge moving, the marks aligning, and the motion continuing until the second mark passes through the perpendicular bisector. The model must turn the geometric constraints into computable animation states, for example:
- the initial position and contact point of the two-mark straightedge;
- the sliding parameter of the first mark on the circle;
- the intersection condition between the second mark and the perpendicular bisector;
- the stop state once that condition is met;
- the later steps: the perpendicular bisector, determining the center, and connecting the vertices;
- animation frame sampling and GIF export.
This kind of task requires geometric reasoning, code generation, animation structuring, and output format handling at the same time.
3. Trace control constraints
The prompt also states that using the compass produces point trajectories, but traces should appear only where they are necessary. This is a rendering constraint. The model should not draw every auxiliary line, trajectory, and construction circle, and it should not draw none. It must decide which traces the construction requires and which intermediate elements should be hidden. For a generation model, this combines instruction following, visual judgment, and verifiability.
4. Executable verification
An HTML page can be executed and inspected. An evaluator can open the page, watch the animation, inspect the DOM, check geometric coordinates, and confirm that the GIF was generated. This makes process-level checks possible in a way plain text answers do not allow. A complex HTML task is therefore not a simple toy test. If the constraints are complex enough, the task still reflects basic model capability.
3. Evaluation Method: From Checking Results to Checking Process
For this kind of task, use a three-layer evaluation that covers results, process, and experience. Do not check only whether the final figure looks like a regular heptagon.
| Evaluation Dimension | Focus | Verification Method |
|---|---|---|
| Runnability | Whether the HTML opens and whether scripts throw errors | Browser run, console check |
| Step consistency | Whether the construction follows the prompt’s steps | Parse construction logs, check intermediate states |
| Geometric accuracy | Whether the heptagon, the center, and the intersection points are correct | Coordinate checks, angle and edge length checks |
| Constraint satisfaction | Two-mark straightedge contact, mark sliding, trace control | DOM/SVG/Canvas state checks |
| GIF export | Whether a playable animated GIF is produced | File existence, frame count, playback check |
| Reasoning stability | Whether there are long periods without visible output or interrupted reasoning | Log analysis, manual review |
| Latency and experience | Generation time, streaming experience, retryability | Statistics across multiple samples |
The following pseudocode describes the evaluation pipeline:
```python
def evaluate_case(prompt, model, max_turns):
trace = []
html = model.generate(prompt, trace=trace)
checks = {
“runnable”: check
