Skip to main content

Extra -- Future

History and future of programming Or, why AI is not coming for your job, though it may do many things.

Quote about automatic programming in 1940s.

While statistical models with trillions of parameters sound fascinating (and immensely capable), they are still dwarfed by biology -- purely mechanically, the brain has an estimated 100 trillion synapses. What's more, each has much more complexity than a single number in a statistical model.

But the limitations of LLMs are more significant than even those numbers indicate. Because the choice of what is in those parameters is much more significant than the total hypothetical data they can contain. Because there are an astronomical number of possibilities for what can be stored in this amount of data, so the important question is -- what actually is in there?

For the first generation of LLMs, the answer was to absorb as much text as could be found, and then build statistical completion models on top of them. Essentially, build the best BS generators possible -- given a question, what is the statistically most likely completion. Simple programs that could approximate this and be written in a few lines of code are called "markov chain generators" -- essentially, look at all pairs of words, and then for each word, give a weight to each possible successor word. Now, you can start generating text: start from a word, and then randomly pick the next one according to the weight given. Even with just pairs of words, you can get remarkable results sometimes. Add in triples of words, and you get even more convincing text. Increase the context immensely, and the size of the data, and add some more math, and you get the first generation of LLMs.

And while this was incredibly impressive, it partly relied on psychological tricks -- humans attribute intelligence to entities that can speak -- and was fundamentally nonsense, and so would not only hallucinate widely, it was pretty limited even within a domain that LLMs would go on to be very successful with: generating code. The problem was that statistically likely code was not always the right code -- it would mix together different parts that didn't actually all go together, so you might not even have syntactically well-formed programs.

So the next (into the current) generation of models involved massive amounts of what is called reinforcement learning. Essentially, the output of the model is given some kind of score (how good or how bad it is) and that is used to feed back into the model and tweak it. And this is done over and over and over again. Exactly how this is done varies based on the lab doing it, and plenty is proprietary, but the simplest example that can correct the earlier example is, on problems where it is supposed to generate programs, the score could be "does the program parse", or "does the program run without error". Doing enough of this training then causes the model to now produce the statistically most likely runnable program, which is a much more useful thing than the statistically most likely pile of program-looking-text.

But there is still an issue with this approach -- one that is fundamental to the entire approach: every bit of this learning involves using existing ideas to train the models. Historically, this was actual existing codebases (e.g., all of Github). But even if it now involves synthetically generated code, the code itself is generated according to other LLMs, or other processes created by programmers, and so it contains the same statistical signal as what has been previously trained into it, just remixed and reshuffled.

This leads us to an important conclusion: at tasks of synthesis of existing ideas, of finding or remembering ideas that were in the training data, LLMs are very good, and can be expected to get better and better, because the people doing the reinforcement training are very clever. And at these tasks, massive hardware clusters should be expected to surpass humans (if they haven't already) -- just as computerized databases surpassed humans ability to memorize facts using magnetic tape in the 1950s!

But humans also do something else, which is quite different from reshuffling existing ideas: creating novel ideas, related only tenuously to things from the past. This is not, necessarily, a common activity. But it is where all of our most important discoveries have originated. And it's just not something that can be trained for, because training requires scoring metrics, and the metric for a novel idea requires it to be successful in the world, which is not something that can be determined by a short feedback loop within a datacenter. You can aim for more creativity by making the models more random, but trying to produce "creativity" this way is unlikely to be very successful, as it runs up against the process of reinforcement learning (which needs a direction, and actual scoring metrics), which was what took LLMs from BS-machines to what they are now.

Humans get around this because we are not trained by short feedback reinforcement loops running inside computers. We exist in the incredibly complex world, and our brains have been evolving for millions of years. The ability for our brains to learn completely new things is astounding, and our ability to create new ideas is equally fascinating.

But coming back to programming. Why are LLMs as successful as they are, and why are they not coming for your jobs?

The truth is that programmers have become somewhat lazy. While hardware has become immeasurably faster, software is built upon many of the same abstractions as we've had since the 1960s and 1970s. There are many reasons for that, but one is that it has historically been so effective, that no-one had to do better. People could build the same program, slightly differently, over and over again, and each one could make lots of money, which meant, why change things? This repetitiveness has accelerated, if anything, with the advent of the web, as website after website reproduces many of the same systems and abstractions -- to great success! But if fundamentally we are building the same thing over and over again, then LLMs are extremely well suited, since they can be trained very well to produce functioning programs according to our specifications.

Even more, our programs are so similar that you can give a very short specification and an LLM can fill out the rest of how the program should work, and will often be correct, or close enough.

There is actually a good reason for that, and to really understand it, we have to take a detour and talk about one of the giants in the origin story of computer science: Claude Shannon. We owe Shannon two things: first, as a masters student, he realized that boolean logic (and, or, not, etc) could be used to tame the at-that-time (the late 1930s) wild chaos of electronics. The entirety of digital electronics is built on that idea: that small building blocks can be re-used, replicated, to build larger and larger things.

But the second thing he created, for his PhD, is what is relevant here. Shannon wanted to figure out how to study how much information existed within communication. He wanted to be precise -- he did not mean meaning, he simply meant the technical ability to reproduce words, symbols, etc. Context was an entirely different topic (and one that many were trying to figure out at the time, and we are still, essentially, grappling with). But context-less information is something that can be mathematically studied, as you can say: for a give message (sequence of letters, numbers, etc), what is the minimum number of boolean values, or bits that can allow someone who hears those bits can use to reproduce the message. Doing it with bits can be tricky, so we can cheat and use words instead. Let's say we had the message: hello hello hello hello hello hello hello hello hello hello

That takse a bit to say. But we can say this more compactly as "hello ten times" -- as long as we are clear that words like "ten times" mean to repeat what comes before, the person receiving the latter information can reconstruct the former message: it does not contain any less information, despite requiring many fewer letters! Shannon formalized that much more broadly, to talk about all information.

With that idea, that what we write has certain amounts of information, we can tackle the problem of program construction. Why is it that a small description can generate a large program? The large program has lots of detail -- how it works, how it looks, etc -- it must have much more information, in the Shannon sense, than our short prompt. But the training fills in the gaps -- because it turns out if we are writing almost the same program over and over again, the most likely "rest of the information" that gets filled in by the LLM is, more often than not, correct. And when its wrong, we can give the model a little more information to correct.

There was an alternate history envisioned in the 1970s, when computers were conceived as brain expanding tools, to be creatively wielded by people interacting with them.

This came, in part, out of Alan Kay's Learning Research Group, which existed at the Xerox PARC lab in Palo Alto, CA. Kay and others were the first to think about computers as things that individual people could own (previously to this, computers had been room sized devices, shared by many people who all connected to them via different screens). But even though Kay was the first to envision a laptop (the Dynabook), and many of the visual metaphors came out of Xerox PARC (the mouse, the desktop with windows, etc), he often laments that they missed the true idea of the personal computer, as they referred to it, because much of what they were trying to figure out was how to allow computation, programming, to be made available to the user.

The idea was that all aspects of the machine could be modified, bent towards the desire of the person using it -- different people would use them differently. The system that Kay was working on, Smalltalk, invented the notion of object oriented programming, but not for an architectural reason, but because he wanted to figure out how it could be possible to allow users to poke at a given part of a system and change it. In a running Smalltalk system, any part of any program could be opened and modified, and the system would then continue running, with the modification.

But that vision lost out as computers were commercialized. The alternate vision, the one we are living with today, came from Steve Jobs, who founded Apple Computer in 1976, said in 1977 that Apple had domesticated the computer. That instinct, which intentionally separated the priest-class of programmers from the users, became commercially dominant, and as computers (and tablets, and phones) have become more and more "appliance", users gradually know less and less about how the machine actually works. Rather than exposing computation, in its power and flexibility, programs expose limited buttons and dials, hiding all of the power and complexity inside, where only the exports, the programers, can work on it. There is frequently a push to make learning about computation a universal thing (and this has happened in many school systems, though with questionable results), but it is completely at odds with the way that computers themselves are available.

Why is this relevant? Because via LLMs, Kay's vision is essentially starting to happen. A user can design a program that does any of X, Y, and Z, assuming they know how to describe X, Y, or Z, and those are things that are well understood enough that the model can implement them. Even more interestingly, users are using LLMs to modify or reverse engineer existing systems to change them -- stripping bulky software off of smart TVs, for example. But all of these things, even the most interesting, work within the existing bounds of what computers are used for -- it just flattens the experience level -- democratizes the ability to create and modify software, essentially.

But who figures out how to use computers to do new things? There have to be people who understand the hardware and software capabilities enough to understand how to create new things. Once the ideas are well understood enough, LLMs may be able to implement them, but the ideas will not come out of thin air.

This task has always been a core activity of programmers. It is what is so hard about programming -- figuring out how to solve new problems, not how to solve problems that have already been solved, even if much of the commercial activity of programming, up until very recently, has been the latter. It also requires a very deep understanding of programming, of computer science, because there are fundamental limits on what is possible, and without understanding those, we will never understand the places we can push things.

The downside to this is that many jobs will dissappear. Because the expertise that was previously required to reproduce standard techniques no longer (or barely) exists. But what remains is even more fascinating. And what we've seen from the past is that the demand for computation is going nowhere. For people that understand how these machines work, deeply, and what can be done with them, there will always be something to do.