Lightweight LLM Evaluation: Testing Reasoning and Instruction Following with a Geometry Prompt

    A carefully designed geometry prompt can reveal weaknesses that conventional LLM benchmarks miss. This article uses an HTML animation task involving a two-mark ruler and a regular heptagon to examine spatial reasoning, step-by-step instruction following, code generation, and GIF export. It also outlines a repeatable evaluation workflow for comparing lightweight and flagship models on both correctness and practical usability.

    1. Why Lightweight LLMs Need Their Own Evaluation

    Many model providers now offer two broad product tiers: large, flagship models positioned for maximum capability, and lightweight, “flash”-style models designed for lower latency and lower cost.

    For developers, lightweight models offer cheaper inference and faster responses. But they also raise a central question: How much capability does a smaller model sacrifice, and when can it replace a flagship model?

    Common benchmarks, such as general knowledge tests and code completion scores, often cannot answer that question on their own. There are three main reasons:

    1. Potential benchmark contamination. Public evaluation datasets may have appeared in a model’s training data, so high scores do not necessarily demonstrate generalization.
    2. Overly standardized tasks. Multiple-choice questions and fixed-format generation tasks may fail to expose weaknesses in following complex instructions.
    3. Real development work combines multiple skills. Practical tasks often require logical reasoning, code generation, formatting compliance, and edge-case handling at the same time. A score for one isolated capability cannot capture the whole picture.

    For engineering decisions, a small set of demanding, custom evaluations can therefore be more useful than chasing leaderboard scores.

    2. What Makes a Good Evaluation Prompt?

    An effective evaluation prompt should have four characteristics:

    • Strict procedural constraints. The task specifies an explicit sequence of operations. Skipping or replacing a step changes the validity of the solution.
    • Hidden difficulty beneath a simple interface. What looks like a routine demonstration contains steps that demand precise spatial reasoning.
    • Verifiable output. The generated result can be inspected visually rather than judged only through subjective impressions.
    • Extensible requirements. Additional features, such as export functionality, test whether the model can deliver a complete engineering implementation rather than a visual mockup.

    The goal is not merely to make a task difficult. It is to make failures visible and meaningful.

    3. A Geometry Test: Constructing a Regular Heptagon with a Two-Mark Ruler

    3.1 The Task

    The following HTML-generation prompt has circulated as a test of spatial reasoning and instruction following. It asks the model to implement a geometric construction using a ruler with two marks:

    1. Create an HTML page that demonstrates the construction of a regular
    2. heptagon using a two-mark ruler.
    3. Follow these steps:
    4. 1. Start with a square and construct the perpendicular bisector
    5. of its bottom side.
    6. 2. Let E be the bottom-right vertex. Draw circle E, centered at E,
    7. with a radius equal to the square's diagonal.
    8. 3. Using a two-mark ruler, keep the ruler against the bottom-left
    9. vertex D. Move the first mark along circle E until the second
    10. mark lies on the perpendicular bisector of the bottom side.
    11. 4. Then use the standard perpendicular-bisector construction to
    12. locate the circumcenter and complete the regular heptagon.
    13. Requirements:
    14. - Fill in all omitted ruler-and-compass construction steps.
    15. - Compass movements should produce traces only where necessary.
    16. - Add a feature to export the result as a GIF.

    3.2 Why This Task Is Discriminating

    At first glance, this may resemble a playful visual prompt such as “create an HTML animation of a pelican riding a bicycle.” But it places much denser demands on the model.

    1. A long chain of geometric reasoning

    The two-mark ruler construction requires the model to understand a constrained geometric relationship: the ruler remains against one vertex, its first mark moves along a circle, and its second mark must reach the perpendicular bisector.

    The model must translate those relationships into a working construction rather than assemble a plausible-looking answer from familiar geometry patterns.

    2. Both the process and the result must be correct

    A model can bypass the construction and simply draw a regular heptagon. The final image may look right, but the animation no longer follows the requested procedure.

    This distinction—a correct-looking result produced through an incorrect process—is central to evaluating instruction following.

    3. The animation requires a multistage state machine

    Rendering the construction as an animation requires the code to coordinate several stages: drawing lines, drawing the circle, moving the marked ruler, identifying intersections, and connecting the final vertices.

    Incorrect stage ordering or transitions can break the animation’s logic even when individual drawing operations work.

    4. GIF export adds an engineering requirement

    GIF export tests whether the model understands the general workflow of capturing canvas frames and encoding them into an animation. This checks implementation breadth beyond geometry and rendering.

    In practical use, even some flagship models can fail this task. Typical failures include introducing unsupported construction steps or substituting a different approximation method to obtain a heptagon. The output resembles the requested demonstration without actually implementing it.

    4. Three Common Model Behaviors

    Responses to this kind of prompt can be grouped into three broad categories. These categories apply to both lightweight and flagship models.

    4.1 Full Procedural Compliance

    The model produces an animation that follows the specified sequence. Each geometric object—the perpendicular bisector, circle, moving ruler marks, and intersections—clearly corresponds to the prompt.

    It completes the heptagon and provides working GIF export.

    This is the desired outcome: it indicates that the model can combine spatial reasoning, sustained instruction following, and code organization.

    4.2 Process Deviation

    The model draws a regular heptagon, but the construction animation does not match the instructions.

    Examples include:

    • Omitting the marked-ruler movement.
    • Placing vertices directly by dividing angles.
    • Introducing auxiliary lines that replace or bypass the requested construction.

    This is the most misleading failure mode. If evaluation checks only the final screenshot, the response may be incorrectly marked as successful.

    The issue is not that every added line is automatically wrong—the prompt explicitly asks for omitted construction details to be supplied. The issue is whether those additions complete the specified method or substitute a different one.

    4.3 Substantial Capability Failure

    The model fails to interpret the ruler’s movement constraints. The resulting animation may have disconnected stages, misplaced objects, or no meaningful construction process at all. In some cases, it produces only a static heptagon.

    There can also be usability failures: the model spends excessive time reasoning, produces little usable output, or streams its response unevenly.

    These behaviors matter in deployment. A model that occasionally reaches a correct answer but cannot produce a usable implementation reliably may still be unsuitable for the intended workflow.

    5. From a Single Prompt to a Repeatable Evaluation Workflow

    One difficult prompt is useful for quick screening, but it is not enough to establish a model’s overall suitability. Developers can turn this approach into a lightweight evaluation process.

    1. Build a Layered Task Set

    Prepare two or three compound tasks for each relevant capability area, such as:

    • Instruction following.
    • Code generation.
    • Spatial reasoning.
    • Edge-case handling.

    Set the difficulty slightly above that of the intended application. The tasks should test combinations of skills rather than only isolated knowledge.

    2. Define Separate Process and Result Criteria

    For each task, distinguish between:

    • Process correctness: Did the model follow the required method and sequence?
    • Result correctness: Does the final output satisfy the requested outcome?

    Keeping these criteria separate prevents a polished final artifact from hiding procedural failures.

    3. Keep Inference Settings and the Runtime Consistent

    Use consistent temperature settings, maximum output lengths, and execution environments when comparing models.

    For example, run implementations in the same coding tool or inference framework so that environmental differences do not obscure model differences.

    4. Record Operational Metrics

    Correctness is not the only factor in model selection. Also track:

    • Time to first token.
    • Total completion time.
    • Response streaming consistency.

    These measurements help determine whether a model is practical for an online service or interactive development workflow.

    5. Repeat Each Prompt

    Run the same prompt at least three to five times to assess stability.

    A model that succeeds once but frequently deviates from the instructions presents a different engineering risk from one that succeeds consistently. Variation across runs is itself an important evaluation signal.

    6. Conclusion

    A lightweight LLM does not necessarily suffer a major loss of capability. Some well-optimized flash-tier models can approach flagship performance on complex, compound tasks.

    However, a convincing final result is not enough to establish that capability. Whether the model faithfully follows the required process can be a more revealing distinction than the appearance of the output.

    For developers, the practical lesson is to build a small evaluation baseline around carefully designed, step-constrained tasks. Use a geometry construction prompt as an initial screen, then extend it into a repeatable task set that measures correctness, procedural fidelity, stability, and latency.

    Model selection should ultimately reflect the capabilities required by the actual application—not just a position on a benchmark leaderboard.