Benchmarking Lightweight Flagship Models on Complex Geometric Animation Generation
How well can lightweight flagship LLMs handle multi-step, constraint-heavy tasks? This article uses a composite benchmark — generating an HTML animation that constructs a regular heptagon with a two-marked ruler and exports it as a GIF — to evaluate instruction following, geometric correctness, trace control, and output stability. It outlines six evaluation dimensions, common failure modes, and a reusable verification pipeline for engineering teams.
Simple Q&A and short code generation are no longer reliable ways to distinguish the real capabilities of different language models. A more meaningful stress test is a composite task that imposes strong step constraints, involves complex geometric relationships, requires intermediate artifacts, and demands a visualized animation output. This article focuses on one such scenario: using HTML to draw the process of constructing a regular heptagon with a two-marked ruler (a marked ruler with two graduations), then exporting the result as a GIF. Although the task looks like a frontend animation exercise, it simultaneously tests understanding of mathematical constructions, long-chain instruction following, reasoning stability, code organization, and artifact export. For developers, understanding how to evaluate this class of tasks delivers more lasting value than comparing any single model generation.
1. Background: Why Use Geometric Animation Tasks to Evaluate Models
The common “generate a web animation” prompt tends to be toy-like: as long as something moves on screen, the model may receive a high subjective score. Complex geometric construction is different. It requires the model to produce not just a result that “looks right,” but one built through the specified steps. Take the regular heptagon: it cannot be constructed with a straightedge and compass alone and requires special constraints such as a two-marked ruler. The model must understand the geometric meaning of every step and reflect the construction order, auxiliary lines, circle-center determination, and point movement trajectories in its code.
The core value of this task is “verifiability of process.” Whether the final shape is correct is only the first layer. The second layer is whether the construction steps match the prompt. The third is whether the animation retains only necessary traces. The fourth is whether the GIF export is complete. For enterprise users, this “process correctness” maps more closely to real engineering needs than single-point results: business workflows, data validation, permission control, and state machine transitions all require the model to follow explicit steps rather than bypass constraints in a superficially plausible way.
2. Task Design: Constructing a Regular Heptagon with a Two-Marked Ruler and Exporting a GIF
The abstracted task can be described as follows: in a web page, draw a square and construct the perpendicular bisector of its bottom edge; draw a circle centered at the bottom-right vertex with a radius equal to the diagonal; using the two-marked ruler, slide the first mark along the circle until the second mark passes through the perpendicular bisector; then add the necessary straightedge-and-compass steps to determine the circle’s center and complete the regular heptagon; in the animation, the compass-generated point trajectories should appear only where necessary; finally, provide GIF export.
This prompt contains multiple constraints: dependencies between geometric objects, the dynamic constraint of the two-marked ruler, the display scope of auxiliary traces, animation frame organization, and the exported artifact. The model must translate natural language steps into executable drawing logic. A common pitfall is pursuing only the final outline while ignoring the intermediate construction — for example, computing the heptagon vertices directly and plotting them. The result may look correct, but it does not reflect the two-marked ruler constraint or the step order. Evaluation therefore must check both the “result” and the “process.”
3. Evaluation Dimensions: From “Looks Correct” to “Process Is Correct”
We recommend evaluating along six dimensions:
- Instruction adherence: whether key requirements are covered — the square, the perpendicular bisector, the circle, the two-marked ruler constraint, center determination, the regular heptagon, and GIF export.
- Geometric correctness: whether points, radii, the perpendicular bisector, and the heptagon’s side lengths and angles fall within a reasonable error range.
- Step completeness: whether the construction is presented in the prompt’s order, and whether omitted straightedge-and-compass steps are properly supplemented.
- Trace control: whether auxiliary lines and point trajectories appear only where necessary, without polluting the final image.
- Animation and export: whether the frame sequence is continuous, and whether the GIF is generated successfully, plays correctly, and has a reasonable duration.
- Reasoning stability and efficiency: whether long tasks show extended pauses, thinking without output, or fragmented output, and whether total runtime is acceptable.
“Step completeness” is the most easily overlooked dimension. An implementation with a correct final shape may force its way to the goal by adding construction steps that were never requested. This is hard to spot visually but constitutes a deviation from requirements in engineering terms. Evaluators should retain intermediate states or construction logs, and where necessary ask the model to output step explanations, then validate them against geometric constraints.
4. Observations and Analysis: Capability Boundaries and Stability of Lightweight Models
Two typical behaviors emerge in tasks of this kind. In one, a lightweight flagship model follows the complex steps fairly completely, and the final result is logically consistent with the prompt — indicating strong long-chain instruction following and geometric understanding. In the other, some larger models produce pages that “appear to satisfy the requirements,” but the implementation deviates from the prompt: adding extra steps on their own, skipping the two-marked ruler constraint, or directly computing the vertices. This shows that parameter count does not guarantee process adherence, and that task design is critical to evaluation validity.
Stability also deserves attention. On complex tasks, models may exhibit fragmented reasoning, long pauses, or thinking without producing output. In our observations, complex geometric animation tasks could take on the order of tens of minutes, with relatively slow output. For offline generation, one-shot builds, or human-reviewed workflows, this efficiency is acceptable; for interactive coding, batch generation, or CI pipelines, throughput remains an important trade-off. When evaluating lightweight flagship models, therefore, look beyond final capability to task latency, the cost of failure and retry, and observability.
5. Common Failure Modes and Root Causes
Typical failure modes include:
- Correct result, deviant process: the heptagon vertices are computed directly, bypassing the two-marked ruler construction.
- Missing steps: the perpendicular bisector, center determination, or necessary auxiliary lines are omitted.
- Trace pollution: all movement trajectories are retained, cluttering the frame.
- Incomplete export: the page displays the animation, but GIF generation fails or the frame rate is abnormal.
- Interrupted reasoning: output becomes fragmented on long tasks and requires retries.
Root causes usually lie in poor prioritization of compound constraints, or loss of intermediate state when translating natural language steps into code.
6. Engineering Recommendations: A Reusable Verification Pipeline
We recommend incorporating tasks like this into a model capability verification pipeline structured as “prompt → intermediate artifacts → geometric validation → artifact validation → human spot checks.” Example pseudocode:
TASK_PROMPT = """Draw an HTML page that constructs a regular heptagon with a two-marked ruler,retain only necessary auxiliary traces, supplement the omittedstraightedge-and-compass steps, and provide GIF export."""def check_step_sequence(trace):required = ["square", "bottom_perp_bisector", "circle_at_corner","ruler_first_mark_on_circle", "ruler_second_mark_on_bisector","center_determination", "heptagon_vertices", "gif_export"]return all(step in trace for step in required)def check_geometry(points):# Validate heptagon side lengths, angles, and center relationships within tolerancereturn geometry_error(points) < EPSILONdef check_artifact(artifact):return artifact.gif_frames > 0 and artifact.duration > 0
In practice, you should also set timeout and retry policies, log model outputs, and save intermediate frames and construction explanations. For batch evaluation, split the task into two stages — “static construction correctness” and “animation export correctness” — to reduce verification cost first, then run full GIF checks on passing samples. Human spot checks should focus on whether the process deviates, not just on the final image.
7. Conclusion
Complex geometric animation tasks combine mathematical constraints, instruction following, and engineering deliverables into a single comprehensive test. They expose the “looks right but process deviates” problem and reveal how lightweight flagship models trade off stability and efficiency on long tasks. For developers, we recommend building a multi-dimensional, reproducible evaluation pipeline that measures result correctness, process consistency, artifact completeness, and runtime efficiency separately. Only by advancing from “looks correct” to “process is correct and the artifact is usable” does model evaluation approach real-world engineering deployment.
