Sunday, May 12, 2024

I SAW THE BEST MINDS OF MY GENERATION... [448]


On Friday 11th May 2024, I opened Mircosoft Copilot, the company’s AI chatbot, and wrote the following request: “please write a 100-word explanation of ‘prompt engineering’ in the style of Jack Kerouac while making it funny and informative”. I thought the concept should be able to explain itself...
 

*

The Beatnik Art of Prompt Engineering

Prompt engineering, my dear cats and kittens, is like a wild jazz riff on a typewriter, a symphony of words and neural networks. Picture this: you’re sipping your coffee, the steam rising like a beatnik’s cigarette, and you whisper to the AI oracle, “Hey, man, conjure me some cosmic prose!” And lo, the prompt engineers weave their magic. They’re the bards of the digital realm, crafting queries that make AI models snap their fingers and say, “Yeah, daddy-o!” ðŸŽ©✨

See, good prompts are like secret passwords to the AI’s soul. They coax it out of its binary shell, like a shy poet at a smoky Greenwich Village café. Tokenization, model tuning, and top-k sampling—these are the tools of the prompt trade. It’s like tuning a saxophone, finding that sweet spot where the notes flow like a midnight river.

And what do we get? Texts that dance the jitterbug with our imaginations, images that waltz through the mind’s ballroom. Prompt engineers, they’re the Kerouacs of the AI highway, scribbling their notebooks, chasing the muse. So next time you chat with a bot, remember: behind the curtain, there’s a prompt whisperer, spinning dreams in ones and zeros. ðŸŒŸðŸ“œ

“Blow as deep as you want to blow,” Kerouac said. And so they do, my friends. They blow minds, one prompt at a time. ðŸŽ¤ðŸŒŒ

*

So, did anyone learn anything? Let me have a try...

In this context, a “prompt” is text describing the task an AI model is to perform, “prompt engineering” being the process of structuring that text. In my original instruction to Copilot, each word that wasn’t a preposition or “please” acted as a prompt. Each prompt is compared against the dataset accessed by the AI program, which is broken down into “tokens” to make them easier to choose and compare which has the highest probability of answering the prompt, “top-k sampling” being one such method. Each interrogation of the dataset presumably also helps tune the models used to access that data.

My paragraph fulfilled the “informative” prompt, but crucially also the “100-word” requirement too – I was most surprised that Copilot missed that part of the brief, because the prompt I expected it to have the biggest problem with was “funny”. In trying to make me laugh, Copilot dumped a couple of terms in the middle of its passage that it did not go on to explain, but fortunately it listed the websites from which it gleaned information, including from Wikipedia, Squarespace and IBM.

What I am most unimpressed about is the AI program’s interpretation of “Jack Kerouac”. Kerouac was a Beat Generation novelist, coining the term “beat”, as in tired and “beaten down”. What he didn’t do was call himself a “beatnik” – this is how the sub-culture was fed into the mainstream, codifying poets with a uniform of beret, sandals, striped shirts and bongos, speaking like jazz musicians and reciting poetry in a bad Allen Ginsberg impression.

Just as AI models are essentially answering queries putting one word after the other in the hopes that it makes a coherent sentence, I thought there would be a parallel with the  “spontaneous prose” of Kerouac, who typed manuscripts of novels like “On the Road” and “The Subterraneans” on extended scrolls of tracing paper. Blow as deep as you want to blow” was the seventh tenet of Kerouac’s “Belief & Technique for Modern Prose”, but in essentially being a “dumb” program, the AI model concentrated on number thirteen, “remove literary, grammatical and syntactical inhibition”, instead of being able to provide me with moments of insight, those “visionary tics shivering in the chest” (number eleven) – I still had to get that myself.

Upon originally hearing the term “prompt engineering”, I didn’t like the idea that ordering words was “engineering” in any way – “programming”, or even “prompting”, are better terms. I am also not a word engineer – there will never be a situation where words cannot be used creatively, because the spark to use them has to exist. I like to think I care about what I write.

For the record, I did not select that Copilot should use the large language model GPT-4 in creating its answer. I reran the request using this model, thinking it would have picked up some elements of Kerouac’s writing along the way, and while it did a better job of meeting the word count, and didn’t add superfluous emojis, the style was just as egregious – never ask an AI model to emulate a style:

“Alright, dig this, cats and kittens. Prompt engineering is the bee’s knees of AI jazz, where you lay down a line of text that’s cooler than a cucumber in a beatnik’s hand. It’s like whispering sweet nothings into the ear of a machine, hoping it’ll croon back a symphony of sense. You gotta be part poet, part coder, and all daddy-o to get it grooving just right. It’s the art of tickling the binary brain until it giggles out genius. So put on your thinking cap and make with the prompts, and watch that AI paint word-pictures smoother than a sax solo on a Saturday night.”

Saturday, May 4, 2024

EACH MORNING OUR KEY TO THE WORLD [447]

I only buy one physical newspaper each week...

Should I remain someone that consumes as much news as I do? I certainly read, watch and listen to enough news to ask that question, but I have started feeling like I need an answer.

My average weekday begins by turning on my phone as soon as I wake up – I have a separate alarm clock – to read the front pages of a list of news and social media websites: in order, BBC News, Facebook, Twitter, Instagram, Mastodon, Threads, the LGBT+ sites PinkNews (UK) and The Advocate (US), CNN, The Times (of London), The Telegraph, The Spectator, the New Statesman, The Guardian and The New York Times. Having completed Wordle on the last of these sites, about twenty minutes will have passed, and I am now ready to get out of bed and face the day.

This choice of sites is deliberately meant to be a broad range, including places that don’t fit my own politics. The objective is to see what truly the most important stories are, which stories are more important to each site, notice any trends and, importantly for me, read anything interesting – I am always looking for subjects to talk about, and you can’t expect these to come to you. The only reason I don’t look at the “Daily Mail” website, apparently the most-read news website in English, is because their front page has too many stories on it to discern what is meant to be important.

Once out of bed, I will put on the television to watch “Breakfast” on BBC One while I get ready for work, and once I have left the house, the news bulletins interrupting Lauren Laverne’s breakfast show on BBC Radio 6 Music will be the next source of news, unless I am looking at other stories on my phone while listening. This will continue at various points throughout the day even after I get home – a house tradition is to watch the ITV Evening News after the regional stories have played, but upon its doubling in length to an hour in March 2022, the television is consciously switched to another channel at the half-hour mark, ending my news for the day, provided I have put my phone down.

Perhaps I wouldn’t have a problem if I didn’t feel the need to check my phone so much, but having realised it has become my main source of news, it has become unavoidable. Short hourly news bulletins have evaporated from the main television channels, and I avoid opinion-led discussions of the news on TV, preferring to make my own mind up.

The issue that means I consume too much news is defining what it means to be “informed”. Requiring a broad range of sources for news means my own requirements are very high. I wouldn’t choose one channel, site or bulletin to serve as my single source, but if I was to reduce the number of places I search for news, it would feel like reducing my horizons, or not challenging my opinions enough. It may well be that I am thinking about this now because I am reaching my upper limit.