Prompt Adherence: A New Evaluation Dimension for Large Language Models

    As next-generation LLMs with larger parameter counts and extended reasoning chains enter the market, developers often fall into two evaluation traps: relying solely on public benchmark scores, or judging capability based on isolated conversational turns. In real engineering scenarios, however, the true test is whether a model can take an imprecise, multi-objective natural language request and consistently produce a runnable, verifiable, and interpretable result. This article introduces "prompt adherence" as a critical evaluation dimension, breaks down its core components, and walks through a complex spatial reasoning task—constructing a regular heptagon with a two-mark ruler—to illustrate how to design rigorous evaluation tasks and implement them in practice.

    What Prompt Adherence Really Means: From Format Compliance to Intent Reconstruction

    Prompt adherence is often misunderstood as simply following output format requirements—returning JSON when asked, using bullet points, or avoiding certain words. These are shallow forms of compliance. The more meaningful measure is whether a model can grasp the business objective, spatial relationships, physical constraints, domain terminology, and ambiguous semantics embedded in a prompt, then reproduce the user’s true intent in the final output.

    For large-scale models with long reasoning chains, extended inference amplifies early misunderstandings. A single misinterpreted term can propagate through dozens of subsequent reasoning steps, ultimately producing output that looks coherent but is fundamentally wrong. Prompt adherence is therefore not a single skill but a combination of instruction parsing, context retention, constraint satisfaction, process planning, and self-verification.

    This suggests that model evaluation should incorporate verifiable tasks—tasks where success is determined not by subjective impression but by measurable outcomes such as geometric relationships, execution results, output files, and traceable process artifacts.

    Task Design: A Web Page Animated Demonstration of Constructing a Regular Heptagon with a Two-Mark Ruler

    A representative evaluation task is asking the model to generate a web page that visualizes the construction of a regular heptagon using a two-mark ruler. The task is described as follows:

    1. Begin with a square and construct the perpendicular bisector of its base.
    2. Draw a circle centered at the lower-right vertex with the square’s diagonal as radius.
    3. Using a two-mark ruler anchored at the lower-left vertex, slide the ruler so its first mark travels along the circle until the second mark crosses the perpendicular bisector.
    4. Complete the omitted ruler-and-compass steps to determine the center and finish the regular heptagon.
    5. Add functionality to export the animation as a GIF.

    While this appears to be a front-end drawing task, it exercises multiple capabilities simultaneously. First, the model must recognize the two-mark ruler—an uncommon tool—and understand the physical constraint imposed by the fixed spacing between its two marks. Second, the prompt never specifies the square’s side length; the model must infer that a unit length is necessary for the construction to be self-consistent. Third, the phrase “necessary traces” is deliberately undefined—the model must decide which construction lines to display, which trajectories to show only partially, and which to omit. Fourth, GIF export parameters such as frame rate, duration, and resolution are left unspecified, forcing the model to choose reasonable defaults while keeping the output functional.

    This type of task is more demanding than typical code-generation benchmarks. It requires not only that the code runs, but also that the geometric construction is correct, the animation is interpretable, and the exported file is usable. A model that merely generates a static diagram, or draws a heptagon without honoring the two-mark ruler constraint, fails the task.

    Key Challenges: Multi-Object Reference Resolution and Ambiguous Semantics

    The core difficulty lies in simultaneously tracking multiple constrained objects. During the ruler-sliding stage, at least the following objects are in play: the lower-left vertex, the lower-right vertex, the perpendicular bisector, the circle centered at the lower-right vertex, the two-mark ruler itself, the first mark, and the second mark. The natural language prompt relies heavily on pronouns and anaphoric references—“its,” “the circle,” “until,” “subsequently”—requiring the model to continuously maintain correct object states and avoid reference drift. Models without structured intermediate representations are prone to confusing the first mark with the second mark in later steps.

    Another challenge is implicit units and default values. The square’s side length, the ruler’s mark spacing, coordinate system scaling, and animation frame intervals are all unstated. A capable model should proactively adopt a “unit square” assumption, express it as named constants in code, and keep those constants easily adjustable for verification. It should also translate vague requirements into checkable constraints. For instance, “necessary traces” could reasonably be interpreted as: auxiliary circles display only near intersection regions, ruler trajectories appear only for the segment relevant to key intersection points, and the final heptagon edges remain fully visible.

    Engineering Implementation: State Machines, Constraint Solving, and Layered Rendering

    To reliably complete tasks like this, generated code should adopt a layered architecture:

    • Geometry layer: handles points, lines, circles, and intersection calculations.
    • Construction layer: maintains a state machine that tracks each construction step.
    • Rendering layer: controls which traces are displayed.
    • Export layer: captures frames sequentially and assembles the GIF.

    A pseudocode outline demonstrates the approach:

    1. unit = 1
    2. square = buildSquare(unit)
    3. midline = perpendicularBisector(square.bottom)
    4. circleE = circle(square.bottomRight, diagonal(square))
    5. ruler = twoMarkRuler(spacing=unit, anchor=square.bottomLeft)
    6. state = solveRulerConstraint(
    7. ruler.firstMark on circleE,
    8. ruler.secondMark on midline,
    9. ruler.edge touches square.bottomLeft
    10. )
    11. steps = completeConstruction(state)
    12. for step in steps:
    13. renderOnlyNecessaryTraces(step)
    14. captureFrame()
    15. exportGif(frames, reasonableFps)

    The critical requirement is modeling the ruler’s sliding motion as a constraint satisfaction problem rather than faking it with approximate animation. The rendering layer must distinguish between permanent construction lines, temporary auxiliary lines, and moving trajectories to avoid visual clutter. The export layer must produce a complete frame sequence and a valid GIF with sensible duration.

    Evaluation Criteria and Common Failure Modes

    A three-tier rubric provides clear differentiation:

    • Pass: The web page loads; the square and perpendicular bisector are correctly constructed; the circle and two-mark ruler constraints are accurately expressed; omitted ruler-and-compass steps are reasonably completed; the heptagon is geometrically correct; necessary traces are appropriately controlled; GIF export works and the animation is coherent.
    • Partial pass: Minor visual imperfections with correct geometry, or correct geometry with a missing export feature.
    • Fail: Misinterpreting the two-mark ruler as an ordinary ruler; ignoring the dynamic constraint that the first mark moves along the circle; leaving the unit undefined, causing coordinate inconsistencies; displaying all trajectories and making the visualization unreadable; generating a placeholder GIF button with no actual export functionality.

    Documenting these failure modes is often more informative than a single numeric score, as they reveal precisely where the model breaks down in realistic engineering use.

    Implications for Development Practice

    For developers, prompt adherence evaluation should closely mirror real working conditions: requirements expressed naturally by humans, complete with terminology, omissions, and implicit assumptions; outputs that are runnable and verifiable; and failures that can be traced back to specific causes.

    For enterprise users, model selection should not rest on polished demo results alone. Instead, build a task suite that covers spatial reasoning, constraint satisfaction, multi-file generation, visual output, and self-correction. Only when “understanding complex intent and delivering stable results” becomes a core evaluation criterion will model assessment carry genuine engineering significance.