Evaluating General LLMs: Practices in Code Generation and 3D Rendering
This article explores the shift in evaluating general large language models (LLMs) from text-based answers to executable artifacts such as runnable code, 3D scenes, and vector animations. It introduces a reproducible evaluation methodology that emphasizes controlling variables like inference budgets and sandboxed execution. Through case studies on vector animation and pure code rendering, the article highlights the necessity of multi-layered assessments—ranging from syntax correctness to aesthetic quality. Finally, it proposes a comprehensive scoring framework to help developers and enterprises transition from mere "generation" to "runnable, reproducible, and deliverable" production-ready artifacts.
1. Evaluation Targets: Shifting from “Text Answers” to “Executable Artifacts”
Recently, the industry has seen the practice of releasing general LLMs as anonymous previews to gather feedback in real-world scenarios. This release method does not change the underlying evaluation logic: when models begin generating directly runnable code, vector animations, 3D scenes, and image rendering programs, simply comparing conversational quality is no longer sufficient. The evaluation target must be extended to whether the “artifacts are runnable, interactive, reproducible, and aesthetically acceptable.”
From public cases, the new generation of alternative preview models shows significant progress in code organization, 3D scene construction, and interaction integrity. However, gaps still exist compared to frontier flagship models in the aesthetic performance of pure code rendering, lighting transitions, material realism, and detail consistency. This conclusion can be abstracted into a universal problem: code correctness does not equal visual product quality; end-to-end generative capability requires layered evaluation.
2. Evaluation Design: Controlling Variables to Avoid “Looks Good at a Glance”
A reproducible evaluation should at least control the following variables:
- Unified Inference Budget: Test under the same tier of inference budget to avoid unfairness caused by different thinking durations.
- Fixed Prompts: Save the original prompt, system constraints, and revision records for each case.
- Sandbox Execution: Generated artifacts must be opened in an isolated environment to check for external resource dependencies.
- Offline Verification: If it can still run after disconnecting from the network, it indicates that resources are cohesive and dependencies are clear.
- Layered Acceptance: Break down “can generate” into four layers: syntax correctness, functional correctness, interaction integrity, and visual quality.
- Combine Manual Scoring with Objective Checks: Objective checks handle runnability, while manual scoring handles aesthetics and completeness.
An example acceptance script can be written in the following pseudocode:
function evaluate_artifact(prompt, artifact):checks = []checks.append("Parsable", parse_artifact(artifact))checks.append("No external dependencies", scan_external_refs(artifact) == 0)checks.append("Runs offline", run_offline(artifact))checks.append("Has interaction events", has_event_handlers(artifact))checks.append("Animation frames can advance", advance_frames(artifact, 120))checks.append("Runs after export", reopen_exported_file(artifact))return checks
Such scripts cannot replace aesthetic judgment, but they can quickly filter out artifacts that “look runnable but actually have missing dependencies,” providing a stable baseline for subsequent manual scoring.
3. Case Study 1: Vector Animation Generation - Focusing on Interactive Loops and Offline Usability
A classic test is using a prompt to generate an interactive vector animation, such as “an animal riding a bicycle along the beach.” This task seems simple but actually evaluates several aspects simultaneously:
- Completeness of graphic elements: Are the main subject, wheels, scarf, and background layered?
- Animation logic: Are wheel rotation, scarf fluttering, and pedaling speed synchronized?
- Interaction loop: Do pause, speed adjustment, and day/night switching actually work?
- Export self-containment: Can the file be opened independently and played offline?
In better artifacts, you can see features like speed multiplier adjustment, independent running after export, and uninterrupted offline animation. This shows that the model can not only write tags but also organize event listeners, state variables, and render loops. During evaluation, focus on recording whether “interactions are just for show”: if buttons exist but clicking them yields no response, it should be judged as functionally incomplete; if speed adjustment only changes text but not the animation, it should be judged as a logic defect.
4. Case Study 2: Pure Code Rendering - Gaps in Lighting, Materials, and Composition
A more discriminating test is “drawing a photo-level image with code,” such as afternoon sunlight through a window pane sweeping across a wall, chair, and parquet floor in a room. This task does not rely on image generation models but requires the model to write a rendering program, thereby testing graphics understanding, code engineering capabilities, and aesthetic control simultaneously.
Common technical approaches include:
- Browser Graphics API Route: Building scenes with shaders, geometry, and lighting models. It has strong interactivity, but materials and global illumination can easily look like a “stage set.”
- System-level Language Path Tracing Route: Achieving more natural lighting transitions through ray tracing, sampling, and denoising, but with high implementation costs and long rendering times.
- Hybrid Route: Using real-time APIs for preview and offline rendering for the final image, balancing iteration efficiency and quality.
From public comparisons, the gap often lies not in “whether it can draw a room,” but in the following details:
- Lighting Transitions: Is the transition from the bright area near the window to the dark interior continuous? Are shadow edges too hard?
- Material Realism: Do the floor, walls, and potted plants show roughness, reflection, and color variation?
- Composition and Proportion: Is the perspective of the furniture consistent? Do objects look like “just assembled stage props”?
- Detail Consistency: Are wall corners, seams, and shadow directions physically reasonable?
- Overall Atmosphere: Does it convey a sense of afternoon tranquility rather than a technical demo vibe?
Therefore, evaluation should not just ask “was it generated,” but “does the generated artifact reach deliverable visual quality.”
5. Capability Breakdown: Scoring Code, 3D, and Aesthetics Separately
It is recommended to adopt a layered scoring table. Example weights can be adjusted according to business needs:
| Dimension | Observation Points | Scoring Suggestions |
|---|---|---|
| Syntax & Runnability | Can it be parsed, opened, and run without errors? | Must pass |
| Functional Correctness | Do animations, interactions, and exports match the prompt? | High weight |
| Engineering Completeness | Internal dependencies, offline availability, clear structure | Medium-high weight |
| 3D/Graphics Understanding | Perspective, lighting, materials, camera | Medium-high weight |
| Aesthetic Quality | Lighting transitions, composition, color, details | High weight |
| Reproducibility | Are results stable under fixed prompts? | Medium weight |
By breaking it down this way, you can avoid mistaking “the code runs” for “the model is comprehensively leading.” A model might excel at organizing interaction logic but lag significantly in the aesthetics of pure code rendering; or it might produce good single-image results but lack stability when the prompt changes.
6. Conclusion: End-to-End Visual Quality Remains a Key Gap
Overall, general LLMs are rapidly progressing in code generation, 3D scene construction, and interaction loops, already capable of completing tasks that previously required multiple rounds of manual patching. However, there is still significant room for improvement compared to frontier flagship models in pure code rendering, lighting naturalness, material realism, and overall aesthetics. For developers and enterprises, a more reasonable approach is to establish fixed prompt sets, layered acceptance scripts, and manual aesthetic scoring tables, pushing from “can generate” to “runnable, reproducible, and deliverable.” Only when code correctness, engineering completeness, and visual quality all meet the standards simultaneously can a model’s capability be considered truly production-ready.
