A Practical Guide to Evaluating Code and 3D Generation with Multimodal LLMs

    Learn how to build a reproducible evaluation pipeline for multimodal LLM code generation. This guide covers reproducibility parameters, a weighted scoring rubric, and a hands-on task for generating interactive animated vector illustrations, with pass criteria and implementation guidance.

    1. Why Evaluation Must Be a Reproducible Pipeline

    Judging a model from a single demo tells you little about whether it is ready for production. The same prompt can produce very different results on a rerun or after a dependency version changes. The first step of evaluation is therefore to fix the conditions so that anyone can rerun the test and verify the results.

    This guide abstracts two general task types. The first is generating an interactive, animated vector illustration. The second is building an indoor scene with lighting and shadows purely in code. Together they test code organization, state management, and overall graphics capability. Evaluation focuses on four dimensions: functional correctness, visual quality, engineering maintainability, and observable performance.

    2. Reproduction Parameters and Measurement Conventions

    Record every parameter in the table below for each test run. If any item is missing, the results cannot be compared directly with other tests.

    Parameter What to Record Measurement Convention
    Model name and version The full version string returned by the service Only results from the same version are comparable
    Inference tier Tier name and context length limit All tested models use the same tier
    Prompt Save the original text; do not edit afterwards Character-for-character identical
    Dependency versions Runtime and graphics library versions Based on the lockfile
    Timeouts Record generation timeout and run timeout separately Recommended run timeout: 30 seconds
    Output resolution Width, height, and pixel ratio 1920×1080 recommended for the lighting task
    Sample count Samples per pixel or render iterations Record together with render time
    Runtime environment OS, CPU, GPU, and memory Run all tests on the same machine

    Per-frame latency is the average of 20 runs, excluding the first warm-up run.

    3. Scoring Rubric

    Score each dimension from 0 to 5, then convert to a 100-point scale using the weights below.

    Dimension Weight Checks 5-Point Description 1-Point Description How to Check
    Functional correctness 25% Runs directly; controls work; export plays offline All features work; offline playback has no errors Does not run, or core controls fail Automated run plus manual operation
    Structural quality 20% Module separation, state management, error handling State decoupled from rendering, with parameter validation All logic crammed into one function Manual review
    Visual quality 20% Composition, lighting transitions, materials, animation smoothness No visible hard edges or banding Hard edges, overexposure, or crushed blacks Manual review
    Performance 15% Per-frame latency, frame rate, memory usage Meets the recorded performance budget Exceeds the budget by more than 2× Automated collection
    Maintainability 20% Naming, function responsibility, centralized configuration Adjusting one parameter changes the effect Changes require edits in many places Manual review plus code inspection

    Pass criteria: a total score of at least 70, and a functional correctness score of at least 4. Automated checks handle execution, export, frame rate, and memory; manual review covers composition, lighting, and maintainability. The weights and thresholds above are suggested values—teams can adjust them to their own needs.

    4. Task 1: Animated Vector Illustration

    The task is to generate an animated vector illustration of “an animal riding a bicycle.” The scene includes a seaside background, rotating wheels, and a waving scarf, plus controls for pause, speed adjustment, and day/night switching.

    Acceptance criteria:

    • After single-file export, the animation plays correctly when opened offline.
    • Switching speed from 1× to 4× and back to 1× causes no positional jumps.
    • After pausing and resuming, the wheels and scarf continue from their paused positions with no skipped frames.
    • Switching between day and night does not interrupt the animation loop.

    For implementation, the animation can be split into three layers: the scene layer handles static graphics, the animation layer handles time and state, and the control layer handles pause, speed, and theme. Pseudocode:

    1. SPEED_MIN = 0.25, SPEED_MAX = 4.0, DT_MAX = 0.1
    2. state = { paused: false, speed: 1.0, theme: "day", t: 0, lastTs: null }
    3. clamp(v, lo, hi): return min(max(v, lo), hi)
    4. onFrame(ts):
    5. if state.lastTs == null: state.lastTs = ts