How to Evaluate Prompt Adherence in Large Language Models

    This article explains why prompt adherence deserves its own evaluation track rather than being reduced to output formatting. Using an obscure geometric construction task—describing a two-mark ruler method for drawing a regular heptagon and asking a model to generate an animated web page with GIF export—it breaks down what such a probe actually tests: recovering rare terminology, tracking dense multi-object references, translating implicit physical constraints, filling in vague semantics, and keeping the final artifact consistent with the goal. A reproducible four-layer method is presented, along with suggested metrics and practical advice for prompt design, application workflows, and platform-side evaluation infrastructure.

    1. Why Prompt Adherence Deserves Its Own Evaluation Track

    General-purpose LLM leaderboards measure reasoning, coding, and math over and over again, yet “prompt adherence” is usually collapsed into a single question: can the model output the requested format? The engineering reality is different. The model often understands the task perfectly well; what happens is that when multiple constraints stack up, it silently drops a few of them. The output still looks reasonable, but it deviates systematically from what the user actually intended.

    A typical version upgrade illustrates the point. Before and after the upgrade, base reasoning ability barely changed. What changed is that complex instructions which previously could not be parsed or executed can now be understood in full and carried through to completion. The value of that improvement is that it converts a vague intent expressed in natural language into an executable, self-consistent result—which is exactly how most day-to-day interactions actually happen.

    One caveat matters here: this kind of evaluation is concentrated in “vibe coding” scenarios, where the user describes a goal in natural language and the model produces something runnable. That is not the same as the strict engineering mode of “complete the design first, then implement.” Conclusions should therefore be read as a lower-bound estimate of natural language understanding and constraint retention, not as a ceiling on model capability.

    2. Evaluation Vehicle: An Obscure Geometric Construction Task

    The task can be abstracted as follows: describe in natural language a procedure for constructing a regular heptagon with a two-mark ruler, and require the model to generate a web page that animates the construction and supports exporting the result as an animated image.

    Key steps of the procedure:

    • Start with a square.
    • Construct the perpendicular bisector of its base.
    • Using the bottom-right vertex as center and the diagonal length as radius, draw a circle.
    • Then apply the two-mark ruler so that it stays flush against the bottom-left vertex, with the first mark sliding along that circle until the second mark passes through the perpendicular bisector of the base.
    • Finally, add the conventional steps such as finding a center via perpendicular bisectors, and complete the regular heptagon.

    Requirements: every omitted compass-and-straightedge step must be filled in; trail marks produced during construction must be limited to only what is necessary; and the deliverable must be able to export an animated image.

    3. What the Model Is Actually Being Tested On

    • Semantic recovery of obscure terminology. The two-mark ruler is not a high-frequency concept in training corpora. The model has to infer its geometric meaning on its own: the spacing between the two marks is fixed and can serve as a “transferable unit length,” effectively turning a ruler into a portable measuring tool.
    • High-density, multi-object reference tracking. Almost every step involves more than three objects at once (vertices, perpendicular bisector, circle, marks, intersection points), with frequent pronouns and omitted subjects. A single reference drift collapses all subsequent steps.
    • Implicit physical constraints. “Stay flush against the vertex,” “slide along the circle,” and “the second mark passes through the perpendicular bisector” are kinematic constraints. The model must rewrite them as computable geometric conditions rather than merely producing a visually similar animation.
    • Completion of vague semantics. The side length of the square is never given, but given the goal of constructing a regular heptagon, a unit side length can be inferred; the mark spacing defaults to one unit; and “necessary trails” requires the model to define its own retention policy.
    • Goal consistency check. The artifact must simultaneously satisfy four conditions—correct construction, complete steps, restrained trails, and animated export. Missing any one counts as non-adherence.

    4. A Reproducible Evaluation Method

    Split the evaluation into four layers so failures can be localized:

    1. Semantic parsing layer. Have the model first emit a structured intermediate representation, for example a declarative description of each geometric object and constraint, so a human reviewer can check whether references have drifted.
    1. objects: square(ABCD, side=1), midPerp(AB), circleE(center=E, r=AC)
    2. constraint: rulerMark1 ∈ circleE
    3. constraint: rulerMark2 ∈ midPerp(AB)
    4. constraint: D stays flush with the two-mark ruler
    5. goal: regularPolygon(n=7)
    1. Constraint solving layer. Check whether the model converted the natural language constraints into verifiable equations instead of jumping straight to drawing.
    2. Rendering implementation layer. Assess animation continuity, trail management, and interaction completeness.
    3. Artifact validation layer. Verify numerically whether the heptagon closes, whether side lengths are equal, and whether the export function works.

    Recommended evaluation records: first-pass rate, constraint retention rate (correctly implemented constraints / total constraints), number of reference errors, and a human-rated intent recovery score. Together these separate “looks right” from “is right.”

    5. Engineering Recommendations

    • Prompt side. Make implicit premises explicit, but deliberately keep some vague descriptions for stress testing; for critical constraints, write both the goal and the acceptance criteria.
    • Application side. In AI coding tools and agent workflows, add an intermediate representation and a self-check step so the model restates constraints before executing. This noticeably reduces drift in long-chain tasks.
    • Platform side. Combine logging services, monitoring and alerting, and object storage to accumulate evaluation samples and failure patterns into a regression set that can be run continuously; use a container platform to pin down the evaluation environment and keep results reproducible.
    • Selection side. Do not rely on composite leaderboards alone. Build a small private evaluation set based on the constraint density of your own workload, focusing on stability in multi-constraint, long-chain tasks.

    6. Conclusion

    Prompt adherence is fundamentally a model’s ability to recover the user’s real intent through natural language, which is a non-strict interface. Using an obscure geometric construction task as a probe efficiently exposes four weaknesses: terminology understanding, multi-object reference tracking, physical constraints, and vague semantics. For developers, moving evaluation from “does the result look right” to “does every constraint hold individually” is the key step in deciding whether a model can enter a real workflow.