Testing the Visual and General-Purpose Coding Capabilities of Chinese LLMs
This article presents a reproducible framework for evaluating two key capabilities of Chinese large language models: visual generation with aesthetic control, and general-purpose coding, which turns natural-language intent into runnable code such as web pages, 3D scenes, and physics simulations. It breaks evaluation into four layers, outlines prompt design and iteration strategies, analyzes two cases (a 3D scene and a volcano eruption simulation), and offers engineering advice on validation pipelines, cloud environments, cost control, and common pitfalls.
1. Introduction: Why “Vision + General-Purpose Coding” Marks a Key Leap for Chinese LLMs
Over the past period, Chinese large language models have plateaued in general conversation and text generation, and industry attention has shifted from “parameter scale” to “deliverable engineering results.” When a model can understand visual intent, generate structured code, and run that code into a visible, interactive scene, its value rises from “answering questions” to “producing work.”
This article does not benchmark any specific product. Instead, it abstracts this class of capability into two measurable technical dimensions: visual generation and aesthetic control, and general-purpose coding, meaning the ability to translate natural-language intent into runnable code (web pages, 3D scenes, physics simulations). Around these two dimensions, we provide a reproducible testing method and engineering recommendations.
2. Testing Framework: How to Scientifically Evaluate “Vision + General-Purpose Coding”
2.1 Breaking Down Evaluation Dimensions
Split the evaluation into four layers to avoid conclusions based only on first impressions:
- Intent fidelity: Does the model accurately understand constraints such as subject, scene, style, and interaction?
- Code runnability: Is the output a standalone runnable file, are dependencies minimized, and is the console free of errors?
- Visual completeness: Do composition, lighting, materials, color, and detail density hold up under close inspection?
- Interaction and performance: Are camera dragging, animation loops, frame-rate stability, and resource usage acceptable?
2.2 Prompt Design Principles
A high-quality prompt should contain five elements: subject + scene + style + interaction + technical constraints. An example prompt structure:
Subject: a pelican riding a bicycleScene: a sunset coastal highway with road signs, palm trees, wild grass, and a distant island with a lighthouseStyle: warm golden tones, close to the aesthetic of high-quality 3D animationInteraction: 360-degree drag to observe, with natural motion and expressionsTechnical constraints: a single HTML file, minimizing external assets
This structured prompt significantly reduces the chance of the model “over- improvising,” making output more controllable.
2.3 Iteration Strategy
Getting it right in one shot is unlikely. Use a loop of “generate — locate the problem — make a targeted fix.” Fix instructions should be specific down to the variable level, for example “reduce the sea surface highlight intensity by about 30%” or “make palm tree heights show front-to-back layering,” rather than a vague “optimize it further.”
3. Case One: Aesthetic Control in 3D Scene Generation
The classic test “draw a pelican riding a bicycle and output a 3D web page” is no longer difficult today. The real challenge is aesthetics and detail density.
In testing, better results usually share these traits:
- Complete environmental storytelling: not just the subject model, but also the road, signs, vegetation, sea surface, and distant island and lighthouse, forming layers.
- Natural lighting and materials: warm golden sunset contrasts with turquoise water, and the surface has reflections and ripples close to high-quality game visuals.
- Zero external asset dependency: all geometry, materials, and animation are generated by code, testing the model’s grasp of graphics APIs and mathematical modeling.
- Free observation: supports 360-degree dragging, with the subject’s motion and expressions staying natural as the viewpoint changes.
From an engineering perspective, this task requires the model to simultaneously apply geometry modeling, lighting models, animation loops, and interaction control, making it a typical “综合 capability” test.
4. Case Two: Physics-Simulation 3D Demo
The second retained task is to build a volcano eruption simulation with a 3D graphics library and output a standalone web file. It looks simple but covers particle systems, noise functions, time stepping, and performance optimization.
Evaluation points include:
- Reasonable particle behavior: are eruption force, gravity, air resistance, cooling, and dissipation coherent?
- Procedural textures: are smoke and lava textures generated by noise functions rather than image assets?
- Time stability: is animation pacing consistent across frame rates, avoiding “faster machines erupt harder”?
- Resource boundaries: are particle counts and geometry complexity within acceptable limits to avoid stuttering?
On such tasks, differences between models often show in details: whether wind-field perturbation is added, whether lava produces secondary splashes on landing, and whether distance attenuation is applied to particles for better distant views.
5. From “It Runs” to “It’s Usable”: Engineering Recommendations
5.1 Validation Pipeline for Generated Results
Put model output into automated validation:
generate code -> static check -> run in headless browser -> collect console errors -> screenshot comparison -> human scoring
This avoids “looks right, fails at runtime” cases and builds a regression evaluation set.
5.2 Building a Stable Environment in the Cloud
To productize this capability, you can combine general capabilities from Baidu AI Cloud: use a container platform to host headless browsers and rendering tasks, object storage to save generated pages and screenshots, a message queue to decouple generation from validation, and log and monitoring services to track failure rates and latency. The model service itself can be integrated through a unified model service interface for easy replacement and canary release.
5.3 Cost Control and Security
- Set limits on prompt length, iteration count, and rendering duration to prevent resource runaway.
- Sandbox generated code, prohibiting unauthorized network and file system access.
- Build content safety filtering to avoid generating non-compliant or infringing assets.
6. Common Pitfalls and Improvement Directions
- Judging only by first impression: ignoring material and geometry flaws visible when zoomed in, causing backlash after launch.
- Overly abstract prompts: the model can only guess, and results are not reproducible.
- Ignoring performance: high particle counts and high-subdivision geometry are unusable on low-end devices.
- No regression set: every evaluation is a “new task,” preventing horizontal comparison.
The improvement direction is to turn evaluation into an asset: fixed tasks, a fixed scoring sheet, and a fixed runtime environment, forming a sustainable capability baseline.
7. Conclusion
The progress of Chinese LLMs in vision and general-purpose coding is marked by a shift from generating fragments to delivering complete work. For developers, what matters is not a single impressive result, but building a reproducible evaluation system, a controllable iteration process, and an operable cloud architecture. Doing these three things well is what steadily turns model capability gains into business value.
