Evaluating LLM Prompt Adherence: A Geometry Construction Benchmark

    This article breaks down how to evaluate large language model prompt adherence, using an obscure but logically consistent geometry construction task as a probe. It covers the evaluation sample design, a five-dimension scoring framework that separates visual similarity from correctness, common failure modes and their root causes, a reusable evaluation checklist, and practical guidance for incorporating prompt adherence into model selection and iteration workflows.

    1. Why Prompt Adherence Has Become a Key Metric

    In discussions about a major model upgrade, the most noticeable change is often not longer answers or smoother phrasing, but a clear improvement in how faithfully the model restores natural language instructions. Prompts that previously could not be parsed, or that produced approximate or off-target results, can now be fully understood and strictly executed. For high-parameter models with long chains of reasoning, this improvement means far more than simple obedience. It indicates that the model has internally performed joint modeling of spatial operations, physical constraints, technical terminology, and fuzzy semantics, and has reproduced the user’s true intent in the final output.

    This is highly relevant to daily work. In real business scenarios, humans almost never communicate with models using rigorous programming languages at all times. If every sentence had to be written as pseudocode, the interaction cost would be higher than programming directly. Therefore, the key measure of model capability is its ability to fill in implicit premises, resolve ambiguity, and execute stably under “imprecise natural language.”

    It should be noted that this type of evaluation focuses more on the ability to understand and produce artifacts in “vibe coding” scenarios. It still does not fully reflect the upper limit of capability for true “wishful coding” (where only the goal is described and the model autonomously plans the entire path), but it has extremely high discriminative power for prompt adherence.

    2. Evaluation Sample Design: An Obscure Yet Logically Consistent Drawing Task

    The prompt used for evaluation can be abstracted as follows: use an HTML page to demonstrate “completing the construction of a regular heptagon with a two-mark ruler,” and output it as a GIF. The workflow includes: first take a square and draw the perpendicular bisector of its base; then use the bottom-right vertex as the center and the diagonal as the radius to draw a circle; next, place the two-mark ruler tightly against the bottom-left vertex, with the first mark moving on the circle until the second mark passes through the perpendicular bisector of the base; finally, complete the standard steps such as finding the center via perpendicular bisectors. There are two additional requirements: when using the compass, keep only necessary traces and avoid piling up meaningless trajectories; the page must support GIF export.

    The “test points” of this problem can be summarized into four layers:

    1. Obscure terminology: The two-mark ruler is not a general-purpose construction tool. Most models lack a stable prior and easily mistake it for an ordinary ruler or ignore its “two marks” constraint.
    2. High-density multi-object reference: Almost every step involves more than three objects simultaneously (vertices, circles, perpendicular bisectors, marks). Once the reference chain breaks, subsequent steps will inevitably fail in a chain reaction.
    3. Implicit premises: The prompt never specifies the side length of the square, so the model must infer a unit square on its own. Combined with the goal of “finally constructing a regular heptagon,” the side length can only be a unit value; otherwise the scale relationship cannot close. The distance between the two marks is likewise defaulted to a unit length.
    4. Fuzzy expression: “Necessary traces” has no formalized definition, so the model must determine on its own which intersections, perpendicular feet, and arc segments are worth keeping based on construction semantics.

    3. Scoring Dimensions: Separating “Looks Right” from “Is Right”

    It is recommended to split scoring into five dimensions to avoid subjective impressions dominating the conclusion:

    • Terminology and constraint fidelity: Whether the sliding constraint of the two-mark ruler is correctly implemented, rather than degenerating into an ordinary compass-and-straightedge approach.
    • Reference consistency: Whether vertices, centers, and intersections remain correctly bound throughout the long workflow.
    • Implicit premise completion: Whether the unit square and unit mark spacing are automatically filled in.
    • Deliverable completeness: Whether all omitted steps are completed and whether traces are “necessary and sufficient.”
    • Interaction capability: Whether GIF export works and whether the animation reflects key geometric relationships rather than meaningless jitter.

    A sample self-check structure can be written as:

    1. checklist = {
    2. "term_fidelity": "whether the two-mark constraint of the two-mark ruler holds",
    3. "reference_chain": "whether vertex/center/intersection bindings stay consistent throughout",
    4. "implicit_assumption": "whether unit side length and unit mark spacing are filled in",
    5. "trace_necessity": "whether traces keep only necessary intersections and arcs",
    6. "deliverable": "the page runs and supports animated export"
    7. }

    4. Common Failure Modes and Root Causes

    • Terminology downgrade: Treating the two-mark ruler as an ordinary ruler, causing the core construction to be missing.
    • Reference drift: After steps advance, the center or a vertex is incorrectly replaced; the figure looks complete but the relationships are wrong.
    • Scale mismatch: Arbitrarily setting a side length, breaking the scale closure with the regular heptagon.
    • Trace noise: Keeping all arc trajectories, making the page unreadable.
    • Missing deliverable: Providing only a static image or pseudocode without implementing animated export.

    In terms of attribution, the first two categories are semantic understanding problems, the third is a constraint reasoning problem, and the last two are engineering completeness problems. During evaluation, they should be recorded separately to avoid a single aggregate score masking weaknesses.

    5. A Reusable Evaluation Checklist

    1. Select an obscure but self-consistent task to ensure the model cannot pass by recalling a template.
    2. Intentionally keep colloquial phrasing and omissions to observe whether the model proactively fills in premises.
    3. Set up long-chain references across multiple objects to test consistency retention.
    4. Define fuzzy requirements such as “necessary traces” to assess semantic judgment rather than literal execution.
    5. Require a runnable deliverable and export capability to verify end-to-end delivery.
    6. Use per-dimension scoring and failure attribution to form a comparable evaluation baseline.

    6. Engineering Implementation Recommendations

    On the enterprise side, prompt adherence can be incorporated into the routine evaluation set for model selection and iteration, alongside tasks such as code generation and document extraction. For engineering, it is recommended to pair this with logging services and monitoring alerts to continuously observe prompt versions and the distribution of failure types. For artifact-producing tasks, object storage can archive outputs and container platforms can host runnable environments to enable reproduction and regression. If using intelligent coding tools, “implicit premise completion rate” and “reference consistency” should be tracked as independent metrics, rather than only checking whether the final answer “looks right.”

    7. Conclusion

    The essence of prompt adherence is the model’s ability to perform constraint solving and intent restoration under fuzzy natural language. Using a task like obscure geometric construction as a probe can clearly distinguish “literal imitation” from “true understanding.” For developers, building a per-dimension, attributable, and regression-capable evaluation system holds more long-term value than chasing a single impressive demo. With the general engineering capabilities of platforms such as Baidu AI Cloud, this type of evaluation can more easily be consolidated into a continuously iterable quality baseline.