Evaluating Lightweight LLMs: Exposing True Model Capabilities with a High-Barrier HTML Task

    High benchmark scores often fail to reflect a Large Language Model's (LLM) actual performance in complex, multi-step development tasks. This article explores how a high-barrier HTML generation task—constructing a regular heptagon via geometric construction with a GIF export feature—can reveal a model's true instruction-following and reasoning capabilities. By comparing flagship and lightweight models, we demonstrate that smaller models can sometimes outperform larger ones in process fidelity, offering valuable insights for designing robust LLM evaluation strategies and making informed model selection decisions.

    1. Why High Benchmark Scores Don’t Guarantee Real-World Capability

    When selecting large language models, developers often rely on scores from various public leaderboards. However, there is frequently a noticeable gap between leaderboard performance and actual business outcomes. Leaderboard tasks usually consist of “standardized” tests like knowledge Q&A or code completion, where models can score high through memorization and pattern matching. In real-world development scenarios, tasks are often complex problems requiring “multi-step constraints + precise instruction following,” where any deviation in a single step can render the final output unusable.

    Therefore, in engineering practice, it is more reliable to depend on constructive tests: giving the model a task with clear steps, verifiable results, and no room for improvisation. If a model attempts to “take shortcuts” or invents steps not present in the prompt, it can be immediately identified. The essence of these tests is to examine three core capabilities of the model:

    1. Long instruction following: Can it execute strictly step-by-step rather than just grasping the final goal?
    2. Geometric/logic reasoning: Can it translate a text-described construction process into coordinate calculations?
    3. Frontend implementation: Can it render the reasoning results into an interactive animated page using HTML/CSS/JS?

    2. A Test That Can Trip Up Flagship Models

    The following prompt has been used in the community to test a model’s basic reasoning capabilities. On the surface, its difficulty seems similar to basic HTML animation tasks, but in reality, many flagship models fail to pass it completely:

    1. Draw an HTML webpage to implement the neusis construction of a regular heptagon, with the following steps:
    2. 1. Take a square and draw the perpendicular bisector of its base;
    3. 2. Draw circle E centered at the bottom-right vertex E with the diagonal as the radius;
    4. 3. Using a "neusis ruler" (marked ruler), keep it tight against the bottom-left vertex D,
    5. move the first marked line along circle E until the second marked line passes through the perpendicular bisector of the base;
    6. 4. Complete all omitted compass and straightedge construction parts (e.g., standard perpendicular bisectors to find circle centers);
    7. 5. Note: Using a compass will generate point trajectories, but traces should only appear where necessary;
    8. 6. Finally, add a feature to export the result as a GIF.

    The “poison points” of this question lie in:

    • The final result looks simple (drawing a regular heptagon). A model could easily cheat by “directly calculating the coordinates of the heptagon vertices.”
    • The process constraints are extremely strict: The prompt requires achieving the result via a specific geometric construction path. Skipping steps or inventing new ones counts as a failure.
    • Composite output requirements: It requires both animation trajectory control and a GIF export feature, testing comprehensive engineering capabilities.

    In other words, this question decouples “correct result” from “correct process”—which is the key design for identifying whether a model truly understands the instructions.

    3. Evaluation Implementation: Control vs. Experimental Groups

    3.1 Control Group: Typical Flagship Model Failure Mode

    Executing this prompt with a peer flagship model on a mainstream conversational platform resulted in a rendered regular heptagon after nearly twenty minutes of continuous generation. However, a careful review of the construction process revealed that the model deviated from the construction path described in the prompt, adding several auxiliary steps not present in the question to force the final result.

    This is a classic case of high scores but low ability: the model prioritizes “looking right” at the expense of “being right in the process.” For scenarios requiring explainability and reproducibility (such as math teaching, algorithm demonstrations, or CAD assistance), such output is unacceptable.

    3.2 Experimental Group: Lightweight Model Performance

    As a comparison, a lightweight model was used to execute the same prompt within an AI coding tool. Several noteworthy details were observed:

    • Non-streaming thinking process: The thinking phase exhibited chunky, staggered output rather than the typical coherent reasoning stream. It also experienced stages of “thinking for a long time without outputting,” with the total time exceeding thirty minutes.
    • Highly faithful results: The final HTML page completely followed every construction description in the prompt, including the constrained movement of the neusis ruler, the compass trajectories leaving traces only at necessary positions, and the GIF export feature.

    This reveals an important fact: smaller parameter models are not necessarily weaker than flagship models in instruction following. A lightweight model’s execution quality on complex reasoning chains can reach a level that rivals flagship models, with the main trade-offs being inference latency and generation speed.

    4. Engineering Takeaways from the Evaluation

    4.1 Four Key Points for Designing High-Barrier Prompts

    To accurately evaluate a model, test questions should satisfy:

    • Auditable process: Steps should be clearly numbered, with verifiable intermediate results at each stage.
    • No shortcuts to results: The target artifact should be easy to fake; process constraints must be used to force genuine reasoning.
    • Orthogonal constraints: Geometric constraints, rendering constraints, and functional constraints (like GIF export) should test different dimensions separately.
    • Allow partial grading: Distinguish between “fully followed,” “skipped steps but correct result,” and “incorrect result.”

    4.2 Don’t Just Look at the Final Product

    The control group example proves that “rendering the correct graphic” does not equal “the model correctly understood the task.” It is recommended to add the following to the evaluation process:

    1. Step-by-step verification: Compare the construction steps output by the model with the prompt step-by-step and list any deviations.
    2. Process data inspection: Check animation frame sequences or intermediate variables to ensure trajectories match the descriptions.
    3. Resource overhead recording: Track thinking time, generation duration, and whether abnormal behaviors like “idling” occur. These are important inputs for cost estimation.

    4.3 Model Selection: The Value Range of Lightweight Models

    Based on this type of evaluation, a general conclusion can be drawn:

    Dimension Flagship Models Lightweight Models
    Generation Speed Fast Slow, significant time consumption for complex tasks
    Instruction Following May “take shortcuts” May be more faithful, requires testing
    Cost High Low
    Applicable Scenarios General conversation, rapid prototyping Batch processing, highly constrained tasks

    Actual selection should not rely solely on a model’s positioning label. Instead, transform your business’s typical tasks into a constructive test set, measure the “process fidelity” and “time cost” of candidate models, and then decide which model should handle which type of traffic.

    5. Conclusion

    HTML constructive tests provide a low-cost, reproducible, and hard-to-cheat method for evaluating model capabilities. The core conclusion they reveal is that a model’s true capability does not necessarily correlate with its parameter size or market positioning—certain lightweight models can defeat flagship models on strict multi-step constrained tasks, while flagship models might also fail on seemingly simple questions by “inventing steps.” For developers, establishing an evaluation system centered on “process correctness” is far more valuable for engineering than chasing leaderboard scores.