Dimitri Glazkov

Doers, Thinkers, and Magiciansseven days beforeI’ve been reflecting on my experiences of working with developers and developer…Zones of LLM predictability

· 5 min read

Composing graphs with Breadboard2023If you even occasionally scan these chronicles of my learnings, you will…How we engage with LLMs2023When we engage with an LLM with an Opportunist Mind, we are…As you may know, large language models (LLMs) are smack dab in the middle of my tangle of interests presently, so you can bet I spend a lot of time talking with my friends and colleagues about them. One lens that seems to have resulted in fruitful conversations is the one related to predictability of output.

Reasoning boxes2023This story begins with the introduction of metacognition to large language models…Recipes for Thought2025I’d like to present to you a distinction: two different approaches I…AI Patterns and Breadboard2023The Summarizer pattern has a much more popular cousin named Retrieval-augmented Generation…In this lens, we look at the LLM’s output as something that we can predict based on the input – and the reaction we might have on the outcomes. If we imagine a spectrum where the results are entirely unpredictable at one extreme, and can be predicted with utter certainty at the other – then we have a space to play in.

For a simple example, let’s suppose we’re asking two different LLMs to complete the sentence “roses are red, violets are …”. If one LLM just returns a bunch of random characters, while the other consistently and persistently says “blue”, we kind of know where we’d place these models on the spectrum. The random character one goes closer to an unpredictable extreme and the insistent blue one goes closer to the perfectly predictable end.

For ease of navigating our newly created space, let’s break it down into four zones: chaotic, weird, prosaic, and mechanistic.

🌫️ Chaotic

Wanderer2023Here’s another little experiment I built over the break. Like pretty much…In the chaotic zone dwell the LLMs that basically produce white noise. They aren’t really models, but random character sequence generators. By the way, I asked Midjourney illustrate white noise, and it gave me this visage:

(It’s beautiful, Midge, but not what I asked for)

This zone is only here to bookend the very extreme of the spectrum. Suffice to say that we humans tend to only use white noise as means to an end, mostly judging it as useless on its own.

🐲 Weird

Becoming a setting2022For a less made-up example, let’s look at Midjourney. If asked to…The adjacent zone is where the model outputs something that is weird and bizarre, yet strangely recognizable and sometimes even almost right. Remember the whole “hands” thing in the early generative imagery journey? That’s what I am talking about.

(“A normal human hand with five fingers” – whoopsie!)

Midjourney2022I recently got an invite to play with Midjourney, one of the…This zone is where LLMs are at their creative best. Sure, they can’t count fingers, and yes, some – many! – outcomes are creepy and disturbing, but they also produce predictions that are just outside of the norms, while still retaining some traits that keep them outside of the chaotic zone. And that stirs creativity and inspiration in those who observe these outcomes. This is the zone where a model is more of a muse – odd and mysterious, and not very serious. Yet, when paired with a creative mind of a human, it can help produce astounding things.

📈 Prosaic

Teaching AI to write lyrics2024I have been on a bit of a kick to get the…The prosaic zone is where an LLM produces mostly the results we expect. It might add a bit of flourish in bursts of creativity and insert an occasional (very safe) dad joke, but for the most part, that’s the zone that I also sometimes call the “LLM application zone”. If you ever spend time getting your retrieval-augmented generation to give accurate responses, or only return code results that can actually run – you’ve lived in this zone.

(“a happy software engineer working, stock photo” – oh yes, please! More cliche!)

Asymptotes and Value Niches2023This happens because of the fairly common dynamic playing out at the…AI Developer Experience Asymptotes2023To make the asymptote and value niches framing a bit more concrete,…My own explorations are mostly in this zone. The asymptotes I outlined earlier this year are still in place, and holding. If anything, time has shown that these asymptotes are firmer than I initially expected.

⚙️ Mechanistic

The engine and the car2023This is already happening with LLM-based products. Very few current offerings that…Another bookend of the spectrum is the mechanistic zone. At this point, LLM output is so constrained and deterministic that we become uncertain if using an LLM is even necessary: we might be better off just writing “old school” software that does the job.

Reinventing Organizations Redux2024This one is a bit out there, if only to connect some…The mechanistic zone is roughly the failure case for the current “AI” excitement. Should the next AI winter come, we’ll likely see most of the use cases shift toward this zone: the LLM either constrained, significantly scaled down in size, or entirely ripped out, replaced with code.

💬 A conversation guide

Now that we have the zones marked in the space, we can have conversations about them. Here are some interesting starter questions that generated insights for me and my colleagues:

For more adventurous travelers, here are more questions that push the boundaries of the lens:

Models and structured reasoning2023One of my colleagues quipped recently that instruction tuning might not be…Makers and Magiciansfour days afterI want to finally connect two threads of the story I’ve been…As you can tell, I am pretty intrigued by the new questions that large language models surface to us. If you’re interested in this subject as well, I hope this lens will be useful to you.