How to Evaluate LLM Instruction-Following: A Geometry Construction Case Study

    This article presents a practical framework for evaluating large language models on instruction-following tasks. Using geometric construction as an example, it examines terminology comprehension, multi-step reference tracking, implicit-constraint completion, automated verification, failure analysis, and engineering practices for building reliable regression tests.

    1. Why Instruction-Following Deserves Separate Evaluation

    Most model evaluations focus on whether the final answer is correct. In real-world development, however, requirements are often expressed in natural language. These descriptions may be conversational, include many steps and objects, and omit important prerequisite conditions. A model’s ability to reconstruct the user’s actual intent from such input directly affects its usefulness in engineering scenarios.

    Instruction-following is different from knowledge. A model may know the definition of a concept but fail to apply it correctly to a specific task. It may also complete individual steps successfully while losing dependencies between steps in a longer procedure. Evaluation should therefore distinguish between what a model knows and what it can actually do.

    2. Three Key Dimensions of Task Design

    When designing instruction-following tests, consider the following three dimensions.

    1. Understanding Technical Terminology

    If a task contains an uncommon term or the name of a specialized tool, the first question is whether the model can interpret it correctly. If the model replaces an unfamiliar tool with a more common one, the result will deviate from the intended task even if every subsequent step is described in detail.

    2. References to Multiple Objects and Steps

    Complex tasks often refer to several objects in the same sentence. For example: “Construct a circle centered at a given point with a specified segment as its radius, then make a marked line pass through another line.” Such instructions require the model to track each object’s identity, position, and state throughout the process.

    A reference error can propagate and become more serious in later steps, making reference tracking an effective indicator for distinguishing model capabilities.

    3. Completing Implicit Constraints

    Conversational instructions often omit values or conditions. For example, a task may ask the model to “construct a square” without specifying its side length. A capable model should recognize that the length is undefined and infer a reasonable value from the final objective.

    If the task requires a final figure with a fixed ratio, choosing a unit side length may be the only workable option. Whether the model can make this inference and explicitly state the assumption is an important measure of its depth of understanding.

    3. Using Geometric Construction to Design Evaluation Tasks

    Geometric construction is an effective vehicle for testing instruction-following because its rules are explicit and its results can be verified mathematically.

    Consider a regular heptagon. According to the Gauss–Wantzel theorem, a regular heptagon cannot be constructed using only an unmarked straightedge and compass. If a ruler with two marked points is allowed—the tool commonly known as a marked ruler or neusis instrument—and a sliding positioning method known as neusis is used, a regular heptagon can be constructed.

    This background creates a useful trap. If a model does not understand the rules of the tool, it may produce a sequence of steps that appears plausible but is not actually valid.

    A test task will typically include the following elements:

    • Initial conditions, such as how the starting square should be constructed;
    • Tool rules, such as treating the distance between the marks as one unit by default;
    • Operation order, such as constructing a perpendicular bisector before drawing a circle centered at a specified point;
    • Output requirements, such as which construction traces to preserve and whether an animation file should be generated.

    When writing a task, clearly distinguish between information provided by the prompt and information the model is expected to infer. This allows evaluators to tell the difference between an omitted condition and a reasonable assumption.

    4. Evaluation Workflow and Scoring

    A complete evaluation process can be organized into the following steps:

    1. Write the task and reference answer. The reference answer should include key coordinates, critical steps, and the final result, along with the range of acceptable assumptions.
    2. Design a scoring rubric. Score each dimension separately rather than assigning only one overall score.
    3. Sample multiple times. A model may produce different outputs for the same task, so evaluate the statistical results across multiple runs.
    4. Automate verification where possible. Use programs to check verifiable properties, such as whether a point lies on a target circle.
    5. Perform human review. Content that is difficult to verify automatically, such as whether the procedure is fully described, still requires manual assessment.
    6. Record failure types. Categorize failures so that future improvements can target specific weaknesses.

    The following example checks whether generated points lie on a specified circle:

    1. import math
    2. def on_circle(point, center, radius, tol=1e-6):
    3. """Return whether a point lies on a circle within the allowed tolerance."""
    4. return abs(math.dist(point, center) - radius) <= tol
    5. def score_circle_points(points, center, radius):
    6. """Return the proportion of points that lie on the target circle."""
    7. if not points:
    8. return 0.0
    9. hits = sum(on_circle(p, center, radius) for p in points)
    10. return hits / len(points)
    11. # Example: check whether coordinates lie on the unit circle
    12. pts = [(1.0, 0.0), (0.0, 1.0), (0.6, 0.8)]
    13. print(score_circle_points(pts, (0.0, 0.0), 1.0)) # Output: 1.0

    This type of function covers only part of the verification process. For multi-step tasks, evaluators must also check dependencies between steps. For example, they may need to verify that an intersection point is determined by the two line segments constructed in the previous step.

    5. Common Failure Modes

    Failures in similar tasks usually fall into the following categories:

    • Terminology substitution: Replacing an unfamiliar tool with a familiar one, causing every later step to rely on an incorrect premise.
    • Omitted steps: Skipping intermediate constructions, such as a perpendicular bisector or auxiliary circle, and making subsequent steps impossible to complete.
    • Silent assumptions: Filling in missing conditions without explaining them, making it difficult for readers to assess the reliability of the result.
    • Visually correct but numerically inaccurate results: Producing a figure that looks close to the target while key coordinates exceed the permitted tolerance.
    • Correct output format but incorrect content: Generating a valid file whose animation path does not match the actual construction process.

    Silent assumptions deserve particular attention. If a model explicitly states, “Assume the side length is one unit because the later ratio depends on this choice,” the result is more useful—even if the assumption differs from the evaluator’s expectation—than if the model silently changes the condition.

    6. Interpreting Results and Engineering Recommendations

    A single score cannot fully represent a model’s capabilities. Instruction-following should be divided into at least five subcategories:

    • Terminology comprehension;
    • Step completeness;
    • Constraint completion;
    • Result correctness;
    • Transparency of assumptions.

    These dimensions should be reported separately.

    For production engineering, consider the following practices:

    • Add representative complex instructions to a regression test set and rerun them whenever the model or prompt changes;
    • Require the model to list its assumptions before execution when the instruction is ambiguous;
    • Add programmatic checks for important outputs, such as coordinate precision, file format, and frame count;
    • Preserve failure cases and review them regularly, turning frequent failure patterns into prompt-design guidelines.

    There is no permanent, universal standard for evaluating instruction-following. As tasks become more complex, evaluation sets must evolve with them. Clearly decomposed tasks, carefully designed scoring dimensions, and automated verification are the foundation of reliable and reproducible evaluation.