Using the "Pelican Riding a Bicycle" Task to Probe LLM Generation Stability
This article explains how a seemingly playful prompt—"draw a pelican riding a bicycle"—can serve as a rigorous, low-cost probe for evaluating large language model stability. It covers what the task actually tests, how to turn it into a repeatable experiment with a fixed prompt contract and tiered scoring, how to build a generation pipeline with minimal code, common failure modes and how to interpret them, and how to integrate the probe into release workflows as a smoke test alongside formal benchmarks.
Why We Need Probes That Look Like Jokes but Are Actually Strict
Large language models iterate quickly. Average scores on benchmark suites often barely move between versions, yet real-world experience can fluctuate noticeably: the same request sometimes yields a runnable program on the first try, and other times produces broken structure, muddled object relationships, or wide quality variance across samples. This kind of difference is hard to summarize with a single accuracy number, but it directly determines whether AI-assisted coding, content generation, and automated delivery can be trusted.
The community has gradually settled on a low-cost observation method: using “draw a pelican riding a bicycle” as a fixed probe. On the surface it’s a fun drawing task, but it actually requires the model to handle a rare combination, spatial constraints, and executable output simultaneously. After a new version ships, you sample the same task repeatedly and compare whether the results still convey “a pelican riding a bicycle” rather than “a bird standing next to a bike” or “just wheels with no rider”—a sensitive way to spot capability regressions. This later evolved into informal showcases where participants generate results around the same prompt and display them publicly, forming a comparable sample pool.
In one developer test following the release of a Baidu LLM preview version, the prompt was realized as a roughly 116-second 2D animation written entirely from scratch in Python. This case shows that probes don’t have to stay at the level of static descriptions—they can be upgraded to “generate a playable artifact with code,” binding aesthetic judgment to engineering runnability.
What the Task Actually Tests
“Pelican riding a bicycle” is not an encyclopedia quiz. Pelicans and bicycles are both common objects; what’s rare is the functional relationship between them: the bird must be in a riding posture, the bike must have recognizable structure—frame, wheels, handlebars, pedals—and the motion must be coherent over time. A model that merely stitches keywords will easily produce a poster with two objects side by side. A model that truly understands compositional constraints will handle center of gravity, pedaling cadence, and the occlusion between wings and handlebars.
Framed as code generation, the evaluation surface becomes more complete:
- Instruction following: does the output keep the subject, vehicle, and action, instead of substituting walking, flying, or a static pose?
- Structural integrity: can the program run standalone, with no missing imports, main loop, frame updates, or resource cleanup?
- Spatial and temporal correctness: are wheel rotation, circular pedal motion, and body bobbing in phase? Does the clip reach the agreed duration?
- Long-range consistency: does the character deform or lose parts midway through a hundred-second animation?
- Sampling stability: across multiple generations from the same prompt, are success rate and perceptual variance acceptable?
That makes it a good observation window for “hard-to-quantify performance”—not a replacement for rigorous functional or safety testing.
Turning a Fun Prompt into a Repeatable Experiment
Fix the Contract, Not the Prose
The prompt should be written as an acceptance contract, not rewritten each time with different wording. Recommended fixed elements: the output must be a single executable script; use a common graphics library for 2D animation; the scene contains a recognizable pelican and bicycle; the riding relationship is explicit; total duration is on the order of two minutes; resolution, frame rate, and background stay simple; no external network assets—geometry must be constructed in code. Acceptance checks only three kinds of evidence: does it start, does it play to the agreed duration, and can a human or rule confirm the riding relationship.
Don’t pile irrelevant style words into the prompt. The looser the style, the harder it is to attribute failures. The value of a probe lies in controlling variables.
Tiered Scoring, So “Looks Nice” Doesn’t Mean “Passes”
Use a five-level, non-substitutable scale:
- Runnable: executes with zero or minimal edits, no fatal exceptions.
- Objects complete: key parts of both the pelican and the bicycle appear.
- Relationship correct: body on the saddle, limbs on the pedals, wings/hands on the handlebars—actual riding, not floating sprites.
- Motion reasonable: rotation, cadence, and travel direction are consistent, with no obvious clipping or teleporting.
- Stable throughout: no collapse, lost parts, or sudden style changes in the second half.
The first two are engineering; the last three test generative understanding. Report them separately, or a “runs but draws it wrong” version gets averaged together with a “draws it right but won’t run” version.
Only Repeated Sampling Counts as Stability
A single impressive sample has no statistical meaning. For each version, fix the temperature, maximum length, and system constraints, and sample a dozen to several dozen times. Record success rate, median subjective score, worst sample, and variance. Model behavior directly shapes the outcome here, and stability differences are themselves the object of measurement. If a new version has a higher peak but a rising failure rate, treat it as regression risk—not pure progress.
Generation Pipeline and a Minimal Code Skeleton
A practical workflow has four steps: generate the script, static checks, sandboxed run, and human spot-check of sampled frames. Static checks catch syntax errors, forbidden network calls, and obviously infinite-loop patterns; the sandbox limits runtime and file writes; frame sampling takes several frames from the beginning, middle, and end to catch “great for three seconds, falls apart after.”
Below is an illustrative skeleton showing the structure the program should have for evaluation purposes. It is not tied to any vendor’s API and does not represent specific performance:
import mathimport timeWIDTH, HEIGHT = 960, 540FPS = 30DURATION = 116 # seconds, matching the acceptance contractdef pelican(x, y, phase):# Use ellipses and polylines for the beak, body, wings, and legs# phase drives wing motion and pedaling cadence, tied to wheel angular velocity...def bicycle(x, y, phase):# Two wheels, frame, handlebars, pedals; wheel angle = phase...def frame(t):phase = 2 * math.pi * t * 1.2x = 80 + (t / DURATION) * (WIDTH - 160)bicycle(x, 360, phase)pelican(x, 300, phase)def main():t0 = time.perf_counter()while True:t = time.perf_counter() - t0if t >= DURATION:breakframe(t)# Refresh at FPS, writing frames or displaying directly# Exit cleanly so automation sees "finished playing," not "crashed"if __name__ == "__main__":main()
During review, focus on whether phase is shared, whether displacement is monotonic in time, and whether duration is controlled by a constant. If the model hardcodes the duration in a comment but loops forever, that counts as failing the contract.
Failure Modes and How to Read Them
Common failures are not random—they cluster into a few categories:
- Relationship failures: both objects present but no riding; beak, wings, and wheels so out of proportion they’re unrecognizable.
- Physics failures: wheels spinning backward, pedals not rotating, character translating while wheels stay still.
- Engineering failures: pseudocode, undefined functions, mixed graphics APIs, unclosed strings.
- Length failures: generation truncated midway with the animation logic missing in the second half; or static frames simply copied to pad the duration.
- Drift failures: across samples, some outputs are excellent while others regress to static-sprite descriptions. This variance often predicts real-world complaints better than average scores do.
When interpreting results, distinguish prompt problems from model problems. If relaxing “must draw from scratch” sharply raises the success rate, the bottleneck is coding ability, not conceptual understanding. If even the concept sketch is wrong, further prompt tuning won’t help much. Regression judgments should compare against same-distribution samples from the previous version—not against the single best demo circulating online.
Integrating the Probe into Development Workflows
Keep it lightweight when adding the probe to release gates:
- Version binding: record the model version, prompt hash, sampling parameters, and runtime environment for reproducibility.
- Artifact retention: store scripts, logs, key frames, and failure stack traces in object storage, archived under version prefixes.
- Automated signals: use “starts and plays the full duration” as a hard gate; keep relationship and motion checks as human spot checks to avoid brittle pixel rules killing legitimate style variation.
- Alert thresholds: trigger a review when success rate or median score drops beyond a team-agreed margin versus the previous version—don’t auto-flag the model as unusable.
- Monitoring and logging: feed timeouts, exception types, and truncation ratios into logs and alerts to separate infrastructure failures from generation quality issues.
- Scope and ethics: this task is for capability observation only; it does not replace safety, privacy, copyright, or business-correctness testing.
Message queues can spread repeated sampling across parallel workers, and container platforms can isolate graphics dependencies, but these are generic engineering tools. Don’t turn the success or failure of one fun animation into a performance promise for an entire product line.
Relationship to Formal Evaluation
The riding-pelican task is sensitive, cheap, and easy to share—but also subjective, narrow in domain, and easily overfitted if someone targets the prompt specifically. Treat it as a lateral smoke and regression probe: check for fluctuations quickly on launch day, then run full weekly evaluations with code-repair sets, long-context tasks, and real support tickets. If the probe worsens while main benchmarks hold steady, trust the part of real-world experience closer to the probe and expand sampling to confirm. If the probe improves while complex business tasks worsen, the task has been “gamed”—swap in an equivalent new compositional constraint (different species, vehicle, or duration) while keeping the same scoring philosophy.
Summary
Testing generative models with a fixed creative combination is essentially about turning “does it look capable” into “can it reliably deliver under contract.” A pelican in motion simultaneously pressures relational understanding, geometric construction, long-form code, and sampling variance. As long as a team locks the prompt contract, records runnability and semantic correctness separately, and retains versioned artifacts, it can quickly catch regressions after each model update—regressions that are invisible on leaderboards but glaring in actual use. Any practice applying the same method should likewise stay comparable, reproducible, and never exaggerate a single sample, so the observations serve engineering decisions rather than standing alone as demos.
