Prompt Adherence Evaluation for LLMs: A Geometric Construction Case Study
Prompt adherence is a practical but often overlooked measure of large language model capability. This article uses a demanding geometric construction task—building an HTML page that constructs a regular heptagon with a two-mark ruler and exports the process as a GIF—to examine how models interpret obscure terminology, resolve dense object references, fill in omitted constraints, and deliver end-to-end engineering output. It also discusses how to design effective adherence tests and build layered evaluation practices for real-world applications.
Prompt Adherence Evaluation for LLMs: A Geometric Construction Case Study
Why Prompt Adherence Is a Key Indicator of Model Capability
When new generations of high-parameter large language models with long chain-of-thought reasoning are released, developer communities often measure progress with standardized benchmarks such as math competition scores, code-generation pass rates, and knowledge question-answering accuracy. In real day-to-day work, however, a simpler but more decisive metric is often overlooked: prompt adherence.
Prompt adherence is not merely about whether a model outputs content that follows an instruction. Its deeper meaning is whether the model can understand the complex spatial operations, physical constraints, technical terminology, and ambiguous semantics described in a prompt, and then accurately reproduce the user’s true intent in the final result. For high-parameter models with long chain-of-thought capabilities, this path is especially critical: the longer the reasoning process, the greater the chance of semantic drift or constraint loss in intermediate steps. If a model misinterprets the user’s constraints in the first reasoning step, a longer chain of thought only moves further in the wrong direction.
From an engineering practice perspective, this matters because human-model interaction can almost never rely permanently on rigorous programmatic language. If users had to formalize every requirement into an unambiguous specification document, they would effectively complete most of the programming work themselves, and the model’s value would be greatly reduced. The truly valuable capability is for a model to handle colloquial, imprecise, and elliptical natural-language descriptions while still filling in implicit information, resolving multiple references, and producing results that match intent.
A High-Pressure Test Case: Constructing a Regular Heptagon with a Two-Mark Ruler
To specifically test a model’s prompt adherence, the following test prompt can be designed:
Draw an HTML page that implements the construction of a regular heptagon with a two-mark ruler. The steps are as follows: first take a square and construct the perpendicular bisector of its bottom edge; then, with the bottom-right vertex E as the center and the diagonal as the radius, draw circle E; next, using a “two-mark ruler,” keep it pressed against the bottom-left vertex D and move the ruler so that its first mark slides along circle E until its second mark passes through the perpendicular bisector of the bottom edge. After that, add the usual straightedge-and-compass construction steps, such as constructing perpendicular bisectors and determining the center. Note: using a compass will produce the locus of a moving point, but leave traces only where necessary. Finally, add a function to export the output as a GIF.
This prompt appears to be only a web development task, but it is actually a carefully constructed multi-dimensional stress test.
Core Test Dimensions Covered by This Case
1. Understanding an Obscure Term: The Two-Mark Ruler
The “two-mark ruler”—a straightedge with two fixed marks at a fixed spacing, originating from classical marked-ruler construction problems—is an extremely obscure concept. Most models rarely encounter its full definition in training corpora, let alone understand the physical operation described by the chain of constraints: keeping the ruler pressed against a certain point, letting the first mark slide along a circle, and stopping when the second mark passes through a certain line. The model must infer the meaning of the term from limited clues rather than simply treating it as an ordinary straightedge.
2. High-Density Multi-Object Reference Resolution
Almost every step in the process involves at least three objects at the same time: the square, vertex D, vertex E, circle E, the perpendicular bisector, and the two marks on the two-mark ruler. For example, in the sentence “make the first mark move along circle E until the second mark passes through the perpendicular bisector of the bottom edge,” the model must simultaneously maintain the contact constraint between the ruler and vertex D, the intersection constraint between the first mark and the circle, and the coincidence constraint between the second mark and the perpendicular bisector. If any reference is confused, the final figure will be completely wrong. This directly tests the model’s working memory and constraint-maintenance ability.
3. Completing Ambiguous Semantics and Implicit Information
The description uses colloquial and imprecise natural language, and it contains several implicit conditions that the model must judge on its own:
- The square’s side length is not given: The prompt never states the side length of the square. The model needs to infer from the goal of “finally constructing a regular heptagon” that the square must be a unit square; otherwise, the ruler spacing and construction scale cannot match, and the regular heptagon cannot be constructed.
- The spacing between the two marks is assumed: The distance between the two marks is implicitly set to unit length, and the model needs to recognize this default convention.
- “Necessary traces” is undefined: The prompt does not list which arcs should be shown and which should be hidden when the compass “leaves traces only where necessary.” The model must trim the visible range of the locus based on the construction logic.
These ambiguities simulate real work scenarios: the requirements users provide are never complete specifications. Only by truly understanding the spatial operations, physical constraints, and terminology can a model make correct completion decisions.
4. End-to-End Engineering Delivery
Beyond geometric logic, the task also requires the model to output an interactive HTML page with GIF export functionality. This means the model must not only “think correctly” but also “deliver correctly”: it needs to use Canvas or SVG to implement the dynamic construction process and generate a GIF by drawing frame by frame with frame capture. This tests the model’s engineering ability to turn abstract understanding into complete, runnable code.
Methodological Lessons from This Test for Model Evaluation
1. Distinguish “Vibe Coding” from “Intent-Based Coding”
It is worth noting that this type of test reflects what the industry often calls “vibe coding”—the user gives a general direction, and the model freely fills in details. The ability that truly tests the upper limit of a model, “intent-based coding”—where every detail required by the user must be strictly reproduced—still requires test cases with denser constraints and less room for error. Evaluators should clearly distinguish these two capability levels when interpreting results and avoid generalizing a model’s overall level from a single scenario.
2. Construct Effective Tests with Obscure Concepts, Multiple Constraints, and Ambiguous Semantics
An effective prompt adherence test case usually has three characteristics. First, it contains concepts unfamiliar to the model, to rule out interference from memorized answers. Second, each step involves multiple objects and multiple constraints, to test reference resolution. Third, the description itself contains deliberate omissions and ambiguity, to test the model’s ability to complete intent. Only cases that satisfy these three points can distinguish “accidentally generating a seemingly reasonable result” from “truly understanding and adhering to the prompt.”
3. Build a Layered Evaluation System in Business Scenarios
For enterprise applications, it is advisable to include prompt adherence as a regular evaluation dimension in model selection, alongside metrics such as code correctness, response latency, and context length. Teams can build private evaluation sets based on typical requirement descriptions in their own business—especially those that are colloquial and contain omissions—and continuously track changes in adherence across model versions. When deploying model services on the cloud, teams can also combine general cloud capabilities such as logging and monitoring/alerting to sample, analyze, and regression-test instruction adherence in online inference results.
Conclusion
Prompt adherence may appear to be a simple capability point, but it actually connects the full chain of natural-language understanding, multi-constraint reasoning, implicit information completion, and engineering delivery. Obscure, highly constrained, and semantically ambiguous test cases such as “constructing a regular heptagon with a two-mark ruler” can effectively peel back the surface of model capability and expose its true level of understanding. For developers, mastering the design method for such test cases not only enables more objective evaluation of capability improvements brought by model iterations, but also helps them write more efficient prompts—after all, understanding the boundaries of a model’s understanding is itself a prerequisite for efficient human-machine collaboration.
