Evaluating Chinese Large Language Models: A Practical Methodology for Code Generation and Web Search
This article presents a practical framework for evaluating new Chinese large language models, based on hands-on testing of a new-generation model. It covers front-end visual code generation, classic mini-game recreation, reinforcement learning environment generation with multi-round repair, and the faithfulness of multi-turn web search. It also proposes a four-dimension checklist: consistency between chain-of-thought and output, common-sense reasoning, multi-round repair, and reliability of tool calls.
1. Background: Why Build Your Own Evaluation Method
Official demos of new large language models often look impressive, but real capability only becomes clear through hands-on testing. This article draws on an in-depth trial of a new-generation Chinese large model to outline a reusable evaluation framework. The framework covers three core areas: front-end code generation, logical and common-sense reasoning, and the faithfulness of web search. The goal is to help developers avoid being swayed by marketing claims and build their own judgment when comparing models.
2. Visual and Interactive Code Generation: Surface-Level Competence Is Common
The first test covered front-end visualization code. For example, models were asked to generate interactive pages with lighting and particle effects using Canvas or Three.js.
The results show that current mainstream models generally perform well on these tasks. Scenes include all the required elements, and animations run smoothly. This suggests that visual code generation has become a commodity. Training data contains plenty of such examples, so models can easily produce results that look convincing. Two points deserve attention:
- A visually polished result does not guarantee correct logic. A striking page may hide faulty interaction logic.
- This task category has low discriminative power and is not sufficient as a primary basis for model selection.
3. Classic Mini-Game Recreations: Exposing Common-Sense and Chain-of-Thought Problems
The second test used two classic scenarios: the Huarong Road sliding puzzle, a traditional Chinese sliding-block game, and a bowling simulation.
Huarong Road: The model produced a playable puzzle. The tiles were neatly arranged, and the basic functions met expectations. One detail stands out. In its chain of thought, the model said it would present an ink-wash painting style. The final output, however, used plain colored blocks, and no ink-wash elements appeared at all. This reveals an important phenomenon: the chain-of-thought content and the final code can diverge. The plan the model made during reasoning was not carried through into the output, and it may even be a hallucination within the reasoning process. When evaluating models, do not rely on promises made in the chain of thought. Judge by the actual output.
Bowling simulation (Three.js): The game ran, but it exposed a clear lack of common sense. The pins were spaced too far apart, which made it nearly impossible to score a strike in one throw. Anyone who has bowled knows that the pins are tightly arranged, but the model lacked this physical knowledge. The interface also had extremely poor color contrast, so the scene was barely visible. This suggests the model gave little attention to usability details such as default colors and light-dark contrast.
Errors of this kind are harder to spot than syntax errors, and they separate model capability levels more clearly. They test not coding ability but how well a model has internalized the rules of the real world.
4. Reinforcement Learning Environment Generation: The Real Capability Divide
The third test asked the model to generate a Q-learning maze-solving demo. The demo had to include maze rendering, agent movement, and visualization of the training process.
This was the most discriminating test. Most Chinese models tested earlier failed this task. Either training did not converge, or the interface could not run at all. The model in this test still did not fully succeed after four attempts:
- First attempt: the agent was rendered too large, occupying half the maze and badly distorting the proportions.
- Second attempt: the maze itself failed to render.
- Third attempt: the maze appeared, but the program crashed and could not be interacted with.
- Fourth attempt: the agent layer and the terrain layer had misaligned coordinates.
Although the model did not pass, it had notable strengths. It displayed the Q-value of each cell directly on the floor as a visualization, and training eventually converged. This already outperforms most comparable models, many of which fail to converge at all.
This test points to a key evaluation criterion: multi-round repair ability is itself worth measuring. Generating perfect code in one attempt is unrealistic. Whether a model can iteratively approach a correct solution when given feedback is a key indicator for engineering use. Evaluators should also set a cap on attempts, such as four rounds, to avoid endless debugging.
5. Multi-Turn Web Search: Faithfulness Is the Weak Point
The final test examined web search. The model was instructed to perform a specified number of search rounds, for example four, and its actual behavior was then observed. Two typical problems emerged.
Problem 1: Falsified search rounds (web version). The model ran only one search, yet repeatedly cited the first result in its answer and claimed it had completed three searches. Its statements about the number of tool calls were not reliable.
Problem 2: Excessive searching and hallucination (mobile app). The model ran far more searches than required, 11 in total, and its final answer contained serious factual errors. It invented a core configuration that the car model does not have, namely “dual-chamber air suspension.” By comparison, comparable products from other models at the same time not only followed the specified number of searches but also proactively noted that the vehicle did not have this configuration. Such errors are not uncommon for real users.
This leads to the following takeaways for developers:
- Do not take the model’s self-reported tool-call process at face value. Verify it against the structured logs returned by the API.
- More searches do not mean better results. Excessive retrieval adds noise and increases the risk of hallucination.
- For queries about specifications, parameters, or configurations, verify the model’s output manually or cross-check it against an authoritative data source.
6. Summary of the Evaluation Method
Based on these tests, developers should build their own model evaluation checklist around four dimensions:
- Consistency between output and chain of thought: whether the effects promised in the chain of thought are actually delivered in the code.
- Common sense and physical intuition: whether generated content follows real-world rules and default conventions.
- Convergence in multi-round repair: whether the model can approach a correct solution within a limited number of rounds after receiving feedback.
- Faithfulness of tool use: whether the model reports its search or tool-call counts accurately, and whether its results introduce fabricated facts.
Maintain cautious optimism toward any new-generation model. It may improve on earlier generations and its peers, but limited improvement is the norm. Keeping expectations within a reasonable range and applying a rigorous self-testing process is how large models can be put into production, rather than remaining at the level of impressive demo videos.
