But they're good at fooling us

By Nate

Published: 2024-02-28

URL: https://natesnewsletter.substack.com/p/llms-are-bad-at-code-and-product


I tried like six ways to write this title, and some were more clickbait-y (No Virginia, the LLM will not take your job). But in the end I settled on the plain statement of fact, because I think honestly it's attention-grabbing enough in an era of AI hype.

I mean here I am writing this blog post in the same week that the CEO of Nvidia has declared that code will soon be obsolete and we should probably stop learning it so much because the computers will write their own code after prompting with an LLM.

Which is great for his business. Really. Because his business sells the GPU's on which LLM's are trained. But despite my enormous respect for Jensen Huang and his absolutely brilliant leadership over the last 30 years, I do not think he's right about this.

LLM's are bad at code for some pretty inherent reasons that also make them bad at complex human tasks like product management. There are ways you can correct for this, mitigate this. But at the end of the day the mitigations are just that: small correctives that reduce the footprint of impact of the mistakes a tool will make when you use it to do what it was never designed to do.

LLM's were designed to be very very good at copying internet English. And increasingly, dozens of other internet languages. I think the total where we can depend on LLM fluency is climbing past 30 rapidly. So they're good at language stuff, and fundamentally that means people think they are good at a lot of other things where they aren't good at all.

Like for example, the poor guy trying to get a ticket to a funeral on Air Canada's website thought that the LLM knew the bereavement policies of Air Canada because the LLM talked so good it sounded like it did. It sounded like a reasonable person, it hallucinated a policy that wasn't there, and Air Canada was taken to court for it. Hilariously, they tried to claim this English word generator on their site was a special separate entity and the judge more or less laughed them out of court.

But here's the point: the LLM (I would argue) was not the one hallucinating in a relevant way here. The humans designing the system (including product managers) and the humans using the system (Air Canada's customers) were hallucinating a degree of competence they couldn't reasonably expect because the LLM was good at English sentences.

And historically, for like all of human history, when someone has been good at language we've successfully used that as a proxy for intelligence. We say with some degree of reliability that this person is probably good at a host of other things (like decision-making or analysis) because their language skills are pretty good. Look, it's not a perfect proxy, but it's still what we use for most interviewing (outside engineering).

Skill with language arts is also what we've used to measure social standing for uncounted generations. Taylor Swift is partly stuck in all our heads because she's a gifted musician, but her lyrics are what give her music the ability to play on repeat endlessly in my living room without giving me a headache. They retain the ability to surprise on re-listens, to the point where she has analyses written about her songs. And this happens because she is good at language. And now she's worth something like a billion dollars depending on who you ask on a given day.

As with Taylor Swift, so with the ancient greek oral poet Homer. The guy slaps. So does Shakespeare. And their words resonate and we remember them because they are good at makings words with meaning. And now, for the first time in history, we have words with meaning being made by a machine. And we are very bad at taking apart our assumptions about intelligence from the LLM's ability to put sentences (and even code) together.

Look, I'm not writing into the void because I don't have a ChatGPT account like everyone else. I love Chad (as I call him) and Chad and I have great conversations. Chad helped me work through compiling and execution issues with a C program that calculates Javanese calendar dates with Gregorian calendar inputs. Would never have happened without Chad. Chad is great at helping me get to the internet average thinking on very specific topics, and sometimes that is exactly what I want.

If I want the standard PM framework for a particular task, it has never ever been easier to get. Chad is way way better than Google at tasks like that. But my point is that just because Chad can help me run programs in C or can retrieve a great PM framework with a simple English query, it does not follow that Chad actually has the judgement necessary to do the job of product manager or engineer well. Put simply, Chad doesn't.

The reason why Chad (I'm sticking with the nickname, it's fun) and other LLM's are very good at the tasks I described above is because they've seen so many examples of that stuff in their training data that they can create a string of tokens in responses that reliably mirror the correct response. Mirror it so well you think that Chad actually knows the response. And honestly, that hallucination in your head and mine is (to quote Douglas Adams, who would have loved 2024) Mostly Harmless. You can go on believing it, because it represents an approximation of the world that mostly works. Chad produces good enough snippets of code and can help run a C program and can get you that PM framework and it's like not exactly what you would have written but it's close and it's good enough and it's really fast.

And here is where the argument turns, because what I'm saying is that because of the way Chad got good at language, Chad is inherently bad at a lot of other tasks that I'll lump under broad topics like intent, state awareness, and human judgement. And more importantly, the way Chad got trained means there is no easy way to fix this. Chad is steers about as well as an oil tanker.

What I mean by that is that when Google Gemini was released, and there was a widespread internet scandal about Google Gemini's representation of art for certain prompts, almost no one talked about the fact that steering Gemini was sort of impossible to begin with.

When you steer or guide an LLM you have two ways to do it: you can take inputs from the user, which vary widely and need to be parsed and understood as inputs by the model, and you can also augment that input with additional stuff you give the model behind the scenes. So what Google is doing is they are giving Gemini instructions behind the scenes to make it more likely that it will produce a result that their customers will find useful.

Now, let's just leave aside whether they accomplished that goal. Because the point here is that Google is not doing anything to that model that OpenAI isn't doing to their models. Giving models instructions in plain English as an augmentation to the prompt is literally just how models generate results. Models have to be steered, we cannot steer them with code, we cannot foresee precise results, and so we just hand Chad a bunch of English additional language in addition to the English that the person chatting with Chad just threw in there and we hope for the best.

\A hapless engineer looking at the giant hulk of an LLM trying to steer it. We forget how enormous LLM’s really are (linkhere)\

That is literally how it works. There is a whole job family for this called Prompt Engineering and I hear it pays well. There are even prompt engineering guides. There is no magic button to steer LLM's. It does not exist. There is no magic button to get to precision without trying to say THIS IS A MAGIC BUTTON in plain English to Chad behind the scenes. And then you hope Chad produces tokens that reflect that you said that in the instructions. And I don't think most people understand this, because mostly people live in a world where they assume that engineers possess magical controls over the LLM's they build. They don't. LLM's are non-determinative systems, which is a fancy way of saying they don't know how to explain what they do, and we can't exactly tell why they do what they do, so they're basically not accountable (let's leave aside Asimov's laws here).

So why does this quality of plain English steering make LLM's so bad at product and code? Because at the end of the day plain English processed through an LLM is a great way to get expanded plain English that looks internet average, and an absolutely abysmal way to express intent precisely. And code is precise intent in structures. Code is designed. Code has a structure to it, and that's why good architects are worth their weight in palladium.

What I'm saying is not something that will be less true tomorrow when (with my luck) OpenAI will release some amazing new chatbot enhancement. It's still going to be true regardless of how good LLM's get because LLM's are just not very steerable, not very precise. And so it's hard to build precise, accountable systems with them. In fact, I would suggest it's impossible.

How do we build precise, accountable systems? Well, we build them with code. And because the world of LLM's is going to need (if anything) even more precision than our previous software required, we're still going to need precisely constructed code, which means we will still need engineers.

The same goes for product managers, by the way. An excellent PM encodes intent in time to deliver software that works for customers. Chad will give you a PM framework, but Chad can't give you a market strategy that works when you're 2nd in the market and have immense capitalization pressures. Chad can give you the RICE framework, or the MOSCOW framework, but Chad can't give you the business judgement to say that a particular thing is the right thing to build now, in this industry, with this team, with this set of leadership requirements. Because Chad is not good at human judgement. Because human judgement requires sharp, precise thinking. And Chad is bad at that because Chad repeats a lot of English Chad has seen before, and repeated averaged patterns are actually actively unhelpful when it comes to strategy development. They kill the originality that wins.

And more steering won't make Chad good at that, by the way. Telling Chad to be more original does make Chad more likely to put together nontraditional strings of tokens, and this may prompt some ideas for a good PM who is using the chat. But at the end of the day, Chad is not going to be able to imagine and encode intent over time with stateful, precise awareness across several hundred stakeholders for months and years until the company's product positioning has transformed. But an excellent PM can do that for you.

Look, is this future-proof? Will OpenAI release GPT-5 in a month and everyone will be amazed at its language skills? Yes. Will they continue to work on tuning prompts so that Chad gets better at simulating intent? Sure. Will Google fix the Gemini issues with some clever prompting? Probably? That one might take a training data fix too. But the point is, models are going to get better in the direction they are going, and we need a fundamentally different kind of leap in artificial intelligence to deliver the kind of generalized intelligence PM's and engineers display.

Now, that doesn't mean both product management and engineering won't see huge changes driven by the advent of LLM's over the next few years. We absolutely will. And I continue to believe that in general workers who use LLM's will outperform those who don't (studies show this already). And it may even be true that the pace of investment in AI coupled with the massive rise in compute (thanks Jensen) will make that next breakthrough more likely, more a matter of years than decades.

I could potentially buy that, and we'll re-evaluate our jobs then while we enjoy Skynet. But until that time, I'd like us to have more honest conversations about LLM's, admit what they are good at, and stop hallucinating to ourselves about what they are not good at doing.

As Douglas might say: LLM's, they're mostly harmless.

So long, and thanks for all the fish,

Nate

If you liked this, share and give a subscribe!