Evaluating Multimodal Models for Code Generation and Visual Aesthetics

    This article explains why a runnable demo is not the same as a deliverable when evaluating multimodal models. It proposes a multi-dimensional framework covering technical correctness, visual aesthetics, 3D consistency, engineering maintainability, and agent task execution, and presents two hands-on cases: animated vector graphics and pure-code light-and-shadow rendering. It also discusses fixed-variable experiment design, technical-plus-aesthetic blind scoring, and practical recommendations for reproducible evaluation and enterprise model selection.

    1. Why a Working Demo Is Not a Deliverable

    The capability boundaries of multimodal large models continue to expand: from single-turn question answering to code generation, visual understanding, 3D spatial reasoning, and multi-step agent task execution. New releases often emphasize improvements in world knowledge, multimodal perception, code capability, and agent capability, but specific parameter scales, training data, and benchmark scores may not be disclosed at the same time. For developers, the real question is not whether a model can generate an example that looks good, but whether it can reliably produce maintainable, verifiable, and reproducible engineering assets under controlled conditions.

    Evaluation should therefore move from single-point demonstrations to multi-dimensional scoring. At minimum, five categories should be covered: technical correctness, visual aesthetics, 3D consistency, engineering maintainability, and agent task execution. Technical correctness focuses on whether the code runs, whether the logic is correct, and whether resource dependencies are controllable. Visual aesthetics focuses on composition, color, lighting layers, and material realism. 3D consistency focuses on whether perspective, occlusion, shadow direction, and camera parameters are self-consistent. Engineering maintainability focuses on module division, naming, error handling, and the cost of secondary modification. Agent task execution focuses on multi-step planning, tool invocation, and failure recovery. Only by separating these dimensions can teams avoid misjudging a result as usable simply because it has a striking image while the accompanying code is unusable.

    2. Experiment Design: Fixed Variables and Two-Layer Scoring

    To make hands-on tests comparable, prompts, inference configurations, runtime environments, and recording templates should be fixed. Prompts should include clear deliverables, interaction requirements, and acceptance criteria. Inference configurations should record randomness, maximum output length, and retry count. Runtime environments should record hardware resources, dependency versions, and offline availability. Aesthetic tasks should not rely on subjective judgment by a single person. A two-layer “technical score + aesthetic score” approach should be used: the technical score consists of objective items such as runnability, structural completeness, and interaction correctness; the aesthetic score comes from multi-person blind review using pairwise comparison or a 1–5 rubric, separating “technically correct but unattractive” from “attractive but non-runnable” results.

    The following pseudocode can be used to build a unified evaluation record:

    1. function evaluate(asset, task):
    2. result = {}
    3. result.runnable = run_in_clean_env(asset)
    4. result.structure = check_required_parts(asset, task.required_parts)
    5. result.interaction = check_controls(asset, task.controls)
    6. result.offline = check_no_network_dependency(asset)
    7. result.visual = blind_review(asset, rubric=["composition", "color", "lighting", "materials"])
    8. result.performance = measure_render_time_and_asset_size(asset)
    9. result.maintainability = review_code_structure(asset)
    10. return result

    The value of this recording method is that the same task can form a traceable record across different models, versions, and prompts. For enterprise model selection, a long-term accumulated evaluation set is more useful as a reference than a single benchmark run.

    3. Case Study 1: Animated Vector Graphics Generation

    Animated vector graphics are a classic task for testing code generation and multimodal understanding. The task can be set as “generate a vector graphic of an animal riding animation, including wheel rotation, scarf flutter, pause, speed adjustment, and day/night switching.” During evaluation, it is not enough to check whether the image is complete; the structure and animation logic must also match.

    First, structural completeness. The animal, riding vehicle, background, and interactive controls must all be present, and limb connections, occlusion relationships, and layer order must be reasonable. Common failures include incorrect connections between animal limbs and handlebars, background elements occluding the main subject, and controls overlapping the canvas.

    Second, animation correctness. Wheel rotation direction should match the direction of motion, scarf flutter phase should be linked to speed changes, and day/night switching should change lighting rather than simply replacing the background color. If the animation phase becomes disordered after the speed is set to 1.75x, it indicates that the animation parameters do not share a unified timeline.

    Third, offline usability. The deliverable should run independently in an offline environment and not depend on external fonts, images, or scripts. Scalable vector graphics are suitable for this type of task, but embedded resources, animation declarations, and interaction scripts must be checked for self-containment.

    Fourth, engineering maintainability. Interactive controls should not be tightly coupled with drawing logic, and states such as speed, day/night, and pause should be managed centrally. If all logic is written in one huge function, the cost of secondary modification will be high.

    From recent hands-on tests of preview multimodal models, such tasks can already produce runnable, interactive, and offline-playable assets, indicating that code generation and multimodal perception have indeed improved. However, “can generate” is still not the same as “deliverable”: physical details, layer organization, and aesthetic consistency still require human acceptance.

    4. Case Study 2: Pure-Code Light-and-Shadow Rendering

    Drawing indoor light and shadow purely with code is a more comprehensive task that is closer to “code capability + visual aesthetics + 3D understanding.” The task can be described as “use code to draw an afternoon indoor light-and-shadow scene, showing window-grid projection, furniture occlusion, and material layers.” Common technical routes include real-time rendering through browser graphics APIs, CPU ray tracing, or hybrid approaches. Evaluation should focus on the following dimensions.

    Geometry and perspective: room boundaries, window grids, furniture, and floor vanishing points should be consistent; furniture should not float above the floor; and window-grid projection direction should match the light source direction. Common problems include overly hard wall-corner lines, broken floor parquet perspective, and incorrect contact relationships between potted plants and the ground.

    Lighting and shadows: high-quality results should have brightness transitions, softened shadows, and a sense of indirect lighting. The bright area near the window should fall off naturally toward the darker interior, and shadow edges should not look like hard-edged textures. If hard black lines appear at wall corners, it usually indicates insufficient shadow sampling or missing ambient light.

    Materials and color: wood floors, walls, fabric, and plants should have different reflection and roughness. Color layers should serve the afternoon atmosphere rather than simply increasing saturation. If potted plants and floors look like a “just-assembled stage set,” material realism and narrative detail are insufficient.

    Performance and reproducibility: high-fidelity offline rendering may take hours, while real-time graphics APIs are faster but compromise on quality. Evaluation should record rendering time, resolution, sample count, and resource usage; it should not show only the final image.

    From hands-on observations, some preview models can already build a basic spatial structure, and slanted window-grid light can create a visual focal point, but they still lag behind the frontier in shadow softening, material details, and overall aesthetics. 3D capability has improved, but complex occlusion, indirect lighting, and material microsurfaces remain weak points; slightly weaker aesthetics is not a single-point issue but the combined result of composition, color, and lighting layers.

    5. How to Decompose 3D and Aesthetic Capabilities

    3D consistency can be quantified as follows: whether camera parameters are explicit, whether perspective is unified, whether occlusion relationships are correct, whether shadow direction matches the light source, and whether material reflection is physically plausible. Aesthetic capability can be divided into composition balance, color relationships, lighting layers, material narrative, and detail restraint. The two should not be conflated: technically correct but visually dull results indicate insufficient aesthetics; good-looking results with structural errors are technically unusable.

    Blind pairwise comparison is recommended: generate multiple results under the same prompt, hide the model source, have reviewers score technical quality and aesthetics separately, then calculate a consistency coefficient and remove samples with excessive subjective variance. For 3D tasks, a “structure checklist” can be added to check perspective, occlusion, shadows, and materials item by item. For code tasks, “clean-environment execution” and “secondary modification” can be added to observe whether the model output has engineering usability.

    6. Practical Engineering Recommendations

    First, establish a fixed task set. It should include at least four categories: animated vector graphics, pure-code rendering, 3D scene construction, and multi-step agent tasks, with 10–20 prompts and acceptance checklists retained for each category. Second, combine automated checks with human blind review. Automated checks handle runnability, resource dependencies, and performance records, while human blind review handles aesthetics and narrative quality. Third, record versions and cost. Repeat the same task across different versions and record time consumption, failed retries, and modification cost. Fourth, reproduce experiments in general cloud environments with container platforms, object storage, logging, monitoring, and alerting to ensure environment isolation and traceability; for example, container and object-storage capabilities in a general cloud environment can host the evaluation pipeline. Fifth, add failure-recovery checks for agent tasks, observing whether the model can identify errors during multi-step planning, roll back, and re-invoke tools.

    7. Conclusion

    The combined hands-on tests show that the new generation of multimodal models has made clear progress in code generation, interactive assets, and basic 3D spatial representation, and can complete runnable, interactive, demo-level deliverables. However, aesthetic consistency, complex light and shadow, material realism, and engineering maintainability remain key weaknesses. Compared with the frontier level, the gap is not in “whether it can generate” but in “whether it can stably generate high-quality, maintainable, acceptance-ready engineering assets.” Therefore, teams should abandon single-demo judgment when selecting models and shift to a multi-dimensional, reproducible evaluation system with blind review. Only by measuring technical correctness, 3D consistency, aesthetic quality, and agent execution capability separately can reliable acceptance criteria be established for real projects.