How to Evaluate LLM Motion-Graphics and Interactive UI Code
A practical way to compare large language models on interactive scenes, short motion graphics, and interface design: fix prompts and environments, repeat runs, and score composition, motion, interaction, performance, maintainability, and stability instead of judging a single lucky screenshot.
What the Evaluation Should Answer
Once coding assistants move into visual and motion-graphics work, developers usually care less about “can it emit a page that runs?” and more about three harder questions: whether the result looks finished, whether interaction is actually controllable, and whether later engineering can take it over. A single social-media screenshot, or an intense hour of trials after a canary route happens to hit, easily mixes luck, on-the-spot prompting, and cache hits. To compare model generations on motion, interface aesthetics, and short graphic narratives, “experience” has to be broken into observations that can be repeated.
This article does not tie the method to any specific model name or vendor API. It only discusses capability shapes that are already common in the industry: natural-language generation of interactive front-end scenes, short motion graphics, and interface skeletons with color and hierarchy. The conclusions are meant for selection and acceptance, not for judging one lucky draw.
Why a Single Canary Session Is Unreliable
A canary or gray release means the same account can hit different routes, sampling temperatures, or safety and length policies at different times. Even a heavy daily user cannot treat “the run I happened to get” as the stable distribution of that route. Common biases include:
- Time-window bias. Near quota refresh or traffic peaks, latency, truncation, and retry policy change how complete the output is. Visual completeness then gets misread as an intelligence gap.
- Prompt-leak bias. Reproducing a prompt after seeing someone else post it is an open-book exam on a public item bank. It is not comparable to a blind test.
- Task-order bias. Running many cases in one hour stacks context, local cache, and manual touch-ups. Later cases are not independent.
- Aesthetic bias. Striking particles and glow easily hide layout errors, poor readability, and dead interaction zones.
To compare real experience gaps, fix the prompt, the runtime, and the acceptance checklist. Repeat each prompt several times and report the median, not the best run.
Task Design: Three High-Separation Cases
What usually draws the most attention is whether the code can survive design-oriented stress tests. That pressure can be reduced to three tasks that are orthogonal to each other.
1. An Interactive Spatial Atmosphere
The prompt should state that composition, light, materials, particles, animation, and spatial mood all serve one theme. Mouse or pointer input may change viewpoint, focus, or parameters, but the interaction must be discoverable and reversible. Do not write the constraint as “creativity is unlimited.” The model will then pile effects into an unmaintainable giant file. Stronger constraints are: a single file or a few modules, no proprietary external runtime, a main loop that can be paused, and an interactive frame rate in a mid-range browser.
Acceptance checks that these hold at the same time:
- There is a clear visual subject, not uniform noise.
- Light and color have layers: key light, fill, ambient fog, or shadow can be distinguished.
- Materials are not a single flat color. Basic variation in highlight, roughness, or transparency is enough; strict physical correctness is not required.
- Particle count, lifetime, and direction match the narrative instead of spraying without meaning.
- Pointer interaction changes state. It does not rebuild the whole scene on every move and cause stutter.
A minimal state boundary is enough if it is testable:
scene_state:camera: orbit | focustime_scale: 0.0 .. 2.0pointer: normalized_x, normalized_yacceptance:pause_keeps_posepointer_does_not_reset_clockno_layout_jump_on_resize
2. A Motion-Graphics Piece of About Fifteen Seconds
If the task is a portfolio-style sequence, the hard part is time structure, not the number of filters. Within about fifteen seconds a viewer should see a beginning, development, turn, and close: a title or graphic motif appears, rhythm changes, information density rises and falls, and the ending leaves space or holds a frame. Do not only ask whether the motion looks busy. Record a timeline.
Log these by hand or with a script:
- Whether 0–3 seconds establishes a recognizable symbol.
- Whether the middle has rhythmic accents rather than a constant loop.
- Whether elements enter and leave with easing rather than teleporting.
- Whether text, if any, stays readable while it moves.
- Whether the ending returns to the motif instead of cutting to black to fill time.
Motion curves can be described with common easing names, such as slow-fast-slow. Do not put a vendor preset-library name into the acceptance criteria. If the generated code hard-codes every animation as magic numbers and the duration cannot be adjusted, treat it as a demo, not a reusable asset.
3. Interface Aesthetics, Color, and Information Hierarchy
Motion skill and interface skill are often conflated. Interface tasks should stand alone. Given a short product scenario—for example a task panel, a monitoring summary, or a creation workspace—require a primary-and-secondary palette, contrast sufficient for body text, aligned components, and empty and loading states. Do not allow full-screen particles to hide the information architecture.
A checklist can include: no more than one accent system; enough contrast between text and background; hit targets on the order of common touch minimums; motion that does not block the primary action; readable error messages. A visually high-scoring screen that cannot complete the main click path should lose a large amount of engineering score.
Metrics: Splitting “Looks Good”
Use weighted dimensions rather than one overall impression.
| Dimension | What to observe | Common failures |
|---|---|---|
| Composition | Subject, whitespace, visual flow | Elements stuck to edges, piled in the center |
| Light and color | Value hierarchy and palette harmony | Clashing saturation, pure black and pure white |
| Motion | Duration, easing, rhythmic accents | Linear constant speed, no ending |
| Interaction | Discoverable, reversible, state preserved | Pointer movement resets the scene |
| Performance | Obvious frame drops during interaction | Unbounded particles, repeated allocation |
| Maintainability | Module boundaries, tunable parameters | Unreadable single-file monolith |
| Stability | Variance across repeated generations | Only one stunning sample |
Weights should follow the use case. Portfolio demos can raise composition and motion. Interfaces that will ship in a product should raise readability, maintainability, and stability. Comparing only the best screenshots treats variance as the mean.
How to Write a Fair Prompt
A useful prompt states the goal, constraints, prohibitions, and acceptance sentences. It should not rely on emotional lines such as “go all out.” Emotional wording increases sampling randomness, and routes differ in how sensitive they are to rhetoric, which distorts the comparison.
A fairer structure is:
- Delivery form: a page that opens in a browser, or an equivalent graphics script, with the dependency scope declared.
- Duration or interaction: a fifteen-second loop, or a scene that keeps running.
- Required elements: for example one geometric motif, a short title, and one pointer response.
- Problems to avoid: unreadable tiny type, no pause, layout that collapses with the window, and external resources you cannot control.
- Self-check: ask the model to list the timeline or state machine in code comments so a person can verify it, rather than generating another piece of marketing copy.
Use the same prompt verbatim in a blind test. The only allowed manual step is to supply a neutral host if the environment lacks a generic one, such as a local static-page server, without changing the creative content.
How to Tell Whether a Gap Is Real
When two outputs look very different, classify the gap before concluding.
- Completeness gap: one run is truncated and one is complete. That is usually length and routing, not a design-ability gap.
- Style gap: both are complete, but one is restrained and one is loud. That is preference, not an error, unless the prompt already fixed the style.
- Structure gap: one has a timeline and state, the other only random timers. This is closer to a capability gap.
- Engineering gap: one changes rhythm by changing parameters; the other collapses if one place is edited. For product selection, this should outweigh spectacle.
Only if a structure gap remains stable across repeated samples can you say one experience is ahead of or behind the other. With a single sample, the honest statement is: this draw hit a higher or lower sample and cannot be extrapolated.
Bringing Results Back into Engineering
After a run passes evaluation, still treat the output as a draft:
- Extract colors, durations, and easing into named constants instead of scattered literals.
- Cap particle and geometry counts, and pause the main loop when the window is hidden, to avoid pointless power use.
- Add two or three assertion-level checks for interaction: pause keeps pose, resize does not reset the clock, and the primary button stays clickable.
- Record the prompt, sampling settings such as temperature if the host exposes them, and the date, so you can regress. Do not treat an irreproducible chat log as the only specification.
If the team already has a design system, require generated code to follow the existing ideas for spacing, type size, and color tokens, even when those ideas are expressed as numeric constants. Do not start a conflicting visual language. Otherwise a page that “looks great” will be rebuilt at integration time.
Fitting the Work into a Cloud Development Flow
When this kind of generation enters continuous integration, object storage can keep baseline screenshots and recordings, a message queue can asynchronously trigger repeated generations, a container platform can pin the browser version, and logs plus monitoring alerts can surface generation timeouts and spikes in front-end errors. These are generic capability categories and do not depend on one proprietary console vocabulary. The pipeline should compare only the metrics you defined: completeness, whether timeline markers exist, basic performance thresholds, and a coarse accessibility contrast check. Do not automate “how stunning it feels” as the only gate. That rewards overfitted glare.
General cloud resources of the kind offered by Baidu AI Cloud can hold artifact archival, task orchestration, and runtime isolation. Model routing and the prompts themselves should still be versioned on the application side. Do not write unconfirmed performance numbers into a report, and do not treat one internal canary as an external commitment.
Summary
Real gaps in motion and interface generation come from orthogonal tasks, fixed prompts, repeated sampling, and scored dimensions—not from the excitement of a canary hit. Interactive spatial scenes are judged on state and light; a fifteen-second graphic piece on time structure; interface tasks on hierarchy and readability. Stunning samples can be kept as an upper-bound reference. Selection and scheduling should follow the median, the failure modes, and maintainability. Done this way, “it feels much stronger” becomes a technical conclusion that can be reviewed again.
