Evaluating Natural Language Instruction Following in Large Models
This article breaks down how to evaluate a large model's ability to follow natural language instructions, using an uncommon geometric construction task as a reproducible benchmark. It explains why instruction following is harder than code generation, how the task stresses rare terminology, dense references, implicit constraints, and delivery requirements, and how to score results across four layers. It also shares practical engineering tips for prompts, intermediate representations, rendering, and cloud-based support.
1. Why “Understanding Plain Language” Is Harder Than “Writing Code”
A recurring pattern shows up in real-world use of AI coding tools: a model can produce structurally complete code yet misread the business constraints a user described in natural language. The user says “move the thing attached to the lower-left corner onto the arc,” and the model generates an ordinary compass-and-straightedge construction. The root cause is not coding ability but instruction-following ability.
Instruction following is not simple keyword matching. It is whether the model actually reconstructs four types of information in the user’s intent before generating anything:
- Spatial operations: relative positions, contact relationships, and movement paths between objects;
- Physical constraints: a tool must stay flush against a point, or a line may only serve as an auxiliary mark;
- Domain terminology: proper nouns from a specific industry or field of mathematics that appear rarely in general corpora;
- Ambiguous semantics: default values the user omitted and “necessary parts” left unstated.
In everyday collaboration, humans almost never communicate with a model in strictly formalized language. If every sentence had to be written as pseudocode, the interaction cost would exceed that of coding directly, and the value of AI coding tools would disappear. For this reason, natural language compliance is one of the core metrics for judging whether such tools are truly usable.
2. Evaluation Task Design: An Uncommon Geometric Construction
To quantify this ability, you can design tasks that are uncommon and highly dependent on internal logical consistency. An example task description (natural, colloquial, and imprecise) is:
Draw a regular heptagon on a web page. Start with a square and construct the perpendicular bisector of its base. Then, using its lower-right vertex as the center and the diagonal as the radius, draw a circle. Next, take a ruler with two graduations, keep the ruler flush against the lower-left vertex, and move the first graduation along the circle until the second graduation passes through the perpendicular bisector of the base. Finally, construct the perpendicular bisector in the usual way to locate the center. Complete all omitted construction steps. Note that using a compass leaves a trail of point movement, but produce marks only where necessary, and add a feature to export an animated GIF.
This task is discriminative because it stresses four capabilities at once.
First, terminology scarcity. A ruler with two graduations is a construction tool that appears extremely rarely in general text. A model relying only on surface-level semantic matching will easily degrade into an ordinary straightedge-and-compass construction.
Second, high-density references across multiple objects. Almost every step involves more than three objects at once: the square, the base, the perpendicular bisector, the lower-right vertex, the diagonal, the circle, the ruler, the first graduation, and the second graduation. Once the reference chain breaks, every subsequent step is misaligned.
Third, implicit constraint completion. The description never gives the side length of the square, but combined with the goal of ultimately producing a regular heptagon, the only reasonable value can be inferred. The spacing between the two graduations is assumed to be that unit length. “Necessary marks” are also undefined and require the model to provide a reasonable interpretation.
Fourth, multimodal output and interaction constraints. Requiring marks “only where necessary” is equivalent to requiring the model to distinguish construction auxiliary lines from result lines. Requiring an animated GIF export involves rendering timing and state management.
3. Capability Breakdown: What the Model Actually Gets Right
From an engineering perspective, a successful generation usually goes through three stages.
Natural language input↓ Semantic parsing: terminology normalization + reference resolutionIntermediate representation (objects, constraints, step sequence)↓ Constraint solving: implicit condition completion + conflict detectionExecutable plan (geometry computation + rendering + export)
The key improvement lies in the second stage. Early models often jumped straight from natural language to code, lacking an explicit intermediate representation, so constraints were lost during translation. Models with long chain-of-thought capability first build an object graph and a constraint table internally, then solve step by step, which leaves room for “unstated default values” to be derived.
It should be stated objectively that this type of task mainly examines “high-quality implementation under a clear intent,” which is not the same dimension as open-ended creative design. Therefore, it cannot be used to assert the upper limit of model capability.
4. A Reproducible Evaluation Method
Split the evaluation into four layers to locate the cause of failure at each level:
- Terminology layer: whether the model recognizes uncommon terms and gives the correct geometric semantics;
- Reference layer: whether binding relationships stay consistent throughout a multi-object description;
- Constraint layer: whether implicit conditions are completed and whether self-contradictions appear;
- Delivery layer: whether interaction, mark rules, and export features are complete and usable.
Scoring can be weighted, for example, with terminology and constraints at 30% each, references at 20%, and delivery at 20%. Results that “look correct but are geometrically invalid” should be judged as an outright failure.
5. Engineering Practice Recommendations
- Layered prompts: give the goal and acceptance criteria first, then the steps, and finally the output format to reduce ambiguity;
- Explicit default values: provide units and values for key quantities to lower derivation risk;
- Visualize intermediate artifacts: have the model output an object and constraint list first for easier manual verification;
- Decouple rendering from logic: implement geometry computation, mark strategy, and animated GIF export separately to make problems easier to locate;
- Use general cloud capabilities for support: for example, use a container platform to host rendering tasks, object storage to save exported files, and logging and monitoring with alerting to track failure rates.
6. Conclusion
The essence of natural language compliance is whether a model can turn colloquial expressions with omissions and default conventions back into a precise, executable plan. For development teams, rather than pursuing flashier interactions, it is better to make the evaluation more thorough: use uncommon terminology to test understanding, multi-object references to test stability, implicit constraints to test reasoning, and delivery requirements to test engineering completeness. This is also the necessary path for AI coding tools to move from “able to generate” to “trustworthy.”
