Instruction Following Evaluation for LLMs: A Practical Framework

    This article breaks down how to evaluate the instruction-following capability of large language models, using a regular heptagon construction task with a two-mark ruler as a worked example. It explains why instruction following matters more than parameter scale, the four layers of capability behind it, a reusable five-step evaluation framework with sample scoring logic, and common failure modes with practical optimization tips.

    1. Why Instruction Following Matters More Than Parameter Scale

    As general-purpose LLM capabilities converge, whether a model is truly usable depends less on its benchmark scores and more on whether it can reliably turn casual, imprecise, heavily elliptical natural language into results that match the user’s actual intent. This is the engineering value of instruction following.

    Early evaluations often wrote prompts like API documentation: explicit fields, explicit constraints, and self-defined terminology. Such tests have low discriminative power because a model can pass through simple pattern matching. Real-world usage is the opposite. Humans do not always communicate with models in programming language; requirements naturally contain elliptical references, missing units, implicit goals, and obscure terms. If a model can only handle well-formed input, the communication cost it saves will be offset by repeated clarification and rework.

    A high-quality instruction-following test should therefore satisfy three conditions: a single, verifiable task goal; input phrased like real speech; and required knowledge outside the model’s high-frequency memory.

    2. Task Design: Constructing a Regular Heptagon with a Two-Mark Ruler

    A typical high-discrimination task can be described as follows: build a web animation demonstrating a straightedge-and-compass construction of a regular heptagon using a “two-mark ruler.” The procedure is: start with a square and construct the perpendicular bisector of its base; draw a circle centered at the bottom-right vertex with a radius equal to the diagonal; then hold the two-mark ruler against the bottom-left vertex, slide the first mark along the circle until the second mark passes through the perpendicular bisector of the base; finally locate the center using the usual perpendicular-bisector intersection method, fill in all omitted construction steps, and support GIF export.

    The discriminative power of this task comes from four overlapping difficulties.

    The first is obscure terminology. The “two-mark ruler” (a straightedge with two fixed marks, an extension of the compass-and-straightedge toolkit) is outside the explicit knowledge of most models. The model must infer its physical form and operation on its own: the ruler body stays flush against a point, can rotate around that point, and the distance between the two marks is fixed, which realizes the operation of “transferring a length to a specified direction.”

    The second is high-density multi-object reference. Almost every step involves more than three objects at once: the square, the base, the perpendicular bisector, the bottom-right vertex, the diagonal, the circle, the bottom-left vertex, the first mark, and the second mark. Once the reference chain breaks, all subsequent steps fail.

    The third is completing implicit constraints. The description never states the side length of the square, so the model must infer a unit square; combined with the goal of constructing a regular heptagon, the side length can only be the unit value, otherwise the later length relationships do not hold. The distance between the two marks is assumed to be one unit, which the model must also fill in itself.

    The fourth is additional constraints on the output form. “Keep only necessary marks” requires the model to distinguish auxiliary lines from construction traces; “export GIF” requires turning a static geometric process into a playable frame sequence. Both are extra checks on the generated result.

    3. Capability Breakdown: What the Model Actually “Understands”

    Abstracting the task above reveals four chained layers of capability behind instruction following:

    1. Semantic parsing: mapping spoken descriptions to formal geometric objects and operation sequences;
    2. Constraint solving: inferring the unique feasible solution from the goal when parameters are missing;
    3. Spatial and physical consistency: keeping operations such as flush contact, rotation, and mark alignment geometrically self-consistent;
    4. Intent restoration: making choices at vague points such as “necessary marks” and “standard operations” that match user expectations rather than merely avoiding errors.

    The fourth layer is key. Many models pass the first three but adopt a “safe but wrong” strategy at ambiguous points: omitting steps, drawing all auxiliary lines, or ignoring the export feature. The real gap in instruction following shows up precisely here.

    4. A Reusable Evaluation Framework

    Distilling the above into a general method, evaluation can be implemented in five steps:

    • Verifiable goal: results must be judged automatically or semi-automatically, for example by comparing key point coordinates after rendering or checking for specified elements;
    • Colloquial input: preserve ellipsis and vagueness without adding definitions;
    • Low knowledge recall: include at least one domain concept the model does not commonly master;
    • Reverse-derivable constraints: missing parameters can be uniquely determined by the final goal;
    • Multi-dimensional output: constrain both the process (step completeness) and the artifact (format, interaction, export).

    The judgment logic can be written schematically as:

    1. checks = {
    2. "unit_square": verify_side_length_is_one(svg),
    3. "neusis_trace": verify_tick_marks_used(svg),
    4. "minimal_marks": count_auxiliary_lines(svg) <= THRESHOLD,
    5. "heptagon": verify_regular_polygon(svg, sides=7),
    6. "gif_export": verify_gif_frames(html) >= MIN_FRAMES,
    7. }
    8. score = sum(checks.values()) / len(checks)

    This itemized scoring pinpoints failure stages better than an overall score: whether it is a terminology misunderstanding, a constraint-solving failure, or a missing artifact.

    5. Common Failure Modes and Optimization Tips

    Failures usually concentrate in four categories: terminology misreading (treating the two-mark ruler as an ordinary straightedge), reference drift (mismatched center and radius objects), constraint avoidance (setting the side length arbitrarily or ignoring the unit length), and missing artifacts (no animation or no export).

    The corresponding optimization directions are: keep the goal singular but the phrasing natural in the prompt; use consistent naming for key objects to reduce referential ambiguity; turn vague requirements like “necessary marks” into observable acceptance criteria; and break complex artifacts into staged acceptance. If you build an automated evaluation pipeline using general capabilities such as container platforms, log services, and monitoring alerts offered by AI coding tools or cloud platforms, you can enable batch regression and version-to-version comparison.

    6. Conclusion

    The essence of instruction following is a model’s ability to restore human intent under incomplete information. When designing evaluations, deliberately preserve the vagueness and ellipsis of real communication, constrain results with a single verifiable goal, and use itemized scoring to locate capability gaps. Rather than pursuing longer chains of thought, improving the stability of constraint solving and intent restoration is the real threshold for a model to enter daily workflows.