Instruction-Following Evaluation Through Marked-Ruler Construction: A Regular Heptagon Case Study

    This article examines instruction-following quality in natural-language tool use through a marked-ruler construction task: building a regular heptagon. It breaks evaluation into checkable dimensions, shows how to verify geometric results programmatically, identifies common failure modes, and translates the framework into practical requirements for everyday AI-assisted work.

    1. Why Instruction Following Matters

    In real work, requirements are rarely given in strictly formal language. Product managers, researchers, and engineers usually describe goals in natural language, with omissions, references, and jargon. A tool that handles only literal meaning forces users to spell out every implicit assumption, which can cancel out the efficiency gains it offers.

    Therefore, when evaluating a tool, it is not enough to check whether it can generate runnable code. We also need to check whether it understands the intent behind the description. Instruction following refers to the degree of consistency between generated results and the user’s actual intent. It sets a higher bar than “syntactically correct” or “the page opens.”

    2. Using a Geometric Construction Task as a Test Case

    Constructing a regular heptagon with a marked ruler is an uncommon construction process that depends on internal logic. A marked ruler has two marks at a fixed distance. During construction, the ruler slides under certain constraints so that the marks pass through specified points or curves, yielding points that cannot be constructed directly with an ordinary straightedge and compass.

    This type of task poses several levels of challenge for instruction understanding:

    1. Terminology: The model must know what “marked ruler” means operationally, rather than treating it as an ordinary ruler.
    2. Multi-object references: A step often involves more than three points, lines, or circles, and descriptions use “its”, “it”, and “this point” to refer back, which creates ambiguity.
    3. Spatial constraints: For example, “keep the ruler pressed against a vertex” means both the rotation center and the sliding direction are constrained.
    4. Unspecified parameters: The description does not give the side length of the square, but the final task asks for a regular heptagon, so the model can only infer that the side length is unit length.
    5. Ambiguous output requirements: “Produce marks only in the necessary parts” gives no acceptance criterion, so the model must define one itself.

    The common thread is that the text is incomplete, and the correct result depends on understanding geometric relationships.

    3. Breaking Down Evaluation Dimensions

    When evaluating, split instructions into checkable dimensions and score each item.

    • Step completeness: Are all omitted construction steps filled in, such as perpendicular bisectors and center determination?
    • Reasonableness of default assumptions: Does the model explicitly state implicit parameters such as side length and mark spacing, and choose values consistent with the goal?
    • Correctness of geometric result: Is the final figure actually a regular heptagon, not an approximation close to one?
    • Trace control: Are intermediate traces kept only where required, and are extra auxiliary lines hidden?
    • Output format: Is animation output provided as requested, and does the animation fully show the construction process?

    Each dimension should have clear pass criteria. For example, the third can be checked numerically.

    4. Executable Result Verification

    For geometric results, a program can check whether the vertices form a regular polygon. The following example checks whether a set of points forms a regular n-gon: all side lengths are equal, and all vertices are at the same distance from the center.

    1. function isRegularPolygon(points, n, tol = 1e-6) {
    2. if (points.length !== n) return false;
    3. const cx = points.reduce((s, p) => s + p.x, 0) / n;
    4. const cy = points.reduce((s, p) => s + p.y, 0) / n;
    5. const r = Math.hypot(points[0].x - cx, points[0].y - cy);
    6. const sides = points.map((p, i) => {
    7. const q = points[(i + 1) % n];
    8. return Math.hypot(p.x - q.x, p.y - q.y);
    9. });
    10. const sidesEqual = sides.every(s => Math.abs(s - sides[0]) < tol);
    11. const radiiEqual = points.every(
    12. p => Math.abs(Math.hypot(p.x - cx, p.y - cy) - r) < tol
    13. );
    14. return sidesEqual && radiiEqual;
    15. }

    For a regular heptagon, you can also check whether the central angle between adjacent vertices equals 360°/7, about 51.43°. If the deviation from the theoretical value exceeds the tolerance, either the construction contains error or the model’s understanding of the constraints is off.

    Numerical checks can only judge the final result, not whether the process is reasonable. Evaluation therefore also needs manual observation of the animation to check whether each step follows the marked-ruler operating rules.

    5. Common Failure Modes

    In similar tasks, common problems fall into four categories:

    • Terminology substitution: Treating the marked ruler as an ordinary ruler, ignoring the mark constraints, and drawing straight lines to get a wrong result.
    • Parameter drift: Assuming unit side length in the first half but computing with another size in the second half, causing inconsistent figure dimensions.
    • Reference misalignment: Confusing “bottom-right vertex” with “bottom-left vertex”, leading to a wrong construction starting point.
    • Overdrawing: Keeping all intermediate arcs and auxiliary lines, so the animation has too many traces and key steps cannot be identified.

    Identifying these patterns helps design more targeted follow-up questions. For example, before submitting the task, ask the model to list all assumptions it adopts, and then perform the construction.

    6. Implications for Everyday Work

    The value of this kind of evaluation is not in geometry itself, but in how it exposes typical problems in natural-language requirements. Everyday requirements also contain implicit parameters, undefined terms, and fuzzy acceptance criteria. Making them explicit is key to improving collaboration efficiency.

    Consider the following practices:

    1. Explicitly list default assumptions in requirements, such as units, ranges, and boundary conditions.
    2. Break complex steps into an ordered checklist, and label the object and constraints for each step.
    3. Design programmatic acceptance conditions for results, such as numerical precision, structural completeness, or format requirements.
    4. Ask the tool to restate its understanding before generation, and revise the description based on that restatement.

    These practices apply both to human-tool interaction and to requirements communication within teams.

    7. Conclusion

    Instruction following is a core metric for the quality of natural-language interaction. Structured, verifiable tasks such as geometric construction can systematically test a model’s understanding of terminology, spatial relationships, and implicit constraints. Evaluation should consider both the numerical correctness of the result and the reasonableness of the process, and the framework can be transferred to real business scenarios to gradually improve the reliability of requirement expression and result acceptance.