Latest / Heliox: Where Evidence Meets Empathy 🇨🇦‬ / 🧠The Gentle Art of Taming Chaos: What Neural Networks Teach Us About Living With Turbulence
Transcript
- 0:25Welcome back to the Deep Dive.
- 0:26Our mission here is pretty simple.
- 0:27Yeah.
- 0:28We take complex, cutting-edge research, we strip away all the academic jargon, and we really just hand you the shortcuts you need to understand the absolute frontiers of science.
- 0:37And today, we are going deep, deep into the wiring of the brain.
- 0:42We are.
- 0:43Specifically, how we learn these incredibly complex, time-based sequences.
- 0:48And in doing that, we're wrestling with a pretty big concept, internal chaos.
- 0:53That's right. I mean, that's really the core of it.
- 0:54Yeah.
- 0:55Just think for a second about the incredible complexity of our own cognition.
- 1:00You're not just remembering static facts like a phone number.
- 1:03You're constantly acquiring and recalling these intricate sequences.
- 1:07It could be the order of words that makes up a sentence you're about to say.
- 1:10Or the muscle movements for playing an instrument or even just catching a ball.
- 1:14Exactly. A highly skilled motor behavior.
- 1:16And that entire ability, it's all built on continuous, really coordinated neural activity inside the brain.
- 1:23And when we try to model these things, you know, computationally with tools like recurrent neural networks or RNNs, we hit a wall.
- 1:31A pretty fundamental problem.
- 1:32You do.
- 1:33RNNs are powerful because they have these strong internal feedback loops.
- 1:37And output from one neuron can feed back and influence itself later on.
- 1:41But those loops, if you just leave them unchecked, they lead to something researchers call chaotic spontaneous activity.
- 1:47Right. And chaos sounds bad. It sounds like a bug, not a feature.
- 1:51It sounds like pure static, just white noise.
- 1:54But computationally, it's, well, it's kind of necessary evil, or maybe not even evil.
- 2:00It's potential.
- 2:01It's like an engine that's running a little too hot, but that heat gives you power.
- 2:05The chaos provides what they call a rich variety of basis functions.
- 2:09What does that mean in simple terms?
- 2:11If you imagine the network's internal state as this huge multidimensional room, Chaos ensures that the network is constantly exploring every single corner of that room.
- 2:21It provides a huge palette of different patterns to draw from.
- 2:24So the complexity is actually good for representation.
- 2:26It gives you a lot to work with.
- 2:28A lot to work with.
- 2:30But that's not enough, right?
- 2:31The real challenge is, Taking that turbulent, high-dimensional, seemingly random chaos...
- 2:36And turning it into something coherent, like the smooth motion of your arm reaching out to grab a cup of coffee.
- 2:41That leap from internal turbulence to external precision.
- 2:45That is the big mystery we're trying to solve.
- 2:47And, you know, historically, we have had some powerful tools.
- 2:51The celebrated force learning rule, for instance, was a landmark achievement.
- 2:55It was incredibly successful at training these chaotic RNNs to do amazing things.
- 3:01But, and here's the big but where our deep dive really begins.
- 3:05Force has this critical fundamental flaw when you look at it through the lens of biology.
- 3:10when you ask the question, how does the actual brain do it?
- 3:13That's the million-dollar question.
- 3:14And the main issue is just biological implausibility.
- 3:17Forced learning requires a couple of major things that, well, synapses in the brain just don't seem to do.
- 3:23Okay, what's the first one?
- 3:24First, it requires non-local plasticity rules.
- 3:28That means for one synapse to change, it needs information about the network's final output error, which, well, it's just not available right there at that specific point.
- 3:37synapse.
- 3:38It needs to know what's happening miles away in computational terms.
- 3:41Precisely.
- 3:42And the second thing, which is maybe even more critical, is that it requires extremely quick synaptic changes.
- 3:49Faster than the neurons themselves are firing.
- 3:51Faster than the network's own dynamics.
- 3:54It's a brilliant computational trick, but it just doesn't map onto how real kind of sluggish local brain synapses actually adapt and change over time.
- 4:03It's too fast.
- 4:04It needs too much information from everywhere at once.
- 4:06It's just it's too demanding. So if force isn't the way the brain does it, what's the first step to finding a replacement? Do you change the network itself or do you change what you're trying to achieve, the goal?
- 4:16You have to change the goal, but you use a structure that kind of leans into how real neurons are wired. And that's why our mission for this deep dive is to unpack this totally novel framework.
- 4:28It's a revolutionary, biologically plausible alternative called Predictive Alignment.
- 4:33Predictive Alignment.
- 4:34Developed by Toshitake Oksabuki and Claudia Klopath and published just recently.
- 4:38It's designed specifically to overcome those limitations.
- 4:41It promises a local online learning rule that can, as you put it, tame chaos gently.
- 4:47Okay.
- 4:47Okay. Tame chaos gently. I like that.
- 4:49Okay.
- 4:49Let's unpack this approach, starting with the basic structure of the network.
- 4:53We're looking at an RNN and the internal wiring, this thing called the recurrent connectivity matrix.
- 4:58We'll call it Duralalers. It's explicitly split into two different parts.
- 5:02Yes. And this separation is absolutely foundational to understanding how predictive alignment works.
- 5:06so the total connectivity Duller dollars is actually the sum of two different matrices two and dollars think of them as two separate sets of wires in the brain exactly two layers of wire harnesses let's talk about dollars first okay what's dollar represents the fixed or static connections these are strong they're sparse and this is key they don't change during learning their whole job is to generate that initial rich chaotic activity Deller is the wild untamed architecture of the system so you're building a house delia dollar is the fundamental structure the beams the pipes the things that create this big open maybe even turbulent space that's a perfect analogy and if delia dollars is the fixed architecture than dollars is the flexible part right the plastic component exactly dollars is initially weak it's fully connected and it's where this new learning rule is actually applied so if dollars is the architecture Dele is like the interior design team that comes in later and installs these gentle adaptive partitions to guide the flow of traffic and the whole goal of training dollars is just to suppress or tame the chaos that Dele is creating yeah to carve out functional paths and through that wild landscape.
- 6:13- Precisely.
- 6:14And this gets us right to the big philosophical shift, the core innovation of predictive alignment.
- 6:19Standard learning, like the Delta Rule, is all about minimizing the error at the very end, at the output stage.
- 6:24- It's like a teacher saying,"Your answer is wrong by five points.
- 6:28Fix everything now."- Right.
- 6:30And that's actually how the readout weights, the dollar matrix, are trained in this model.
- 6:35It's the classic approach, just minimizing the difference between the target and all ballers and the output, seely focused on that external error.
- 6:43But predictive alignment says, hold on, we are not applying that same logic to the internal recurrent connections to not all ballers.
- 6:50Instead of chasing the output error, the learning for Deliwell focuses on two completely different internal goals.
- 6:57Prediction and alignment. And this is such a subtle but absolutely monumental difference.
- 7:02So let's contrast it again with force, just to make it clear. You said force clamps the output.
- 7:06It does. Force learning effectively forces the network activity to stay right on the desired path during learning, almost instantaneously.
- 7:13an external forceful correction.
- 7:14Which is why it needs that impossible speed and non-local information.
- 7:17Exactly.
- 7:18Predictive alignment just avoids that clamping completely.
- 7:22The network is actually allowed to be wildly wrong at the beginning.
- 7:25The paper explicitly notes that early in learning, the output is a total mismatch from the target.
- 7:31It's not being forced into place.
- 7:32No.
- 7:33It's a much more gentle internal negotiation with the chaos, not an external command.
- 7:39Okay, so if the network's internal wiring, LG, isn't getting that direct moment-to-moment error signal, how on earth does it figure out what to do? It sounds like it's trying to teach itself without the answer key.
- 7:51It is, in a way. It's teaching itself by developing an internal model of its own output. It focuses the learning in knowledge on predicting an internal feedback signal.
- 8:00and aligning its own predictive dynamics with the chaos that's already there.
- 8:04Okay, we've set up the philosophy.
- 8:06Gentle guidance, not forceful clamping.
- 8:08But how do you actually translate that philosophy into math?
- 8:11Let's dissect the engine, starting with the two rules that are running at the same time.
- 8:14Right. So first you have the readout rule.
- 8:17That's for the output weights, dollar-staller.
- 8:19It's a standard delta rule, minimizing the final error.
- 8:22We don't need to get bogged down there. It's pretty conventional.
- 8:24That's the external part.
- 8:25The real magic is in the recurrent rule, which they call LEAB.
- 8:57It takes the output, six doll, and just feeds it back, but only for the purposes of learning.
- 9:03So the plastic weights are trying to change themselves to predict what the network's own output would look like after being filtered through this random matrix dollars.
- 9:12Random. Why not just feed back the actual target signal?
- 9:16Because making Q to random is what makes it biologically plausible and local.
- 9:21It means the system doesn't need to do complex, non-local calculations like backpropagation.
- 9:27instead each neuron just gets this local signal cues goa and tries to predict it it's a clever shortcut and this is a huge point that feedback signal cues ago it only appears in the learning rule in the role it doesn't actually change what the neurons are doing in real time exactly the network isn't being corrected or clamped as it runs it's just It's sort of building an internal predictive model on the side offline.
- 9:50So Nowars is like a student who's not looking at the teacher's answer key.
- 9:53They're generating their own answers and then comparing them to a scrambled internal version of the guide.
- 9:58That's a perfect way to put it.
- 10:00It uses its current best guess of the output to guide its internal wiring without needing the teacher, the external target looking over its shoulder every single second.
- 10:08Okay, that covers prediction.
- 10:10What about the second part of the cost function, the one that gives the framework its name?
- 10:14The alignment term.
- 10:16Right, the alignment or regularization term.
- 10:19This part is governed by a parameter, alpha, which is usually set to one, showing how important it is.
- 10:24Its job is to promote the correlation between the plastic prediction, one more hour, and the existing chaotic dynamics.
- 10:32Z.R. Dahl.
- 10:33Wait, so Nader is trying to predict the output feedback, and it's also trying to make sure that its own activity is aligned with the underlying chaos from C.L.L.R.S.
- 10:42Why would you want to correlate with the chaos?
- 10:44Wouldn't you want to get rid of it?
- 10:45You want to harness it, not destroy it.
- 10:47The analysis in the paper showed this alignment is the actual mechanism for taming the chaos emissionly.
- 10:53If you turn that term off, if you set alpha to zero, the network really struggles to learn. The correlation doesn't grow.
- 11:00But when you turn it on, when alphas is one, that correlation grows. And what does that do to the system's dynamics?
- 11:07That growth is what produces the taming effect. By aligning the learned dynamics of dollars with the chaotic dynamics of dollars, the system effectively pushes the network's main Lyapunov exponent further and further into the negative range.
- 11:19And the Lepunov exponent, that's the classic measure of chaos, right? Positive means it's chaotic. Tiny errors blow up.
- 11:26Precisely. So by making the exponent more negative, the predictive alignment rule is verifiably making the system more stable.
- 11:35It's suppressing the chaos. You're not killing the energy of the system. You're just channeling it, making sure it goes into a coherent forward motion instead of exploding everywhere.
- 11:43This connects directly to a really famous idea in this field, that networks perform best when they're sitting right on the edge of chaos.
- 11:51And this research confirmed it beautifully. The best performance, which they measured as both the lowest output error and the smallest possible weight strength for dollar, happened when the initial network, driven only by dollar, was tuned to be just above the critical point.
- 12:06Right on that edge.
- 12:06And keeping the weights small is huge for stability, right?
- 12:10Big weights can make a system really fragile.
- 12:12So performance and robustness both peak at this boundary.
- 12:16Why?
- 12:16What's so special about the edge of chaos?
- 12:18It's the perfect balance between two things the network needs, representational diversity and effective dimensionality.
- 12:24Okay, let's unpack those.
- 12:25Diversity was measured by something called the entropy of eigenvalues.
- 12:30HEMDA. You can just think of this as the sheer number of different thoughts or patterns the network is capable of having. High diversity is good. And the second one?
- 12:39Effective dimensionality measured by the participation ratio or $8. This is about how many of those different thoughts can be actively coordinated at the same time to produce a useful structured output.
- 12:52it's about maintaining coherence so you need both you need a lot of rich ideas but you also need to be able to organize them exactly if the network is too stable too far from chaos its dimensionality is low it can't learn anything complex it's too rigid but if it's too chaotic then the dimensionality is high but the information gets gets scrambled, it loses all meaningful structure, it's just noise.
- 13:15The edge of chaos is that perfect Goldilocks zone where you maximize both the richness of your representations and your ability to structure them.
- 13:23That's where learning is most efficient.
- 13:25And predictive alignment is a rule that's specifically designed to exploit that sweet spot.
- 13:29That's the idea.
- 13:29We've covered the internal mechanics.
- 13:31Now let's see this thing in action.
- 13:33The researchers put it through his paces, right?
- 13:36Starting with some simple toy examples.
- 13:38They did, and it showed immediate success across the board.
- 13:41It could learn simple things like sine waves, of course.
- 13:43But what was impressive was that it could learn them across huge time scales from very short periods to very, very long ones.
- 13:51And it also handled patterns that are usually tricky for these kinds of continuous systems.
- 13:54Yes, things with sharp breaks, like discontinuous step functions or non-smooth sawtooth waves.
- 14:02For a system based on smooth flows, making a sudden step requires a very rapid, very controlled shift in the network state, which it managed reliably.
- 14:11And it could do more than one thing at a time.
- 14:12Absolutely.
- 14:13They showed it could learn five different tasks at once.
- 14:16They had one network with 800 neurons drive five separate readouts, and it generated five completely distinct patterns simultaneously, all sharing the same underlying engine.
- 14:26Okay, that covers the basics.
- 14:28The real test for these networks is always how they handle true complexity.
- 14:32So let's move from simple waves to something much harder.
- 14:37Low dimensional chaos.
- 14:39Specifically, the Lorenza tractor.
- 14:41Right, the Lorenza tractor.
- 14:43This is the classic textbook example of complex, non-periodic, chaotic dynamics.
- 14:48It's that three-dimensional butterfly-shaped trajectory that never, ever repeats itself exactly.
- 14:54And the network learned it.
- 14:55It did.
- 14:56Using only three readout units, it successfully learned to generate the target.
- 15:00Late in learning, the output dynamics were a near-perfect match.
- 15:03It was drawing the butterfly.
- 15:04But here's the really critical experiment.
- 15:06They trained it, and then they turned the plasticity off and just let it run on its own.
- 15:10What happened then?
- 15:11Well, as you'd expect for any chaotic system, the network's trajectory eventually diverged from the exact target path.
- 15:18Any tiny little error from noise or whatever grows exponentially over time and pushes it off course.
- 15:24But, and this is the big takeaway, right?
- 15:26Even though it diverged, the output didn't just become random noise.
- 15:30It kept producing complex, non-periodic oscillations that were still strikingly similar to the Lorenza tractor.
- 15:37Yes, this is the key.
- 15:39It means the model didn't just memorize the specific path.
- 15:43It learned the underlying manifold.
- 15:46It learned the rules of the system, the grammar of the dynamics that define the attractor itself.
- 15:51It learned the shape of the butterfly, not just one specific flight path.
- 15:55Why is that important for us?
- 15:57Because so many of our own high-level motor skills are like this.
- 16:00Juggling, improvising on a piano, they are fundamentally chaotic processes.
- 16:05They have rules and structure, but the exact movement never repeats.
- 16:09This suggests predicted alignment is learning the grammar of movement, which allows for structured improvisation, not just rote memory.
- 16:15That's a perfect lead-in to the next test, which is a classic for biological memory, the Ready, Set, Go task.
- 16:21The RSG task is really demanding. It's all about active memory.
- 16:24The network gets two quick pulses, ready and set, separated by a certain delay, let's say a total delay.
- 16:29And the network's job is to measure that delay.
- 16:32Measure it, hold it in memory for a bit, and then after a final Go signal, it has to reproduce that exact same delay in its output.
- 16:38And the delays they used, up to 160 milliseconds, were way longer than the neuron's own time constant of 10 milliseconds. That's a crucial detail.
- 16:48It is. A 10 meters time constant means any signal should fade out really fast. For the network to hold on to that time measurement, it has to be using its internal recurrent connections to actively sustain that information.
- 17:00It can't just be passive decay.
- 17:02So it trained on a few examples.
- 17:04What was the key finding about how it generalized to new delays?
- 17:08The generalization was really interesting.
- 17:10It was robust, but it was bounded, so it could perfectly reproduce the delays it was trained on.
- 17:15And crucially, it could interpolate really well to delays that fell between the trained examples.
- 17:19So if you train it on 100 meters and 140 meters and then test it on 120 meters, it works.
- 17:24It works perfectly.
- 17:26But, and this is just as informative, it failed completely at extrapolation.
- 17:30If you asked for 200 meters outside the training range, it fell apart.
- 17:34Completely.
- 17:35And that specific pattern good interpolation bad extrapolation is powerful evidence that the network learned an underlying linear manifold structure.
- 17:45It basically built a spatial map of time inside its own state space.
- 17:49How do they confirm that? How do you see a geometric structure inside a neural network?
- 17:54With principal component analysis PCA, you use PCA to find the most important dimensions of the network's activity.
- 18:01And when they did that, the projections clearly shared that as the delay time increased, the network's internal state shifted linearly along a specific line, a manifold, in that state space.
- 18:10So the memory of a time duration was literally transformed into a physical location in the network's internal space.
- 18:17To remember the time, it just had to remember a location.
- 18:20Exactly. The recurrent dynamics embedded the temporal task into a low-dimensional geometry.
- 18:26And this gives us a really compelling testable hypothesis for how something like the motor cortex might encode timing signals.
- 18:32Okay, finally, let's talk about the most dramatic demo of all, the one that tackles the problem of scale.
- 18:37learning and replaying a high dimensional video sequence.
- 18:42The movie replay task.
- 18:43This one is just spectacular because of the sheer dimensionality mismatch.
- 18:47The target signal was a little video clip of a kitten.
- 18:51Each frame had over 22,000 individual pixels.
- 18:54That's 22,000 readout units that all needed to be controlled at the same time.
- 18:5922,000 outputs.
- 19:01and the recurrent network itself, the engine driving it all.
- 19:04It consisted of only 800 units.
- 19:06So you're running a 22,000 pixel movie with a processor that only has 800 components.
- 19:11I mean, that's like trying to run a 4K movie on a pocket calculator.
- 19:15The mismatch is just staggering.
- 19:16It is.
- 19:17And yet, despite that massive gap, the training errors went down and down and converged near zero.
- 19:22The network learned to accurately encode and then replay the entire video autonomously.
- 19:27What does that tell us?
- 19:28It demonstrates that predictive alignment isn't just for tasks with a few outputs like the Lorenza tractor. It's fully capable of handling these high dimensional spadiotemporal patterns. It proves the network can use its rich internal chaos from knee dollars and its aligned plasticity from Dider to generate complexity that far exceeds its own number of neurons.
- 19:47That really changes how I think about motor control.
- 19:50If 800 neurons can control 22,000 variables, it means the brain must be leveraging this kind of structure so efficiently that the number of neurons you need for a task is way, way lower than the complexity of the task itself.
- 20:03That's the key implication right there. The rule is efficiently extracting the low-dimensional structure, the core action of the video, from all that high-dimensional data, and letting this small recurrent engine drive a vast output space.
- 20:17So let's bring it all together. Let's synthesize this. We have this new framework, predictive alignment. It handles chaos. It generalizes structure. It manages short-term memory. It replays high-dimensional video. And it does it all without the biologically implausible baggage of older methods like force.
- 20:33What does this mean for how we understand the brain?
- 20:36The really profound implication is that we now have a local online supervised learning rule that works.
- 20:42It suggests that biologically realistic circuits don't need these highly precise global error signals to learn.
- 20:49The brain doesn't have to compute the exact global mistake to get better.
- 20:52And this brings us right back to biology.
- 20:55Where in the brain might a mechanism like this actually exist?
- 20:58The motor cortex seems like a prime suspect.
- 21:01It really does. The framework suggests a way that an internal signal can act as its own teacher.
- 21:07So instead of your motor cortex getting some clean error signal saying your hand missed by three centimeters, the feedback from the network's own output, that QZ signal, gets sent back internally to each neuron.
- 21:20So the neuron is training itself to predict a filtered version of the entire system's own success.
- 21:25Exactly. It's a local, self-supervised process.
- 21:28And the researchers even speculated on the physical location where this could happen, right down to the level of a single neuron's stendrites.
- 21:35They did. They tied it to known differences in how different parts of a neuron's input tree can change.
- 21:39Yes, this was one of the coolest parts. Remember the two connection types, null or the plastic one and the static one.
- 21:45They propose that the plastic connections, null or dollar, could project onto the proximal basal dendrites.
- 21:50The parts of the neuron close to the cell body, which are known to be highly plastic.
- 21:55Right. And the static chaotic connections, diodollars, could project further out to the distal basal dendrites, which are known to have lower or more varied plasticity.
- 22:05So the neuron itself becomes the computing unit that is physically aligning the inputs from these two separate locations Realizing that dual cost function at a local level It's an incredibly elegant hypothesis and what's great is that it makes a testable prediction if this is true Neurobiologists should be able to measure specific correlations inside individual neurons while an animal is learning That's a clear quantifiable thing to look for in future experiences So the big conclusion here feels profound. The brain might not need to brutally stamp out its own internal noise, its own chaos, to get us to do coherent things like walk and talk.
- 22:42Instead, it seems to use this process of gentle predictive alignment. It just it steers those turbulent, rich internal dynamics towards structured learning.
- 22:50behaviors. It really raises a question for you, the listener, to think about. I mean, given how common noisy, chaotic processes are in all of biology, how many other fundamental tasks, from a split-second decision to how you slowly adapt your tennis swing, are secretly being guided by this same process.
- 23:09This idea of internal prediction aligning with inherent complexity.
- 23:13If chaos is the raw material for rich thought, then maybe the secret to intelligence isn't about eliminating the turbulence at all.
- 23:20It's just about learning how to harness it.
- 23:22That's something to mull over the next time you do something complex without even thinking about it.
- 23:26Indeed.
- 23:26We look forward to diving into the next stack of sources with you soon.
- 23:29See you on the next Deep Dive.