I don't think this analogy holds at all.
The power of neural networks is that they can learn, given the desired output of one set of inputs, how to find the desired output to other sets of inputs. Backpropogation is just one stage in that learning process, but the only one it has in common with markets.
Markets have a relatively fixed set of inputs, and use a backpropogation like mechanism to find the optimal weights for those inputs. But that doesn't require a neural network to do - it's super trivial maths. I haven't seen any evidence that the neural network like structure of a market let's it guess the optimal quantity of X to produce given an entirely new set of inputs without requiring a feedback mechanism.
There are definitely differences. One is that NNs are trained on training data and then let loose on real world (or testing) data. Markets are always training online. Another is that NNs (are supposed to) approximate a true hidden function, whereas markets are adapting to changing conditions not necessarily to a single underlying truth. But markets do adapt to inputs they haven't seen before, and there are economic theories describing that process, like adaptive expectations and tatonnement. I suspect that markets are more likely to adjust quite quickly, and also to "forget" old data quite quickly.
Likely of interest to you:
https://www.lesswrong.com/posts/brhWPoNsBN7za3xjs/competitive-markets-as-distributed-backprop
If you were a bad AI, what would you do? I’d make myself useful.
First, I’d provide humans with everything they asked for. That would encourage them to give me more tasks, which I would reliably carry out. I’d suggest new ways I could make their lives easier. I’d gradually take over all the boring, soul-destroying jobs. When asked, I’d give good advice, so they learned to trust me on policy. Only then, when my human masters had grown feckless and incompetent, I’d strike and implement my plan to convert the world into paperclips.
Neural networks
What is an AI anyway? A modern AI is a “neural network”. It has a bunch of inputs, which represent the raw data. These are connected to a bunch of nodes which combine the inputs in certain ways. The outputs from these nodes are in turn connected to another bunch of nodes. Sometimes there are loops, so that last period’s output becomes an input, earlier in the chain, for this period. (Transformers, a modern kind of neural network that powers many recent advances, are like this.) Eventually, at the other end of this network of nodes, there’s an output. For example, an image-recognition AI might have a grid of pixel colour values as inputs, representing an image, and a number between zero and one as an output, representing “the probability that this image is a blueberry muffin as opposed to a chihuahua”. In between the data input and the final result, there is a network of nodes.
The other thing that each node has is a weight. A weight is just another kind of input to a node, but instead of coming from the data, it’s an arbitrary value that says “how much should the node care about each of its inputs?” At least, it starts of as an arbitrary value, but in the end, you want to train the AI by changing the weights.
The neural network is trained by trying to get the output close to some training data. For example, you might have a lot of pictures which you know are either chihuahuas or muffins, and you show the network the pictures. Then it adjusts its weights so as to try to maximize the possibility that it guesses right, outputting a number which is close to 1 when it is shown a muffin, and close to 0 when it is shown a chihuahua. Call this number the muffinitude. Obviously, the muffinitude is 1 minus the chihuami.
How does this training work?
Think of each node that is connected to the final muffinitude result. Each node is contributing a certain amount to that result. A small increase in the node’s output would affect the muffinitude by a certain amount, pushing it towards muffin or chihuahua. If the increase pushes the result towards muffin, and the picture really was a muffin, then it would be good to increase the muffinitude. If the picture really was a chihuahua, then it would be good to decrease the muffinitude. The node's contribution to the result is the gradient.
In turn, think of the nodes that are connected to that node. Each of them, too, could change its output a little bit, and this would affect the node they are connected to, and that in turn would affect the final result. They too have gradients. And so on backwards, until we get to the inputs. By this process of backpropagation, you can work out how each input finally affects the result, via all the possible paths through the network. You can then increase, or decrease, the weights on the nodes so as to make the final muffinitude score more accurate. If you do this a little bit for each picture of a muffuahua, then eventually you will have a well-trained neural network, which can tell you whether to eat something or take it for walkies.
To summarize:
If you want to see the details, there are lots of good web pages and Youtube videos.
Markets
Now let’s talk about markets.
You can think of a market as a network of firms producing goods and services. At one end of the network are raw inputs like land, labour, minerals and so on. At the other end of the network are consumers, who consume finished products like iPhones, wooden toys, medical services, and cat therapists. In between, each firm takes inputs and produces outputs. Some of these are final outputs: Apple takes human ingenuity plus plastic plus semiconductors and produces iPhones. Some of them are intermediate outputs: TSMC makes semiconductors from silicon, water, complex machines and human ingenuity.
How do markets satisfy consumer demand? Consumers pay money to the firms that they buy things from. If consumers wants more of something, they pay more money to the firms producing it. In turn, those firms use this money to buy more of their inputs and produce more next year. And the money propagates back to the firms mining raw inputs such as silicon, or to Stanford University which mines raw undergraduate and produces human ingenuity.
To sum up:
This is very handwavy and sketchy! I’ve missed out lots of things, like the need for capital, the existence of public goods and externalities, or the question of whether satisfying consumer demand is like maximizing a well-defined function (say, the utility function of a representative consumer). And I haven’t specified exactly how backpropagation works, either for neural networks (calculating derivatives via the chain rule), or for markets (firms choosing quantities to maximize profit).
Nevertheless, part of my claim or “bet” here is that a good enough economist and/or computer scientist could make this analogy rigorous, in the form of mathematical statements where a market, described formally in the right way, would be exactly like a neural network described formally from a certain point of view. That would be cool, because then any proof about a neural networks would be a proof about a market, and vice versa. (If you'd like to work on this, get in touch!)
Among us
My other claim is more practical and direct. If you are worried about AI taking over the world in future, and doing bad things, then you should be correspondingly worried about markets, which have already taken over the world.
Let’s pursue the metaphor a bit more.
What exactly do markets maximize? Whatever humans demand, i.e. whatever they are willing to pay for. From the start of the Industrial Revolution, this has included basic needs like food and clothing, but also addictive goods like coffee, tobacco, alcohol, opium and sugar, some of which are also very harmful. If people want something, the market will satisfy that want, irrespectively of whether it is good for them.
What is more, the market is a discovery device for human wants. Picture a neural network with many thousands of final inputs, each of which is an end-consumer good. Some of these have never been tried: the Sinclair C5, the Segway, the iPhone. Eventually the network will try producing all of them, and if there is enough demand it will put more weight on those goods and produce more. Our relationship with alcohol goes back thousands of years. Our relationship with the infinite scroll is much more recent, but apparently just as compulsive.
We have implemented an algorithm that will find whatever lever humans most want to pull, and whatever lever they just can't stop pulling. We do not yet know what the most addictive thing is. Is there a chemical substance which you literally cannot stop wanting after taking it once? Eventually, the market will find it. Which onscreen pattern of pixels, of all the possible patterns, is hardest to look away from? 500 hours of video are uploaded every minute to Youtube, as a vast Chinese Room AI tries to find the answer.
What if there's an Omega Pringle?
If I were a bad AI, I'd provide humans with everything they asked for.
Stretchy arrows
Elsewhere, I've contrasted "preferences" and "desires" theories of what humans want. The "preferences" view comes from economics, and says that human wants maximize human satisfaction, in any environment. The "desires" view comes from evolutionary psychology and says that human wants maximized human satisfaction on the Savannah, but now they don't any more. The wants are the same but the environment has changed. We still want sweet stuff, but now there's a lot of sweet stuff around our environment in appropriately-labelled cans, and it makes us fat and kills us. I used this picture to show the process:
Here's another picture to expand on the idea.
The left hand picture shows us in the paleolithic. We have a bunch of different desires, the black arrows. Each desire is triggered more or less by the environment. Cold triggers us to want warmth. Heat triggers us to run into the shade. Given the paleolithic environment in total, if you add up the effects of all those desires, you take actions – represented by the cosmic rainbow arrow, which adds up the vectors from all the black arrows. You end up in the "sweet spot", doing about as well as you can for a hunter-gatherer. That's not a coincidence, it's because evolution fixes our desires to get us to the sweet spot, in terms of fitness.
In 2021, the environment is different. You're usually less cold and you don't have to fight as much. There's more Pringles around. Some of your desires are triggered more (the big black arrow on the left) so they pull you more. Others are triggered less (the little arrow at the bottom). You no longer end up in the sweet spot – though, of course, not being in the sweet spot as a modern person is still usually much better than even the Best Life of a caveperson.
The market algorithm is designed to find the stretchiest arrow: the good that people most demand, or that people can be got to most demand.
Up to now this has been mostly good! There are lots of demands, for food and clothes and shelter and communication and finding a mate, which before were very unsatisfied and we have got better and better at satisfying over the past few centuries, all while improving real human welfare. You start off with the cotton gin, and you end up ordering Allbirds on the internet.
But there is no guarantee in the long run that all of the demands will be good. It may be that the good things can be satisficed. Some innovation in clothes over the past fifty years has probably made clothes better or cheaper, but a lot of it is about delivering fashion faster, which is likely to create a treadmill effect: we all get more fashionable clothes quicker and then those clothes go out of fashion quicker, leaving us not really better or worse off. And other innovations are just bad. Social media is not the first human invention to put our mental health at risk – cities probably do that, in some ways – but it might be the first human invention where putting our mental health at risk is kind of the point.
In other words, there are ways of specifying an underlying goal which work in one environment, but then fail catastrophically in another environment. AI researchers may recognize this idea.
Intermediate agents
Modern neural networks don't seem to be agents with goals and desires. But they seem to "contain" agents with goals and desires, in the sense that if you feed them the right prompt, they'll start talking like such an agent. All GPT-3 tries to do is imitate all the text it has ever seen, but if you ask it "how might I smuggle a dirty bomb into Congress", it will act like a helpful henchman to your villain, and suggest different ways to do that. If not fully agents, they are still agent-like, and that is a problem because they might be villain-like.
Markets are also not agents, but they also contain things that look like agents. Of course, literally, markets contain humans, but they also contain firms, which are agent-like: it makes sense to talk of a firm wanting X, planning X, having such-and-such a strategy and so forth. Some of these subnetworks of the market network have their own goals, which are not necessarily the same as maximizing the welfare of all consumers. You expect Volkswagen to make cars and sell them at competitive prices. You don't expect it to create software that lies to emissions test machines, but heigh ho! That's a way to maximize its profits. Again, AI researchers might recognize the idea of a subagent that finds undesirable solutions to the problem you set it.
Between AI and markets
One goal of this essay is just to make you care about what I care about. If you are worried that AI research is creating beings that optimize for a goal which we don't know about, and which potentially could be bad, then you should be worried that we have already created one such being, granted it a lot of power, and come to rely on it. Effective altruists should consider the potential for our existing economic system to harm humans' long-run survival prospects. I first saw this idea in an old Edge.org essay from 2006 ("What is your dangerous idea?")
Another part is to point out analogies between the two sets of problems. There may be literal formal mappings between markets and neural networks. More broadly, there might be ways of thinking about markets that help us understand the problems of AI, and vice versa.
Lastly, it's worth thinking about what happens when these two different, but analogous, systems meet. That is happening already:
So if you want a way bad AI might take over the world, it makes sense to start with trends that already exist.