Deep Dive into Complex Instruction Following in a New-Generation LLM Release

    A technical evaluation of a new-generation large language model's prompt adherence, tested through a demanding geometric construction task—constructing a regular heptagon with a twice-notched straightedge and generating an interactive HTML page with GIF export. This article covers the test design, implementation results, underlying technical insights, practical implications for developer workflows, and a reusable methodology for assessing instruction-following capabilities in LLMs.

    Introduction: From “Following Instructions” to “Understanding Intent”

    In the evaluation of large language models (LLMs), prompt adherence remains a core metric of practical usability. Early models handled simple, single-pattern instructions well, but once tasks involved multi-step procedures, nested conditions, spatial reasoning, or domain-specific terminology, they tended to skip steps, misinterpret constraints, or produce output that drifted from the semantic intent. According to developer community feedback, a recently released new-generation LLM shows significant improvement in prompt adherence—particularly on tasks that require the model to internally “construct” complex chains of operations, demonstrating near-human levels of comprehension.

    This improvement is not simply the result of scaling parameters or instruction fine-tuning; it reflects a structural change in how the model understands tasks. This article validates the model’s real capabilities through an extremely challenging geometric construction task—constructing a regular heptagon with a twice-notched straightedge, and producing an interactive HTML page with GIF animation export. We also examine the technical logic behind these gains and provide a reusable evaluation methodology for developers.

    1. Why “Heptagon Construction with a Twice-Notched Straightedge” as a Benchmark

    1.1 The Intrinsic Complexity of the Task

    The regular heptagon is a classic challenge in compass-and-straightedge construction. Standard straightedge-and-compass methods cannot construct it exactly, because its side length involves cubic radical expressions. A “twice-notched straightedge” (a ruler with two parallel marked lines) allows translation and rotational positioning during construction, breaking through standard limitations to achieve an approximate or exact construction. This task requires the model to:

    • Understand fundamental geometric concepts such as squares, diagonals, perpendicular bisectors, and circle centers;
    • Interpret the physical constraint of “the straightedge pressed against a vertex” (i.e., the ruler must pass through that point);
    • Infer, from the continuous dynamic process of “the first marked line moving along the circle,” when the second marked line passes through another geometric line;
    • Proactively fill in omitted routine construction steps (such as drawing perpendicular bisectors and locating circle centers);
    • Finally implement the visualization in HTML/CSS/JavaScript, with support for exporting a GIF animation.

    1.2 Why This Is a Serious Challenge for Models

    This task requires the model to switch between multiple abstraction layers:

    • Spatial operations layer: understanding relative positions and dynamic changes of geometric elements in a 2D plane;
    • Constraint reasoning layer: translating physical constraints (e.g., “pressed against the vertex,” “marked line moving”) into mathematical models;
    • Semantic completion layer: recognizing “routine operations” the user omitted and generating them according to geometric conventions;
    • Code generation layer: mapping geometric reasoning into concrete drawing code while handling performance concerns (e.g., trace display rules).

    Most existing models, when handling such long chain-of-thought tasks, either drift off-topic after early steps, generate logically inconsistent code, or ignore physical constraints and produce incorrect results. This makes the task a rigorous litmus test for prompt adherence.

    2. Test Design and Implementation Details

    2.1 Prompt Structure

    For fair evaluation, we adopted the same prompt framework used in the original community test, with minor adjustments to remove ambiguity:

    1. Draw an HTML page that implements "constructing a regular heptagon
    2. with a twice-notched straightedge."
    3. Steps:
    4. 1. Take a square and draw the perpendicular bisector of its bottom edge.
    5. 2. With the bottom-right vertex E as center and the diagonal as radius,
    6. draw circle E.
    7. 3. Using a twice-notched straightedge (two parallel marked lines), keep
    8. the straightedge pressed against the bottom-left vertex D. Move the
    9. first marked line along circle E until the second marked line passes
    10. through the perpendicular bisector of the bottom edge.
    11. 4. Then continue with standard compass-and-straightedge steps (drawing
    12. perpendicular bisectors, locating circle centers, etc.). Please fill
    13. in all omitted construction steps.
    14. Note: traces of points obtained with the compass should only remain
    15. where necessary.
    16. Extra requirement: the page must include a button that, when clicked,
    17. generates a GIF animation of the entire construction process.

    2.2 Evaluation Criteria

    We assessed the model’s output against the following metrics:

    • Step completeness: whether all given steps are executed in order without skipping;
    • Geometric correctness: whether key elements (circle center, circles, marked-line intersections) are positioned according to geometric laws;
    • Constraint adherence: whether the straightedge always passes through point D and the first marked line stays on circle E;
    • Plausibility of completions: whether the filled-in steps match standard geometric construction methods;
    • Code runnability: whether the HTML renders directly in a browser and interactive features work;
    • GIF generation mechanism: whether dynamic export is implemented via Canvas or SVG frame sequences.

    3. Test Results: From “Shallow Matching” to “Deep Reconstruction”

    3.1 Basic Execution: All Steps Accurately Presented

    The generated HTML page includes a square, the perpendicular bisector of its bottom edge (shown as a dashed line), circle E (shown as a light-gray circle), and a dynamically drawn rectangle simulating the twice-notched straightedge (with two marked lines). The user controls the first marked line moving along circle E via a slider or drag; when the second marked line intersects the perpendicular bisector, the page automatically highlights the intersection and pauses. This part fully matched expectations.

    3.2 Intelligence in the Filled-In Steps

    Even more impressive was what followed. The model not only completed standard steps such as “connecting the intersection to adjacent vertices” and “drawing perpendicular bisectors to find the circle center,” but also proactively chose the most concise construction path—using two auxiliary intersection points to determine the circumcenter of the regular heptagon, then successively marking off seven equal divisions with the radius. Notably, the model did not mechanically repeat the “draw circle, find intersection” loop. Instead, it leveraged the special intersection obtained via the twice-notched straightedge (which effectively determines the heptagon’s side length) and then used the compass for the remaining sides, reducing redundant traces.

    3.3 Dynamic Understanding of Physical Constraints

    In implementing “the straightedge pressed against point D,” the model’s code fixes one vertex of the straightedge’s rectangular frame at D, rotates the long edge around D, and constrains the first marked line to stay on the arc of circle E. This requires understanding that “pressed against” means point contact rather than segment contact, and that “moving” means sliding along the circular trajectory. The code uses an angular parameter and dynamically updates the rectangle’s position by solving circle-line intersections—rigorous logic throughout.

    3.4 GIF Export

    The model captures the vector state of each frame via Canvas and encodes the frame sequence into a GIF using an off-the-shelf JavaScript library (e.g., gif.js). Clicking the “Export GIF” button produces an animation of the complete construction process, from the square to the final heptagon. The workflow shows no memory leaks, and the frame rate is configurable.

    3.5 Comparison with the Previous Version

    According to earlier community tests, the previous base version often failed to understand “the marked line moving along the circle,” instead fixing the straightedge in place and drawing circles directly; or it ignored the constraint of “pressed against the bottom-left vertex,” producing incorrect geometric relationships. The new version can convert a textually described dynamic process into continuous spatial transformations—a breakthrough in “spatial cognition,” since despite being purely text-based, the model has internalized spatial relationships and mapped them into code logic.

    4. Technical Insights: Why Prompt Adherence Improved Qualitatively

    4.1 Explicit Long Chain-of-Thought

    The new generation of models strengthens chain-of-thought generation during training—not merely verbalizing the reasoning process, but allowing the model to internally simulate “operation sequences.” For complex tasks, the model first plans high-level submodules such as “coordinate transformation,” “intersection solving,” and “trace recording,” then refines them layer by layer. This hierarchical planning effectively prevents contradictions between steps.

    4.2 Robust Decomposition of Ambiguous Semantics

    Phrases like “the usual steps of drawing perpendicular bisectors to find the center” are ambiguous, requiring the model to fill in domain knowledge on its own. Through large-scale pretraining on geometric corpora, the new version has internalized the standard paradigms for constructing regular polygons and can automatically select an optimal path for the goal. It also explains the geometric basis of each step in code comments—an improvement in interpretability.

    4.3 Symbolic Expression of Physical Constraints

    Unlike earlier versions that interpreted “pressed against” as coordinate coincidence, the new model abstracts physical contact as the condition “distance between a point and a curve equals zero,” and constructs a sliding constraint equation accompanying the motion. This symbol-level abstraction also gives the model an advantage in simulating rigid-body motion tasks such as levers and pulleys.

    5. Practical Impact on Developer Workflows

    5.1 From “Vibe Coding” to “Wish Coding”

    The community often distinguishes two coding modes: “vibe coding,” where developers give vague intentions and the AI produces roughly working code; and “wish coding,” where the AI is expected to strictly follow a series of informal constraints and complete complex engineering autonomously. This test strongly suggests the new model is approaching the “wish coding” ideal. Developers only need to describe interaction logic and geometric rules, and the model generates a runnable, high-quality interactive application without line-by-line adjustment.

    5.2 Lowering the Barrier to Specialized Skills

    Previously, implementing “twice-notched straightedge construction” required simultaneous mastery of geometry, computer graphics, and front-end animation. Now the model internalizes this knowledge, enabling non-specialists to rapidly prototype complex mathematical visualization tools. For education, engineering simulation, and design assistance, this capability can dramatically shorten development cycles.

    5.3 Remaining Limitations

    Despite the encouraging results, we observed potential deviations in the following scenarios:

    • When the prompt contains self-contradictory definitions (e.g., “pressed against two points simultaneously”), the model tends to produce an approximate solution rather than report the contradiction;
    • For cross-domain physical constraints (involving friction or elasticity), the model may ignore dynamic details and handle only kinematic relationships;
    • Extremely complex iterative processes (more than about 20 steps) may still cause partial loss of traces.

    Therefore, developers should retain a human review step, especially in numerically precise or safety-critical scenarios.

    6. Methodology Recommendations: How to Design Your Own Adherence Tests

    If you want to evaluate prompt adherence in other LLMs, consider these design principles:

    1. Choose interdisciplinary tasks: combine geometry, physics, or logical reasoning rather than pure code generation;
    2. Embed implicit constraints: use dynamic conditions like “pressed against,” “sliding,” and “until” to test sustained tracking;
    3. Require completion of omitted steps: observe whether the model can fill in domain knowledge;
    4. Mandate visual or interactive output: force the model to convert abstract concepts into concrete implementations;
    5. Document failure modes: categorize error types (step skipping, geometric errors, constraint loss) to more easily locate capability gaps.

    7. Conclusion: A New Milestone in Model Comprehension

    The evolution of prompt adherence in new-generation LLMs is not merely a performance improvement—it marks a transition from “statistical language engine” toward “world simulator.” The ability to parse multi-layered, nested physical-spatial operations and produce complex interactive artifacts paves the way for advanced applications such as AI-assisted scientific computing and automated design. As models continue to iterate, we can reasonably expect future AI not only to “read” instructions but to actively calibrate ambiguous intent, becoming a true digital collaborator. Developers should update their mental models promptly and leverage this capability to restructure existing workflows and unlock greater creative productivity.