Instruction-Following Evaluation for Large Language Models: Methods and Practices

    This article explains why natural-language instruction following is a practical measure of large model capability. It separates literal compliance from intent reconstruction, examines three common challenges in natural-language instructions, and uses a geometric construction task to show how requirements can be decomposed into checkable steps. It then proposes four evaluation dimensions—step completeness, constraint satisfaction, result correctness, and expression consistency—and provides a code example for validating regular polygons. The article closes with engineering practices for building stable, reproducible instruction-following evaluations.

    1. Why Instruction-Following Deserves Attention

    In daily development and business scenarios, people rarely communicate with models using strict programming language. Requirements are often given in colloquial descriptions that contain implicit premises, omitted steps, and vague quantitative information. If users had to express themselves as precisely as when writing a program, the value of natural-language interaction would be greatly reduced. Therefore, measuring whether a model can understand and reconstruct the user’s true intent is closer to real work than measuring only whether it can generate runnable code.

    Instruction following can be split into two levels. The first is literal following: whether the model executes every action in the instruction. The second is intent reconstruction: whether the model understands the relationships among actions, the constraints among objects, and conditions that are not explicitly stated but necessarily hold. Output is reliable only when both levels are met.

    2. Three Typical Challenges in Natural-Language Instructions

    1. Dense references. A single instruction often contains multiple objects at the same time, such as “with a certain vertex as the center,” “through the midpoint of a certain segment,” and “make the second marked point fall on a certain line.” The model must continuously track the identity, position, and state of each object. The more objects there are, the higher the probability of reference errors.

    2. Implicit constraints. Instructions often omit key values, such as side length, unit length, or precision requirements. These values can often be inferred backward from the final goal. For example, when the goal is to construct a certain regular polygon, the size of the initial figure cannot be chosen arbitrarily; otherwise, subsequent steps cannot produce the correct result. Recognizing this kind of backward inference is an important sign of model comprehension.

    3. Specialized terminology and physical constraints. Some tools or construction rules are niche knowledge, and the model may not be familiar with them. For such terms, the model should proactively state the definition it adopts rather than guessing from the literal wording. At the same time, straightedge-and-compass operations are constrained by the tools themselves. For example, a straightedge can only draw straight lines, and a compass can only draw circles with a given radius. These restrictions must also be respected.

    3. Decomposition Method Using Geometric Construction Tasks

    Geometric construction is an ideal scenario for testing natural-language understanding because every step has a definite mathematical meaning and the result can be precisely verified. For a task that uses a marked ruler (a ruler with two marks) to assist in constructing a regular heptagon, the decomposition can follow this process:

    1. Define the initial figure: confirm that the square side length is taken as the unit length, and explain the basis for this assumption.
    2. List the object set: record the name and creation step of every point, line, and circle to ensure that later references are unambiguous.
    3. Parse actions step by step: convert “move the marked line on the circle” and “until a certain line passes through the specified position” into constraints, such as the distance between two points being equal to a fixed value or a point lying on a certain line.
    4. Fill in omitted steps: “routine operations” in the instruction need to be expanded into specific straightedge-and-compass steps, such as constructing a perpendicular bisector or finding the center of a circle. Each step should be individually verifiable.
    5. Explain the rules for output traces: the task requires that traces be kept “only in necessary parts.” The model needs to explain which segments belong to the final result and which belong to the auxiliary process, and design display or hiding strategies accordingly.

    The value of this decomposition method is that each step corresponds to a checkpoint. Evaluators do not have to look only at whether the final figure “looks like” a regular heptagon; they can check the model’s reasoning chain step by step.

    4. Designing Evaluation Metrics

    It is recommended to design metrics from four dimensions:

    • Step completeness: Are all the parts required to be completed in the instruction present? Are there any omissions?
    • Constraint satisfaction: Does each action satisfy its preconditions, such as whether the radius of a circle equals the specified segment length?
    • Result correctness: Does the final geometric output match the target figure? Is the error within an acceptable range?
    • Expression consistency: Are the names, values, and descriptions of the same object consistent across different steps?

    Result correctness is the easiest to automate. For regular polygons, one can directly check whether all vertices lie on the same circle and whether adjacent side lengths are equal. Below is validation code for determining whether a set of vertices forms a regular heptagon:

    1. import math
    2. def is_regular_polygon(points, n, tol=1e-9):
    3. """Check whether given vertices form a regular polygon with n equal sides centered at origin."""
    4. if len(points) != n:
    5. return False
    6. radii = [math.hypot(x, y) for x, y in points]
    7. if max(radii) - min(radii) > tol:
    8. return False
    9. sides = [math.dist(points[k], points[(k + 1) % n]) for k in range(n)]
    10. return max(sides) - min(sides) <= tol
    11. # Standard regular heptagon vertices; should pass
    12. heptagon = [
    13. (math.cos(2 * math.pi * k / 7), math.sin(2 * math.pi * k / 7))
    14. for k in range(7)
    15. ]
    16. print(is_regular_polygon(heptagon, 7)) # True

    This kind of validation only applies to tasks whose results can be expressed as coordinates. For process-description outputs, manual review or rule-based text checks are still needed.

    5. Engineering Practice Recommendations

    Build a fixed evaluation set. Organize typical colloquial instructions into a versioned test set. After each model or prompt adjustment, run regression tests on the same set. This makes it possible to distinguish real capability improvement from accidental result fluctuation.

    Record assumptions. When an instruction has missing information, require the model to explicitly write down the assumptions it adopts, such as “assume the unit length is 1.” Assumptions can be manually confirmed or corrected, preventing errors from silently propagating to later steps.

    Validate in stages. For multi-step tasks, check intermediate results at each stage and correct deviations immediately instead of waiting until the final output to discover an overall failure.

    Separate language understanding from domain knowledge. If the model is unfamiliar with a specialized tool, first lower the barrier by supplementing definitions or examples, and then evaluate its following ability. Otherwise, the test results cannot show whether the problem lies in understanding or in knowledge.

    6. Summary

    Natural-language instruction following is a key metric for measuring the practical value of models. It requires the model to correctly execute literal actions and also to reconstruct implicit constraints and the user’s true intent. By decomposing tasks, designing verifiable metrics, and making assumptions explicit, teams can establish a stable and reproducible evaluation process at low cost, giving model selection and optimization a reliable basis.