Prompt Following Evaluation for LLMs: Methodology and a Geometric Construction Test Case

    Prompt following—the ability of a large language model to accurately understand and strictly execute user intent expressed in natural language—is one of the most practical dimensions for evaluating LLM usability. This article explains why prompt following matters, why loosely constrained "vibe coding" tests are insufficient, and presents a high-pressure test case: an animated web page demonstrating the approximate construction of a regular heptagon using a twice-notched ruler (neusis construction). It breaks down the evaluation points—obscure terminology, dense multi-object references, semantic gap completion, and engineering completeness—then generalizes the approach into a reusable methodology for building private evaluation sets, with practical advice for production deployment.

    Prompt Following Evaluation for LLMs: Methodology and a Geometric Construction Test Case

    1. Why Prompt Following Is a Core Evaluation Dimension

    There are many ways to evaluate a large language model: general knowledge QA, mathematical reasoning, code generation, long-context understanding, and so on. But in real engineering practice, the metric that most directly reflects a model’s “usability” is often prompt following—whether the model can accurately understand and strictly obey the intent a user expresses in natural language.

    This capability looks simple but has a remarkably high bar. For large-parameter models with long chain-of-thought reasoning, “following the prompt” is far more than literal compliance. It implies a chain of implicit cognitive actions:

    1. Terminology resolution: recognizing specialized or obscure terms in the prompt and inferring their semantics from context, even when relevant training samples are scarce;
    2. Spatial and logical modeling: internally converting a sequence of operations described in natural language into a self-consistent system of geometric, physical, or logical constraints;
    3. Ambiguous semantics completion: human expression is inherently imprecise, so the model must proactively fill in omitted preconditions while keeping the completions consistent with the overall goal;
    4. Intent restoration: finally reproducing the user’s true intent in the generated output, rather than mechanically executing the literal instruction.

    Prompt following is the intersection of comprehension and execution. A model can be knowledgeable and strong at reasoning, but if it cannot map a user’s colloquial description onto correct actions, it will still struggle to land in real business scenarios. This is also the most fundamental requirement that AI coding tools and agent applications place on their underlying models.

    2. Choosing an Evaluation Scenario: From Vibe Coding to Intent Programming

    Much of the model evaluation popular in the community today centers on what might be called “vibe coding”: the user gives a rough direction and the model freely generates a runnable demo. These tests showcase generative ability but have an obvious limitation—because constraints are loose, the model has plenty of room to improvise, and even when its understanding drifts, the result often still “looks fine,” masking real weaknesses.

    To truly probe a model’s ceiling, you need “strongly constrained, low-tolerance” test tasks—scenarios closer to “intent programming,” where every stated condition must be satisfied and any misunderstanding produces a verifiably wrong result. Geometric ruler-and-compass construction is an ideal vehicle for such tasks:

    • Construction steps have strict causal dependencies; an error in an early step invalidates everything that follows;
    • Results can be verified programmatically, with a clear right/wrong boundary and no “close enough” gray zone;
    • Obscure terminology and multi-object references can be embedded naturally, putting the model’s comprehension under high pressure.

    3. Designing a High-Pressure Test Case: Constructing a Regular Heptagon with a Twice-Notched Ruler

    Below is the concrete test prompt used in this article, followed by a breakdown of what it evaluates. The task asks the model to build a web page that dynamically demonstrates the approximate construction of a regular heptagon using a “twice-notched ruler” (a straightedge bearing two marks at a fixed distance—an obscure tool from classical geometry, associated with neusis construction). The main steps are:

    1. Take a square and construct the perpendicular bisector of its base;
    2. Draw a circle centered at the square’s lower-right vertex with radius equal to the diagonal;
    3. Slide the twice-notched ruler against the lower-left vertex, keeping the first mark on the circle, until the second mark passes exactly through the perpendicular bisector of the base, thereby determining the key angle;
    4. Complete the remaining standard ruler-and-compass steps, such as drawing perpendicular bisectors and locating the circumcenter;
    5. When the compass draws, leave traces only where necessary;
    6. Finally, add a feature to export the construction process as an animated image.

    Test Point 1: Handling Obscure Terminology

    Neusis-style construction with a twice-notched ruler is a relatively obscure topic in the history of mathematics; most models have encountered almost no systematic knowledge about it during training. The model must either infer—from descriptions like “two marks” and “sliding against the vertex”—that this is a special sliding fixed-distance constraint method, or it will fabricate the key steps. This directly tests contextual reasoning and concept transfer.

    Test Point 2: High-Density Multi-Object References

    Step 3 alone involves, in a single sentence, the square’s vertices, the circle, the ruler’s two marks, and the perpendicular bisector of the base—each with spatial relationships of different natures: “against,” “moving on the circle,” “passing through.” The model must maintain a consistent internal object-relation graph; any misresolved reference collapses the entire construction logic.

    Test Point 3: Automatic Completion of Ambiguous Semantics

    The prompt deliberately keeps several imprecise statements: the square’s side length is never given, so the model must work backward from the goal of “obtaining a regular heptagon” to deduce that a unit-length square is required; the distance between the ruler’s two marks is implicitly assumed to be unit length; and what counts as “necessary traces” is left completely unspecified. Only by genuinely understanding the spatial operations, physical constraints, and goal constraints behind the natural language can the model make these correct inferences.

    Test Point 4: Engineering Completeness Requirements

    Beyond the construction logic itself, the prompt requires filling in all omitted ruler-and-compass details, controlling the trace-display strategy, and adding an animation export feature. This evaluates the model’s ability to handle both algorithmic correctness and engineering completeness within a single response.

    4. Methodological Takeaways Behind the Evaluation

    The design of this test case generalizes into a reusable methodology for evaluating prompt following:

    1. Choose obscure topics: deliberately pick knowledge areas sparse in training corpora, so the model cannot recite memorized answers;
    2. Increase object density: introduce multiple interrelated objects and constraints in a single instruction to test reference resolution and relational modeling;
    3. Leave semantic gaps: intentionally omit preconditions that can be inferred from the goal, and observe whether the model can proactively complete them and check consistency;
    4. Require verifiable output: make results programmatically judgeable, avoiding the bias of subjective assessment.

    Following this methodology, teams can build private evaluation sets that assess a model’s real performance in their own business scenarios more accurately than relying on public leaderboards.

    5. Practical Deployment Recommendations

    When applying high-following models to real business, a few additional points are worth noting:

    • Layered prompt design: split tasks into three layers—goal description, constraints, and output format—so you can locate which layer a model failure occurred in;
    • Programmatic result verification: for geometry, code, and structured-data tasks, write accompanying automated validation scripts to form a “generate–verify–feedback” loop;
    • Evaluation infrastructure: use general-purpose object storage to keep test cases and generated results, and combine logging services with monitoring and alerting to track how model performance changes across version iterations, building a continuous evaluation pipeline.

    6. Conclusion

    Prompt following matters for a fundamental reason: humans will never—and should never be forced to—communicate with models in strict programming languages; if that were required, one might as well just program. A truly excellent LLM should penetrate the surface of colloquial expression and reach the user’s real intent. Through the high-pressure test case and evaluation methodology introduced in this article, developers can judge model capability more rationally and systematically, providing a reliable basis for model selection and deployment in agent and AI coding applications.