Evaluating Prompt Adherence in Large Language Models: A Case Study with a Complex Geometric Construction Task

    Prompt adherence—the ability of an LLM to accurately understand and strictly follow instructions—is arguably more important than benchmark scores for real-world development work. This article explores how to scientifically evaluate prompt adherence in new-generation large models using a deliberately challenging test case: building an HTML page that constructs a regular heptagon with a marked ruler (neusis construction). The task tests rare terminology parsing, dense multi-object reference tracking, and inference of ambiguous or unstated constraints, mirroring how developers actually communicate requirements in natural language. Practical recommendations are provided for designing evaluation tasks and working with LLMs in everyday workflows.

    How to Scientifically Evaluate Prompt Adherence in Next-Generation LLMs

    1. Why Prompt Adherence Is the Core Metric of Model Upgrades

    Large-parameter models and long chain-of-thought models are iterating rapidly, and benchmark scores keep hitting new highs. But for developers on the front line, what truly determines whether a model is “good to use” is often not a leaderboard score, but a more fundamental capability: can the model accurately understand and strictly follow your prompt?

    After a recent next-generation flagship model was officially released, the most notable shift in community discussion centered precisely on this point: prompts that previously could not be understood or followed are now being interpreted and executed almost perfectly.

    This progress looks simple but is highly significant. For high-parameter, long chain-of-thought models, “following a prompt” is far more than literal instruction execution. It means the model genuinely understands what the prompt describes:

    • Complex spatial operations (geometric relationships, coordinate transformations, construction order)
    • Physical and logical constraints (how tools are used, how objects relate to each other)
    • Specialized terminology (including correct parsing of obscure terms)
    • Ambiguous semantics (unstated default values, implicit preconditions)

    —and then reproduces the user’s true intent in the final output.

    From an everyday engineering perspective, this capability matters even more than code generation itself, because it maps almost directly onto real work scenarios: product managers don’t describe requirements in formal language, and communication between engineers is full of omissions and default conventions. Whether a model can grasp the essence of “imprecise natural language” determines whether it can become a genuine productivity tool.

    It should be noted that this kind of test mainly evaluates what is often called vibe coding—the ability to quickly drive a model toward runnable results through natural language. It may not reveal the upper bound of a model’s capability, but it does reveal the lower bound of its usability in daily workflows.

    2. Test Case Design: An Obscure but Internally Consistent Construction Task

    To effectively discriminate a model’s true adherence capability, the test prompt must meet several conditions: obscure enough that no ready-made answer exists in training data, a long enough logical chain, dense object references, and colloquial phrasing.

    The prompt used in this test goes roughly as follows:

    Build an HTML page that constructs a regular heptagon using a “marked ruler” (a ruler with two fixed marks). Steps: start with a square and draw the perpendicular bisector of its bottom edge; then draw a circle centered at the bottom-right vertex with the diagonal as radius; next, use the marked ruler—keeping it pressed against the bottom-left vertex—letting its first mark slide 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 drawing perpendicular bisectors and locating the center. When using the compass, the traces of moving points appear, but only the necessary parts should remain visible. Finally, add a feature to export the construction as a GIF animation.

    This task is a true stress test of prompt adherence. Its challenges can be broken down as follows.

    2.1 Correct Parsing of Obscure Terminology

    The “marked ruler” (a straightedge bearing two marks at a fixed distance, a classical geometry tool that goes beyond straightedge-and-compass limitations and enables constructions such as angle trisection and the regular heptagon) is an obscure concept that most models cannot handle correctly out of the box. The model must not only “know” what it is, but also understand how it is used: keeping the ruler pivoted against a fixed point while one mark slides along a curve and the other mark satisfies a specific condition—a classic “sliding placement” (neusis) operation.

    2.2 Dense Multi-Object References

    Nearly every step of the procedure involves at least three objects simultaneously: the square’s vertices, the perpendicular bisector, the circle, and the ruler’s two marks. The model must keep every reference unambiguous and every relationship correct; a single mix-up anywhere collapses the entire construction chain. This is a serious test of entity tracking over long contexts.

    2.3 Reasoning About Ambiguous Semantics and Implicit Constraints

    The description is written in colloquial, imprecise natural language, with several “gaps” the model must fill in on its own:

    • No side length is given for the square: the model must infer that it should be a unit square. Reasoning backward from the goal of “constructing a regular heptagon,” the side length can only be unit length—otherwise the subsequent construction fails.
    • The distance between the ruler’s two marks is unspecified: by default, the marks are one unit apart, a convention the model must derive from the term’s definition.
    • “Necessary traces” is undefined: the model must decide which loci (e.g., compass arcs) should remain in the final figure and which are intermediate steps that should be hidden.

    In other words, only by genuinely understanding the spatial operations, physical constraints, terminology, and ambiguities behind the natural language can the model strictly follow the prompt and produce a correct construction.

    3. Why This Kind of Test Reflects Real Work Scenarios

    The real value of this test is that in daily work, humans cannot always communicate with models in rigorous, program-like language—otherwise they might as well write the code themselves.

    Real requirement communication often looks like this:

    1. "Update the logic on that previous page—after the user
    2. clicks the button, check the inventory first; if it's
    3. insufficient, show a message. Oh, and keep the message
    4. style consistent with the other pages."

    This passage is likewise full of omissions (which page is “that previous page”?), default conventions (“consistent with the other pages”), and implicit constraints (the inventory check happens before the order is placed). A model with high prompt adherence should be able to:

    1. Resolve references: locate “that page” and “the other pages” from context;
    2. Fill in defaults: follow the project’s existing components and style conventions;
    3. Maintain logical consistency: ensure the new logic doesn’t conflict with the existing flow;
    4. Deliver a finished result: produce runnable, detail-complete code rather than a half-finished draft requiring extensive rework.

    The geometric construction test is a “purified version” of this process—it strips away business context and retains only the three core steps of understanding, reasoning, and adherence, making its results more discriminating.

    4. Practical Recommendations for Developers

    Based on the analysis above, when using next-generation LLMs for development assistance, consider the following practices:

    • Describe requirements in structured but natural language: formality isn’t required, but key objects, constraints, and goals should be explicit, leaving less room for the model to “improvise.”
    • Design consistency checkpoints: a global goal like “the final result must be a regular heptagon” can be used to verify whether the model’s understanding of intermediate steps is correct.
    • Actively test handling of ambiguous semantics: deliberately omit certain conventions and observe whether the model infers them reasonably or makes arbitrary assumptions—this gauges its reliability in real requirement scenarios.
    • Focus on the process, not just the result: asking the model to output intermediate reasoning or a step-by-step implementation makes it easier to locate where understanding went wrong.

    5. Conclusion

    Improvements in prompt adherence mark the transition of LLMs from “able to generate content” to “able to understand intent.” For developers, this means natural language is becoming an increasingly reliable “programming interface.” When designing evaluation tasks, choosing problems that are obscure, internally consistent, multi-object, and semantically ambiguous reveals a model’s true capability boundaries far better than chasing leaderboard scores—because real-world requirements have always been vague and complex.