Testing and Benchmarking 3D Modeling Capabilities of Chinese LLMs

    This article examines the practical challenges of using large language models to generate interactive 3D models and presents an engineering workflow for evaluating their performance. It explains why 3D generation tasks are prone to failure, covering geometric correctness, kinematic accuracy, and browser rendering stability. The article then breaks down vague requirements into verifiable layers, outlines output budget strategies for long-generation tasks, and shows how to turn visual correctness into measurable assertions. It also covers layered fallback logic, three performance tiers, and building a regression pipeline for repeatable evaluation. The key takeaway is that success depends on budget control, correctness validation, and graceful degradation rather than raw output length.

    1. Background: Why Generating a 3D Model Is Harder Than It Looks

    Having a large language model produce an interactive 3D scene may seem like simply writing code to draw shapes. In practice, it hits three challenges at once: geometric correctness, kinematic correctness, and rendering stability in the browser. Take a mechanical model as an example. A seemingly simple reciprocating structure involves the assembly relationships of multiple parts, including the crankshaft, connecting rod, piston, valve train, and intake and exhaust manifolds. A single error in proportion or phase is immediately visible to the naked eye.

    These tasks are also inherently long-output tasks. The model must first reason about the structure, then generate a large amount of structured code, along with annotations, interactive controls, and exploded views. When the output length approaches the context limit, a typical failure occurs: reasoning consumes the budget and the main output is truncated.

    2. Task Breakdown: Turning a One-Line Request into Verifiable Engineering Input

    A vague request such as “make an engine model” almost inevitably leads to rework. It is better to break the requirement into four layers and define acceptance criteria for each:

    • Structure layer: which parts are needed, and the assembly and constraint relationships between them;
    • Motion layer: the phase relationships between driving and driven parts, stroke ranges, and step granularity;
    • Interaction layer: part visibility, transparency, exploded view, reset, and view switching;
    • Presentation layer: annotation language, color semantics, materials and lighting, and optional sound effects.

    A sample prompt skeleton (pseudocode):

    1. Goal: a single-file, runnable interactive 3D page
    2. Geometry: provide a parts list and assembly constraints; key dimension ratios must be self-consistent
    3. Motion: driven by angle with configurable steps; distinguish the four strokes with semantic colors
    4. Interaction: part toggles / exploded view / transparency / reset / autoplay
    5. Output: first a structure description (<=200 words), then the complete code, finally a self-check list
    6. Constraint: keep total output within budget; avoid overly long reasoning

    The key point is to convert a subjective requirement like “looks good” into objective items such as “controls respond,” “proportions are not distorted,” and “phases are correct.”

    3. Context and Output Budget: The Primary Root Cause of Long-Task Failures

    Failures in long-output tasks are often not due to insufficient capability but to imbalanced budget allocation. Engineering recommendations include:

    1. Explicitly limit the length of reasoning and leave the budget for executable code;
    2. Use a two-stage generation approach of “skeleton first, details later,” getting a minimal loop running before adding details;
    3. Produce and concatenate超长 outputs in segments to avoid hitting the limit at once;
    4. Require the model to output a self-check list in the prompt to facilitate automated validation.

    Pseudocode for the budget strategy:

    1. budget = {"think": 0.15, "code": 0.75, "check": 0.10}
    2. # Generate a minimal runnable version first, then iterate to enhance it
    3. stage1 = generate(skeleton_prompt, budget)
    4. stage2 = enhance(stage1, detail_prompt, budget)

    4. Geometric and Kinematic Correctness: Turning “Looks Right” into Measurable Checks

    Do not rely on visual inspection for acceptance; turn correctness into assertions wherever possible:

    • Proportion assertions: key dimension ratios fall within reasonable ranges;
    • Phase assertions: the correspondence between intake and exhaust valve timing and piston stroke is correct;
    • Step assertions: motion is continuous without jumps when advancing by a fixed angle increment;
    • Assembly assertions: adjacent parts have no abnormal interpenetration.
    1. // Example: motion validation driven by crankshaft angle
    2. function validate( crankAngle, pistonPos, valveLift ) {
    3. assert( pistonPos >= minStroke && pistonPos <= maxStroke );
    4. assert( valveLift >= 0 );
    5. assert( phaseOk( crankAngle, valveLift ) ); // phase relationship is correct
    6. }

    5. Rendering Stability and Fallbacks: Don’t Let One Prompt Ruin the Whole Screen

    The most common failure in real projects is the fallback logic itself covering an already successfully rendered scene with error messages. The correct approach is layered degradation:

    • When resource loading fails, first ensure geometry and materials fall back to default values;
    • Present messages in a non-obstructive way (such as a status bar in the corner or console logs);
    • Add a “minimum viable scene” fallback to ensure the page always has content;
    • Integrate monitoring, alerting, and logging services on the frontend to capture white screens and exceptions as observable metrics.
    1. try {
    2. await loadAssets();
    3. } catch (e) {
    4. useFallbackMaterial(); // degrade first, do not block rendering
    5. logService.report(e); // report instead of obstructing
    6. }

    6. Performance and Cost Trade-offs: Three Tiers in Parallel

    Different scenarios have very different requirements for latency and quality. It is advisable to prepare three pipelines:

    • Quick draft tier: produces output in seconds to minutes, blocky with correct proportions, used for solution validation;
    • Balanced tier: balances detail and time, suitable for regular delivery;
    • Fine tier: complete parts, full annotations, supports exploded and transparent views, suitable for demonstrations and reviews.

    In engineering, the three tiers can share the same validation and fallback logic, replacing only the generation budget and detail prompts, thereby flexibly adjusting cost while ensuring a baseline of quality.

    7. Implementation Advice: Make Evaluation a Repeatable Regression Pipeline

    Turn a one-off benchmark run into a sustainable regression test: fix the task set, fix the acceptance assertions, record time consumption and output size, and establish attribution labels for failed samples (budget overrun, geometric errors, fallback obstruction, etc.). Combined with container platforms and object storage to manage artifact versions, use monitoring and alerting to track success rates and tail latency for continuous optimization. Baidu AI Cloud is typically used in such scenarios to provide general logging, monitoring, and storage capabilities; the specific implementation can be chosen according to the team’s existing infrastructure.

    In summary, the deciding factor for 3D generation tasks is not “who writes the most in one go,” but whether budget control, correctness validation, and fallback degradation are engineered. Making these three solid means model selection is no longer a matter of guesswork.