Testing Natural Language Instruction Following in LLMs: A Marked-Ruler Heptagon Case Study
This article explains why natural language instruction following deserves dedicated evaluation for large language models. It presents a high-intensity case study—constructing a regular heptagon with a two-mark ruler in an HTML page—to stress-test terminology understanding, multi-object reference tracking, implicit constraint completion, and engineering execution. It then proposes scoring dimensions, a reusable evaluation methodology, and practical suggestions for building similar test sets.
Why Natural Language Instruction Following Deserves Its Own Evaluation
In day-to-day development work, almost all interaction with large language models happens through natural language. If every interaction required a strict, unambiguous specification, it would be easier to write code directly. Therefore, whether a model can understand a colloquial, imprecise, and ambiguous description and accurately recover the user’s true intent directly determines its usability in real productivity scenarios.
“Following” is not the same as “literal execution.” A typical example is geometric construction tasks: user descriptions often omit many preconditions and rely on common sense and the target result to infer details. Only when a model truly builds an internal representation of spatial relationships, physical constraints, and terminology meanings can it reproduce the figure the user wants in its final output. This is the core capability that natural language instruction-following evaluation should measure.
A High-Intensity Test Case: Constructing a Regular Heptagon with a Two-Mark Ruler
We constructed the following task as a test sample:
Build an HTML page that implements the construction of a regular heptagon with a two-mark ruler:
- First take a square and construct the perpendicular bisector of its bottom edge;
- With the lower-right vertex E as the center and the diagonal as the radius, draw circle E;
- Using a “two-mark ruler,” keep it flush against the lower-left vertex D and move the first marked line along circle E until the second marked line passes through the perpendicular bisector of the bottom edge;
- Then perform the usual operations such as using perpendicular bisectors to determine the center, and fill in all omitted straightedge-and-compass construction steps;
- Compass movement produces point trajectories, but leave traces only where necessary;
- Finally, add GIF export.
The difficulty of this case comes from four overlapping dimensions:
1. Niche Technical Terminology
The “two-mark ruler”—a straightedge with two marked lines—is an extremely niche construction tool. Most models either do not recognize it or cannot correctly handle its movement pattern of “translation + rotation + dual constraints.” This directly tests the depth of a model’s knowledge coverage and terminology understanding.
2. Dense Multi-Object References
Almost every step involves at least three objects at the same time: the square, the perpendicular bisector, vertices D/E, circle E, marked lines, and so on. The model must maintain consistent object references throughout a long context; any misalignment will cause the construction logic to collapse.
3. Self-Completion of Implicit Constraints
The description never gives the side length of the square. But combined with the goal of “ultimately constructing a regular heptagon,” the model must infer that the square can only use unit side length; otherwise, the subsequent construction cannot converge to a regular heptagon. Likewise, the distance between the two marked lines on the two-mark ruler is implicitly assumed to be a unit length, and what exactly these “necessary traces” refer to is not explained, so the model must judge it on its own.
4. Engineering Requirements for the Output Form
The task requires not only geometric correctness but also presentation of the construction process as a web animation with GIF export support. This means the model must translate pure mathematical reasoning into executable code while handling engineering details such as animation timing, trajectory rendering, and frame-sequence export.
Designing Scoring Dimensions
For tasks like this, it is recommended to evaluate model outputs along the following dimensions:
- Terminology understanding: Does the model correctly identify and apply the two-mark ruler constraints—flush against point D, one marked line passing through the perpendicular bisector, and the other marked line on the circle?
- Implicit reasoning: Does it infer undeclared conditions such as unit side length and unit mark spacing?
- Geometric correctness: Are all sides and angles of the final heptagon equal, and are the center and radius correct?
- Process fidelity: Are perpendicular bisectors, arcs, and trajectories presented step by step, and do traces appear only where necessary?
- Engineering usability: Does the web page run, is the animation smooth, and does GIF export work?
- Code quality: Is the structure clear, do constant names reflect geometric meaning, and is it easy to adjust parameters?
From a Single Test to a Reusable Methodology
The value of this kind of test is not whether “the model can construct this heptagon.” Rather, it reveals a general evaluation approach:
- Use niche domain knowledge as a threshold: Choose specialized terminology to filter out models that answer only through pattern matching;
- Create tracking pressure with multi-object references: Test maintenance of entity consistency in long contexts;
- Infer implicit conditions from the goal: Test whether the model builds task-level global constraints rather than executing step by step locally;
- Test intent recovery with vague wording: Observe how the model interprets words such as “necessary” and “approximately,” and judge whether it understands the true intent;
- Verify through a runnable output loop: Let correctness be judged by code execution results rather than textual self-reporting, avoiding misleading claims from the model.
Practical Implementation Suggestions
When building this kind of evaluation inside a team, it can be organized as a four-part package: “task description → reference answer points → automated validation script → human scoring rubric.” Geometric tasks are especially suitable for automation: side lengths, angles, and coordinates can all be asserted precisely by programs, reducing subjective bias. At the same time, keep a set of deliberately vague prompt versions and compare model performance between the “precise” and “colloquial” versions; this more realistically reflects natural language instruction following.
Conclusion
“Understanding and following vague natural language” is a key leap for general large models on the path to becoming productivity tools. Tasks such as constructing a regular heptagon with a two-mark ruler are valuable because they compress terminology understanding, spatial reasoning, implicit constraint completion, and engineering implementation into a single interaction, where any weakness will be exposed. Only by continuously building evaluation sets around these dimensions can we more reliably judge whether a model has truly “understood” the user.
