🧪 AI Advanced AI Writer Simulation
Watch an AI writer choose its next words: a real beam-search decoder branches, scores and prunes candidate story continuations in 3D, with live perplexity and originality readouts.
This simulation puts a real text-decoding algorithm on stage. Instead of hand-waving "the AI thinks of the next word," it runs an actual beam-search decoder: at every step each active beam branches into several candidate next words, every candidate is scored by a cumulative log-probability (with a repetition penalty and temperature-controlled exploration noise standing in for a trained language model's next-token distribution), and only the top-K highest-scoring paths survive into the next round while the rest are visibly pruned. Widen the beam and the writer considers more alternatives before committing; raise the diversity penalty and the surviving beams are pushed away from repeating each other's words, which is exactly the mechanism a real AI writer needs to trade off coherence against originality. Live readouts track the best beam's cumulative score and perplexity alongside a lexical-diversity "originality" score computed across every beam's final sentence.
This simulation explores the use of AI in creative writing. Users will guide an AI writer through various tasks, examining its ability to generate coherent and engaging content while considering issues of authorship and originality.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install