Practical Evaluation of Recent LLMs: Code Generation, 3D Assets, and UI Aesthetics
Recently, multiple tech platforms have released new large language models (LLMs) and multimodal models, increasing both options and evaluation costs. This article evaluates three capabilities from an engineering perspective: code generation, 3D asset construction, and UI aesthetics. Based on real-world testing rather than standardized benchmarks, it highlights what models can currently do, where human oversight is still necessary, and provides actionable practices for teams. These insights serve as a starting point for internal team testing rather than definitive selection conclusions.
Recently, multiple tech platforms have successively released new large language models and multimodal models. While the choice of models has increased, so has the cost of evaluating them. This article examines three types of capabilities from an engineering perspective: code generation, 3D asset construction, and UI aesthetics. Each section explains what models can currently do, where human intervention is still required, and provides actionable practices that teams can adopt immediately.
The samples in this article come from the author’s actual test scenarios without a unified benchmark dataset. Therefore, the judgments made here are suitable as a starting point for team self-testing and should not be taken directly as final selection conclusions.
1. Code Generation: From Writing to Running
Early models commonly exhibited two issues: context forgetting and calling non-existent APIs. The new generation of models is more stable regarding cross-file dependencies and class inheritance structures. In the author’s samples, the model could locate existing message queue interfaces within a lengthy engineering context and adhere to the project’s original exception handling style.
These improvements have increased the usability rate of generated code, but there is still a gap between “can run” and “ready to ship”. The example below completes the logging, timeout, and retry logic, which can be used as a starting point.
import asyncioimport loggingfrom typing import Awaitable, Callablelogger = logging.getLogger("task_consumer")class AsyncTaskConsumer:"""An async task consumer that limits concurrency, retries on failure, and logs."""def __init__(self, max_concurrency: int = 10, max_retries: int = 3,timeout_seconds: float = 30.0):self._semaphore = asyncio.Semaphore(max_concurrency)self._max_retries = max_retriesself._timeout = timeout_secondsasync def consume_task(self, handler: Callable[[dict], Awaitable[None]],payload: dict) -> None:async with self._semaphore:for attempt in range(1, self._max_retries + 1):try:await asyncio.wait_for(handler(payload), timeout=self._timeout)returnexcept Exception as exc:logger.warning("Task failed, attempt %d, error: %s", attempt, exc)if attempt == self._max_retries:logger.error("Task ultimately failed, payload=%r", payload)raiseawait asyncio.sleep(2 ** attempt)
This code only contains consumption and retry logic; it does not connect to a message queue. When integrating, you need to replace it with the queue client used in your project. There is also a prerequisite for retries: the handler must be idempotent. Otherwise, retrying the same message may result in duplicate data being written.
Unit Testing: Models Write Cases, Tools Calculate Coverage
Models are well-suited for generating test cases. After reading the function under test, it can list branches and write assertions for each. However, coverage should be calculated by tools, such as pytest-cov or coverage.py. A model claiming it has “covered all branches” cannot be used as a reliable basis.
Below is a reusable prompt template:
Write pytest test cases for the following function, requiring:1. List all if/else and try/except branches within the function, with at least one test case per branch.2. Use unittest.mock to simulate external dependencies, without accessing the network or real databases.3. Cover empty inputs, boundary values (0, negative numbers, max length), and exception paths.4. Only output the test file, do not modify the tested code.
After generation, run pytest --cov=app --cov-branch and rely on the report. After tests are generated, you should also manually check whether the assertions carry actual meaning. Models sometimes write tautological assertions (always true); the coverage numbers will appear high, but the tests offer no real protection.
2. 3D Assets: Generation is Only the First Step
NeRF and 3D Gaussian Splatting (3DGS) are primarily scene representation and rendering methods. Their outputs cannot be used directly in game engines. To obtain usable assets, the following steps are typically required:
- Extract a mesh from the implicit representation, for example, using the marching cubes algorithm.
- Retopologize to make the edge flow suitable for skeletal binding and animation deformation.
- Decimate the mesh to reduce the polygon count within the project budget.
- Unwrap UVs and bake textures.
- Add PBR material parameters, such as roughness and metallicity.
- Generate multiple LODs (Levels of Detail) for rendering at different distances.
In the author’s test, given the prompt “generate a worn-out industrial gear with worn textures,” the model produced a structurally reasonable preview image in a short time. There remains a gap between this preview image and an asset ready for a game engine, involving the steps listed above.
The advice for teams is to treat the generation results as drafts. Establish a checklist that includes polygon count limits, non-manifold edges, material counts, texture resolutions, and whether LODs are complete. The values in the checklist should be set according to the project’s asset specifications.
3. UI Aesthetics: Breaking Down “Ugly” into Measurable Problems
The author’s tests show that the React components generated by the models have correct syntax and clear state logic. The issues lie in the interface: inconsistent spacing, insufficient color contrast, vague visual hierarchy, broken mobile breakpoints, and excessive or missing animations.
These problems can be observed and measured. Rather than broadly stating that it “looks ugly,” it is better to point out the specific issues. This also makes it easier for the model to correct them.
Some aesthetic shortcomings stem from training mechanisms. Current LLMs generally use Reinforcement Learning from Human Feedback (RLHF). This feedback focuses more on helpfulness and safety, lacking fine-grained standards for visual harmony. Color matching, whitespace ratios, and visual hierarchy are highly subjective and difficult to translate into reward signals. This explains why the interfaces generated by models are often functional but lack refinement.
How to Improve UI Aesthetics
You can start from three aspects:
- Define design tokens first. Unify colors, spacing, border radii, and shadows in a configuration file. Components should only reference tokens, avoiding magic numbers.
- Limit available values. List the allowed spacing scales and color variables in the prompt, forbidding the model from generating arbitrary hex color values.
- Provide reference components. Attach a component that has passed design review as an example. Models mimicking existing structures are more stable than designing from scratch.
Color schemes can also be checked automatically. The WCAG contrast standard requires a minimum contrast ratio of 4.5:1 between body text and its background. Incorporating this rule into the CI pipeline can catch some obvious color scheme issues.
Common Mistakes to Avoid
- Changing only the prompt without providing design tokens. As a result, the generated style varies every time.
- Asking the model to generate an entire page at once. The scope of changes is too large, increasing review costs.
- Stacking effects like glassmorphism and gradients, ignoring readability and rendering performance.
- Ignoring dark mode and mobile devices.
4. Enterprise Selection and Integration: Split by Task, Don’t Bet on a Single Model
Enterprise selection should be broken down by task. The table below lists the focus metrics, evaluation methods, and boundaries for each task type:
| Task | Focus Metrics | Evaluation Approach | Cost & Risk | Applicable Boundaries |
|---|---|---|---|---|
| Business Code Generation | Compile pass rate, test pass rate, review rework count | Fixed task set, running multiple models on the same batch of requirements | Quality depends on context, may introduce security vulnerabilities | Must pass human review, do not merge directly into the main branch |
| Unit Test Generation | Coverage increment, valid assertion ratio | Based on output from coverage tools | May generate invalid |
