Evaluating Prompt Following in Large-Scale LLMs: A Practical Testing Approach

    Prompt following—the ability of a large language model to accurately interpret natural-language instructions and faithfully execute them in its output—matters more to developers than benchmark scores. This article explains why prompt following is a better reflection of real-world usability, demonstrates a rigorous test case (constructing a regular heptagon with a neusis/marked-ruler method in interactive HTML), analyzes the technical challenges involved, and presents a systematic methodology for evaluating prompt following in enterprise model selection.

    Evaluating Prompt Following in Large-Scale LLMs: A Practical Testing Approach

    Introduction: The Real Pain Point in Model Evaluation

    Whenever a new generation of high-parameter LLMs is released, the most common question in the community is “how should we evaluate this model?” Standard benchmark leaderboards certainly have value, but for working developers, what truly determines the daily experience is often not a model’s score on standardized test sets—it is a more fundamental capability: prompt following.

    Prompt following refers to whether a model can accurately understand requirements expressed in natural language and fully reproduce the user’s true intent in its final output. This metric sounds simple, but it places extremely high demands on high-parameter, long-chain-of-thought models: the model must not only “understand” complex spatial operations, physical constraints, specialized terminology, and ambiguous semantics in the instructions, but also remain faithful to the original intent throughout multi-step reasoning.

    This article uses a carefully designed test case to systematically explain how to evaluate prompt following in LLMs, and why this capability reflects real-world work scenarios better than traditional benchmarks.

    1. Why Prompt Following Matters More Than Benchmarks

    1.1 The Linguistic Characteristics of Real Work Scenarios

    In actual development work, humans cannot always communicate with LLMs in rigorous, programmatic language. If every interaction had to be written as a formal specification, you might as well write the code yourself. Real collaborative language has the following traits:

    • Colloquial and imprecise: descriptions rely on common sense and background knowledge rather than complete definitions;
    • Implicit constraints: many key parameters are left unstated and must be inferred by the model;
    • Cross-referencing of multiple objects: a single description often involves several entities with complex referential relationships.

    1.2 Typical Symptoms of Weak Prompt Following

    On older generations of models, insufficient prompt following typically shows up as:

    • Ignoring secondary steps in the instructions and silently simplifying the workflow;
    • “Rationalizing” unfamiliar terminology into common concepts, causing the result to drift;
    • Losing earlier constraints during multi-step operations, so later steps become disconnected from the initial conditions;
    • Failing to infer anything from ambiguity and instead producing incorrect or mediocre default behavior.

    A good prompt-following test must therefore cover three dimensions simultaneously: obscure terminology, constraint density, and semantic ambiguity.

    2. Test Case Design: Constructing a Regular Heptagon with a Marked Ruler (Neusis)

    2.1 Task Description

    Our test prompt asks the model to build an interactive HTML page that constructs a regular heptagon using the “neusis” method (a marked ruler with two刻度 marks—here, a two-mark ruler). The core steps include:

    1. Take a square and draw the perpendicular bisector of its bottom edge;
    2. Using the bottom-right vertex as the center and the diagonal as the radius, draw an auxiliary circle;
    3. Apply the marked ruler so that it stays flush against the bottom-left vertex, with the first mark sliding along the auxiliary circle until the second mark passes exactly through the perpendicular bisector of the bottom edge;
    4. Complete the remaining standard straightedge-and-compass steps—additional perpendicular bisectors, locating the circle’s center, and so on;
    5. Compass constructions produce moving traces, but only the necessary portions should leave visible marks;
    6. Finally, add a feature to export the construction as a GIF animation.

    2.2 What This Test Case Examines

    Challenge 1: Correct handling of obscure terminology. The neusis (marked-ruler) technique uses a straightedge with two marks; by sliding and rotating it so that both marks land simultaneously on specified curves, it solves problems impossible with classical straightedge and compass—such as the regular heptagon and angle trisection. Most models are unfamiliar with this and tend to misinterpret it as an ordinary ruler, which breaks the entire geometric logic.

    Challenge 2: Dense multi-object referencing. Nearly every step involves at least three objects at once—the square’s vertices, the auxiliary circle, the perpendicular bisector, and the relative positions of the ruler marks. The model must continuously maintain these spatial relationships across a long reasoning chain; any single error propagates into a wrong final figure.

    Challenge 3: Inferring implicit conditions. The description never specifies the square’s side length. The model must deduce on its own that since the goal is a regular heptagon, the square must have unit side length and the distance between the two ruler marks must default to one unit—otherwise the subsequent geometric relationships cannot hold. This directly tests the model’s ability to “read between the lines.”

    Challenge 4: Grounding ambiguous semantics. Phrases like “leave traces only where necessary” have no precise definition. The model must rely on geometric construction conventions to decide which auxiliary traces should be kept and which should be hidden.

    3. Prompt Following Through the Lens of Code Generation

    This type of test essentially evaluates the model’s “vibe coding” ability—the user provides an intent-driven description and the model directly produces a complete, runnable implementation. It is worth noting that this does not necessarily reflect the model’s full capability ceiling, since deeper “wish-driven coding” also involves architectural decisions, iterative refactoring, and other more complex forms of collaboration.

    A qualified implementation typically needs to handle the following technical points:

    1. // Illustration: core geometric solving for the neusis sliding process
    2. function solveNeusis(centerD, circleE, midline) {
    3. // The marked ruler rotates around vertex D with a fixed mark spacing of 1
    4. // Find the angle theta such that the unit point on the ray lies on circle E,
    5. // and the second mark along direction theta passes through the midline
    6. let theta = 0;
    7. for (let step = 0; step < 10000; step++) {
    8. const p1 = pointAt(centerD, theta, r1); // First mark: on the circle
    9. const p2 = pointAt(centerD, theta, r1 + 1); // Second mark
    10. if (Math.abs(p2.x - midline.x) < EPSILON) return theta;
    11. theta += DELTA;
    12. }
    13. }

    The model must translate natural-language phrases such as “flush against the vertex,” “the mark moves along the circle,” and “passes through the perpendicular bisector” into geometric constraints and code logic one by one—this is the most direct manifestation of prompt following. The GIF export feature further tests the model’s combined handling of animation frame capture, encoding, and browser compatibility.

    4. Building a Systematic Prompt-Following Evaluation Methodology

    4.1 Test Design Principles

    Based on the practice above, we summarize four principles for designing prompt-following tests:

    • Choose obscure but self-consistent procedures: prevent the model from relying on ready-made answers in its training data, forcing genuine comprehension of the instructions;
    • Embed implicit constraints: omit key parameters to test whether the model can reverse-engineer necessary conditions from the final goal;
    • Increase object density: ensure continuous cross-references across multi-step operations, challenging context retention;
    • Preserve ambiguity: deliberately use colloquial phrasing to observe the model’s ability to make reasonable inferences.

    4.2 Scoring Dimensions

    We recommend scoring across four dimensions: correctness of terminology handling, step completeness, constraint satisfaction, and output usability. Only when all four are met can we conclude that the model truly “understood and followed” the prompt.

    4.3 Engineering Implementation

    For enterprise applications, this kind of evaluation can be integrated into the model selection pipeline. Test cases and generated results can be stored in general-purpose cloud object storage, while logging services and monitoring/alerting track how prompt-following performance changes across model versions, forming a continuous evaluation loop. The general-purpose infrastructure offered by mainstream cloud platforms such as Baidu AI Cloud is sufficient to run these evaluation tasks at scale.

    Conclusion

    Prompt following is the bridge between model capability and real productivity. Progress in this capability among new generations of high-parameter models means developers can express complex intent more naturally, offloading more of the “understanding” work onto the model. By building evaluation cases from obscure terminology, dense constraints, and ambiguous semantics, we can measure this progress more realistically than traditional benchmarks—and gain a reusable methodology for everyday model selection.