How to Evaluate Instruction Following in Large Language Models: Test Design and Engineering Practice Using a Heptagon Construction Task

    This article explains how to design instruction-following tests for large language models. It uses a web-based task that asks a model to construct a regular heptagon with a two-mark ruler, and it sets out three criteria for effective test cases: obscure knowledge, dense object references, and informal phrasing. The article then breaks down the hidden difficulties in the task and offers a checklist for building your own tests. Instruction following affects how many correction rounds a developer needs and how reliably a complex workflow completes.

    Introduction: Why Instruction Following Is Harder Than Generation

    When evaluating new large language models, the community often focuses on quantitative metrics such as math benchmark scores and code pass rates. In everyday development, however, what decides whether a model is useful is less whether it can solve a problem and more whether it understands plain language. This capability is called instruction following.

    For large models with long chain-of-thought reasoning, following a complex prompt is far more than keyword matching. The model must actually understand the spatial operations, physical constraints, technical terms, and even vague wording in the prompt, and then reproduce the user’s real intent in its output. This sounds simple, but it reflects the demands of real work most closely. People rarely communicate with a model in rigorous formal language. If they had to, they could just write code.

    This article starts from a challenging test case. It discusses how to design effective instruction-following tests and what this capability means for practical programming work.

    1. Core Design Principles: Obscure Knowledge, Dense References, and Ambiguous Language

    A good instruction-following test should meet three conditions:

    1. Obscure knowledge: The task should depend on knowledge that rarely appears in training data. Otherwise, the model may be reciting an answer instead of understanding the task.
    2. Long logical chains and dense references: Each step involves relationships among several objects, which tests the model’s ability to track context.
    3. Colloquial wording with reasonable ambiguity: The phrasing should mimic how real users speak, forcing the model to fill in implicit conditions on its own.

    The following geometry construction task is a typical example:

    Build a web page that implements “constructing a regular heptagon with a two-mark ruler.” The steps are as follows. First, take a square and construct the perpendicular bisector of its bottom edge. Next, using the bottom-right vertex as the center and the diagonal as the radius, draw a circle. Then, with the two-mark ruler, keep it pressed against the bottom-left vertex so that its first mark slides along the circle, until its second mark passes through the perpendicular bisector of the bottom edge. After that, complete the regular compass-and-straightedge steps, such as constructing perpendicular bisectors and determining the center, to finish the regular heptagon. The compass leaves traces of point movement, but only in the necessary parts. Finally, add a feature to export an animation.

    2. Breaking Down the Test

    2.1 An Obscure Term: The Two-Mark Ruler

    The “two-mark ruler,” a straightedge with two marks at a fixed distance, is rarely found in general text. It is a tool from classical geometry that goes beyond the limits of compass-and-straightedge construction. Most models either do not recognize the concept or treat it as an ordinary straightedge, which breaks the entire construction logic. The model must understand that the key property of the two-mark ruler is that the distance between its two marks is fixed. During the construction, one mark slides along a curve while the other satisfies a specific constraint, and the ruler body always passes through a fixed point. This is a typical sliding-constraint construction, known as a neusis construction.

    2.2 Dense References Across Multiple Objects

    Almost every step involves at least three objects at once: square vertices, perpendicular bisectors, circles, ruler marks, and movement paths. A sentence like “keep it pressed against a point, so that a line slides along a circle until another line passes through a perpendicular bisector” requires the model to maintain an accurate internal map of the geometric relationships. A single misreading of any reference breaks every later step.

    2.3 Filling in Implicit Conditions Independently

    The description hides several constraints that the model must infer on its own:

    • The side length of the square is not given: The model must work backward from the goal of constructing a regular heptagon to conclude that a unit square is needed. Otherwise, the spacing condition of the two-mark ruler cannot be matched.
    • The spacing of the two-mark ruler is not stated: By default, it is the unit length, which matches the side of the square.
    • “Necessary traces” is not defined: The model must decide which auxiliary lines and arc paths to keep to show the construction process, and which to erase to keep the drawing clean.

    Only a model that truly understands the spatial operations and physical constraints behind the natural language can follow the instructions strictly and produce a correct construction. This is the real purpose of an instruction-following test.

    3. From Vibe Coding to Intent-Based Programming: The Engineering Value of Instruction Following

    This type of test mainly measures the skills behind “vibe coding,” a popular way of working that relies on intuition, rapid iteration, and a focus on results. Testing for “intent-based programming,” where users state requirements precisely and the model executes them correctly in one pass, requires a different approach. This test may not fully reflect a model’s upper limit in that mode, but it is a close approximation of real collaboration.

    In practical engineering, instruction-following capability matters in the following ways:

    • Fewer back-and-forth rounds: A model with strong instruction following produces results that meet all constraints in one attempt, which avoids repeated corrections.
    • Reliable decomposition of complex tasks: In long workflows, each step must follow the instructions strictly to ensure the final output is usable.
    • Lower barrier to prompt engineering: Users do not need to write requirements as formal specifications. Colloquial descriptions can still produce reliable results.

    Developers who use intelligent programming assistants or code generation tools can adapt the evaluation approach in this article. Start by writing a few test cases from your own business context that are obscure, dense in references, and phrased colloquially. Use them to gauge how well the model follows instructions, then decide what role the model should play in your workflow. If you run inference services in the cloud, you can also use general-purpose log services and monitoring and alerting tools to observe how consistently the model follows instructions under real workloads over time.

    4. Designing Your Own Instruction-Following Tests: A Practical Checklist

    1. Choose a point of knowledge in your field that is correct but uncommon as the core of the task.
    2. Build a workflow of at least three steps, and make sure the steps reference each other’s objects.
    3. Deliberately leave out one or two key parameters that can be inferred from the goal.
    4. Describe the task in colloquial, somewhat ambiguous language instead of formal expressions.
    5. When judging the result, check each constraint step by step, not just the final output.
    6. Compare different models, or different versions of the same model, and focus on specific improvements from wrong to correct.

    Conclusion

    Instruction following connects model capability with user value. A well-designed geometry construction task is useful because it compresses understanding, reasoning, constraint tracking, and code generation into a single task. When a model can reproduce the real intent behind a user’s colloquial description, human-AI collaboration moves into a new stage. That makes instruction following one of the most important benchmarks for evaluating and using large models.