Home Artists Posts Import Register

Content

[This is a transcript with references]

Chaos control is not easy, as all parents knows. Indeed, it’s so difficult you might think it’s just impossible. After all, true chaos means that even the tiniest changes can have large and, in practice, unpredictable consequences. Like the butterfly in China that causes a tornado in Texas. If chaotic systems are so sensitive to small perturbations, trying to correct them could just make things worse. Maybe it’s easier to let little Paul throw the spaghetti at the wall and clean up later. But surprisingly it’s indeed possible to control chaos. Just exactly what is chaos control? How does it work and what can we do with it? That’s what we’ll talk about today.

Chaos sounds mysterious, like something anomalous, a disruption of the normal order of things. But in fact, chaos is everywhere.

The solar system, for example, is chaotic. In illustrations, the solar system looks like the most orderly thing ever, but we only know it to be stable for the next few million years. After that, it’s possible that one or the other planets gets spontaneously derailed from its orbit.

The planet that’s most susceptible to this is luckily not Earth but Mercury. That’s because its orbit gets close to the sun in almost the same time interval as Jupiter. If the two planets fall into resonance that will probably destabilize the orbit of Mercury because Jupiter is so much heavier.

According to computer simulations, what will happen then is that either Mercury gets ejected from the solar system, or it falls into the sun, or it collides with Venus. Which way it pans out depends very sensitively on the exact orbits of the two planets, so we don’t know whether it will happen. Either way though, it’ll be quite a spectacle, so mark your calendar for the year 5 million.

More seriously, this is how chaos was discovered: by studying the solar system. In 1887, the King of Sweden offered a prize to whoever could show that solar systems in general, but ours in particular, are stable, and the planets will orbit patiently around the sun, until the sun runs out of nuclear fuel. Henri Poincare thought he could show it but ended up proving the opposite. He found that the paths of the planets depend very sensitively on the initial conditions. He had discovered chaos, and he did win the prize.

The topic didn’t receive much attention for a couple of decades, which might have had something to do with two world wars getting in the way of science. But chaos was rediscovered in the 1950s by Edward Lorenz. Lorenz was making weather predictions with one of the first computers. By sheer coincidence, he noticed that when he rounded off the numbers that the simulation started from to three digits after the point rather than six, he’d get vastly different results. Those additional tiny digits made a big difference for the outcome.

But the equations that describe weather are really complicated. To understand better what was going on, Lorenz took all those weather equations and simplified them. He wanted to extract the essence of this weird chaotic behavior. Lorenz arrived at a set of just three equations. They are now called the Lorenz model.

The Lorenz model describes a curve in an abstract 3-dimensional space. This curve will rapidly approach a shape in the middle that coincidentally looks somewhat like a butterfly. But the curve will seemingly randomly continue to switch back and forth between the two sides. You can loosely think about these two sides of the Lorenz model as two weather situations. Say, the one sunny sky no rain, the other grey and rainy. This shape that the curves approaches is called the “attractor” because it’s like the curves are “attracted to it". Though strictly speaking what you see in this figure is not actually the attractor. It’s just a curve that’s very, very close to the attractor.

The way that chaos shows up in Lorenz’s simplified model is that initial conditions with just a tiny difference will rapidly run apart. Here is an example for this. Initially the difference is so small you can barely see it. But wait a bit and the curves each do their own thing. This is why weather prediction is difficult.

Is there a way to prevent this from happening? This is the question that the research area of chaos control tries to address. It’s a way to nudge a chaotic system into a regular, non-chaotic behavior that becomes predictable.

Chaos control was theoretically proposed already in 1990s. At this time, physicists and mathematicians had figured out that those attractors of chaotic systems are made of an infinite number of orbits which are periodic and therefore predictable, but they are also unstable. The actual path of the system switches between those unstable periodic orbits. But since the system is so close to the periodic orbits, it only takes very small corrections to keep it on them.

That’s an amazing insight because it’s so counter intuitive. You’d think that perturbing a chaotic system just makes the chaos worse, but not so.

In the years after the first paper on chaos control, a couple of different methods were proposed for it. Here is a particularly simple example for chaos control on the Lorenz model. As you see, it stabilizes the system on a periodic orbit on one side of the attractor. If you keep in mind our weather analogy for the Lorenz model, you’ve just made sure it’s raining forever, congratulations.

These periodic orbits can become really difficult and in general it’s not so simple to figure out just what correction you need to keep the system on one of those orbits. However, one can use machine learning to do this, or to use the expression that you more commonly read in the headlines, you can use artificial intelligence.

In a paper from last year, two researchers from the University of Munich in Germany did exactly this. They trained artificial intelligence to provide feedback into the Lorenz model and stabilized it on a number of different periodic orbits. There are two things to take away from this. First: Artificial intelligence and chaos control work together very well because the AI learns just what a necessary correction is to control the chaos. And second, this is a very recent development.

But the Lorenz model is a fairly abstract example. A somewhat more tangible example is the double pendulum.

As the name says that’s a pendulum but rather than just having one straight arm, it’s got a second joint, so it has more ways to move. The motion of a double pendulum is highly chaotic. In this little animation you see two copies of the double pendulum with slightly different initial conditions, though they are so similar you initially can’t see the difference. They quickly run apart and then each do their own thing. In this animation you see an overlay of ten different initial conditions for the double pendulum. Initially the motions are strongly correlated but after just a few seconds they become entirely uncorrelated. That’s chaos in action.

Can you prevent the double pendulum from being chaotic? Yeah, just let it hang down. This is a stable solution and it’s easy to reach but admittedly one doesn’t learn much from it. What’s more difficult to control is keeping the double pendulum stable when it’s pointing up. This is called the inverted double pendulum. One can indeed train an artificial intelligence to keep it stable as you see in this very impressive video from the technical university in Vienna.

Here is another cute example of chaos control by machine learning, where the software learns to keep a toy car on a racing track.

These videos are more than 10 years old, so basically from the stone age of YouTube. Since then the field of chaos control has totally exploded because artificial intelligence has become so much easier to use. And that in return is partly because of the easier access to computing power and to algorithms, education, and training.

So we have this really beautiful conjunction of developments in different fields. This is one of the reasons why robots can suddenly walk, whereas for a long time they’d just fall over. It’s because artificial intelligence has become so much easier to use and so much more powerful at chaos control.

The other part of the reason is that computer models of robots are now so good that training the AI can be done on a computer. The robots don’t have to walk around and fall in reality. They fall in a virtual world. This way they can learn dramatically faster.

But making robots walk isn’t the only thing you can do with chaos control. We’re not anywhere close to controlling the weather, it’s just too big a system and also, the places where you’d have to inject your chaos control move around, which is in itself difficult to predict. I think that one day we *will be able to control the weather because it’s theoretically possible, but it’s not going to happen in my lifetime.

One thing I’m sure is going to happen in my lifetime is chaos control in nuclear fusion plasma. I’m sure about this because it’s been done.

In 2019, a group of researchers from Harvard and Princeton trained an artificially intelligent system on data from the Joint European Torus, that’s currently the largest tokamak in the world, and another tokamak, that’s currently the biggest in the United States. They taught it to recognize data-patterns that signal an impending plasma instability. And they were able to do this with good success. In their hindsight analysis, they correctly identified an imminent instability one second ahead in somewhat more than 80 percent of cases; 30 milliseconds ahead, they saw almost all instabilities coming.

And that’s super interesting but what you really want to do is use this ability to predict what’s coming to prevent it from happening. You want to control the chaos. This was recently done by researchers from Deepmind. In a paper earlier this year they reported they’d actively controlled plasma in a test reactor. This is a tokamak device called TCV located at the Swiss Plasma Center in Lausanne. It’s fairly small, with a size of about two meters in each direction. In it, the plasma is held by strong magnetic fields that can be manipulated with a number of controllers.

This tokamak runs only for a few seconds at a time and it’s difficult to get run time on it because many groups want to do experiments with it. Quite often the biggest problem in science are other scientists.

To shortcut this problem, the people from Deepmind trained their artificial intelligence on a tokamak simulator, that has also been developed by the group in Lausanne. So: Take the AI, train it to control another software to save time, then take the trained AI to control the real thing.

And their AI control of the plasma worked out beautifully. In this movie on the left you see the measurement of the actual plasma inside the tokamak. On the right you see the reconstructed shape of the plasma. The Deepmind people were able to coax the plasma into a large number of different shapes including a triangular one, and two separate droplets which had never been done before. I find this an remarkable achievement and I’m sure it’ll become super important for nuclear fusion reactors in the future.

In my mind nuclear fusion is not a problem that can be solved by building bigger things. It’s really a fine-tuning problem that must be addressed both by making sure the reactor vessel is equipped with ample measuring devices and controllers, and by hooking it up to an AI to provide feedback in real time. It’s not just that I think building bigger reactors isn’t going to help in this case, it’s also that building bigger things also takes a lot of time and by the time the thing is done, the technology is already out of date. This, I am afraid, will be the problem with ITER.  

If chaos is so common, then why does the world look so orderly? That’s one of the biggest unsolved problems in science at the moment. It seems that naturally occurring adaptive systems increase their complexity until they’re just about barely not chaotic. Naturally occurring adaptive systems are for example living creatures, plants and us, but also institutions and societies. Stuart Kauffman called it poetically the “Edge of Chaos” that we live on, but it’s more technically referred to as “Self-organized Criticality”.

Just why the world is that way, no one really knows. But loosely speaking it seems that if you want to get something done, then both too much order and too much chaos is bad. Or, to put it differently, some chaos in your life is good. You just have to know how to keep it under control.
 

Files

How Chaos Control Is Changing The World

Try out my quantum mechanics course (and many others on math and science) on Brilliant using the link https://brilliant.org/sabine. You can get started for free, and the first 200 will get 20% off the annual premium subscription. Physicists have known that it's possible to control chaotic systems without just making them even more chaotic since the 1990s. But in the past 10 years this field has really exploded thanks to machine learning. The full video from TU Wien with the inverted double pendulum is here: https://www.youtube.com/watch?v=B6vr1x6KDaY The video with the AI-trained racing car is here: https://www.youtube.com/watch?v=30x1-bcpmNY And the full Boston Dynamics video is here: https://www.youtube.com/watch?v=fn3KWM1kuAw 👉 Transcript and References on Patreon ➜ https://www.patreon.com/Sabine 💌 Sign up for my weekly science newsletter. It's free! ➜ https://sabinehossenfelder.com/newsletter/ 📖 Check out my new book "Existential Physics" ➜ http://existentialphysics.com/ 🔗 Join this channel to get access to perks ➜ https://www.youtube.com/channel/UC1yNl2E66ZzKApQdRuTQ4tw/join 00:00 Intro 00:47 Chaos is Everywhere 03:08 The Lorenz-Model 04:39 Chaos Control 06:54 The Double Pendulum 08:12 Applications of Chaos Control 09:48 Chaos Control for Nuclear Fusion 14:04 Science and Maths Courses on Brilliant #science #physics #technology

Comments

Anonymous

I suggest Chaos simulation & control as a field for Sabine to research in the future, I'm pretty sure there's a valid way to justify it somehow. 😀

Anonymous

Without doing any research, I'm wondering if the chaos control effectively adjusts the parameters of a system to move it into a non-chaotic regime, say a simple limit cycle, or if the chaos control works on the system in such a way that it is merely in a pseudo limit cycle regime. In the former case, the future of the system is exactly predictable at all points in the future while in the latter case, the system will only be approximately predictable, not straying far from the limit cycle path it approximates. I did finally buy a hardcopy of Lost in Math. I had listened to the audio book a while ago, but there's nothing like an actual book. Sabine, your royalty is what, about 38 cents or so. Merry Christmas, don't spend it all in one place.

Anonymous

This was great! I love hearing that we are making progress on something. The animations were excellent and I suspect required extra effort. DeepMind has chalked up win after win. They were on the cover of Science earlier this month with competition winning code generated by AI: https://www.science.org/doi/10.1126/science.abq1158 Whether it’s protein folding, poker, fusion, chess, or Go, seems like AI is the way to go. For anyone who hasn’t seen it, the AlphaGo documentary was entertaining https://g.co/kgs/Ycbnf6 Merry Christmas!

Anonymous

What if we turn chaos control into game theory, with more than one player trying to optimize their own utility function? India wants monsoons on schedule, but Sub-Saharan nations want more precipitation and less warmth? Is it still possible to control chaos?

Sabine

Ha, I will make sure to hold back. Merry Christmas too you too & many thanks for your support.

Sabine

Yes, the animations were somewhat of a pain to be honest but in the end they came out well. Merry Christmas to you too!

Anonymous

Just the useful bits, then. Chaos is too interesting to completely vanquish.

Anonymous

Several years ago McDonald's sold 30c soft-serve cones. That was good when I was chronically underfunded while out and about. Inflation sucks, except for the expansion of Cosmic Inflation.

Anonymous

@Tracey DeLaney, my understanding is that they are using "control theory" which perturbs the system in an ongoing dynamic way, not by a static change of parameters...

Anonymous

SpaceX booster landing uses this too, afaik

Anonymous

I speculate that once you have more than one player trying to control chaos for their own benefit, that it becomes "Mutually Assured Chaos" (MAC, similar to MAD-Mutually Assured Destruction") unless one player can outcompete all other players. And that this is an incentive for cooperation, for higher levels of organization to form that have only one utility function instead of several competing ones, both in biological and human systems, so MAChaos leads to MACooperation, at least sometimes, given the right conditions (whatever they are). Predictability is a factor in evolutionary fitness, so by forming a higher level organism, one can have more predictability than competing with other organisms. On the other hand there might be a tradeoff with innovation, which is spurred not only by competition between groups, but also by competition within a group, by its (previously independent) parts, which have become entangled by forming the group in the first place. Recently I published an evolutionary game theory paper in Evolution that uses the word entanglement in a very different way than in Quantum Measurement, but of course my mind's natural propensity to consilience (a feature scientists share with conspiracy theorists, though the former are also constrained by another evolutionary heuristic, namely Occam's razor) led me to think that perhaps one can cast quantum mechanics as at least two classical "players/particles/fields", each trying to minimize its own action, instead of having one universal action which is classically minimized. Quantum fluctuations may result from this multi-action minimization sometimes, and also, under certain (coherent) conditions, there is only one action to be minimized. On the other hand, a macroscopic number of players leads to classical behavior with one effective action.

Anonymous

Thanks, luval, I've been replacing the thermocouple in my furnace this morning and I haven't had the time to chase this down myself.

Anonymous

influence chaos in the direction of less chaos maybe, control may be too strong of a word.

Anonymous

In all this chaos, Merry Christmas and Happy New Year from Minneapolis MN USA.

Anonymous

However, I can't find where I got this from, so plz apply the salt.

Anonymous

Controlling the weather might be technically possible in 100 years from now, but, as the weather does not respect country borders, it might take a 1000 years before an international agreement is reached about which weather we all want.

Anonymous

I agree with Colleen. The robot balancing a jointed pendulum reminds me of seals balancing beach balls (or beers if you know the ancient Guinness ad). The next step (ahem) is the more dynamic fall and catch, i.e. walking, juggling, etc. AI tuned tokamaks seems to be like this, but is it? I'm really amazed at how well the modeling to train the AI worked. I wondered about the relation between the simulating program and the controlling program, and whether there is an analytic approximation that makes use of research non-linear dynamics and synchronization. Google: Kuramoto oscillators. A 2003 popular science book, "Sync, the emerging science of spontaneous order" by Steven Strogatz, brought this insight to the wider world. I KNOW, this book is not about controlling chaos in the way discussed here, but the idea does relate to Sabine's questions in the last few paragraphs, which address a different realm.Some non YouTube links for the curious: background https://www.quantamagazine.org/physicists-discover-exotic-patterns-of-synchronization-20190404/ TED talk https://www.ted.com/talks/steven_strogatz_the_science_of_sync?language=en audio/visualization https://vimeo.com/191720976

Anonymous

OK, the lesson from our use of fossil fuels is that it's better to live with natural patterns and cycles than to try to control them. The best reason to even consider "controlling" weather would be if global cooling was threatening an ice age we could meter out CO2 from burning fossil fuels in an attempt to maintain the climate. This is the only world that will support us, Mars and interstellar travel are delusions that allow people to ignore the devastation that we cause.