Evaluating LLM Capabilities Through Complex Natural Language Prompts: A Practical Method
When benchmarking a new large language model, many people focus first on parameter counts, benchmark rankings, or generation speed. For developers, however, what truly determines the experience is whether a model can accurately understand complex requirements and translate natural language into code that is structurally correct, logically complete, and runnable. This article uses a concrete geometry task—constructing a regular heptagon with a marked ruler in a web page—to outline a practical framework for evaluating prompt adherence, intent reconstruction, geometric correctness, interaction design, and code quality, along with a layered evaluation approach that goes beyond surface-level functionality.
When evaluating a new large language model (LLM), many people first look at parameter counts, benchmark rankings, or generation speed. For developers, however, what truly determines the experience is whether the model can accurately understand complex requirements and translate natural language into code that is structurally correct, logically complete, and actually runnable and verifiable.
This is especially true in scenarios such as web development, data processing, automation scripts, and interactive visualizations. User requirements in these contexts are rarely formal specifications. They are typically natural-language descriptions containing omissions, colloquial phrasing, implicit constraints, and domain-specific terminology. If a model merely produces code that “looks plausible,” it will rarely meet real-world expectations. Prompt adherence and the ability to reconstruct intent in complex tasks should therefore be treated as primary evaluation criteria.
1. From “Can Generate Code” to “Can Understand Requirements”
Simple tasks do not reveal much about a model’s capability. Asking a model to create a button, draw a circle, or build a basic form is something most code-generation models can already do. Tasks with real discriminative power usually share these characteristics:
- The requirement is long and involves multiple sequential steps;
- Geometric objects, state changes, and spatial relationships coexist;
- Specialized terminology is used that the model may not be familiar with;
- Key parameters are not fully specified and must be inferred from context;
- The final result must not only be displayed, but also support dynamic interaction, process demonstration, or file export.
“Construct a regular heptagon with a marked ruler in a web page” is a typical example. It looks like a drawing task, but it simultaneously tests natural language understanding, planar geometry, interaction design, animation sequencing, graphics rendering, and code organization.
If a model simply generates a heptagon based on keywords, the task is not complete. A genuinely qualified implementation should reconstruct the construction process and let the user observe the relationships between key auxiliary lines, arcs, movement trajectories, and the final figure.
2. What Capabilities Does This Task Actually Test?
2.1 Multi-step process understanding
The requirement consists of an ordered sequence of operations: first construct a square, then draw the perpendicular bisector of its base; next, draw a circle centered at a specified vertex with a radius equal to the diagonal; then use a ruler with two marked scale lines to complete the positioning; finally, add the conventional straightedge-and-compass construction steps and generate a dynamic file.
These steps are not independent. Points, lines, or circles produced in one step become inputs for later steps. The model must maintain an internal geometric state rather than translating each sentence into isolated drawing instructions.
For example, the perpendicular bisector of the base is not mere decoration—it plays a role in later positioning. The circle is not just a background element—it is used to determine specific intersection points or auxiliary positions. If the model fails to understand dependencies between objects, the final page may run fine, yet the figure can be entirely wrong.
2.2 Specialized terminology and implicit rules
“Marked ruler” (a ruler with two fixed scale marks) is not a common web development term. The model must infer from context that it refers to a straightedge with two fixed marks, and that the operation must satisfy:
- The ruler remains rigid;
- The ruler always passes through or aligns with specified points;
- The first mark coincides with a target object;
- The second mark passes through another reference line;
- The ruler may translate or rotate, but cannot deform arbitrarily.
These constraints differ fundamentally from “drag a line around.” They require the model to maintain multiple geometric relationships simultaneously. If the generated interaction logic only changes a line’s position without enforcing the constraints between the marks and the target objects, it is merely a visual simulation, not a genuine implementation.
2.3 Reasonable completion of ambiguous descriptions
Natural language requirements rarely specify all parameters. The original description does not state the square’s side length, nor does it define in detail what the “necessary traces” should include.
A reasonable implementation could adopt these conventions:
- Normalize the square’s side length to one unit;
- Set the distance between the ruler’s two marks to one unit;
- Apply a uniform coordinate scaling so the construction fits the screen;
- Keep only the auxiliary trajectories that participate in positioning, verification, or explanation;
- Do not draw permanent traces for intermediate actions that do not affect the final result.
Such completion must not invent rules that contradict the goal. It should satisfy three conditions: be consistent with the context, support subsequent construction steps, and not change the mathematical meaning of the task.
The advantage of a high-quality model is not “creative improvisation,” but making minimal, reasonable, and explainable assumptions where information is uncertain—and explicitly stating those assumptions in its output.
3. How to Judge Whether the Output Is Actually Qualified
Do not just check whether the page opens or whether a heptagon appears at the end. Evaluate the result along the following dimensions.
3.1 Geometric correctness
First verify the basic objects:
- Are all four sides of the square equal in length?
- Does the diagonal connect the correct vertices?
- Is the perpendicular bisector perpendicular to the target edge and passing through its midpoint?
- Are the auxiliary circle’s center and radius consistent with the description?
- Does the distance between the marked ruler’s two marks remain constant?
- Are the seven sides and seven interior angles of the final heptagon approximately equal?
Floating-point error is normal when computing in screen pixels, but it should be controllable. For critical points, it is best to use unified geometric computation functions rather than hard-coding coordinates separately in multiple animation steps.
3.2 Process completeness
A genuinely compliant result should demonstrate the construction process, not just present the outcome. At minimum, it should include:
- Initializing the square;
- Drawing the perpendicular bisector;
- Displaying the auxiliary circle;
- Demonstrating the marked ruler’s movement or rotation;
- Marking key intersection points;
- Drawing subsequent bisectors, arcs, and connecting lines;
- Highlighting the final regular heptagon.
If all elements appear at once, the user cannot judge whether the model understood the step dependencies, and the result cannot be used for teaching or verification.
3.3 Interaction explainability
A dynamic web page should not merely “move”—its actions must be meaningful. Good interaction design might include:
- Start, pause, resume, and reset buttons;
- A description of the current step;
- The name of the current geometric object;
- Labels on key points;
- Toggles for showing or hiding auxiliary lines;
- Animation speed control;
- An entry point for exporting the dynamic file.
The export function in particular should not be an empty button. The page should clarify whether it exports the current canvas content or the full animation, and provide understandable messages when the browser does not support certain capabilities.
3.4 Code structure quality
The generated code should also be maintainable. Check for:
- Separation between geometric computation and UI rendering;
- Centralized management of animation state;
- Clear state identifiers for each step;
- Unified coordinate scaling;
-sales coordinate scaling; - Avoidance of heavily duplicated code;
- Handling of null values, missing intersections, and invalid states;
- Correct display after window resizing.
If the code simply writes hundreds of coordinates directly into drawing functions, it may work in the short term, but it is hard to modify later and does not prove the model understood the construction rules.
4. Why Prompt Adherence Matters More Than Surface Features
In real-world development, users rarely provide complete design documents; they describe goals in natural language. What the model must perform is not mere syntax conversion, but a multi-stage compilation process:
- Identify entities from the text;
- Establish relationships between entities;
- Infer missing parameters;
- Convert sequential steps into a state machine;
- Map mathematical rules onto program logic;
- Present the result to the user through the interface and animation.
Therefore, “prompt adherence” should not be reduced to whether a few keywords appear. A more accurate definition: can the model fully recover the user’s goals, constraints, sequence, and acceptance criteria without violating the original intent?
For complex tasks, a model may generate large amounts of code, but what really matters is whether it captured the core of the requirement. For example:
- Does it distinguish between the final figure and the construction process?
- Does it understand that the marked ruler has a fixed mark spacing?
- Does it maintain geometric constraints between objects?
- Does it handle the ambiguous parts of the original request?
- Does it provide a verifiable interactive process?
These factors reflect a model’s capability far better than raw code length or page aesthetics.
5. Use Layered Evaluation Instead of a Single Score
To avoid subjective assessment, break the task into four layers.
Layer 1: Static structure evaluation
Check whether the page contains a canvas, control buttons, step descriptions, and an export entry, and whether the code loads correctly.
Layer 2: Mathematical relationship evaluation
Verify key points, segments, circles, and angle relationships to confirm the result was not faked with pre-rendered images or a fixed outline.
Layer 3: Process and interaction evaluation
Step through the animation and check whether each phase matches the requirement, whether the buttons control state correctly, and whether a reset restores the initial state.
Layer 4: Exception and extension evaluation
Change the canvas size, animation speed, or some parameters, and observe whether the program still works. When asking the model to add explanations, change colors, or adjust steps, check whether the code is easy to extend.
This layered approach distinguishes four levels of capability: “can display a result,” “can run,” “can explain the process,” and “has engineering quality.”
6. An Objective Assessment of Current LLM Capabilities
Tasks like this show that modern LLMs have developed strong capabilities in translating natural language into code, particularly evident in the following areas:
- Handling long task descriptions;
- Recognizing multiple objects and their relationships;
- Converting natural-language steps into interactive flows;
- Filling in some unspecified implementation details;
- Generating fairly complete web prototypes.
But the limitations are equally clear. Models can still struggle with specialized concept understanding, geometric constraints, edge cases, and long-term consistency. A model may produce a page whose visuals closely match the target without implementing the strict mathematical relationships; it may complete a static drawing while failing to keep objects constrained throughout the animation.
LLMs are therefore better viewed as “highly efficient solution generators and collaborative developers” rather than automatic programmers that need no verification. For tasks involving mathematics, engineering, security, or production data, human review, unit testing, visual inspection, and, where necessary, formal constraints remain essential.
Conclusion
When evaluating an LLM, do not only ask whether it can quickly output code. Ask whether it understands the structure and intent behind complex requirements. Tasks such as constructing a regular heptagon with a marked ruler simultaneously test prompt adherence, spatial reasoning, specialized terminology comprehension, code generation, dynamic interaction, and engineering implementation quality.
If a model can make reasonable completions of implicit conditions while accurately maintaining constraints between objects, and present the full construction process through verifiable animation, its value in real-world development goes beyond “helping write code”—it can participate in requirements analysis, solution design, and prototype validation. For developers, the most reliable way to use such models is not to blindly accept generated results, but to establish clear acceptance criteria so that generation, execution, verification, and iteration form a closed loop.
