Evaluating Prompt Compliance in LLMs: Insights from a Geometric Construction Task

    This article examines prompt compliance—an often overlooked yet critical dimension of large language model capability—through a carefully designed geometric construction task involving the construction of a regular heptagon with a marked ruler. It analyzes how models handle niche terminology, high-density multi-object references, and implicit constraints, presents a capability hierarchy observed across different models, and offers a reusable methodology for building prompt compliance test sets for enterprise applications.

    Why Prompt Compliance Deserves Dedicated Evaluation

    Among the many dimensions used to evaluate model capability, reasoning benchmarks and code generation pass rates are widely discussed. However, one dimension is frequently overlooked: prompt compliance. It addresses a question closer to real-world usage—does the model truly understand what the user wants it to do, and does it follow the user’s instructions accordingly?

    This may seem simple on the surface, but it reveals significant differences in model capability. For models with large parameter counts and long reasoning chains, following a complex prompt is not merely “understanding the instruction”—it represents a complete capability chain:

    1. Understanding spatial operation descriptions: Converting natural language descriptions of geometry, orientation, and movement into internal structured representations;
    2. Grasping physical constraints: Understanding the meaning and boundaries of constraints such as “flush against,” “passes through,” and “centered at a given point”;
    3. Resolving specialized terminology: Interpreting uncommon terms correctly rather than making assumptions;
    4. Reconstructing ambiguous semantics: Inferring the user’s true intent when descriptions are incomplete, colloquial, or rely on implicit premises.

    Whether the final output is correct depends on every link in this chain holding up. This is precisely why prompt compliance reflects real-world work scenarios—in practice, humans cannot always communicate with models using rigorous formalized language; otherwise, they might as well write code directly.

    A Carefully Designed Evaluation Task: Constructing a Regular Heptagon with a Marked Ruler

    To effectively test compliance, the task itself needs to sit “at the cutting edge of understanding.” A representative test prompt looks like this:

    Create an HTML page that constructs a regular heptagon using a marked ruler. Follow these steps: first, take a square and draw the perpendicular bisector of its base; then, using the bottom-right vertex E as the center, draw a circle with the diagonal as its radius; next, using the “marked ruler,” keep the marked ruler flush against the bottom-left vertex D, moving the first calibration mark along circle E until the second calibration mark intersects the perpendicular bisector of the base; then proceed with standard operations such as constructing perpendicular bisectors to determine the center. Fill in all omitted compass-and-straightedge construction steps. Note: using a compass will produce trajectories of moving points, but traces should only appear where necessary. Finally, add a feature to output the result as a GIF.

    This task involves several layers of deliberate design.

    Uncommon Terminology: Blocking Memorized Responses

    The “marked ruler” (or “graduated ruler”) is an uncommon concept that most models do not recognize or cannot correctly handle. If a model responds based on memorization or pattern matching, it will likely treat it as an ordinary straightedge and deviate from the intended task from the very first step. Only by genuinely reasoning from context—deducing that the tool has two calibration marks spaced at a specific distance, and that alignment through movement transfers length—can a model execute the task correctly.

    High-Density Multi-Object Reference: Testing Long-Range Consistency

    Virtually every step in the entire process involves at least three geometric objects simultaneously: vertices, circles, lines, calibration marks, perpendicular bisectors—and these objects have extensive cross-references, such as “circle E is centered at vertex E” and “the second calibration mark must intersect the perpendicular bisector of the base.” This high density of referential relationships places significant demands on the model’s contextual understanding and state-tracking capabilities. Any referential misalignment will cause the entire construction to fail.

    Implicit Constraints: Only “Thinking It Through” Leads to Success

    The most subtle aspect of this task is that the prompt itself is incomplete, requiring the model to fill in critical premises:

    • Inferring the unit square: The prompt never specifies the square’s side length. However, working backward from the goal of “constructing a regular heptagon,” the square can only have a unit side length; otherwise, the subsequent steps cannot hold geometrically. The model must perform backward inference from “goal → constraints → parameters.”
    • The default spacing of the marked ruler: The distance between the two calibration marks defaults to one unit, though this is not explicitly stated.
    • Definition of “necessary traces”: What traces are necessary versus unnecessary depends entirely on understanding the complete construction procedure.

    In other words, only when a model truly understands the spatial operations, physical constraints, terminology, and ambiguities embedded in the natural language can it strictly follow the prompt and produce a correct construction. This is not a problem that can be solved by “reciting an answer.”

    Capability Stratification Observed from Evaluation Results

    Using such tasks to compare models of different generations and scales reveals clear capability stratification:

    Capability Level Typical Performance
    Pre-upgrade models Fail to recognize the marked ruler, treat it as a regular straightedge; confuse multi-object references; unable to infer the implicit unit square premise
    Post-upgrade models Correctly parse the working principle of the marked ruler; maintain consistent object references throughout; automatically fill in implicit constraints; produce geometrically correct constructions

    The most significant difference is this: prompts that were previously incomprehensible and unfulfillable can now be understood and fully followed. Moreover, compliance is not mechanical execution of literal instructions—it is “semantic-level compliance” achieved by reconstructing the user’s true intent.

    It should be noted that this type of test primarily examines model performance in scenarios where “intent is clear and goals are verifiable,” falling within the realm of what is known as vibe coding. For truly open-ended wish coding—where a user expresses only a vague desire and the model autonomously designs a complete solution—the capability ceiling requires evaluation across additional dimensions.

    How to Build Your Own Prompt Compliance Test Set

    From the case above, a reusable design methodology can be distilled:

    1. Select uncommon but clearly defined concepts as core test points to prevent models from answering from memory;
    2. Ensure each step involves at least three cross-referenced objects to test consistency maintenance over long contexts;
    3. Intentionally preserve colloquial, imprecise expressions, hiding key parameters in default conventions to test intent reconstruction ability;
    4. Design machine-verifiable target outputs (such as the geometric correctness of constructions or the completeness of animated outputs) to make evaluation quantifiable;
    5. Retain complete process traces to distinguish between models that produce “correct results with wrong processes” and those with “correct processes and correct results.”

    In enterprise applications, the value of such testing is particularly pronounced. Whether building LLM-powered intelligent programming assistants, setting up natural language-driven data analysis pipelines, or integrating inference services on cloud platforms, prompt compliance directly determines the efficiency floor of “human-machine collaboration”—the more naturally users describe their needs, the more accurately models understand them, and the smoother the overall workflow becomes.

    Conclusion

    Prompt compliance is not a nice-to-have metric; it is one of the core thresholds for large language models heading into production environments. It measures a model’s comprehensive ability to understand spatial operations, physical constraints, specialized terminology, and ambiguous semantics—at its core, it asks whether “the model understands the user’s true intent.” By designing carefully crafted uncommon tasks for evaluation, we can strip away surface-level fluency and reveal a model’s actual capability boundaries. This has direct guiding significance for technology selection, application deployment, and everyday model usage.