Open-Source LLMs vs. Frontier Closed Models: A Real-World Frontend Generation Benchmark

    This article benchmarks a Chinese open-source LLM against a frontier closed-source model using a real task: generating a complete frontend project with login, list, and form pages. It outlines a reproducible evaluation method, reports capability gaps in requirement understanding rather than coding, and explains why open weights matter for cost, compliance, customization, and avoiding vendor lock-in. Readers will find practical selection advice and a three-layer evaluation baseline.

    1. Background: Testing Model Capability on a Real Project

    Chinese LLMs are steadily closing the gap with international frontier models, and community discussions about “matching top closed-source models” keep gaining momentum. But hype is not engineering readiness. The only reliable way to judge whether a model can actually deliver is to run it against a real requirement.

    This article uses “generate a complete frontend project” as the scenario. The input is a requirements document covering three page types: login, list, and form. We observe how the model handles requirement parsing, page reconstruction, interaction implementation, and delivery format, and distill a reusable evaluation framework. To avoid pointing at specific products, the article refers to the “Chinese model under test” and the “international frontier closed-source model” for comparison.

    2. Evaluation Method: Making the Results Trustworthy

    The most common mistake in evaluation is “scoring by feel.” To make conclusions reproducible, four variables must be fixed:

    • Fixed input: the same requirements document, including field definitions, validation rules, interaction notes, and visual requirements.
    • Consistent constraints: no prescribed tech stack; the model freely chooses frameworks and component solutions.
    • Clear delivery format: a runnable, accessible complete project, not isolated code snippets.
    • Objective metrics: end-to-end time, page completeness, requirement coverage, and rework count.

    A schematic structure of the requirements description can look like this:

    1. Page: Product list
    2. Fields: name, category, price range, listing status
    3. Interactions: multi-select category filter, price range slider, instant status toggle
    4. Empty state: guidance text and reset button when no data

    The more structured the requirements, the better they expose the model’s true level of understanding depth.

    3. Observed Results: A Capability Gradient Across Three Pages

    1. Login Page: Close to Usable

    Requirements such as carousel, form validation, and remembered login state were mostly implemented in full, with a clear page structure—at a “tweak it and ship” level. This shows the model has a fairly mature grasp of common page paradigms.

    2. List Page: Understanding Starts to Slow Down

    Problems concentrated in filtering and linkage logic: filter options explicitly written in the document were not implemented, or were only statically displayed without linkage. This is not an occasional defect but a shortcoming exposed across multiple list pages—the page skeleton is correct, but functional semantics are only partially restored.

    3. Form Page: Insufficient Restoration of Complex Constraints

    Details such as field dependencies, conditional required fields, and linked validation deviated from the document. Forms are the peak of requirement density, and the model’s performance here largely determines whether it can take on mid- and back-office project generation.

    4. Delivery and Efficiency

    Generation was on the slower side, with end-to-end time on the order of half an hour; the advantage is a directly accessible complete project. Compared with the international frontier closed-source model, the latter took less time and restored filtering structures, field relationships, and validation logic with higher precision. In terms of visual style, the model under test was slightly better than a typical prototype draft, but still short of the refinement of a mature design system. The overall positioning is “engineering usability over product polish.”

    4. Gap Analysis: Not “Can It Code,” but “Did It Understand”

    Breaking the gap down, the core is not coding ability but the requirement understanding chain:

    • Instruction decay in long context: the more requirements, the more likely later or nested constraints are ignored.
    • Insufficient structured reasoning: dependencies between fields need explicit modeling, and the model tends to produce generic implementations that “look right.”
    • Lack of self-verification: after generation there is no item-by-item self-check against requirements, so omissions go undetected.
    • Incomplete delivery loop: no runtime verification or test-case-driven regression.

    The corresponding engineering improvements are straightforward: break requirements into a checkable acceptance list, use automated test cases for coverage checks, and have the model run a self-check and repair loop after generation.

    1. Requirements -> Acceptance checklist -> Generation -> Test case validation -> Failed items fed back -> Regeneration

    5. Why Open Source Matters: From “Usable” to “Controllable”

    When Chinese models approach international frontier capability, the value of open-source attributes is significantly amplified:

    1. Controllable cost structure: choose self-hosting or cloud API calls as needed, avoiding passive price increases driven by capability upgrades.
    2. Controllable data and compliance: sensitive code and business data can stay in your own environment to meet audit requirements.
    3. Customizable and distillable: fine-tune, quantize, and distill for vertical scenarios, using smaller models for high-frequency simple tasks.
    4. Co-buildable ecosystem: issues can be located and capabilities reproduced, so the community can form an improvement loop around real defects.
    5. Avoiding lock-in risk: with interfaces and weights available, migration and multi-model routing become standard engineering practices.

    It is worth emphasizing that open source does not mean zero cost. Inference resources, operations, security hardening, and version governance all require investment, typically carried by common cloud capabilities such as container platforms, logging services, and monitoring and alerting.

    6. Selection Advice: Layer by Scenario, Not One-Size-Fits-All

    • High-interaction-density scenarios (complex forms, visual configuration): prioritize solutions with higher understanding precision and faster iteration, paired with a strict acceptance checklist.
    • High-frequency standardized scenarios (copy, boilerplate code, single-page generation): self-host open-source models for more controllable cost and response.
    • Hybrid architecture: use a unified gateway for model routing, sending simple requests to smaller models and escalating complex requests to larger models, balancing cost and quality.

    For implementation, establish a three-layer evaluation baseline: functional coverage, rework rounds, and end-to-end latency, regressed monthly to avoid being misled by a single demo.

    7. Conclusion

    The gap between Chinese models and the international frontier is shifting from “can it generate” to “can it accurately understand and reliably deliver.” Open-source attributes give this catch-up engineering value: capability is obtainable, cost is controllable, and the ecosystem can be co-built. For developers, the rational approach is not to take sides but to solidify the evaluation method, drive selection with real requirements and automated validation, and turn model capability into real delivery efficiency.