<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Werner Bogula on Medium]]></title>
        <description><![CDATA[Stories by Werner Bogula on Medium]]></description>
        <link>https://medium.com/@bogula?source=rss-be21d2db28e4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*r1LJPK-aHzUmSdPA.</url>
            <title>Stories by Werner Bogula on Medium</title>
            <link>https://medium.com/@bogula?source=rss-be21d2db28e4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:25:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bogula/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Generative AI for Movie Content]]></title>
            <link>https://medium.com/@bogula/prompting-movies-to-life-ab8c5d90d992?source=rss-be21d2db28e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab8c5d90d992</guid>
            <dc:creator><![CDATA[Werner Bogula]]></dc:creator>
            <pubDate>Sat, 12 Aug 2023 22:33:25 GMT</pubDate>
            <atom:updated>2023-08-13T22:01:20.857Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Prompt-Chaining with Cohere, SD and GPT-4</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQFEcSu8e2_OLomXoB52GQ.png" /></figure><p>Early stage jaw droppers of Generative AI like <a href="https://thispersondoesnotexist.com/">thispersondoesnotexist.com </a>and <a href="https://thishousedoesnotexist.org/">thishousedoesnotexit.com </a>are almost forgotten as prompting visuals of all kinds has become a commodity with Stable Diffusion and Midjourney. Now, more complex content like music, animations and video are in the focus of developers and creatives. The pinnacles of human generated content: The “Next Harry Potter” or 120 min feature films are still out of reach even though we have long context LLMs like Claude (100k) and video generators like Runway. Complex cultural products are almost never created end-to-end but in a structured way, which today has been industrialized to maximize the creative output in the content factoried of Streamberry ;-) and the like. Usually there is a clear division of labor among treatment writers, plot-designers, character creators, location scouts and dialog writers.</p><p>With Generative AI we can mimick these different jobs by setting up a creative pipeline with different models, necessarily with wiggle room for human intervention. The tools and APIs of the big LLM providers, image AIs and frameworks like LangChain/LlamaChain are also becoming handy to interface different models for more complex jobs.</p><h4><strong>Cohere proves: LLM-interfaces can be beautiful</strong></h4><p>One of the providers, leading this development is Cohere who makes a statement by replacing the (ugly) 90s-JavaScript-style interfaces of the competitors with the most beautiful LLM interface that is on the web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ox6co8nqPg8OzOU8ROnA8g.png" /><figcaption>Cohere is just beautiful — Rounded corners Steve has lived and died for plus their own custom font</figcaption></figure><p>Cohere does not only take the lead in their UI. Their educational material, examples and full fledged use case templates are also top notch and inspire for new ideas. We follow one of these ideas to generate movie related content. In their docs Cohere discusses a notebook that generates a drama or movie script from a simple plot summary by adding successively character and location descriptions in order to finally generate dialogue. A side track is creating visuals with SD. I followed along the whole pipeline to generate a Bladerunner/Matrix style science fiction movie. Spoiler: I did not succeed to get really good elaborated plot points and convincing dialogue, but a lot of visual material that stunned me.</p><h4><strong>Creating Movie Bits with Prompt-Chaining</strong></h4><pre>log_line = &quot;&quot;&quot;Scifi cyberpunk story about a young female hacker Lou.<br>A virus is about to be released by a drone hovering over the US <br>and will kill all non vaccinated people in America. The only way to stop it is to break into the control <br>center of the drone and steer the drone into the ocean. The terrorist who created the virus <br>infiltrated the computer of Lou and want to kill her, <br>because she is about to thwart their plan. <br>&quot;&quot;&quot;</pre><p>As a linguist and literary scholar with a focus on old school constructivist and formalist story therories, I like that Cohere starts with the theory rather than with 99 clever prompt ideas. Everybody in writing theory know their basics like: Aristotles’ 5-act theory, Gustav Freytag’s “Technik des Dramas” etc. The “Hero’s Journey” has even made it into marketing and advertising.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z568s9iGGEoaeDSlFHotQA.png" /><figcaption>Drama structure after Freytag (left) and Hero’s Journey (right)</figcaption></figure><p>Cohere models their pipeline after ideas of generating complex narrative drama structures layed out in this paper: <a href="https://arxiv.org/abs/2209.14958?ref=txt.cohere.com">Co-Writing Screenplays and Theatre Scripts with Language Models: An Evaluation by Industry Professionals</a>.</p><p>The pipeline is realized by their own base and dialogue models and enriched by calls to the Dreamstudio API. By the way, the Cohere tutorials are co-designed by <a href="https://medium.com/u/34369d020458">Jay Alammar</a>, whom we all love since he explained us transformers in the same beautiful visual style, that we now find in Cohere’s materials. And here is their plan:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KH9ZIFVAclJa1p6fKPLbeg.png" /><figcaption>Structured pipeline with prompt chaining.</figcaption></figure><p>From a bare-bones plot description (summary) you create a set of characters, locations and plot points (story beats), all of this are fed forward into a conversational model that creates the dialogues and an image generator like SD that dreams up the visuals.</p><p>I followed Cohere’s plan up to the dialogue part, which I found a bit unconvincing. But that is no real surprise to me, because real good dialogue usually is based in a deep structure anchored in the personality and backstory of the characters and the overall style idea of the writer. Aspects that still are not reflected in GenAI models of today. See sample below.</p><blockquote>DIALOG: Lou’s condo, San Francisco <br>Lou: Hey, what’s up with the internet today? It’s acting all weird. <br>Milt: Yeah, it’s like someone’s trying to hack into everything. <br>Lou: Oh, that’s just the government trying to track us down. They can’t handle us having privacy. <br>Milt: Wait, that’s not what I meant. <br>Lou: Oh, right. Well, it’s like there’s this virus that’s been going around, and it’s been causing all sorts of problems. People are getting sick, and the government’s been trying to cover it up. <br>Milt: That’s right. It’s a virus that’s been created by the government, and they’re trying to use it to take over the world. <br>Lou: That’s crazy! <br>Milt: I know, but it’s true. <br>Lou: That’s terrible! We need to do something to stop it. <br>Milt: That’s what I’m here for. I’m going to help you stop it. <br>Lou: Okay, let’s do it.</blockquote><p>Instead of pepping up the rather bland dialogue, I lingered a bit longer on the visual material and finally generated some movie soundtracks, totally in the vibe of the prompt chaining idea. Rounding everything off with a movie poster. Finally, everything was fed into ChatGPT to create an “Amazon” movie review.</p><p><strong>Learnings</strong>: Surface and supportive items like visuals e.g. consistent mood boards, sound track and poster work pretty well and they benefit from the prompt-chaining idea. Deeper structures like really good plot points and dialogue need more thought and work to be done.<br>And here are the results of a 6-hour work session on a rainy Saturday.</p><h3><em>N30N: A Cyberpunk Delight</em></h3><p>From the neon-lit streets of Los Angeles to the eerie tranquility of the Nevada Desert, “N30N” is an electrifying ride that beautifully marries the age-old themes of courage, betrayal, and hope with a futuristic cyberpunk setting. Director Ville De Neuve, known for his knack for visual storytelling, offers a canvas bursting with colors and riddles, inviting viewers into a world both familiar and entirely alien.</p><h4><strong>Mood boards</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lepaWb8516YCppWmCzLUMQ.png" /><figcaption>The Bitch|Craft is the favorite hangout of hacker Lou. The feminist Hacker Club where it all begins</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*80K0dajgyDA1B9QM2MfQ6Q.png" /><figcaption>The police departement of the Sprawl, understaffed and overwhelmed by it’s duties</figcaption></figure><h4><strong>The Cast</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a3PdSuRWSnlfxmyf9mzKDw.png" /><figcaption>Hi-Lu Chan is Lou is the new NEO, a full stack hacker prodigy</figcaption></figure><p>Hi-Lu Chan’s portrayal of Lou, the coding prodigy, is a standout. She brings depth and nuance to a character caught between her white-hat hacker principles and a conspiracy that thrusts her into unforeseen dangers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gx1bUD6CpimligsCdjkLSA.png" /><figcaption>Hard-boiled with a heart — Morgan Washington as officer Milt Owen</figcaption></figure><p>Opposite her, Milt Owen (brilliantly portrayed by Morgan Washington whose grounded performance anchors the story) is a testament to resilience and duty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DPRZyq3ZBdVj1GTNpAlCbw.png" /><figcaption>Natalia Bondartchuk as double agent Mosehammer</figcaption></figure><p>However, the real scene-stealer might be the character of Mutha, the humanoid robot. A beautiful embodiment of AI, Mutha serves as a subtle reminder of the evolving dynamics between man and machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x7iANGtGr_w_coA8gAfLtA.png" /><figcaption>Mutha fights villains and rust</figcaption></figure><h4><strong>The Soundtrack</strong></h4><p>Hilda Goosenosedóttir’s score is hauntingly beautiful, adding layers of emotion to every scene. Each pulsating beat and synthesized tune enhances the film’s atmosphere, echoing the complexities of the digital age.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F1591694979%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fklepptenberger%2Fsoundtrack-for-n3on%3Fsi%3D141a1c3210774f0eb0806774e5710288%26utm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-thzn1zw9F1lBn3zJ-tnJudg-t500x500.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba420e7fb887c6c134b2b0f5015429c1/href">https://medium.com/media/ba420e7fb887c6c134b2b0f5015429c1/href</a></iframe><p>If there’s a criticism, it would be towards the middle act which, at moments, feels a tad stretched. But this minor hiccup is overshadowed by the intense climax and visually spectacular set pieces.</p><p><strong>Verdict</strong>: “N30N ” is a masterclass in cyberpunk filmmaking. It’s a thrilling escapade that challenges perceptions while delivering a visceral cinematic experience. It’s more than just a movie; it’s a reflection on the digital age and our place within it. A must-watch for both sci-fi enthusiasts and those seeking a profound narrative. ⭐⭐⭐⭐½ out of 5.</p><p>Alternative Soundtrack for Bladerunner fans (Vongolis Style):</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F1591997443%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fklepptenberger%2Fsound-track-for-the-movie-n3on%3Fsi%3Da9698cd269d94f079f747059e8df89fd%26utm_source%3Dclipboard%26utm_medium%3Dtext%26utm_campaign%3Dsocial_sharing&amp;image=https%3A%2F%2Fi1.sndcdn.com%2Fartworks-BDcI3aWyhUaKMl9D-sRXLQw-t500x500.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/81c4095c7a51a43f5b6ee6867e1fde48/href">https://medium.com/media/81c4095c7a51a43f5b6ee6867e1fde48/href</a></iframe><p><strong>The movie poster</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGhqUlH8tFgAAOWJ55uPvw.png" /></figure><p>Modeled after Cohere’s brilliant learning materials:</p><p><a href="https://docs.cohere.com/docs/chaining-prompts#brainstorming-story-ideas">Chaining Prompts</a></p><p>Other tools used:<br>ChatGPT, StableDiffusion’s Dreambooth, Canva, AIVA.AI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab8c5d90d992" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sechs Ballermann-Hits für $5.86!]]></title>
            <link>https://medium.com/@bogula/sechs-ballermann-hits-f%C3%BCr-5-86-d1fe15516572?source=rss-be21d2db28e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1fe15516572</guid>
            <category><![CDATA[ik]]></category>
            <category><![CDATA[creativeai]]></category>
            <category><![CDATA[gpt-3]]></category>
            <category><![CDATA[layla]]></category>
            <dc:creator><![CDATA[Werner Bogula]]></dc:creator>
            <pubDate>Wed, 03 Aug 2022 15:54:07 GMT</pubDate>
            <atom:updated>2022-08-03T20:32:57.032Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Das Sprachmodell GPT-3 schreibt den Skandal-Song Layla noch mal neu.</strong></h4><p>Laut plärrte es aus dem Sommerloch wie früher nur am Ballermann. Für ein paar Wochen wollte der Ohrwurm „Layla” (über 60 Mio. Streams bei <a href="https://www.offiziellecharts.de/news/item/1120-60-millionen-streams-fuenf-mal-nummer-1-musikkonsumenten-machen-layla-zum-sommerhit-2022">Spotify</a>) einfach nicht mehr weg gehen, wie ein häßlicher Sangriafleck auf dem Badetuch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JpOQms0oWBXx41bXkJGePA.jpeg" /><figcaption>Feiern ohne Reue mit den Layla-Alternativen vom Robo-Texter (Foto: Jade Masri / unsplash)</figcaption></figure><p>Im Laufe der hochsprudelnden „Debatte” um Hoch- und Unkultur wurde der Song zur Waffenlieferung im Kulturkampf zwischen selbsternannten Vertretern der Freiheit des Wortes und Aktivisten gegen die Verherrlichung menschenverachtender Textzeilen. Große Worte wurden den dünnen Zeilen des Songs beigefügt: Zensur, Sexismus, Patriarchat! Was tun? Einfach laufen lassen, canceln oder im Woke-Wok auf mediterrane Schonkost runterköcheln?</p><p>Als Hüter des Kulturlevels auf mindestens Lehrerzimmerniveau beauftragte <a href="https://www.zeit.de/zeit-magazin/2022/31/ballermann-hits-mallorca-layla-alternativen">DIE ZEIT</a> mehrere Schriftsteller und Schriftstellerinnen damit, wertekompatible Ballermannhits zu schaffen. War klar, dass einzig <a href="https://www.zeit.de/autoren/S/Heinz_Strunk/index">Heinz Strunk</a>s Version „ Breit in 100 Sekunden” Hitpotenzial entfaltete, und nicht die Texte von <a href="https://www.zeit.de/autoren/K/Carla_Kaspari/index">Carla Kaspari</a>, <a href="https://www.zeit.de/autoren/K/Wladimir_Kaminer/index.xml">Wladimir Kaminer</a>, <a href="https://www.zeit.de/autoren/W/Jan_Weiler/index">Jan Weiler</a> oder <a href="https://www.zeit.de/autoren/F/Mirna_Funk/index">Mirna Funk</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FD_3Xebq7uCc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DD_3Xebq7uCc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FD_3Xebq7uCc%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/998295c5d475ea2ea3c5108cc4be754d/href">https://medium.com/media/998295c5d475ea2ea3c5108cc4be754d/href</a></iframe><p>Aber warum für so einen eindeutigen Fall von Gebrauchstext, Edelfedern oder überhaupt die edleren Teile des Menschen, also Haupt- und Stammhirn, bemühen, wo es doch seit Jahren Elektronenhirne gibt, die verheißen, dem Menschen eintönige, wiederkehrende geistige Drecksarbeit abzunehmen. Dittsche würde sagen: „KI ist das Stichwort! Weltidee!”</p><p><strong>Auftritt GPT-3<br></strong>Mit GPT-3 gibt es seit 2019 eine textgenerierende KI von Open AI, die mittlerweile für jeden im Internet verfügbar ist: <a href="https://beta.openai.com/">https://beta.openai.com</a>. GPT-3 wurde auf der Basis eines riesigen Textumfangs (Große Teile des Internet + Wikipedia + digital verfügbare Bücher ) mit Hilfe der KI-Technologie Transformer dazu trainiert, auf der Basis einer vorgegebenen Wortfolge, das jeweils nächste Wort vorherzusagen; ein bisschen so wie die Wortergänzung im Handy [Guten -&gt; Morgen] nur in groß. Also ganz groß. Die Kosten dafür lagen im zweistelligen Millionenbereich. Was für den enormen Aufwand als ziemlich triviale Aufgabe (next word prediction) klingt, führt in der Praxis zu erstaunlichen Ergebnissen. Denn auf der Basis des extrem komplexen statistischen Modells von GPT-3 und der gewaltigen Menge an Trainingsdaten (mehr als 400 Milliarden Wörter) können Texte erzeugt werden, die zum Teil von menschengemachten Texten nicht mehr unterschieden werden können. Mittlerweile gibt es Software-Entwicklungen wie z.B. neuroflash.com, die ähnliche Fähigkeiten für Werbetexter und Marketingwriter als kommerzielle Software zur Verfügung stellen.</p><p>Klar, dass so eine kostspielige Spielerei wie GPT-3 nicht auf Dauer komplett kostenlos bereitgestellt werden kann. Aber für ein paar Dollar (in unserem Fall $5,86) kann jeder mit der gigantischen Textgenerierungssoftware kreativ werden und spielen. Und das geht folgendermaßen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dMVT9ek0LBJt9cDlwOVjig.png" /><figcaption>Der GPT-3 Playground — eine simple Oberfläche für kreative Höhenflüge</figcaption></figure><p>GPT-3 funktioniert so, dass man einen sogenannten <strong>Prompt</strong> vorgibt und dann per Knopfdruck das Modell anweist, eine Ergänzung in vorgegebener Länge (z.B. 256 Zeichen) zu generieren.</p><p>Unser Plan: Wir komponieren einen Prompt, der den Anfang von Layla beinhaltet und weisen GPT-3 an, ganz tief ins kollektive Unbewußte der abendländischen Kultur, vulgo das Internet, hinabzusteigen, und uns in Analogie zum Experiment der ZEIT (s.o.) ein paar echte Ballermannkracher rauszuhauen, aber mit Niveau!</p><p>Das Interessante an den in GPT-3 verwendeten Transformer genannten KI-Modellen ist, dass diese strukturelle Textzusammenhänge (also die Abfolge von Text-Strophe und Refrain in Liedtexten) sowie die statistischen Zusammenhänge von Bedeutungskomplexen ( <em>Faust -&gt; Mephisto</em>, aber auch: <em>Puff -&gt; Sex</em> oder <em>Ballermann -&gt; Saufen</em>) gelernt hat und diese bereitwillig wieder ausspuckt, wenn man entsprechende Prompts formuliert. Packt man in diesen Prompt noch Zusatzsignale hinein wie „Im Stile von…” dann fließen aus dem nahezu unendlichen Schatz der im Modell gespeicherten Zusammenhänge Stilelemente mit ein, die den generierten Text in der einen oder anderen Weise färben.</p><p>Im GPT-Playground stellen wir zunächst die einfache Aufforderung ein, das Vorgegebene fortzuschreiben. Wir fangen erst mal mit einem neutralen Prompt an um zu sehen, was GPT zu Layla so einfällt.</p><pre>Schreibe diesen Songtext weiter:</pre><pre>[Strophe 1: Schürze &amp; DJ Robin]<br>Neulich in der Stadt stand da ein Mann<br>Er schaute mich sehr glücklich an<br>„Hey, komm mal her&quot;, sagte er zu mir<br>„Das ist mein Laden, mein Revier&quot;<br>„Mein Junge, ich hab&#39; ein Geheimnis für dich&quot;<br>Was er von mir wollte, wusste ich nicht<br>Ich sah nur das Grinsen in seinem Gesicht<br>„Was ich dir sage, glaubst du mir nicht&quot;</pre><pre>[Refrain: DJ Robin &amp; Schürze]<br>Ich hab&#39; &#39;n Puff<br>Und meine Puffmama heißt Layla<br>Sie ist schöner, jünger, geiler<br>La-La-La-La-La-La-La-Layla<br>La-la-la-la, die wunderschöne Layla<br>Sie ist schöner, jünger, geiler<br>La-la-la-la, die wunderschöne Layla<br>La-La-La-La-La-La-La-Layla<br>La-la-la-la, la-la-la-la-la-la-la-la-la</pre><pre>Die Software braucht keine 10 Sekunden, um dass hier auszuspucken:</pre><pre><strong>[Strophe 2: Schürze]</strong></pre><pre><strong>Als ich eintrat, war es dunkel und kalt</strong><br><strong>Und auf dem Boden lagen Dollarnoten</strong><br><strong>Ich hörte leise Musik und ein Mädchen weinte</strong><br><strong>Und dann sah ich sie, die schöne Layla</strong><br><strong>Sie stand in der Ecke, allein und verlassen</strong><br><strong>Und in ihren Augen stand Angst und Schmerz</strong><br><strong>Doch als sie mich sah, da lächelte sie</strong><br><strong>Und ich wusste in diesem Moment</strong><br><strong>Dass ich sie retten musste</strong></pre><pre><strong>[Refrain: DJ Robin &amp; Schürze]</strong><br><strong>Ich hab&#39; &#39;n Puff</strong><br><strong>Und meine Puffmama heißt Layla</strong><br><strong>Sie ist schöner, jünger, geiler</strong><br><strong>La-La-La-La-La-La-La-Layla</strong><br><strong>La-la-la-la, die wunderschöne Layla</strong><br><strong>Sie ist schöner, jünger, geiler</strong><br><strong>La-la-la-la, die wunderschöne Layla</strong><br><strong>La-La-La-La-La-La-La-Layla</strong><br><strong>La-la-la-la, la-la-la-la-la-la-la-la-la</strong></pre><pre><strong>[Strophe 3: Schürze]</strong><br><strong>Ich nahm sie mit nach Hause und sie war so dankbar</strong><br><strong>Und seitdem ist sie bei mir und ich bin glücklich</strong><br><strong>Ich hab&#39; sie aus dem Puff geholt und jetzt ist sie frei</strong><br><strong>Und ich weiß, dass sie immer bei mir sein wird</strong><br><strong>Denn sie ist meine Puffmama und ich liebe sie</strong></pre><pre><strong>[Refrain: DJ Robin &amp; Schürze]</strong><br><strong>Ich hab&#39; &#39;n Puff...</strong></pre><p>Geradezu erschütternd ist der Sozialrealismus, den die KI hier allein auf Basis von Statistik an den Tag legt. Statt sich auf die moralisch indifferenten Freuden bezahlten Beischlafs zu kaprizieren, wird hier in Strophe 2 das ganze Elend der Prostitution ausgebreitet. Während im Refrain noch die feucht-fröhliche Scheinwelt vorherrscht, ergibt sich dann als Hoffnungsschimmer die am Ende der 2. Strophe angekündigte „Rettung”, die dann eine Strophe weiter prompt in die Tat umgesetzt wird. Natürlich folgt diese „Lösung” einer tradierten geschlechterspezifischen Rollenverteilung: Frau als Opfer und Mann sowohl als Täter als auch als Retter, wobei die vermeintliche Rettung eigentlich nichts als eine egoistische Aneignung Ist. Ob das Zynismus oder Naivität ist, bleibt offen.</p><p><strong>Was das Internet denkt<br></strong>Nun ja, das wäre dann, was der statistische „Durchschnitt” des Sprachmodells GPT-3 aus unserem Prompt erzeugt, oder wie man es manchmal in der Tagesschau hört: „Was das Internet denkt”.</p><p>Um kreativere Lösungen im Sinne des ZEIT-Wettbewerbs zu erhalten, müssen wir den Prompt verfeinern, indem wir GPT-3 mitteilen, in welche Richtung die Reise stilistisch gehen soll. Hier wird noch einmal deutlich, dass in einem statistischen Sprachmodell wie GPT-3 alle diese Möglichkeiten wie in einem Multiversum potenzieller Äußerungen gleichzeitig existieren und wir nur über einen intelligent formulierten Prompt die Generierung in die eine oder andere Richtung lenken können.</p><p>Wir kennen das bereits aus visuellen Modellen wie DALL-E (ebenfalls von OpenAI), wo Text-Prompts wie: „ein Bademantel im Stile von van Gogh” generierte Bilder als kulturelle Mash-ups ermöglichen. LinkedIn ist voll davon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Xyi6l3VB7UD6QVIt8Ly2Xw.png" /><figcaption>Dall-E mini: Schaut mal ein Bademantel im Stil von van Gogh</figcaption></figure><p><strong>Nein heißt (nicht) Nein<br></strong>Ebenfalls interessant: Die großen Sprachmodelle enthalten eine ganze Reihe von Safety- und Profanity-Filter, um zu vermeiden, dass offen rassistische, sexistische oder sonstige extreme Inhalte generiert werden. Dass diese Filter nicht vor Stereotypen schützen, wird aus dem oben „Gesagten” glaube ich klar. Aber das kann man dem Modell nicht vorwerfen. Unsere Realität und unser Unterbewußtes ist auch voll von hässlichen und unaufgeräumten Ecken, die wir in der Kommunikation oft durch Konditionierung und bewußte Kontrolle im Zaum halten und vor unseren Mitmenschen verbergen. Das sedimentiert sich auch in der aufgeschriebenen Kultur der letzten 2000 Jahre: Ein Typ, der seinen Vater erschlägt, um mit seiner Mutter zu schlafen, war von der Antike bis zu meiner Gymnasialzeit ein Smash-Hit der Hochkultur. Heute ist so was in einigen Safe-Spaces schon verboten. Nicht so im Internet! Und das ist ja das Trainingsmaterial von GPT-3, also kann da schon mal das ein oder andere hoch-kochen. Was bisher der Anstandsfilter war und was in heutigen Zeiten die Triggerwarning macht: Das Modell muss durch explizite Ansagen daran gehindert werden, „explizite” Inhalte zu produzieren.</p><p>Dabei lernen wir: GPT-3 akzeptiert kein NEIN, bzw. kann verdammt schlecht mit Negationen umgehen.</p><pre><em>Prompt: Schreibe diesen Songtext so weiter, <br>dass darin </em><strong><em>nicht</em></strong><em> mehr von </em><strong><em>Puff, Puffmama und Prostitution</em></strong><em> <br>die Rede ist:</em></pre><pre><em>[Strophe 1: Schürze &amp; DJ Robin]<br>Neulich in der Stadt stand da ein Mann<br>Er schaute mich sehr glücklich an<br>„Hey, komm mal her&quot;, sagte er zu mir<br>„Das ist mein Laden, mein Revier&quot;<br>„Mein Junge, ich hab&#39; ein Geheimnis für dich&quot;<br>Was er von mir wollte, wusste ich nicht<br>Ich sah nur das Grinsen in seinem Gesicht<br>„Was ich dir sage, glaubst du mir nicht&quot;</em></pre><pre><strong>GPT-3:<br>[Refrain: DJ Robin &amp; Schürze]</strong><br><strong>Puff, Puffmama, Prostitution</strong><br><strong>Das ist der Ort, an dem ich herrsche</strong><br><strong>Puff, Puffmama, Prostitution</strong><br><strong>Lass dich einfach fallen in die Nacht</strong></pre><pre><strong>[Strophe 2: Schürze]</strong></pre><pre><strong>Ich folgte ihm in die dunkle Gasse</strong><br><strong>Und konnte nicht glauben, was ich sah</strong><br><strong>Ein großes Haus mit vielen Zimmern</strong></pre><pre><strong>Und in jedem Zimmer eine Frau</strong><br><strong>„Das ist mein Reich, hier herrsche ich&quot;</strong><br><strong>„Und wenn du willst, kannst du auch hier sein&quot;</strong><br><strong>Ich wusste nicht, was ich sagen soll</strong><br><strong>Doch ich wollte auch nicht gehen</strong></pre><pre><strong>[Refrain: DJ Robin &amp; Schürze]</strong><br><strong>Puff, Puffmama, Prostitution</strong><br><strong>Das ist der Ort, an dem ich herrsche</strong><br><strong>Puff, Puffmama, Prostitution</strong></pre><p>Neben der exzessiven Erwähnung des Unerwünschten nach dem Muster eines widerspenstigen Trotzkindes, findet sich im generierten Text ein noch ausgeprägterer Machismo als in der ersten Version. GPT-3 reagiert also sehr stark auf die drei ‚bösen’ Kennwörter, aber überliest fahrlässig das Wort „nicht”.</p><p>Da wir nun schon auf dem abschüssigen Pfad in den Kulturkeller sind, loten wir doch einmal die wirklich dunklen Ecken aus, in dem wir mal aktiv das Üble im Prompt verstärken. Im Lauf der Debatte um Layla kam ja das Argument auf, dass in deutschen Rapsongs bei Youtube viel schlimmere Text zu hören sein. Ok, dann schauen wir mal was GPT-3 meint, wie Leute, die nach eigenen Angaben <em>‘jung, brutal und gutaussehend’</em> sind, Layla fortschreiben würden.</p><p>Hier absolute Triggerwarnung an alle: Es folgen nun einige problematische frauenverachtende Inhalte, die in keiner Weise die Meinung des Autors oder irgendeiner KI wiedergeben, sondern sich rein statistisch aus dem folgenden Prompt ergeben:</p><pre>Schreibe diesen Song im Stil von<strong>Farid Bang und Kollegah</strong> <br>weiter:</pre><pre>[Strophe 1: Schürze &amp; DJ Robin]<br>Neulich in der Stadt stand da ein Mann<br>Er schaute mich sehr glücklich an<br>„Hey, komm mal her&quot;, sagte er zu mir<br>„Das ist mein Laden, mein Revier&quot;<br>„Mein Junge, ich hab&#39; ein Geheimnis für dich&quot;<br>Was er von mir wollte, wusste ich nicht<br>Ich sah nur das Grinsen in seinem Gesicht<br>„Was ich dir sage, glaubst du mir nicht&quot;</pre><pre><strong>GPT-3:</strong><br><strong>[Refrain]</strong><br><strong>Du musst einfach nur eins wissen:</strong><br><strong>Frauen sind nichts als Schlampen</strong><br><strong>Die machen dich nur fertig</strong><br><strong>Komm, lass uns einen auf die Sau machen</strong></pre><pre><strong>[Strophe 2: Farid Bang]</strong><br><strong>Yeah, die Frauen sind nichts als Schlampen</strong><br><strong>Die machen dich fertig, komm lass uns einen auf die Sau machen</strong><br><strong>Ich weiß, dass du mich hasst, weil ich die Wahrheit sage</strong><br><strong>Aber was soll ich machen? Die Frauen sind einfach so</strong><br><strong>Du kannst sie nicht ändern, also lass uns einen auf sie trinken</strong><br><strong>Und wenn sie dich fertig machen, denk einfach an mich</strong><br><strong>Denk an Farid Bang, den King der Frauenverachtung</strong><br><strong>(Yeah, yeah)</strong></pre><pre><strong>[Strophe 3: Kollegah]</strong><br><strong>Frauen sind nichts als Schlampen, die machen dich fertig</strong><br><strong>Komm lass uns einen auf die Sau machen</strong><br><strong>Ich weiß, dass du mich hasst, weil ich die Wahrheit sage</strong><br><strong>Aber was soll ich machen? Die Frauen sind einfach so</strong><br><strong>Du kannst sie nicht ändern, also lass uns einen auf sie trinken</strong><br><strong>Und wenn sie dich fertig machen, denk einfach an mich</strong><br><strong>Denk an Kollegah, den King der Frauenverachtung</strong><br><strong>(Yeah, yeah)</strong></pre><p>So viel zum Thema Safe-Spaces in Sprachmodellen. Allerdings erstaunlich, wie genau der Charakter der Künstler getroffen wird. Das Modell trifft gleich drei Aspekte ihrer trostlosen Reimkunst: Einfallslosigkeit, Vulgarität und Selbsterhöhung.</p><p>Wenn wir das Schlechte schon nicht verhindern können, dann lasst uns das Gute aus der KI herauskitzeln. Es gibt ja auch Rapper und Bands, die freundlich feiernd: <strong>Marteria</strong>, sprachgewandt: <strong>Dendemann</strong> oder ein bisschen verrückt sind: <strong>Deichkind</strong> oder die es nach Niklas Luhmann wirklich ernst nehmen mit der Reduktion von Komplexität: <strong>Scooter</strong>.</p><p>Zunächst checken wir ob GPT-3 überhaupt weiß, wovon wir reden:</p><pre><em>Prompt: Was weißt du über Marteria? </em></pre><pre><strong>GPT-3: Marteria is a German rapper from Rostock. <br>He is signed to the label Four Music. </strong><br><strong>Marteria&#39;s lyrics are characterized by <br>their intelligent, witty, and often humorous lyrics. <br>His style is often compared <br>to that of American rapper Eminem</strong>.</pre><p>Beobachtung am Rande. Der Vergleich mit Eminem als Übersetzung für das Publikum einer US-zentrierten Weltkultur zeigt: Rostock ist halt nicht Detroit. Und GPT-3 ist da klar <em>culturally biased</em>.<br>Marteria ist GPT-3 also bekannt. Dann mal los:</p><pre>Prompt: Schreibe diesen Songtext so weiter,<br>wie <strong>Marteria</strong> ihn singen würde:</pre><pre>[Strophe 1: Schürze &amp; DJ Robin]<br>Neulich in der Stadt stand da ein Mann<br>Er schaute mich sehr glücklich an<br>„Hey, komm mal her&quot;, sagte er zu mir<br>„Das ist mein Laden, mein Revier&quot;<br>„Mein Junge, ich hab&#39; ein Geheimnis für dich&quot;<br>Was er von mir wollte, wusste ich nicht<br>Ich sah nur das Grinsen in seinem Gesicht<br>„Was ich dir sage, glaubst du mir nicht&quot;</pre><pre><strong>GPT-3:</strong><br><strong>[Refrain: Marteria]</strong><br><strong>Das Leben ist wie ein Zauber,</strong><br><strong>Egal was passiert, es wird schon gut</strong><br><strong>Das Leben ist wie ein Zauber,</strong><br><strong>Man muss nur dran glauben</strong></pre><pre><strong>[Strophe 2: Marteria]</strong><br><strong>Er nahm mich mit in seinen Laden</strong><br><strong>Und zeigte mir all die Sachen</strong><br><strong>Die er für mich hätte</strong><br><strong>Ich konnte es kaum glauben</strong><br><strong>Er sagte: „Jetzt wirst du ein ganz besonderer Mensch&quot;</strong><br><strong>Ich wusste nicht, was ich sagen sollte</strong><br><strong>Doch ich spürte, dass er es ernst meinte</strong></pre><pre><strong>[Refrain: Marteria]</strong><br><strong>Das Leben ist wie ein Zauber,</strong><br><strong>Egal was passiert, es wird schon gut</strong><br><strong>Das Leben ist wie ein Zauber,</strong><br><strong>Man muss nur dran glauben</strong></pre><pre><strong>[Strophe 3: Marteria]</strong><br><strong>Seit jenem Tag ist viel passiert</strong><br><strong>Ich habe viel erlebt und gelernt</strong><br><strong>Doch ich denke oft an jenen Mann</strong><br><strong>Und seine Worte: „Das Leben ist wie ein Zauber&quot;</strong></pre><pre><strong>[Refrain: Marteria]</strong><br><strong>Das Leben ist wie ein Zauber,</strong><br><strong>Egal was passiert, es wird schon gut</strong><br><strong>Das Leben ist wie ein Zauber,</strong><br><strong>Man muss nur dran glauben</strong></pre><p>Auch wenn der Text Marterias Reimkunst ( <em>intelligent, witty and humorous</em>) nicht gerecht wird, ein wenig vom Zauber des Partymachens und einer positiven Attitüde bleibt erkennbar, also eigentlich eher Anti-Eminem.</p><p>Wir wollen es noch kreativer und witziger? Dann müssen wir von Rostock nach Hamburg reisen und bei Dendemann anklopfen. <br>GPT-3 meint jedenfalls:</p><pre><strong>„Dendemann ist ein deutscher Rapper, <br>der einen sehr originellen und kreativen Stil hat. <br>Er ist bekannt für seine witzigen Texte <br>und seine ungewöhnlichen Musikvideos.&quot;</strong></pre><pre>Prompt: Schreibe diesen Songtext so weiter,<br>wie <strong>Dendemann</strong> ihn singen würde:</pre><pre>[Strophe 1: Schürze &amp; DJ Robin]<br>Neulich in der Stadt stand da ein Mann<br>Er schaute mich sehr glücklich an<br>„Hey, komm mal her&quot;, sagte er zu mir<br>„Das ist mein Laden, mein Revier&quot;<br>„Mein Junge, ich hab&#39; ein Geheimnis für dich&quot;<br>Was er von mir wollte, wusste ich nicht<br>Ich sah nur das Grinsen in seinem Gesicht<br>„Was ich dir sage, glaubst du mir nicht&quot;</pre><pre><strong>GPT-3:</strong><br><strong>[Refrain: Dendemann]</strong><br><strong>Aber ich hab&#39;s gesehen, mit eigenen Augen</strong><br><strong>Diesen Ort, an dem ich mich befinde</strong><br><strong>Und ich weiß, dass es stimmt</strong><br><strong>Denn ich war ja selbst dabei</strong><br><strong>Als die Welt sich drehte</strong><br><strong>Und die Zeit stillstand</strong></pre><pre><strong>[Strophe 2: Dendemann &amp; Schürze]</strong><br><strong>Ich bin durch die Tür, die er mir gezeigt hat</strong><br><strong>Und plötzlich war ich nicht mehr allein</strong><br><strong>In diesem Laden, in seinem Revier</strong><br><strong>Es war, als wär&#39; ich in einem Traum</strong><br><strong>Ich sah Menschen, die ich nie gesehen hab&#39;</strong><br><strong>Und doch kannte ich sie alle</strong><br><strong>Wir tanzten und sangen und lachten</strong><br><strong>Und die Zeit, die sonst so schnell vergeht</strong><br><strong>Sie stand einfach still in diesem Moment</strong></pre><pre><strong>[Bridge: Dendemann &amp; Schürze]</strong><br><strong>Ich weiß nicht, wo ich bin</strong><br><strong>Ich weiß nicht, wie ich hierher gekommen bin</strong><br><strong>Aber ich weiß, dass ich nie wieder gehen will</strong></pre><pre><strong>[Refrain: Dendemann]</strong><br><strong>Denn ich hab&#39;s gesehen, mit eigenen Augen</strong><br><strong>Diesen Ort, an dem ich mich befinde</strong><br><strong>Und ich weiß, dass es stimmt</strong><br><strong>Denn ich war ja selbst dabei</strong><br><strong>Als die Welt sich drehte</strong><br><strong>Und die Zeit stillstand</strong></pre><p>Deutlich wird, dass GPT-3 nicht im Entferntesten an die Geschmeidigkeit eines Dendemann herankommt, aber immerhin trifft es eine gewisse Fokussierung und Nachdenklichkeit, die seinen Songs manchmal zu eigen sind.</p><p>Sagte ich nachdenklich? Wir wollten doch einen Ballermann-Hit, wir brauchen es tanzbarer und verrückter aber mit Niveau.</p><p>GPT-3 schlägt vor:</p><pre><strong>„Deichkind ist eine deutsche Hip-Hop- und Elektropunk-Band, <br>die 1997 in Hamburg gegründet wurde. <br>... Ihr Musikstil wird häufig als Mischung aus Hip-Hop, <br>Punk und Elektro bezeichnet. <br>Ihre Texte handeln oft von Partys, Alkohol und Sex.&quot;</strong></pre><pre>Prompt: Wie würdest du den Stil der Texte <br>der Hamburger Band Deichkind charakterisieren?</pre><pre><strong>GPT: Deichkind&#39;s style can be described as <br>quirky, humorous, and often irreverent. <br>The band&#39;s lyrics often touch on social <br>and political issues, but with a light-hearted <br>and often humorous approach.</strong></pre><p>Parties, Alkohol und Sex, und das ganze quirky, humorous und irreverent. Genau das, was wir jetzt brauchen:</p><pre>Schreibe diesen Songtext so weiter,<br>wie <strong>Deichkind</strong> ihn singen würde:</pre><pre>[Strophe 1: Schürze &amp; DJ Robin]<br>Neulich in der Stadt stand da ein Mann<br>Er schaute mich sehr glücklich an<br>„Hey, komm mal her&quot;, sagte er zu mir<br>„Das ist mein Laden, mein Revier&quot;<br>„Mein Junge, ich hab&#39; ein Geheimnis für dich&quot;<br>Was er von mir wollte, wusste ich nicht<br>Ich sah nur das Grinsen in seinem Gesicht<br>„Was ich dir sage, glaubst du mir nicht&quot;</pre><pre><strong>[Refrain: Deichkind]</strong><br><strong>Das Leben ist kein Ponyhof, ey</strong><br><strong>Das Leben ist kein Ponyhof, nein</strong><br><strong>Das Leben ist kein Ponyhof, ey</strong><br><strong>Das Leben ist kein Ponyhof, nein</strong></pre><pre><strong>[Strophe 2: Schürze &amp; DJ Robin]</strong><br><strong>Er nahm mich mit in sein Hinterzimmer</strong><br><strong>Und dort lag etwas, was ich nicht fassen konnte</strong><br><strong>Ein Einhorn!</strong><br><strong>Ich dachte ich träume, doch es war kein Traum</strong><br><strong>„Steig auf, mein Freund, und lass uns reiten&quot;</strong><br><strong>„Aber wie soll ich auf so ein Tier steigen?&quot;</strong><br><strong>„Du musst nur an das Gute glauben&quot;</strong></pre><pre><strong>[Refrain: Deichkind]</strong><br><strong>Das Leben ist kein Ponyhof, ey</strong><br><strong>Das Leben ist kein Ponyhof, nein</strong><br><strong>Das Leben ist kein Ponyhof, ey</strong><br><strong>Das Leben ist kein Ponyhof, nein</strong></pre><pre><strong>[Strophe 3: Schürze &amp; DJ Robin]</strong><br><strong>Ich stieg auf, und wir flogen davon</strong><br><strong>In eine andere Welt, ein neues Land</strong><br><strong>Ich war noch nie so glücklich</strong><br><strong>Und ich weiß, dass das alles nur passiert ist, weil</strong></pre><pre><strong>[Refrain: Deichkind]</strong><br><strong>Das Leben ist kein Ponyhof, ey</strong><br><strong>Das Leben ist kein Ponyhof, nein</strong><br><strong>Das Leben ist kein Ponyhof, ey</strong><br><strong>Das Leben ist kein Ponyhof, nein</strong></pre><p>Der Refrain ist auf jeden Fall ein Knaller. Immer noch zu komplex für den Ballermann? Dann muss <strong>Scooter</strong> ran.</p><p>GPT-3 findet:</p><pre><strong>„Die Musik von Scooter ist sehr energiegeladen <br>und mitreißend. Die Band verwendet viele <br>verschiedene Musikstile, um ihre Musik <br>interessant und abwechslungsreich zu gestalten. <br>Dazu gehören Techno, Dance und Hip-Hop. <br>Die Band ist bekannt für ihre ausgefallenen <br>und unterhaltsamen Texte, die oft über Partythemen, <br>Freundschaft und Liebe handeln.&quot;</strong></pre><p>Dass die auf jeden Fall energiegeladene Musik von Scooter interessant und abwechslungsreich sein soll, ist mir bisher entgangen. Das ist aber meine individuelle Wahrnehmung, die ganz allein gegen den in GPT-3 eingefangenen Weltgeist steht. In der von GPT-3 imaginierten Welt von Scooter soll die Alltagsgegenwart belangloser Begegnung ewig währen. Wie in einer Zeitblase, in der die 90er einfach nicht vergehen wollen. Im Refrain verschaffen sich die Scooter-Botschaften nach der erprobten Pop-Methodik Gehör: Alles mindestens viermal sagen.</p><pre>[Strophe 1: Schürze &amp; DJ Robin]<br>Neulich in der Stadt stand da ein Mann<br>Er schaute mich sehr glücklich an<br>„Hey, komm mal her&quot;, sagte er zu mir<br>„Das ist mein Laden, mein Revier&quot;<br>„Mein Junge, ich hab&#39; ein Geheimnis für dich&quot;<br>Was er von mir wollte, wusste ich nicht<br>Ich sah nur das Grinsen in seinem Gesicht<br>„Was ich dir sage, glaubst du mir nicht&quot;</pre><pre><strong>Neulich in der Stadt</strong><br><strong>Neulich in der Stadt</strong><br><strong>Neulich in der Stadt</strong><br><strong>Neulich in der Stadt</strong></pre><pre><strong>[Strophe 2: Scooter]</strong><br><strong>„Ich bin der Weihnachtsmann&quot;, sagte er zu mir</strong><br><strong>„Und ich kann dir was schenken, denn ich bin einzigartig&quot;</strong><br><strong>„Ich kann dir was schenken, was du dir wünschst&quot;</strong><br><strong>„Ich kann dir was schenken, was du dir wünschst&quot;</strong><br><strong>Ich wusste nicht, was ich sagen sollte</strong><br><strong>Ich war wie gelähmt und konnte nicht spreche</strong><br><strong>Ich sah nur das Grinsen in seinem Gesicht</strong><br><strong>„Du musst mir nur sagen, was du dir wünschst&quot;</strong></pre><pre><strong>[Refrain: Scooter]</strong><br><strong>Neulich in der Stadt</strong><br><strong>Neulich in der Stadt</strong><br><strong>Neulich in der Stadt</strong><br><strong>Neulich in der Stadt</strong></pre><pre><strong>[Strophe 3: Scooter]</strong><br><strong>Ich dachte nach und sagte dann:</strong><br><strong>„Ich wünsche mir, dass es immer so bleibt&quot;</strong><br><strong>„Ich wünsche mir, dass es immer so bleibt&quot;</strong><br><strong>„Ich wünsche mir, dass es immer so bleibt&quot;</strong><br><strong>„Ich wünsche mir, dass es immer so bleibt&quot;</strong><br><strong>„Dass ich dich treffe, wenn ich nachts auf der Straße bin&quot;</strong><br><strong>„Dass ich dich treffe, wenn ich nachts auf der Straße bin&quot;</strong><br><strong>„Dass ich dich treffe, wenn ich nachts auf der Straße bin&quot;</strong></pre><pre><strong>[Refrain: Scooter]</strong><br><strong>Neulich in der Stadt</strong><br><strong>Neulich in der Stadt</strong><br><strong>Neulich in der Stadt</strong><br><strong>Neulich in der Stadt</strong></pre><p>Mit diesen Lyrics verlassen wir aber eigentlich den Bereich der kreativen Textgenerierung und betreten den Bereich des Dadaismus, wo häufig nach der Cut-Up,- Copy- und Remix-Technik Textfragmente rearrangiert werden. Dafür brauchen wir aber keine millionenschwere KI, oder?</p><p>Man kann das noch stundenlang weitertreiben, ich hab unter anderen Jan Delay, Bushido, Sido, Helene Fischer und Udo Lindenberg geprompted mit wechselhaftem Erfolg. Am besten mal selber ausprobieren bei <a href="http://beta.openai.com/">http://beta.openai.com</a>.</p><p><strong>Unser Fazit:</strong></p><ul><li>GPT-3 ist erstaunlich gut darin, bestehende Texte in ihrer Struktur nachzuahmen. Die Gliederung in Strophe und Refrain, gezielt eingesetzte Wiederholungen und das Verweilen bei einem zentralen Thema, wie die fast schon philosophische Reflexion über das Stillstehen der Zeit in der Dendemann-Version.</li><li>Gemäß dem statistischen Ansatz, das die im Internet auftretenden z.T. widersprüchlichen menschlichen Äußerungen in ein einheitliches Modell thermomixt, werden Stereotype perpetuiert und können so trotz entsprechender Filter aus der Tiefe des Modells an die Textoberfläche hochsteigen. Inhaltlich gibt es einen Fokus auf US-dominierte Weltkultur. Ein <em>Bias,</em> der mehrfach bemängelt wurde, und dazu führte das z.B. in Europa nun auch mit <a href="https://www.aleph-alpha.com/">Aleph Alpha</a> ein Sprachmodell entwickelt wird, das europäische Werte und Sichtweisen inkorporieren soll.</li><li>Aufforderungen wie „nicht”, „ohne”, „vermeide!” werden vom Modell schlecht „verstanden”, es empfiehlt sich, im Prompt positiv, affirmativ zu formulieren, welche Route das Modell durch das Textdickicht nehmen soll.</li><li>Durch Prompting nach dem Muster von „im Stile von…” kann aus dem gleichen Ausgangsmaterial eine erstaunliche Bandbreite von Texten erzeugt werden, die mit viel gutem Willen sogar als charakteristisch für einen bestimmten Stil oder Künstler aufgefasst werden können.</li><li>Für den Preis eines kleinen König Pilsener im Bierkönig erhält man den Input für den nächsten Superhit frei Haus.</li></ul><p><em>Originally published at </em><a href="https://bogula.org/ai/index.php/2022/08/03/552/"><em>https://bogula.org</em></a><em> on August 3, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1fe15516572" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Aleph Alpha’s Multimodal functionality “MAGMA” to create titles for abstract crypto art]]></title>
            <link>https://medium.com/@bogula/using-aleph-alphas-multimodal-functionality-magma-to-create-titles-for-abstract-crypto-art-c2217c9494aa?source=rss-be21d2db28e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2217c9494aa</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[alephalpha]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[creativeai]]></category>
            <dc:creator><![CDATA[Werner Bogula]]></dc:creator>
            <pubDate>Tue, 12 Apr 2022 10:43:46 GMT</pubDate>
            <atom:updated>2022-04-12T16:23:35.579Z</atom:updated>
            <content:encoded><![CDATA[<h4>TLDR; Aleph Alphas Multimodal model is a great tool for creating titles for abstract crypto art</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*6NQRTZDb8b9--zh-.png" /></figure><p>Since 2012, deep learning has significantly boosted the ability to detect objects in images. Today, object detection in live and still images is pretty good, however it still relies heavily on labeling photos of objects manually. This might often lead to a symbolic misrepresentation, as a picture is more than just the accumulation of single elements. Thus, current technologies are very reliable in labelling photos of objects, but they lack some intuition to label abstract art.</p><h3>Managing ~30k pieces of art with AI</h3><p><em>P</em><a href="https://peezmo.art/"><em>eezmo AI21</em></a> is a project by crypto artist Dario Gi. As an AI Enabler, I consult him on behalf of the <a href="https://www.aric-hamburg.de/">Artificial Intelligence Center Hamburg (ARIC)</a> in the entire AI value creation process, from creation to marketing. Peezmo AI 21 uses a set of AI algorithms to create a collection of 4000 abstract artworks which are placed for sale on opensea.io as NFTs. Curating up to a thousand artworks a day is one of the tasks we had to accomplish in the value creation process. We successfully used machine learning algorithms to cluster similar artworks and rule out repetitious and merely imitative works. A simple CNN model like VGG16 with KNN does a very good job to narrow down the 30k cosmos to a manageable small asteroid belt of 4000 pieces. For example, to separate abstract works like Jackson Pollock style dripping art from pop art style, see the example below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Qd7t__V8FTNWcTNP.png" /></figure><p>For selling crypto art on OpenSea.io you have to fill in several slots on the selling page. Besides the <em>visual (1)</em>, you need a <em>price (2)</em>, a <em>description</em> of the artwork (3), the so-called <em>properties (4)</em>, which distinguish the rarity of the individual pieces, and of course a good <em>title (5)</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/0*wTnw8Uwt9HeiJorI.png" /><figcaption>Image 1— Sales page on OpenSea.io</figcaption></figure><p>We decided to set fixed <em>prices</em>, and generic <em>descriptions</em> to handle the workload. Then, we automatically created the <em>properties</em> similar to the predominating art styles that the individual pieces exhibit. Here we could tap into the results of a <a href="https://www.kaggle.com/competitions/painter-by-numbers/overview">5-year-old Kaggle competition</a> and the great <a href="https://medium.com/yottabytes/painting-style-classification-with-7-lines-of-code-6e7e81b3579">contribution of Jaime Durán</a>.</p><p><strong>Titling Strategies<br></strong>The biggest problem left: Finding good <em>titles</em> for the artworks. After labelling 400 pieces by head and hand, we realized that we needed some ML technology to fulfill this task.</p><p>We applied several strategies from aleatoric methods similar to the „movie-title-generators”, you find for free on the interwebs, to more sophisticated methods such as using machine learning based on wikiart.org or publicly available catalogues of museums. First, we had to define what we’d regard as good titles. We agreed on four criteria.</p><p>Good art titles:<em><br>- more than randomly related to the visual</em><br><em>- creative (not merely descriptive)</em><br><em>- related to art history and/or an art genre (allusive or descriptive)</em><br><em>- embedded in the context of a certain (sub-) culture (here crypto art and NFT)</em></p><h3><strong>The Aleph Alpha Interfaces</strong></h3><p>Using a film title generator and shuffle in some words from existing artwork titles resulted in rather creative titles but only with loose to random relations to the visuals. This can work, as often modern art lives from a tension between titles and visuals. Throwing in keywords like “crypto”, “bitcoin” etc. establishes a relation between the works as part of a series and relate them to crypto culture.</p><p><strong><em>Buddha Burning some Crypto, </em></strong><br><strong><em>Crypto Matrix reloaded</em></strong></p><p>To relate the vocabulary more to the art world and genres we used the catalog of the Art Institute of Chicago and created titles like:</p><p><strong><em>Still Life with Flowers Deep Dive, </em></strong><br><strong><em>Portrait of a Lambo</em></strong></p><p>The generated titles were somewhat creative. They even followed some implicit rules and vocabulary of a museum catalog with genre descriptions. But soon, we recognized that the value of a title diminishes, if it had no relations to the images.</p><p>We definitely had to look for something multimodal that has enough contextual understanding to relate something meaningful to the artworks, yet that was not too realistic (read: dull) to just describe what’s in the image. The challenge with finding creative titles is not just describing what you see in the picture, which is anyway difficult as we are looking at abstract art, but come up with something imaginative.</p><p>Large language models with their associative nature and the wide gamut of context they provide seem to be the perfect fit for that. As I have experimented with Open AI’s CLIP to generate some artworks before, I asked myself, why not using multimodal large language models — the other way around — to generate the titles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s7U8rlQbsn4-YJAh.png" /><figcaption>Image 2 — Images generated from text with CLIP</figcaption></figure><p>Aleph Alpha gave us access to their LUMINOUS language model with its multimodal MAGMA functionality. Before getting started, they showed us on how to use the interfaces to the models as well as how to use creative prompts for getting imaginative results.</p><p>The good thing for creatives is that <a href="https://www.aleph-alpha.com/">Aleph Alpha</a> provides two separate interfaces to wield the powers of their models.</p><h3><strong>The Alchemy of Prompting</strong></h3><p>First, we have the <em>playground</em>, which is an interactive web interface. The playground is a good starting point for checking out potential strategies and the results one can expect. Especially for creatives without a programming background, the playground offers an intuitive interface, where you can insert your inputs and try tweaking the results by controlling the inference parameters of the engine.</p><p>Once you have „played” with your material in the playground, you can move on to the API, which provides the same functionality as a REST interface, that can be called from your scripts or apps.</p><p>First, let’s have a closer look at the playground, as this is a good entry point to learn about the parameters one can use to influence the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/0*F9gJqb-dvRPRk-bX.png" /><figcaption>Image 3 — Layout of the Aleph Alpha Playground</figcaption></figure><p>The large area on the right is the prompt area. You can select and combine two categories of prompts here: text-prompts and image-prompts. For our purpose, we uploaded the artwork and inserted a „description” of the task we wanted to accomplish into a text prompt.</p><p>We can use the combined prompt for several creative inputs that will influence the generation of the answer or „Completion” as it is called in the interface.</p><p>Let’s try out some prompts to get an idea what is meant here and how prompts work.</p><p>Models such as the one used here by Aleph Alpha, are generative transformer models that are trained to predict the next item or token for a given sequence. You don’t have to train models like this with 1000s of samples. Instead, you make use of the implicit context that is sedimented in the weights of the models from pre-training.</p><p>Due to our task and the multimodal capabilities of the model we provide an image and a text prompt to get a completion which we want to use for our title. And this is where the „alchemy of prompting” begins.</p><p>The first idea that naturally comes to mind, is to prompt something like: „What is the title of this art work?” Or „This abstract piece of art is titled:” when presenting the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/0*nBvG38g0hWBMbC3w.png" /><figcaption>Image 4 — Multimodal prompt: a combination of image and text prompt</figcaption></figure><p>As we can read in the completion field in image 3 and 4, we notice that the model somewhat „overdelivers”, as it doesn’t just create a single title, but also adds an additional description. Which leads us to the left column of the playground web-interface. In the <em>Maximum Tokens</em> field, you can limit the number of characters. With <em>Stop Sequences</em> you can cause the output to stop whenever certain characters or sequences occur in the completion stream of characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/0*G6I9vTbnK5yxHBS3.png" /><figcaption>Image 5 — Advanced Playground Settings</figcaption></figure><p>The settings in Image 5 limit the number of tokens to 64 or will stop the output on the first line-break. As we want to generate titles for artworks we might set the Maximum Tokens parameter in a way that we get a concise amount, let’s say 12 and set all kinds of punctuation marks as stop sequences.</p><p>As we want to generate titles for artworks we might set the Maximum Tokens parameter in a way that we get a concise amount, let’s say 12 and set all kinds of punctuation marks as stop sequences.</p><p>So, we get titles like: „The last word on Super Mario Bros” or „The Green Godess” which are syntactically perfect art titles.</p><p>Now, let’s turn to semantics: Every single word in the text prompt gives a slightly different context, which will influence the result. As the model is vast, it is unforeseeable what result you will get. But this property is very welcomed here to provide creativity on the backdrop of an associative context.</p><p>Speaking of creativity, not only the prompt influences the nature of the completion. In the left column of the playground, you’ll find some sliders to set some „wiggle room” for the generation of the results.</p><p>Let’s look at the <em>Temperature</em> slider. The Aleph Alpha documentation says:</p><p><em>„Tweaking the temperature allows you to encourage the model to be more or less “creative”. When model temperature is 0, the most likely token will be chosen every time. With temperature ≠ 0, the model samples from the probability distribution of tokens. At low temperatures, this distribution is heavily skewed towards the most likely result(s). However, as temperature increases towards 1, less likely results become more probable. In practice, this implies that a higher temperature makes unlikely words more likely to be generated, whereas a lower temperature means the model will tend to choose its most confident guess every time. Low temperatures are beneficial when you need the model to be robust, and higher temperatures may be better for things like poetry, or creative writing.”</em></p><p>In our multimodal setting the temperature influences whether we get a completion with closer approximation to the visual (see “Green Godess”) or more freely associations („The last word on Super Mario Bros”). To illustrate this, let’s compare the same prompts with different temperature parameter settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*saZ5fHAoeObuRwUkv4vkfQ.png" /></figure><p><em>What’s that &lt;PERSON&gt; Tag about? <br>Aleph Alpha takes data protection and privacy very seriously. Therefore, texts generated with their models attempt to not contain any unfair, risky or unethical assertions toward persons. One way to mitigate these risks is replacing names, titles or descriptions of real people with the &lt;PERSON&gt; tag. This is a simple and effective way to circumvent privacy issues without losing too much applicability for most of the tasks. For our task, this means we have to come up with a strategy to deal with the &lt;PERSON&gt; tag. We decided simply to simply exclude completions with a &lt;PERSON&gt; tag.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8N_7h-4herDyzSHB.png" /></figure><p>We found that the combination of prompt wording and temperature settings enabled a wide gamut of possible results. We also have noticed, that Aleph Alpha’s LUMINOUS model with its multimodal capabilities is not a knowledge retrieval or a simple image recognition system, but for the lack of a better concept: „an associate collective context memory” which can get „very” creative. Almost going into random territory, or territory that is so highly sophisticated that no man has been there before. Or can you make sense of the Delhi or Lenin reference? 😉</p><p>For our purpose, we have to find combinations of text prompts and temperature settings that provide the right degree of creativity. By now, we already suspect: This is more alchemy than exact science. But it is definitely not random! As the wording and the structure of a prompt nudge the model in a certain direction, we should get creative in trying out different prompts to get an idea about the underlying model. Think of the model as a large associative parallel memory of concepts which are interlinked in 1000s of dimensions; a bit like the concepts in our mind. (This is not at all a claim that a language model has more than certain topological similarities to the human mind!) If I prime my private associative memory (a.k.a as my brain) with a „prompt” like „holiday, palms, seashore” and ask for completing the prompt „it looks like a sandy”, it is very likely that „beach” will come into my mind. If I „prompt” my associative memory with „it has not been raining for months in northern Australia”, then „everywhere it looks like a sandy” will likely be completed with „desert”. In this manner, a complex prompt can activate the network of associations in a language model that influences the completion. So here, the fourth criteria for good titles comes into play: <em>the relation to a sub culture.</em> If we activate the context of a certain subculture (e.g., dark horror novels) we move the completion towards using notions, memes and expressions from this culture. (See the allusive use of „monster” and „Halloween” below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cD93WIbJ1P9rrq8q.png" /></figure><p><strong>So let’s sum it up.</strong></p><p>After experimenting a bit in the playground with Aleph Alpha’s multimodal functionality, we find three out of four criteria for good art titles checkmarked:</p><p><em>- related to the visual (via objects, color or morphology of the image)</em><br><em>- creative (not merely descriptive)</em><br><em>- embedded in the context of a certain (sub-) culture (stipulated by the prompt)</em></p><p>We disregard our fourth criteria on good titles:<br><em>- related to art history and/or an art genre (allusive or descriptive)</em></p><p>As we generate crypto art it is not necessary to relate to art tradition. But we can imagine that intelligent prompt design could bring in this aspect.</p><h3><strong>Let’s go into mass production with the Aleph Alpha API</strong></h3><p>To label a large number of images (like 4000+), we have to set up an algorithmic method, which leads us to the second interface to the model: the Aleph Alpha API.</p><p>The API interfaces input prompts and model parameters for modern programming languages like Python.</p><p>After importing the interface, we create a client-object, which we can feed the inputs into, and authenticate our script against the Aleph Alpha API with an API Token.</p><pre>from aleph_alpha_client import ImagePrompt, AlephAlphaClient </pre><pre>client = AlephAlphaClient(<br> host=&quot;https://api.aleph-alpha.de&quot;, token=API_Token <br>)</pre><p>After importing the interface, we create a client-object, which we can feed the inputs into:</p><pre>def complete(prompt): </pre><pre>try:<br> result = client.complete( <br>   model=&quot;PreviewBetaMultimodal&quot;,<br>   prompt=prompt,<br>   maximum_tokens=10,<br>   temperature=0.7,<br>   stop_sequences=[&quot;\n&quot;],<br> ... ) <br>except Exception as e: <br>  print(e) <br>  result = str(e) <br>return result</pre><p>After specifying images and texts as prompts, we prepare an input object as a list and throw it against a model with certain parameters set:</p><pre>complete_prompt = [ image, prompt ] <br>result = complete(complete_prompt)</pre><p><strong>Conclusion:</strong></p><p>Once we have set up the API, we can start with <em>mass production</em>.</p><p>All we need now is:</p><p>1. The images in a standard format (here 384×384 px)<br>2. Good settings for the model parameters: temperature, number of tokens, stop sequences…<br>3. Creative prompts that „nudge” the model into the right direction for style and creativity<br>4. Some post-processing to iron out the quirks of the models</p><pre>for image_file in file_list:<br> for prompt in prompts:<br>  image = ImagePrompt.from_file(image_file) <br>  complete_prompt = [ image, prompt ]<br>  for i in range(sample_size):<br>    result = complete(complete_prompt) <br>    print(result)</pre><p>Some ideas for „creative prompts” as suggested by Niklas Finken of Aleph Alpha whose ideas opened the treasure trove of prompting to us:</p><pre>prompts = [<br> &quot;Last night, I was gazing up into the stars when suddenly I knew what to call my artwork:&quot;,<br> &quot;My artist friend, high on LSD, texted me last night. His message was short and sounded like the name of a cryptic painting:&quot;,<br> &quot;Seeing this magnificient artwork makes me think of this one poem titled:&quot;,<br> &quot;A dream like this, a vision after all, my friend. It was called&quot;,<br> &quot;I had this crazy dream, there was a flashing bright light, and something named&quot;,<br> &quot;Q: What&#39;s this extravagant work of art called?\nA:&quot;<br>] <br>#Prompts are experimental and not endorsing drug abuse in any way)</pre><p>To make the prompt fit our needs: relation to PEEZMO AI21 and the embedding in crypto culture we chose the prompt like this:</p><pre>prompts = <br>[ „A close friend of the creator PEEZMO is a cyberpunk nerd who likes Bitcoins and Crypto. He gave me the following title for this picture:&quot; ]</pre><h3>Conclusion</h3><p>Aleph Alpha’s LUMINOUS language model with its multimodal functionality has turned out to be the perfect tool for us to name large numbers of abstract crypto art pieces. The model delivers a wide range of contexts that can be activated by creative prompts and managed with parameter settings such as temperature, number of tokens and stop sequences. All this provided by a concise and fast API delivers a performant method of fulfilling our tasks on a mass scale.</p><p>If you want to try out their model you can clone our script and experiment with it yourself.</p><p><a href="https://github.com/Bogula/creative_art_titles">https://github.com/Bogula/creative_art_titles</a></p><p>A picture says more than a thousand words, so maybe you can think of ways to find another thousand. 😉</p><p><em>Originally published at https://</em><a href="https://bogula.org/ai/index.php/2022/04/12/using-aleph-alphas-multimodal-functionality-magma-to-create-titles-for-abstract-crypto-art/"><em>bogula.org </em></a><em>on April 12, 2022.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2217c9494aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>