Evaluating Natural Language Instruction Following: A Geometric Construction Case Study

    This article examines how to assess a model’s ability to follow natural-language instructions, using a geometric construction task as an example. It explains why instruction following is a stronger signal than code generation alone, analyzes task characteristics such as uncommon tools, dense multi-object references, imprecise descriptions, and implicit operational constraints, and proposes methods for identifying and completing hidden assumptions. It then presents a multi-dimensional evaluation framework covering step coverage, geometric correctness, constraint consistency, explicit assumptions, and output compliance, with a numerical validation example and engineering recommendations. The article also discusses limitations and argues that evaluation should focus on whether the output restores user intent rather than merely producing runnable code.

    Introduction

    In everyday R&D and content production, people rarely describe requirements in strict formal language. They rely more on colloquial natural language. Whether a model can turn such descriptions into what the user actually wants is a key measure of its practical value. This article uses a geometric construction test task as an example to discuss how to evaluate a model’s natural-language instruction following and to present a reusable analysis and evaluation framework.

    1. Why Instruction Following Reflects Capability Better Than “Can Generate Code”

    Being able to generate runnable code only shows that a model has learned syntax and common patterns. Real requirements often contain many implicit conditions: default units, omitted steps, unspecified display rules, and context-dependent references. The model must do three things at the same time: understand the meaning of each term, keep relationships consistent across multiple objects, and make assumptions that match the goal where information is missing.

    For tasks with long reasoning chains, an error in any of these three areas will cause the final result to deviate from the intent. Therefore, evaluation should focus on whether the result restores the user’s intent. Whether the program runs is only a baseline condition.

    2. Task Characteristics

    Using geometric construction tasks as an example, this type of instruction usually has the following characteristics.

    1. Uncommon tools. Some construction tools appear rarely in general corpora. The model cannot directly call on existing knowledge and needs to infer their constraints from the description.
    2. High-density multi-object references. Each step usually involves more than three points, lines, or circles at the same time. Pronouns and references such as “this point” or “this line” are easy to misalign.
    3. Imprecise descriptions. The text may not provide side lengths, ratios, or line styles. These parameters need to be inferred backward from the final goal.
    4. Implicit operational constraints. For example, a tool’s tick spacing, movement mode, and contact point restrictions all affect the construction trace.

    If the model only performs literal translation, it will fail at the first unspecified parameter.

    3. Identifying and Completing Implicit Assumptions

    Consider “take a square.” The instruction does not give a side length. If the goal is to obtain a regular polygon later, the choice of side length affects all subsequent distances. In this case, one should choose a value that allows the target structure to hold, such as unit length. Similarly, if the spacing between two tick marks of a tool is not specified, defaulting to unit length is a common practice, but this must be explicitly stated in the output.

    “Necessary traces” is another typical ambiguous expression. It may mean preserving construction circles and auxiliary lines, or it may mean preserving only the traces related to the final result. A reasonable approach is to split the ambiguous concept into checkable items, such as “which construction lines to preserve” and “which frames in the animation need to retain traces,” and to confirm these with the requester before implementation.

    4. Evaluation Dimension Design

    It is recommended to split evaluation into the following dimensions and score each dimension separately, rather than giving only one overall score.

    • Step coverage: Whether every step in the instruction has a corresponding implementation and whether omitted parts are completed.
    • Geometric correctness: Whether the positions of key points, circle radii, and the number of intersections satisfy the geometric relationships.
    • Constraint consistency: Whether parameters used in preceding and following steps are consistent, for example, whether the side length keeps the same value throughout the process.
    • Assumption explicitness: Whether the model explains how it handled ambiguous points.
    • Output compliance: Whether the required output form, such as an animation file or an interactive page, is complete and usable.

    5. Numerical Validation Example

    For results that can be validated numerically, independent check functions can be written instead of relying entirely on manual viewing.

    1. import math
    2. def dist(p, q):
    3. return math.hypot(p[0] - q[0], p[1] - q[1])
    4. def almost_equal(a, b, eps=1e-6):
    5. return abs(a - b) <= eps
    6. def check_radius(center, point, expected_r):
    7. """Check whether a point lies on a circle centered at center with radius expected_r"""
    8. return almost_equal(dist(center, point), expected_r)
    9. def check_side_length(p1, p2, expected):
    10. return almost_equal(dist(p1, p2), expected)

    Such checks can quickly detect coordinate errors or inconsistent radius values. Note that passing numerical checks does not mean the construction logic is fully correct; it still needs to be checked together with the semantics of the steps.

    6. Engineering Practice Recommendations

    1. Write an intermediate representation first. Split natural language into a list of steps, with each step listing input objects, operations, and output objects. This exposes reference misalignment early.
    2. Explicitly declare assumptions. List all default parameters at the beginning of the generated result, such as side length, spacing, and precision.
    3. Validate in layers. First validate the static geometry, then the dynamic process, and finally the export format.
    4. Retain human review. For uncommon rules, domain personnel should confirm the key steps.

    7. Limitations and Caveats

    The result of a single task cannot represent a model’s overall capability. Geometric construction is only one type of structured reasoning task. Performance may differ greatly in scenarios such as code generation, document understanding, and data analysis. To form reliable conclusions, multiple task groups should be constructed, covering different difficulty levels and domains, and failure case types should be recorded.

    In addition, evaluation samples should avoid high overlap with public corpora; otherwise, the measurement may reflect memorization rather than understanding.

    Conclusion

    The core of natural-language instruction following is restoring user intent. During evaluation, implicit assumptions should be made explicit, multi-object relationships should be structured, and results should be split into checkable dimensions. This method does not depend on any specific product and can be used directly for daily requirement decomposition and model selection.