Evaluating LLM Prompt Following: Lessons from a Geometric Construction Task

    Prompt following (instruction following) is emerging as a key capability that separates truly usable large language models from merely impressive ones. This article explores how to evaluate prompt following through a deceptively simple geometric construction task—constructing a regular heptagon with a two-marked ruler—implemented as an HTML page with GIF export. It breaks down the test design, analysis dimensions, and practical implications for enterprise model selection and evaluation.

    Evaluating LLM Prompt Following: Lessons from a Geometric Construction Task

    1. Why “Prompt Following” Matters for the Next Generation of Models

    As large language models evolve rapidly, parameter counts and chain-of-thought lengths are no longer the only competitive battleground. A capability dimension that truly determines whether a model can be deployed in production is coming into focus: prompt following (instruction following).

    On the surface, prompt following simply means “does the model do what the user asked?” But technically, it goes far deeper than that. For high-parameter models with long chain-of-thought reasoning, true compliance is not mechanical execution of instructions. The model must first understand the complex spatial operations, physical constraints, domain-specific terms, and even ambiguous semantics described in the prompt, and then reconstruct the user’s real intent in its final output. Understanding is the prerequisite; compliance is the result—both are indispensable.

    This matters because it maps directly to everyday work scenarios. In reality, human-model communication is almost never strictly formalized: requirements documents contain colloquial descriptions, API agreements carry implicit assumptions, and task goals embed hidden context. If a model can only work under “precise, programming-language-style” prompts, its value is essentially no different from writing code directly. In other words, the quality of natural language compliance determines whether a model is a “tool” or a “colleague.”

    One caveat: this kind of test primarily reflects so-called “vibe coding” ability—the capacity to quickly produce working results based on an overall grasp of semantics. Higher-level “wish coding” (where users only express desires and the model autonomously fills in all technical decisions) may not be fully probed by a single test. Even so, it remains a highly discriminating probe.

    2. A Highly Discriminative Test Case

    To quantitatively observe a model’s compliance ability, consider the following prompt task:

    Create an HTML page that demonstrates the complete geometric construction of a regular heptagon using a two-marked ruler. The steps include: start with a square and construct the perpendicular bisector of its bottom edge; draw a circle centered at the bottom-right vertex with the diagonal as the radius; using a “two-marked ruler” that slides while staying anchored at the bottom-left vertex, move the first mark along the circle until the second mark passes through the perpendicular bisector of the bottom edge; then complete the remaining standard straightedge-and-compass steps, such as constructing perpendicular bisectors and locating the center. All omitted straightedge-and-compass sub-steps must be filled in, the compass should leave traces only where necessary, and the page must include GIF animation export.

    This task looks simple, but it is a carefully constructed “stress test.” Its evaluation points fall into three layers:

    2.1 Understanding and Coherently Handling Obscure Terms

    A “two-marked ruler” is a rather obscure construction tool. Most models either don’t recognize it or fail to handle its operational semantics correctly. The model must infer from the prompt’s description alone that the tool has “two marks at a fixed separation, sliding around a fixed anchor point,” and implement this geometric behavior consistently in code. This tests the model’s ability to reason from an unknown term to executable logic.

    2.2 High-Density Multi-Object References

    Nearly every step of the construction involves at least three objects simultaneously: square vertices, the circle, perpendicular bisectors, the two marks of the ruler, and so on. The model must maintain reference relationships among these geometric objects throughout, and any misbinding at one step breaks the entire construction. This is a severe test of the model’s context tracking and symbol binding capabilities.

    2.3 Reconstructing Intent from Ambiguous Natural Language

    This is the most subtle part of the test. The prompt is colloquial and imprecise throughout:

    • No square side length is given: the model must infer that it is actually a unit square. Given the goal of constructing a regular heptagon, the side length must be a unit value, or the subsequent derivation fails.
    • The mark spacing is unspecified: it must be assumed to be one unit length.
    • “Necessary traces” is undefined: the model must decide which construction traces to keep and which to omit—essentially a combined aesthetic and functional decision.

    Only a model that genuinely understands the spatial operations, physical constraints, and implicit assumptions behind the natural language can strictly comply and produce a correct construction.

    3. Dimensions for Analyzing Evaluation Results

    Once the model’s output is obtained, it can be systematically assessed along these dimensions:

    1. Semantic parsing correctness: Does the model correctly identify key elements such as the unit square, the diagonal-as-radius circle, and the two-marked ruler mechanism?
    2. Object relationship consistency: In the generated construction code, are references to geometric objects consistent throughout, without misattribution?
    3. Implicit assumption completion: Does the model make reasonable and consistent default decisions for unspecified parameters (side length, mark spacing, trace rules)?
    4. Engineering completeness: Does the HTML page run correctly? Are the construction steps visualized? Does the GIF export feature actually work?
    5. Robustness: Does the model perform consistently when the prompt is paraphrased or reordered?

    The conclusion from this kind of evaluation: models that complete the task correctly have not merely “memorized more construction knowledge”—they have achieved a qualitative leap across the entire understanding-and-compliance chain.

    4. Implications for Engineering Practice

    The evaluation approach for prompt following also offers lessons for enterprise applications:

    • Design evaluation sets that mirror real working language: Instead of formalized test suites, collect colloquial requirement descriptions from real business scenarios and build combined test points of “obscure terminology + multi-object references + ambiguous constraints.” Discrimination improves significantly.
    • Include compliance in model selection criteria: Beyond common benchmark scores, add compliance-specific tests tailored to your own business scenarios. Using standard capabilities provided by cloud vendors—model services, logging services, and monitoring/alerting—you can build an automated evaluation pipeline that continuously tracks behavioral changes across model version upgrades.
    • Prompt engineering still matters, with diminishing returns: The stronger a model’s compliance, the less it depends on prompt engineering tricks. Teams can gradually shift effort from “meticulously crafting prompts” to “designing clear intent expressions and acceptance criteria.”

    5. Conclusion

    Prompt following is the bridge between “model capability” and “real productivity.” A seemingly simple geometric construction task simultaneously tests four abilities: terminology comprehension, multi-object tracking, ambiguous semantics reconstruction, and engineering implementation. For developers, mastering this evaluation methodology offers more long-term value than chasing any single leaderboard score—because what we ultimately need is not a model that aces exams, but a working partner that understands what people say and gets things done.