Latest / Heliox: Where Evidence Meets Empathy 🇨🇦 / 📐Out of Flatland: How Curved Math Is Rewiring AI
Transcript
- 0:25Imagine for a second that you were standing in a completely dark room.
- 0:31And in the center of this room, there is this incredibly complex, wildly intricate three-dimensional sculpture.
- 0:38Okay, I'm picturing it.
- 0:39And it's suspended in midair, right?
- 0:41And it's spinning rapidly.
- 0:54Right.
- 0:43But here's the catch. You can't actually see the sculpture itself.
- 0:47Oh, wait. So it's totally dark?
- 0:49Totally dark. The only thing you can see is a flat, two-dimensional shadow that it's casting on the wall from like a single spotlight.
- 0:56Right. Okay.
- 0:57So your job is to describe every single detail, every curve, every angle of that spinning 3D object solely by looking at that flat shadow on the wall.
- 1:06Which is, I mean, that's...
- 1:08impossible. Right. It sounds impossible because you'd be losing an incredible amount of information, you know, like a sphere and a cylinder. They can cast the exact same circular shadow depending on the angle the light hits them. Yeah, exactly. You're effectively trapped.
- 1:22Trapped in a flat reality, trying to comprehend the multidimensional truth.
- 1:26It's a deeply frustrating scenario just to picture mentally, honestly, because you are fundamentally limited by the geometry of your perspective.
- 1:36You're stuck in a flatland. And no matter how hard you stare at that shadow, you can never truly know the depth of the object casting it.
- 1:43And this, this is where it gets really interesting for our deep dive today.
- 1:48Because this highly restricted, flat, two-dimensional shadow perspective, this is exactly how traditional artificial intelligence has been forced to view our world.
- 1:57It really is, yeah.
- 1:59I mean, for all the massive headline-grabbing leaps we've seen in machine learning over the last decade or so...
- 2:04The foundational math running under the hood has been, well, it's been trapped in what mathematicians call Euclidean vector spaces.
- 2:11Right. Flat grids.
- 2:13Exactly.
- 2:14So today we are going to explore a massive fundamental paradigm shift in how we build AI.
- 2:33Right.
- 2:20What if we could give these machines the mathematical equivalent of depth perception?
- 2:25Which we desperately need.
- 2:26We do.
- 2:27Because right now, being stuck in that flatland is literally draining our power crits.
- 2:32You know, we're going to talk about a global network of researchers.
- 2:36from Chuang Shuang Khan in Vietnam to Rui Wang in China and Zhi Wu Huang in Switzerland, who all sort of realized that standard flat mathematics were just hitting a wall.
- 2:47A very expensive wall.
- 2:49Yeah, a very expensive wall.
- 2:51We're going to uncover the dead ends of modern AI like massive memory bottlenecks and dying neurons, and then get into this aha breakthrough of geometric superposition.
- 3:01And finally, how this curved math creates a, well, like an intuitive human controllable steering wheel for AI interfaces.
- 3:09And it's important to state up front that we aren't talking about a minor software patch here or like a slight tweak to an algorithm.
- 3:17We are looking at a fundamental rewrite of the geometric rules that govern how neural networks represent reality.
- 3:25We are moving from those flat Euclidean grids into the curved, deeply counterintuitive geometry of something called the Grassman Manifold.
- 3:33The Grassman Manifold.
- 3:36It sounds like science fiction, but it's not, right?
- 3:38Not at all.
- 3:40It's a rigorous application of differential geometry that is actively solving some of the biggest scaling problems in AI today.
- 3:46So before we get into the mind-bending curved math, I think we need to understand why this shift is happening now.
- 3:54Like, if Euclidean math is what's causing these models to hit a wall, what is actually going wrong?
- 4:00That's the right place to start.
- 4:01Let's take a step back and look at how a standard deep neural network operates on a really fundamental level.
- 4:07Well, to understand the failure, you have to look at the basic building blocks. In a traditional neural network, data is processed through Euclidean affine transformations.
- 4:17Okay, let's break that down.
- 4:19Right. So if you open up a textbook on machine learning, you'll see this represented as a weight matrix multiplied by an input vector plus a bias term. The classic equation is WX plus B.
- 4:30W, X plus B. Okay, let me make sure I'm visualizing this correctly. If I take a point on a standard flat piece of graph paper, like the X, Y axis we all learned in high school, right?
- 4:40Yeah, the Cartesian plane.
- 4:41Right. The W, the weight matrix, is essentially stretching or squashing or rotating that point on the paper.
- 4:48Correct.
- 4:49And the B, the bias, is just sliding it around the grid.
- 4:54But everything is still anchored to those rigid, straight lines of the graph paper.
- 4:58That's a perfect way to visualize it.
- 5:00It assumes that the data naturally lives in a flat Euclidean vector space.
- 5:04And you know, for simple tasks, this assumption holds up fairly well.
- 5:07Like what?
- 5:08Like if you are predicting housing prices based on square footage and the number of bedrooms.
- 5:14A flat grid works. It's just linear relationships.
- 5:17Right. Bigger house, higher price.
- 5:19Exactly.
- 5:20Simple.
- 5:20Exactly. But it completely falls apart when you introduce complex perceptual phenomena.
- 5:25Like visual data?
- 5:26Yeah. Think about something as natural to us as a video of a human face.
- 5:31Think about dynamic facial expressions or the 3D skeletal motion of a person walking down the street.
- 5:36Okay.
- 5:37In the real world, this data naturally and constantly shifts.
- 5:40The illumination changes the moment a cloud passes over the sun.
- 5:44The viewing angle changes when the person turns their head.
- 5:47Parts of the face become occluded.
- 5:48So if I smile broadly, my cheek might actually block the camera's view of my jawline, right?
- 5:54My physical geometry changed the actual data the camera receives.
- 5:58Right.
- 5:59And how does a flat Euclidean vector handle that occlusion or that rotation?
- 6:04I'm guessing terribly.
- 6:05Terribly, because Euclidean space relies on the rigid, absolute coordinates of that flat grid.
- 6:11A face turned just 10 degrees to the left generates a completely different set of pixel coordinates than the exact same face looking straight ahead.
- 6:18Oh wow.
- 6:19To a flat Euclidean vector, those two images might as well be completely different objects.
- 6:24Because the numbers in the matrix are completely different now.
- 6:27Exactly.
- 6:28The network doesn't inherently understand the geometry of a rotating 3D object, it just sees a completely new set of flat numbers that don't match the old flat numbers.
- 6:37So the AI is literally looking at that 2D shadow on the wall we talked about.
- 6:43And every time the sculpture rotates a single degree, the AI has to relearn what the shadow means from scratch.
- 6:50Right. It has no object permanence.
- 6:52That implies that to train an AI to recognize my face, you have to feed it millions of images of my face from every conceivable angle and every conceivable lighting condition, just so it can memorize all the different shadows.
- 7:04That is exactly what we have been doing.
- 7:07And that incredible inefficiency leads directly to the scaling dead ends the AI industry is hitting today.
- 7:12We can't just keep feeding models millions of variations of the same thing.
- 7:16It's just brute force.
- 7:17Yeah. And the most famous of these dead ends is the quadratic scaling problem in modern AI models, specifically in transformer architecture.
- 7:25Adam Chapnick: Transformers.
- 7:26Adam Chapnick: Okay.
- 7:27Adam Chapnick: They are the engine behind pretty much every major large language model right now from ChatGPT on down, right?
- 7:34Amy Quinton: Yep.
- 7:35Amy Quinton: The dominant architecture.
- 7:36Adam Chapnick: But how does this flat math cause a bottleneck in a language model?
- 7:41Adam Chapnick: I mean, words aren't physical objects rotating in space.
- 7:44Amy Quinton: It has to do with how Transformers pay attention to data, which is mathematically very similar.
- 7:49Amy Quinton: In traditional transformer self-attention, the network takes a piece of data, a token, which is usually a word or part of a word, and mathematically compares it to every single other token in the sequence to understand the context.
- 8:01Amy Quinton: Okay, so it's checking how the word apple relates to every other word in the sentence.
- 8:06Amy Quinton: Right. And because these tokens are represented as flat Euclidean vectors, the comparison is done via a dot product matrix.
- 8:13Amy Quinton: Meaning, it has to match token A with token B, token A with token C, token A with token D, and so on all the way down the line?
- 8:23Amy Quinton: Exactly.
- 8:24Amy Quinton: And because every single token must attend to every other token to build context, the computational cost grows quadratically with the length of the sequence.
- 8:32Amy Quinton: Quadratically?
- 8:33Amy Quinton: Yes.
- 8:33Amy Quinton: In computer science, we express this as O L squared, where L is the length of the sequence.
- 8:39Amy Quinton: Let me do the math on that to make it tangible for you.
- 8:43Amy Quinton: If your sequence, say a short paragraph, is 100 tokens long, the network has to make 10,000 mathematical comparisons, right?
- 8:51Amy Quinton: 100 squared.
- 8:52Amy Quinton: Correct.
- 8:53Amy Quinton: But if you increase that sequence to a short essay of 1,000 tokens, which is just 10 times larger...
- 8:58Amy Quinton: The network now has to make one million comparisons.
- 9:01Amy Quinton: Yep, a million.
- 9:02Amy Quinton: It's a hundred times the computational cost for just a 10x increase in text.
- 9:07Amy Quinton: And today, people are trying to feed AI models entire PDF books, legal briefs, hundreds of thousands of tokens at once.
- 9:14Amy Quinton: Which means the computational cost skyrockets into the billions and trillions of operations in the blink of an eye.
- 9:20Amy Quinton: This OL squared scaling is a massive fundamental bottleneck.
- 9:24Amy Quinton: It requires entire data centers and massive power grids just to crunch the flat math.
- 9:29Amy Quinton: You're just brute forcing the context.
- 9:32Amy Quinton: Exactly.
- 9:33Amy Quinton: And this leads directly into another massive roadblock for the industry, which is the memory wall.
- 9:38Amy Quinton: The memory wall.
- 9:39Amy Quinton: I've seen hardware engineers talking about this.
- 9:42Amy Quinton: It's not just about processing power, right?
- 9:44Amy Quinton: It's about the physical limitations of the chips themselves.
- 9:47Amy Quinton: Right.
- 9:48Amy Quinton: Training these massive large language models requires vast, unprecedented amounts of memory.
- 9:54Amy Quinton: And it's crucial to understand that it's not just memory to store the data itself or the text you are feeding it.
- 9:59Amy Quinton: What else is taking up space?
- 10:00Amy Quinton: A huge portion of that memory is required just to track the weight gradients during the optimization process.
- 10:06Amy Quinton: The gradients. That's essentially the AI's internal compass while it's learning, right?
- 10:11Amy Quinton: Like the mathematical path it's taking to figure out the right answer?
- 10:14Amy Quinton: That's a good way to put it, yeah.
- 10:16Amy Quinton: When you are optimizing billions of parameters, which, remember, are all flat Euclidean vectors, tracking the trajectory of every single parameter requires saving massive gradient matrices in the computer's RAM.
- 10:28Amy Quinton: Oh, wow.
- 10:29Amy Quinton: You literally run out of physical space on the graphics processing units, the GPUs.
- 10:33Amy Quinton: you hit a wall where you cannot fit the memory required to track the learning process onto the hardware.
- 10:39Amy Quinton: So we're spending billions of dollars and vast amounts of electricity just to remember the math we're trying to do, because the math itself is structured in such a cumbersome, flat way.
- 10:50Amy Quinton: Exactly. And the inefficiency isn't just in the memory or the scaling.
- 10:54Amy Quinton: There is a third dead end that occurs inside the actual architecture of the network itself.
- 10:59Amy Quinton: Another one?
- 11:00Amy Quinton: Yeah. It's a structural failure known as the problem of neural diversity, or more commonly in the field, dying ReLUs.
- 11:07Amy Quinton: Dying ReLUs. It sounds vaguely tragic. Let's break that down.
- 11:12Amy Quinton: What is a ReLU and why are they dying off inside these models?
- 11:15Amy Quinton: Well, ReLU stands for Rectified Linear Unit. It is arguably the most common activation function used in deep learning today.
- 11:23Amy Quinton: Okay.
- 11:23Amy Quinton: It's a very simple, elegant rule. If an incoming number to a neuron is negative, turn it to zero. If it's positive, let it pass through unchanged.
- 11:32Amy Quinton: So it's a gatekeeper.
- 11:34Amy Quinton: Right. But here's the problem with relying on flat Euclidean vectors in high dimensions. Often different layers or neurons in the network end up learning the exact same feature redundantly. This is a phenomenon called kernel sparsity.
- 11:47Amy Quinton: So if I have a network analyzing images...
- 11:50Amy Quinton: I might accidentally have 10 different neurons all trying to be the detective vertical line neuron because they didn't coordinate with each other?
- 11:59Amy Quinton: Exactly. Because they are operating in a flat space without strict geometric constraints forcing them apart, they crowd each other.
- 12:06Amy Quinton: They collapse into redundant representations. The space is too unconstrained.
- 12:10Amy Quinton: And what happens when they crowd each other?
- 12:12Amy Quinton: When that crowding happens, many of the other neurons in the network get pushed into a negative state.
- 12:17Amy Quinton: And when they hit that ReLU activation function we just talked about, they are turned to zero.
- 12:22Amy Quinton: Oh, I see.
- 12:23Amy Quinton: They die.
- 12:24Amy Quinton: And once they output zero, they stop contributing to the network entirely.
- 12:28Amy Quinton: They are mathematically dead.
- 12:31Amy Quinton: But they are still physically sitting there in the architecture, taking up memory, taking up compute cycles during the forward and backward passes, but offering absolutely no value.
- 12:40Amy Quinton: That's crazy.
- 12:41Amy Quinton: You end up with massive neural networks where a staggering percentage of the neurons are effectively dead space, just wasting electricity.
- 12:48Amy Quinton: Hold on, though.
- 12:49Amy Quinton: I have to play devil's advocate here for a second.
- 12:52Amy Quinton: You're painting a picture of an industry built on a foundation of sand.
- 12:56Amy Quinton: You're saying flat Euclidean vectors cause quadratic explosion in processing, they create memory walls that break physical hardware, and they cause the network to essentially kill off its own neurons.
- 13:07Amy Quinton: Yes.
- 13:08Amy Quinton: If it is really this inefficient, how did ChatGPT, Claude and all these modern AI models get so undeniably good?
- 13:17Amy Quinton: We use them every day.
- 13:18Amy Quinton: They write code, they pass the bar exam.
- 13:21Amy Quinton: Are we just brute forcing our way through this catastrophic inefficiency by throwing unfathomable amounts of data and electricity at it?
- 13:28Amy Quinton: The short answer is yes.
- 13:31Amy Quinton: Seriously?
- 13:32Amy Quinton: Seriously.
- 13:33Amy Quinton: We have achieved miraculous things with AI over the last few years, but we have achieved them almost entirely through brute force.
- 13:41Amy Quinton: We have scaled up the data centers to sizes that require their own dedicated power plants.
- 13:45Amy Quinton: We have increased the power consumption to alarming levels, and we have fed the models essentially the entire digitized text of the internet.
- 13:54Amy Quinton: We threw compute at the problem.
- 13:57Amy Quinton: But you cannot brute force your way past the laws of physics forever.
- 14:01Amy Quinton: The ceiling is approaching.
- 14:02Amy Quinton: We are hitting the ceiling of that approach right now.
- 14:05Amy Quinton: The quadratic scaling curve is simply too steep.
- 14:09Amy Quinton: If we want AI to continue to improve, if we want it to process hour-long videos seamlessly or analyze entire libraries of text in seconds, or run efficiently on small devices like your smartphone without connecting to a massive cloud server, we cannot just build bigger data centers.
- 14:25Amy Quinton: We need better math.
- 14:27Amy Quinton: We need better math.
- 14:28Amy Quinton: Which brings us to the escape route, the journey out of flatland.
- 14:32Amy Quinton: Facing these dead ends, an international network of researchers realized they needed an entirely new mathematical foundation.
- 14:39Amy Quinton: Right.
- 14:40Amy Quinton: They needed a space that didn't care about rigid grid coordinates, a space that naturally understood structure and geometry.
- 14:48Amy Quinton: And they found it in differential geometry.
- 14:51Amy Quinton: I want to dive into the groundbreaking work of Truong Suong Khan and his paper, "Superposition
- 14:56as Geometry: Grossman Manifold Structure of Neural Representations." Kahn's work is truly fascinating because it doesn't just propose a clever new engineering trick.
- 15:06as Geometry: It actually reveals a fundamental truth about how neural networks are already trying to organize information behind the scenes, despite being forced into flat spaces.
- 15:15as Geometry: Oh wow, so they naturally want to do this.
- 15:17as Geometry: Exactly.
- 15:19as Geometry: But to really grasp his breakthrough, we have to clearly define what the Grassman manifold actually is.
- 15:24as Geometry: Okay, let's do that without the dense academic jargon.
- 15:28as Geometry: If I am listening to this right now and I dropped out of math after trigonometry, how do I visualize the Grassman manifold?
- 15:36as Geometry: The formal notation in the paper is gr parentheses q comma d.
- 15:40as Geometry: What does that mean?
- 15:42as Geometry: Let's go back to your analogy of the dark room and the 3D space.
- 15:45as Geometry: Okay.
- 15:46as Geometry: In traditional Euclidean space, a data point is a specific set of coordinates.
- 15:50as Geometry: It's a single fixed dot on a flat grid.
- 15:53as Geometry: But on the Grassman manifold, a data point is not a dot.
- 15:56as Geometry: A data point is an entire linear subspace.
- 15:59as Geometry: A linear subspace.
- 16:05as Geometry: Okay.
- 16:01as Geometry: So instead of a dot, it's like a line or a 2D plane extending endlessly through space?
- 16:08as Geometry: Exactly. Imagine a standard 3D room. If you draw a 2D plane, like an infinitely large sheet of glass, passing perfectly through the center origin of that room, that sheet of glass is a linear subspace.
- 16:20as Geometry: Got it.
- 16:21as Geometry: On the Grossman Manifold, that entire 2D sheet of glass is treated as a single individual point, The notation GR parentheses Q comma D simply means we are looking at the set of all Q-dimensional linear subspaces within a D-dimensional ambient space.
- 16:37as Geometry: Let me translate that. So GR 2 comma 3 would be the mathematical set of all possible 2D planes that could possibly slice through that 3D room.
- 16:47as Geometry: You nailed it.
- 16:48as Geometry: That's exactly it.
- 16:49as Geometry: That's exactly it.
- 16:50as Geometry: Okay, I can visualize that.
- 16:52as Geometry: But why would we do that? Why is treating a whole infinite plane as a single point more useful than just using a simple dot on a grid? Like, what is that bias?
- 17:02as Geometry: It buys us an elegant solution to transformations. It solves the rotating face problem we talked about earlier.
- 17:07as Geometry: This is what mathematicians call a quotient space formulation.
- 17:11as Geometry: Walk me through that.
- 17:12as Geometry: Let's say your data represents that 2D plane of glass.
- 17:16as Geometry: In Euclidean space, if you rotate the basis vectors that define that plane, say you spin them 90 degrees around the center, the Euclidean coordinates of those vectors change completely.
- 17:25as Geometry: Right.
- 17:25as Geometry: The flat grid looks at the new coordinates and thinks, this is a totally new set of data.
- 17:30as Geometry: I've never seen this before.
- 17:31as Geometry: It's the shadow changing shape again.
- 17:33as Geometry: Right. But on the Grasmanian manifold, the plane of glass itself hasn't actually moved.
- 17:38as Geometry: You just spun the lines within the plane.
- 17:40as Geometry: The manifold mathematically recognizes that any orthogonal transformation, like a rotation, applied to the basis spans the exact same linear subspace.
- 17:49as Geometry: So the sheet of glass is occupying the exact same space in the room?
- 17:53as Geometry: Exactly.
- 17:54as Geometry: Therefore?
- 17:55as Geometry: The math becomes naturally inherently invariant to useless transformations like rotation, arbitrary scaling, or certain types of ambient noise.
- 18:03as Geometry: That is profound. It's like the math has built-in object permanence.
- 18:09as Geometry: It really does.
- 18:10as Geometry: It doesn't have to learn through millions of examples that a rotated face is the same face.
- 18:16as Geometry: The fundamental geometry of the space guarantees it.
- 18:19as Geometry: The identity of the object is baked into the math itself.
- 18:23as Geometry: And that built-in object permanence is what led Truong Suon Kang to use this mind-bending space to solve one of the biggest mysteries in AI.
- 18:30as Geometry: The mystery of neural superposition.
- 18:33as Geometry: Yes.
- 18:33as Geometry: This is a concept that has been puzzling researchers for years.
- 18:37as Geometry: What exactly is neural superposition?
- 18:40as Geometry: For years, researchers had noticed a bizarre, almost paradoxical phenomenon.
- 18:45as Geometry: Neural networks were somehow representing far more features than they had neurons to hold them.
- 18:50as Geometry: Let me make sure I'm tracking this because the arithmetic seems wrong.
- 18:54as Geometry: If a network has exactly 100 neurons, common sense would dictate it could only learn 100 distinct concepts, right?
- 19:02as Geometry: That was the assumption.
- 19:03as Geometry: Like one neuron lights up for cats, one neuron lights up for dogs, one for cars, a one-to-one mapping.
- 19:09as Geometry: Right.
- 19:10as Geometry: That was the grandmother cell theory where one neuron holds one specific concept and But empirically, when researchers actually looked inside these models, they found that networks with 100 neurons were somehow reliably tracking thousands of distinct features simultaneously.
- 19:26as Geometry: Wait, thousands?
- 19:28as Geometry: How? They were packing concepts into the network in a way that completely defied simple arithmetic.
- 19:33as Geometry: This was called neural superposition.
- 19:36as Geometry: And for a long time, the field largely dismissed it as just a statistical quirk, you know, like a fuzzy side effect of high dimensional probability that we didn't fully understand.
- 19:45as Geometry: They just shrugged and said, high dimensional math is weird.
- 19:48as Geometry: Pretty much.
- 19:50as Geometry: But Khan didn't accept that.
- 19:51as Geometry: He said, this isn't a statistical accident.
- 19:54as Geometry: He proved it is fundamentally geometric, didn't he?
- 19:57as Geometry: Yes.
- 19:58as Geometry: Kahn showed that the weight matrix of a neural network, the actual numbers that define the connections and strengths between all those neurons, is not just a random collection of Euclidean vectors floating in space.
- 20:07as Geometry: He proved that the weight matrix is actually trying to form a single point on the Grossman manifold.
- 20:13as Geometry: So the network itself, the brain of the AI, is physically trying to contort itself into a shape in this curved space.
- 20:21as Geometry: Yes.
- 20:22as Geometry: Khan's absolute aha moment in the paper was defining the superposition loss.
- 20:27as Geometry: When a network tries to learn a new feature, it's essentially projecting that feature onto its weight matrix, which is a very important thing.
- 20:32as Geometry: Kahn proved mathematically that the loss, the error the network experiences when it gets something wrong or gets confused, is simply a projection error on the Grassman manifold.
- 20:43as Geometry: Okay, so it's measuring the geometric distance between the data and the subspace.
- 20:48as Geometry: Exactly.
- 20:49as Geometry: I'm trying to picture how a network holds thousands of concepts in 100 neurons.
- 20:53as Geometry: Is it like origami?
- 20:55as Geometry: Instead of assigning one flat neuron to cats and one to dogs, the network is building a complex, multidimensional origami shape.
- 21:03as Geometry: And the specific angles between the folds are what represent the concepts.
- 21:08as Geometry: That is a brilliant analogy.
- 21:09as Geometry: It is folding a subspace to maximize the angles between different concepts.
- 21:13as Geometry: The cat concept is at a 45-degree angle to the dog concept.
- 21:17as Geometry: but a 90 degree angle to the car concept.
- 21:19as Geometry: Oh, that makes so much sense.
- 21:21as Geometry: And Kahn didn't just theorize this origami folding.
- 21:24as Geometry: He calculated the exact geometric limits of it.
- 21:27as Geometry: He proved there is a strict mathematical threshold for this folding to work safely before the paper tears, so to speak.
- 21:34as Geometry: The magic threshold.
- 21:36as Geometry: Let's unpack the math there, because this explains a lot about how AI behaves.
- 21:40as Geometry: What did he find?
- 21:41as Geometry: He defined the threshold as k is less than n/2.
- 21:46as Geometry: K n/2.
- 21:47as Geometry: Right.
- 21:47as Geometry: In this equation, n is the total number of neurons in that specific layer, and k is the number of active, sparse features the network is trying to process at any given exact moment.
- 21:58as Geometry: Kahn proved that for a network to safely recover these sparse features without confusing them, without hallucinating, the number of active features, the K, must be strictly less than half the number of neurons, the N.
- 22:11as Geometry: Okay, let's use real numbers.
- 22:13as Geometry: So if you have 100 neurons, you can only process 49 active features simultaneously.
- 22:19as Geometry: Exactly.
- 22:28as Geometry: Exactly.
- 22:19as Geometry: But what if you try to process 50 or 51 active concepts at the exact same millisecond?
- 22:26as Geometry: Does the geometry collapse?
- 22:28as Geometry: Yes.
- 22:28as Geometry: If k goes above that threshold, the mathematical projection ceases to be injective.
- 22:33as Geometry: Injective.
- 22:34as Geometry: Meaning a perfect one-to-one mapping back to the original concepts.
- 22:37as Geometry: Right.
- 22:49as Geometry: Right.
- 22:38as Geometry: If it's no longer injective, two completely different concepts might cast the exact same projection onto the subspace.
- 22:45as Geometry: The origami folds overlap perfectly.
- 22:48as Geometry: The network looks at the projection and can no longer tell if it's looking at the math for a cat or the math for a submarine.
- 22:55as Geometry: It literally cannot tell them apart.
- 22:57as Geometry: It's a fundamental mathematical limit on how densely you can pack that origami before the AI gets irrecoverably confused.
- 23:05as Geometry: This has massive implications for why AI hallucinates facts. It's not just that the AI lied or got confused in a human sense. It literally ran out of geometric space to fold the concepts separately, so the concepts blurred together structurally.
- 23:21as Geometry: It's a physical limitation of the geometry it's using.
- 23:24as Geometry: Did Khan test this in the real world? Did he look inside an actual working AI model to see this origami happening?
- 23:32as Geometry: He did. And the data he gathered is stunning.
- 23:36as Geometry: He ran an experiment tracking the trajectory of representations inside a model called GPT-2-Small.
- 23:42as Geometry: Okay, a well-known language model.
- 23:44as Geometry: Yeah.
- 23:53as Geometry: Yeah.
- 23:44as Geometry: He looked at the model across its 12 internal layers, mapping its weight matrices as points on a Grassman manifold, specifically GR768,100.
- 23:54as Geometry: Which means 100-dimensional linear subspaces within a 768-dimensional ambient space.
- 24:00as Geometry: Exactly.
- 24:01as Geometry: So he took this deeply abstract theory and literally mapped the internal brainwaves of GPT-2 on this curved surface while it was reading text.
- 24:11as Geometry: What did the trajectory look like? Did the AI just smoothly slide along the curve as it read, layer by layer?
- 24:17as Geometry: Not at all. It wasn't smooth. He found a massive, violent geometric jump right at the beginning of the network.
- 24:24as Geometry: Really? Where?
- 24:26as Geometry: At the transition from the initial embedding layer to the very first context layer, the Grossman step was 1.33 times larger than the average step anywhere else in the entire network.
- 24:36as Geometry: Let's clarify that for the listener.
- 24:38as Geometry: The embedding layer is essentially where the AI just looks up the dictionary definition of a word.
- 24:43as Geometry: But the context layer is where it starts looking at how the words relate to each other.
- 24:49as Geometry: Like realizing that the word bank means a riverbank instead of a financial bank, based on the rest of the sentence.
- 24:56as Geometry: Precisely.
- 24:56as Geometry: The moment the network had to shift from just identifying individual words to actually understanding the semantic context between them, the subspace rotated by over 38 degrees in that single step.
- 25:08as Geometry: 38 degrees?
- 25:10as Geometry: To put that in perspective, every subsequent step in the later layers was a rotation of less than 7 degrees.
- 25:16as Geometry: That's a huge jump.
- 25:17as Geometry: But even more fascinating than that initial jump was what happened in the middle layers.
- 25:22as Geometry: Kahn observed a strange phenomenon he called middle layer spectral collapse.
- 25:27as Geometry: Spectral collapse?
- 25:29as Geometry: That sounds like a star dying.
- 25:31as Geometry: What is collapsing inside GPT-2?
- 25:34as Geometry: In layers 3 through 7 of the GPT-2 model, the network's representation subspace compresses massively.
- 25:41as Geometry: Even though the model has 768 dimensions available to work with, the effect of geometry collapses down to near-degenerate one-to-six-dimensional subspaces.
- 25:51as Geometry: One-to-six dimensions?
- 25:53as Geometry: Out of 768.
- 25:56as Geometry: Yes.
- 25:56as Geometry: It physically compresses all that complex linguistic information into a remarkably narrow geometric bottleneck.
- 26:03as Geometry: Why would it do that? Why would a highly advanced AI squeeze all that rich language data into a tiny six-dimensional tube when it has 768 dimensions available?
- 26:13as Geometry: Because that compression is how it forces abstraction.
- 26:16as Geometry: By aggressively squeezing the data into a tiny subspace, the network strips away the superficial noise, the grammatical fluff, and forces the core, essential semantic relationships to align.
- 26:28as Geometry: It's distilling the meaning.
- 26:33as Geometry: Yeah.
- 26:29as Geometry: It's distilling the meaning.
- 26:31as Geometry: And this relates directly back to our earlier discussion about dying relus and wasted neurons.
- 26:36as Geometry: Right, the dead space.
- 26:37as Geometry: By understanding this natural geometric behavior, engineers can step in and use what's called Grasmanian packing, a concept that Khan actually borrowed from wireless MIMO communications.
- 26:47as Geometry: Wait, MIMO communications?
- 26:59as Geometry: Yes.
- 26:49as Geometry: Like the multiple antennas on the back of my home Wi-Fi router?
- 26:52as Geometry: Exactly. Like your Wi-Fi router.
- 26:54as Geometry: In wireless communications, you want to send multiple radio signals through the air at the same time without them interfering with each other.
- 27:00as Geometry: Right.
- 27:01as Geometry: You mathematically pack the signal beams to be as orthogonally distant from each other as possible.
- 27:06as Geometry: Right.
- 27:07as Geometry: Kahn showed that by mathematically forcing the neural network to distribute its features perfectly evenly across the Grassman manifold, mimicking that Wi-Fi signal packing, you force maximum diversity in the network.
- 27:18as Geometry: Oh, that's brilliant.
- 27:19as Geometry: You prevent the neurons from crowding each other, completely solving the dying ReLU problem.
- 27:24as Geometry: Every single neuron is forced to hold a unique, mathematically distinct piece of the origami structure.
- 27:29as Geometry: No more dead space. No more wasted compute.
- 27:32as Geometry: Okay, this is completely blowing my mind.
- 27:35as Geometry: The math is beautiful. It explains why models hallucinate. It maps exactly how GPT-2 shifts context. It borrows from Wi-Fi engineering to save dying neurons.
- 27:46as Geometry: It's a huge step forward.
- 27:47as Geometry: But I have to bring us back to reality here.
- 27:51as Geometry: Knowing the math is beautiful on a chalkboard is one thing.
- 27:55as Geometry: But computers, the actual silicon chips we use, they're built on binary, flat math, right?
- 28:01as Geometry: They do addition and multiplication on straight grids.
- 28:05as Geometry: Very true.
- 28:06as Geometry: If you try to run standard Euclidean learning algorithms on a curved Grassman surface...
- 28:10as Geometry: wouldn't the data just slide right off the manifold the moment the computer tries to update a weight?
- 28:15as Geometry: That is the exact engineering nightmare researchers faced.
- 28:19as Geometry: You've hit the nail on the head.
- 28:20as Geometry: If you use standard stochastic gradient descent, which is the fundamental learning algorithm for almost all AI...
- 28:26as Geometry: the optimization steps are calculated as flat, straight lines.
- 28:29as Geometry: Right.
- 28:30as Geometry: If you take a straight-line step while standing on a curved globe, you leave the surface of the Earth and shoot off into space.
- 28:36as Geometry: You break the geometry completely.
- 28:38as Geometry: You shatter it.
- 28:39as Geometry: The basis matrices lose their orthonormality, the carefully constructed subspaces collapse, and the network outputs total garbage.
- 28:46as Geometry: So how do you fix that?
- 28:47as Geometry: This brings us to the incredible engineering journey of researchers like Zee Wu Kuang at ETH Zurich and Ri Wang at Jiangnan University.
- 28:55as Geometry: They had to figure out how to build physical network architectures that forced the AI to stay glued to the curve.
- 29:02as Geometry: So how do they do it?
- 29:04as Geometry: How do you leash an AI to a curved manifold when the computer chip only wants to draw straight lines?
- 29:10as Geometry: Let's look at Ziu Huang's work on the GRASnet, the Grassmannian neural network.
- 29:15as Geometry: Huang realized that every single layer of a neural network had to be fundamentally redesigned from the ground up.
- 29:21as Geometry: You couldn't just use standard fully connected layers or standard pooling layers that rely on flat math.
- 29:26as Geometry: He had to invent entirely specialized layers.
- 29:29as Geometry: What does a specialized grassman layer actually do?
- 29:32as Geometry: Like, what is the first step in the grass net?
- 29:34as Geometry: The first step is the FR map, or full rank mapping layer.
- 29:38as Geometry: This layer takes the input data, which has already been formatted as a point on the Grossman manifold, and transforms it to extract features, much like a normal neural network layer.
- 29:49as Geometry: But it does so using a strict full-rank transformation matrix.
- 29:53as Geometry: This ensures that the resulting output doesn't accidentally collapse into a degenerate flat state during the math.
- 30:00as Geometry: It maintains the geometric integrity of the subspace.
- 30:02as Geometry: I follow that. You transform the data carefully to keep it full-rank.
- 30:07as Geometry: But eventually, if you are doing billions of calculations per second on a physical computer, you are going to introduce tiny computational rounding errors.
- 30:15as Geometry: Floating point math is never perfect.
- 30:18as Geometry: Wouldn't those microscopic errors accumulate and eventually push the data off the curve anyway?
- 30:23as Geometry: They absolutely will.
- 30:24as Geometry: The drift is inevitable.
- 30:26as Geometry: And that is exactly why Huang had to design the most critical layer of the GRNet architecture, the reorth or reorthogonalization layer.
- 30:35as Geometry: Reorthogonalization.
- 30:36as Geometry: That sounds like a structural reset. What is the mechanism there?
- 30:40as Geometry: It relies on a classic linear algebra technique called QR decomposition.
- 30:44as Geometry: Think of it as a geometric anchor dropped at the end of every layer.
- 30:48as Geometry: Okay, an anchor.
- 30:50as Geometry: After the FRMAP layer applies its transformation, the data might have drifted slightly off the pure manifold due to those computational realities you mentioned.
- 31:02The reorth layer takes that drifting matrix and violently decomposes it into two parts: an orthogonal matrix called Q and an upper triangular matrix called R.
- 31:07The reorth layer takes that drifting matrix and violently decomposes it into two parts: I haven't done QR decomposition since college.
- 31:10The reorth layer takes that drifting matrix and violently decomposes it into two parts: Remind me, why splitting the matrix into Q and R solves the drift problem?
- 31:15The reorth layer takes that drifting matrix and violently decomposes it into two parts: Because the Q matrix is strictly mathematically orthonormal by definition.
- 31:19The reorth layer takes that drifting matrix and violently decomposes it into two parts: It perfectly represents a subspace.
- 31:22The reorth layer takes that drifting matrix and violently decomposes it into two parts: By actively discarding the R component, throwing away the drift and the scaling errors, and passing only the pure Q matrix forward to the next layer, the re-orth layer snaps the data perfectly back onto the surface of the Grassman manifold.
- 31:35The reorth layer takes that drifting matrix and violently decomposes it into two parts: So you just throw the R away?
- 31:38The reorth layer takes that drifting matrix and violently decomposes it into two parts: Just throw it away. It forces the matrices to remain normalized and mathematically stable.
- 31:43The reorth layer takes that drifting matrix and violently decomposes it into two parts: If you don't perform this QR decomposition step, the geometry accumulates errors and collapses entirely within a few passes.
- 31:49The reorth layer takes that drifting matrix and violently decomposes it into two parts: It's like a guardrail on a winding mountain road. Every time the car takes a turn and starts to drift toward the cliff edge of Euclidean space, the QR decomposition bumps it safely back into the center of the curved lane.
- 32:04The reorth layer takes that drifting matrix and violently decomposes it into two parts: That is a very apt visualization.
- 32:06The reorth layer takes that drifting matrix and violently decomposes it into two parts: And while Huang was building this basic infrastructure with GRNet to keep things on the road, Ryu Wang at Jiangnan University was tackling the big monster we discussed earlier, the catastrophic quadratic scaling problem of transformers.
- 32:19The reorth layer takes that drifting matrix and violently decomposes it into two parts: Oh, right. The OL squared problem.
- 32:21The reorth layer takes that drifting matrix and violently decomposes it into two parts: Yeah. Huang developed an architecture called GDLNet or the Grasmanian Self-Attention Network.
- 32:27The reorth layer takes that drifting matrix and violently decomposes it into two parts: This is what I've been waiting for.
- 32:29The reorth layer takes that drifting matrix and violently decomposes it into two parts: How do you fix that bottleneck, that explosion of compute when you feed an AI a long document using this curved math?
- 32:37The reorth layer takes that drifting matrix and violently decomposes it into two parts: Remember that in a standard transformer, self-attention matches flat token A to flat token B, then C, then D, creating that massive exponentially growing matrix of comparisons?
- 32:46The reorth layer takes that drifting matrix and violently decomposes it into two parts: Right.
- 32:47The reorth layer takes that drifting matrix and violently decomposes it into two parts: Wong completely changed the paradigms.
- 32:49The reorth layer takes that drifting matrix and violently decomposes it into two parts: Instead of matching individual flat tokens, GDLNet groups sequence features into subblocks along the channel dimension.
- 32:56The reorth layer takes that drifting matrix and violently decomposes it into two parts: It then uses a technique called singular value decomposition, or SVD, to model these entire subblocks of data as individual points on the Grasmanian manifold.
- 33:06The reorth layer takes that drifting matrix and violently decomposes it into two parts: So instead of a language model comparing 10,000 individual flat words to each other, it's comparing a much smaller number of dense multidimensional concepts or subspaces.
- 33:17The reorth layer takes that drifting matrix and violently decomposes it into two parts: Exactly. You've grouped the data meaningfully. And because they are now subspaces living on a curved manifold, Wang couldn't use the standard Euclidean dot product to measure how similar they are. A dot product relies on straight lines.
- 33:30The reorth layer takes that drifting matrix and violently decomposes it into two parts: So what did he use?
- 33:32The reorth layer takes that drifting matrix and violently decomposes it into two parts: He had to use the projection metric.
- 33:34The reorth layer takes that drifting matrix and violently decomposes it into two parts: What is the difference between a standard dot product and a projection metric?
- 33:38The reorth layer takes that drifting matrix and violently decomposes it into two parts: A dot product measures the angle between two straight lines intersecting on a flat plane.
- 33:43The reorth layer takes that drifting matrix and violently decomposes it into two parts: The projection metric measures the geodesic distance between two entire subspaces.
- 33:49The reorth layer takes that drifting matrix and violently decomposes it into two parts: Geodesic distance.
- 33:51The reorth layer takes that drifting matrix and violently decomposes it into two parts: Meaning the shortest path along the actual physical curve of the manifold.
- 33:54The reorth layer takes that drifting matrix and violently decomposes it into two parts: Like an airplane flying the Great Circle route over the curvature of the globe to get from New York to London, instead of trying to draw a straight line through the Earth's crust.
- 34:03The reorth layer takes that drifting matrix and violently decomposes it into two parts: Exactly. It respects the curvature of the space.
- 34:06The reorth layer takes that drifting matrix and violently decomposes it into two parts: To aggregate all this contextual information, GDLNet uses something called the weighted freche mean.
- 34:12The reorth layer takes that drifting matrix and violently decomposes it into two parts: Weighted freche mean.
- 34:14The reorth layer takes that drifting matrix and violently decomposes it into two parts: It basically calculates the geometric center of mass for all these subspaces along the curvature of the manifold.
- 34:21The reorth layer takes that drifting matrix and violently decomposes it into two parts: And because it's operating on these rich, dense subspaces rather than sparse, individual flat tokens, the computational requirement completely changes.
- 34:30The reorth layer takes that drifting matrix and violently decomposes it into two parts: Wang's approach, these Grassman flows, turns the massive OL-squared quadratic scaling problem into a linear OL-scaling factor.
- 34:38The reorth layer takes that drifting matrix and violently decomposes it into two parts: Hold on.
- 34:40The reorth layer takes that drifting matrix and violently decomposes it into two parts: You can't just gloss over that.
- 34:42The reorth layer takes that drifting matrix and violently decomposes it into two parts: Going from OL-squared to OL is the holy grail of modern computer science.
- 34:46The reorth layer takes that drifting matrix and violently decomposes it into two parts: It's massive.
- 34:48The reorth layer takes that drifting matrix and violently decomposes it into two parts: That means a sequence of a thousand tokens no longer takes a million operations.
- 34:53The reorth layer takes that drifting matrix and violently decomposes it into two parts: It only takes a factor of a thousand.
- 34:54The reorth layer takes that drifting matrix and violently decomposes it into two parts: It scales linearly.
- 34:56The reorth layer takes that drifting matrix and violently decomposes it into two parts: That's a massive industry-altering reduction in compute.
- 35:00The reorth layer takes that drifting matrix and violently decomposes it into two parts: It is.
- 35:01The reorth layer takes that drifting matrix and violently decomposes it into two parts: But wait, I have to push back here with some genuine skepticism.
- 35:06The reorth layer takes that drifting matrix and violently decomposes it into two parts: You're pitching this curved math as a savior for computational efficiency.
- 35:10The reorth layer takes that drifting matrix and violently decomposes it into two parts: But look at what you just described.
- 35:13The reorth layer takes that drifting matrix and violently decomposes it into two parts: QR decomposition, singular value decompositions, calculating weighted for Shea means on curved spaces.
- 35:20The reorth layer takes that drifting matrix and violently decomposes it into two parts: That is significantly heavier, more complex math than just multiplying flat numbers together in a dot product.
- 35:26The reorth layer takes that drifting matrix and violently decomposes it into two parts: That's a very fair point.
- 35:27The reorth layer takes that drifting matrix and violently decomposes it into two parts: Aren't we just trading a memory bottleneck for a processing bottleneck?
- 35:31The reorth layer takes that drifting matrix and violently decomposes it into two parts: How does doing harder math save energy?
- 35:34The reorth layer takes that drifting matrix and violently decomposes it into two parts: That is the most important question to ask here, and it's the exact trade-off the engineers had to meticulously calculate.
- 35:40The reorth layer takes that drifting matrix and violently decomposes it into two parts: Your stepticism is completely justified.
- 35:43The reorth layer takes that drifting matrix and violently decomposes it into two parts: The math per step on a Grassman manifold is significantly more complex than a simple Euclidean matrix multiplication.
- 35:49The reorth layer takes that drifting matrix and violently decomposes it into two parts: Doing a QR decomposition takes more compute cycles on a processor than a basic dot product.
- 35:54The reorth layer takes that drifting matrix and violently decomposes it into two parts: So where does the efficiency actually come from?
- 35:57The reorth layer takes that drifting matrix and violently decomposes it into two parts: Because the dimensionality of the data is drastically reduced.
- 36:01The reorth layer takes that drifting matrix and violently decomposes it into two parts: You are doing harder math, yes, but you are doing it on vastly fewer numbers.
- 36:06The reorth layer takes that drifting matrix and violently decomposes it into two parts: Let's look back at the memory wall we discussed for tracking gradients in large language models.
- 36:10The reorth layer takes that drifting matrix and violently decomposes it into two parts: In Euclidean space, you might be tracking a gradient matrix of 10,000 by 10,000 parameters.
- 36:16The reorth layer takes that drifting matrix and violently decomposes it into two parts: That's 100 million distinct numbers you have to store in RAM just for one layer.
- 36:21The reorth layer takes that drifting matrix and violently decomposes it into two parts: But on the Grassmannian, using optimization methods like subtract, which gradient subspace tracking employs, you only track the compact core subspace of those gradients.
- 36:30The reorth layer takes that drifting matrix and violently decomposes it into two parts: You might reduce that massive 10,000 dimension matrix down to a rank 10 subspace.
- 36:35The reorth layer takes that drifting matrix and violently decomposes it into two parts: Oh, I see. You do complex, heavy math on a tiny, dense matrix, rather than doing simple math on a gargantuan, sparse matrix.
- 36:44The reorth layer takes that drifting matrix and violently decomposes it into two parts: And ultimately that trade-off wins out by orders of magnitude. Tracking gradient subspaces on the Grasmanians saves massive amounts of LLM training memory, allowing you to train much larger models on significantly fewer GPUs.
- 36:57The reorth layer takes that drifting matrix and violently decomposes it into two parts: That's incredible.
- 36:58The reorth layer takes that drifting matrix and violently decomposes it into two parts: Furthermore, Wang proved the robustness of GDLNet not just in theoretical math, but on incredibly difficult real-world data.
- 37:05The reorth layer takes that drifting matrix and violently decomposes it into two parts: They tested this architecture on the radar dataset for drone recognition and on EEG datasets for human brainwave signal classification.
- 37:13The reorth layer takes that drifting matrix and violently decomposes it into two parts: Drone radar and human brainwaves?
- 37:16The reorth layer takes that drifting matrix and violently decomposes it into two parts: Those are notoriously noisy, chaotic data sets.
- 37:19The reorth layer takes that drifting matrix and violently decomposes it into two parts: You have ambient radio noise, you have biological noise.
- 37:22The reorth layer takes that drifting matrix and violently decomposes it into two parts: Highly complex, noisy spatiotemporal data.
- 37:26The reorth layer takes that drifting matrix and violently decomposes it into two parts: And GDLNet outperformed state-of-the-art Euclidean models because the Grasmanian manifold naturally filtered out the ambient noise and focused entirely on the fundamental geometric structure of the signals.
- 37:36The reorth layer takes that drifting matrix and violently decomposes it into two parts: Why did it filter it out?
- 37:38The reorth layer takes that drifting matrix and violently decomposes it into two parts: Because noise usually operates in a flat, random distribution.
- 37:41The reorth layer takes that drifting matrix and violently decomposes it into two parts: It didn't align with the manifold.
- 37:45The reorth layer takes that drifting matrix and violently decomposes it into two parts: Right.
- 37:43The reorth layer takes that drifting matrix and violently decomposes it into two parts: The AI didn't get confused by the static.
- 37:45The reorth layer takes that drifting matrix and violently decomposes it into two parts: It only saw the pure shape of the data.
- 37:48The reorth layer takes that drifting matrix and violently decomposes it into two parts: So we've established that the math works and the engineering required to keep the data on the curve works.
- 37:54The reorth layer takes that drifting matrix and violently decomposes it into two parts: But Kahn's paper reveals something else, moving away from just efficiency.
- 37:58The reorth layer takes that drifting matrix and violently decomposes it into two parts: Oh, yes.
- 37:59The reorth layer takes that drifting matrix and violently decomposes it into two parts: It reveals something almost magical about how these networks actually learn over time.
- 38:05The reorth layer takes that drifting matrix and violently decomposes it into two parts: And this brings us to a famous, almost spooky AI mystery called grokking.
- 38:10The reorth layer takes that drifting matrix and violently decomposes it into two parts: Grokking is one of the most fascinating phenomena in modern machine learning.
- 38:14The reorth layer takes that drifting matrix and violently decomposes it into two parts: It was first documented a few years ago by researchers at OpenAI who were training small networks on algorithmic tasks.
- 38:20The reorth layer takes that drifting matrix and violently decomposes it into two parts: And it completely upended how we thought models learned.
- 38:24The reorth layer takes that drifting matrix and violently decomposes it into two parts: For the listeners who aren't steeped in AI lore, explain what grokking actually is. What happens during training?
- 38:32The reorth layer takes that drifting matrix and violently decomposes it into two parts: When you train a neural network, you typically monitor two things. It's accuracy on the training data you're feeding it, and it's accuracy on unseen test data to see if it actually learned the concept or just memorized the answers.
- 38:44The reorth layer takes that drifting matrix and violently decomposes it into two parts: Okay, that makes sense.
- 38:46The reorth layer takes that drifting matrix and violently decomposes it into two parts: Normally a network learns gradually, and both metrics go up together. But in grokking, something strange happens.
- 38:52The reorth layer takes that drifting matrix and violently decomposes it into two parts: The network rapidly memorizes the training data, achieving perfect accuracy there, but its performance on the test data stays near zero.
- 39:00The reorth layer takes that drifting matrix and violently decomposes it into two parts: It hasn't generalized the underlying rule at all, it just rote memorized the flashcards.
- 39:05The reorth layer takes that drifting matrix and violently decomposes it into two parts: It's like a student who memorizes the answers to a specific math test, but doesn't actually know how to do addition.
- 39:12The reorth layer takes that drifting matrix and violently decomposes it into two parts: If you change the numbers even slightly, they fail.
- 39:16The reorth layer takes that drifting matrix and violently decomposes it into two parts: Exactly.
- 39:16The reorth layer takes that drifting matrix and violently decomposes it into two parts: And historically, if a researcher saw that happening, they would stop the training run.
- 39:20The reorth layer takes that drifting matrix and violently decomposes it into two parts: They would assume the model has overfit the data and failed.
- 39:24The reorth layer takes that drifting matrix and violently decomposes it into two parts: Cut their losses.
- 39:24The reorth layer takes that drifting matrix and violently decomposes it into two parts: Right.
- 39:25The reorth layer takes that drifting matrix and violently decomposes it into two parts: But in this case, the researchers left the training running.
- 39:28The reorth layer takes that drifting matrix and violently decomposes it into two parts: They let it plateau at the state of memorization.
- 39:30The reorth layer takes that drifting matrix and violently decomposes it into two parts: And then, long after you think it's done learning, thousands of training steps later, suddenly, almost instantly, the test accuracy shoots straight up from near zero to 100%.
- 39:42The reorth layer takes that drifting matrix and violently decomposes it into two parts: Whoa.
- 39:42The reorth layer takes that drifting matrix and violently decomposes it into two parts: The network suddenly groks the underlying algorithm perfectly.
- 39:46The reorth layer takes that drifting matrix and violently decomposes it into two parts: It just clicks.
- 39:47The reorth layer takes that drifting matrix and violently decomposes it into two parts: It has a literal aha moment after hours of seemingly doing nothing.
- 39:51The reorth layer takes that drifting matrix and violently decomposes it into two parts: But why?
- 39:52The reorth layer takes that drifting matrix and violently decomposes it into two parts: What is happening inside the black box during that massive plateau where it seems stuck?
- 39:57The reorth layer takes that drifting matrix and violently decomposes it into two parts: For a long time, no one knew. It was seen as a statistical mystery. Some thought it was random walks in parameter space. But Kahn's paper provides a definitive geometric answer. In Proposition 9.1 of his paper, Kahn states that grokking is not just a statistical anomaly. It is a physical, measurable Grasmanian phase transition.
- 40:18The reorth layer takes that drifting matrix and violently decomposes it into two parts: A phase transition.
- 40:19The reorth layer takes that drifting matrix and violently decomposes it into two parts: Like liquid water abruptly turning into solid ice when it hits a specific temperature.
- 40:24The reorth layer takes that drifting matrix and violently decomposes it into two parts: Yes. A sudden structural shift in the fundamental geometry of the network.
- 40:29The reorth layer takes that drifting matrix and violently decomposes it into two parts: To measure this, Kahn utilized a metric called the Gini coefficient.
- 40:33The reorth layer takes that drifting matrix and violently decomposes it into two parts: Like the Gini coefficient? Isn't that an economics term?
- 40:37The reorth layer takes that drifting matrix and violently decomposes it into two parts: It's used to measure wealth inequality in a country, where zero is perfect equality, where everyone has the same amount of money, and one is maximal inequality, where one person holds all the wealth.
- 40:48The reorth layer takes that drifting matrix and violently decomposes it into two parts: It is the exact same metric, but Khan brilliantly repurposed it to measure feature usage inequality among the neurons in the network.
- 40:58The reorth layer takes that drifting matrix and violently decomposes it into two parts: Feature usage inequality.
- 41:00The reorth layer takes that drifting matrix and violently decomposes it into two parts: Yeah. He looked at how equitably the network was using its geometric space.
- 41:04The reorth layer takes that drifting matrix and violently decomposes it into two parts: He found that during the memorization phase, when the network is just blindly memorizing the training data and failing the test data, the Gini coefficient is high.
- 41:13The reorth layer takes that drifting matrix and violently decomposes it into two parts: The network is using its neurons uneconomically.
- 41:15The reorth layer takes that drifting matrix and violently decomposes it into two parts: Meaning what, exactly?
- 41:17The reorth layer takes that drifting matrix and violently decomposes it into two parts: It's putting a high, heavy computational load on a few structural configurations while leaving others idle.
- 41:24The reorth layer takes that drifting matrix and violently decomposes it into two parts: The projection mapping is non-injective. It's a messy, overlapping origami.
- 41:29The reorth layer takes that drifting matrix and violently decomposes it into two parts: The wealth of information is hoarded inefficiently by a few neurons.
- 41:33The reorth layer takes that drifting matrix and violently decomposes it into two parts: So what happens physically to the geometry at the exact moment of grokking?
- 41:38The reorth layer takes that drifting matrix and violently decomposes it into two parts: During grokking, Kahn observed that the representation subspace literally moves across the Grassman manifold toward a highly specific, perfectly isotropic point.
- 41:47The reorth layer takes that drifting matrix and violently decomposes it into two parts: It moves toward a state mathematically called the balanced tight frame, or BTF.
- 41:52The reorth layer takes that drifting matrix and violently decomposes it into two parts: A balanced tight frame.
- 41:54The reorth layer takes that drifting matrix and violently decomposes it into two parts: What does that look like geometrically?
- 41:56The reorth layer takes that drifting matrix and violently decomposes it into two parts: It is a state of absolute perfect geometric equilibrium.
- 42:00The reorth layer takes that drifting matrix and violently decomposes it into two parts: In a balanced tight frame, every single column of the weight matrix has equal norm, and the feature usage measure is perfectly uniform across all dimensions.
- 42:10The reorth layer takes that drifting matrix and violently decomposes it into two parts: The moment the network hits this specific geometric state, the Gini coefficient plummets to near zero.
- 42:15The reorth layer takes that drifting matrix and violently decomposes it into two parts: It sounds like the network is physically tossing and turning in this high-dimensional space, trying to find a comfortable sleeping position where its weight is perfectly distributed.
- 42:26The reorth layer takes that drifting matrix and violently decomposes it into two parts: And grokking is the exact moment it aligns perfectly with the mattress.
- 42:30The reorth layer takes that drifting matrix and violently decomposes it into two parts: All the stress points vanish, and it suddenly understands the algorithm.
- 42:35The reorth layer takes that drifting matrix and violently decomposes it into two parts: That is a wonderful way to contextualize it.
- 42:38The reorth layer takes that drifting matrix and violently decomposes it into two parts: Finding the balanced tight frame is literally the network finding the optimal geometric balance of its computational resources.
- 42:44The reorth layer takes that drifting matrix and violently decomposes it into two parts: And Kahn proved this with rigorous experimental detail.
- 42:48The reorth layer takes that drifting matrix and violently decomposes it into two parts: Oh, he tested it.
- 42:49The reorth layer takes that drifting matrix and violently decomposes it into two parts: He did.
- 42:50The reorth layer takes that drifting matrix and violently decomposes it into two parts: They tracked models performing Mod 97 modular addition tasks.
- 42:54The reorth layer takes that drifting matrix and violently decomposes it into two parts: They carefully watched the models employing weight decay.
- 42:57The reorth layer takes that drifting matrix and violently decomposes it into two parts: The models that successfully grokked the math hit a genie coefficient of exactly.005, near perfect geometric equality, Wow.
- 43:07The reorth layer takes that drifting matrix and violently decomposes it into two parts: But the models that failed to grok, the ones that just stayed stuck in memorization, they stalled.
- 43:12The reorth layer takes that drifting matrix and violently decomposes it into two parts: Their Gini coefficient froze at 0.020.
- 43:15The reorth layer takes that drifting matrix and violently decomposes it into two parts: So even though 0.020 might seem like a low number in a vacuum, because it didn't reach that perfect balanced tight frame state of 0.005, the geometry wasn't perfectly aligned.
- 43:28The reorth layer takes that drifting matrix and violently decomposes it into two parts: The aha moment never happened.
- 43:30The reorth layer takes that drifting matrix and violently decomposes it into two parts: The network couldn't find the perfect sleeping position, so it never woke up with the answer.
- 43:35The reorth layer takes that drifting matrix and violently decomposes it into two parts: Kahn proved that convergent to that specific geometric point on the Grassman manifold is the literal, physical signature of an AI truly understanding an algorithm rather than just memorizing data.
- 43:47The reorth layer takes that drifting matrix and violently decomposes it into two parts: Generalization is a geometric destination.
- 43:50The reorth layer takes that drifting matrix and violently decomposes it into two parts: Okay, this is all incredibly profound for understanding how AI thinks and learns internally.
- 43:56The reorth layer takes that drifting matrix and violently decomposes it into two parts: We've seen how Grafman Manifolds help the AI process efficiently without scaling quadratically, prevent its neurons from dying, and even achieve mathematical enlightenment through grokking.
- 44:07The reorth layer takes that drifting matrix and violently decomposes it into two parts: But I want to pivot here.
- 44:08The reorth layer takes that drifting matrix and violently decomposes it into two parts: Sure, where to?
- 44:09The reorth layer takes that drifting matrix and violently decomposes it into two parts: I want to talk about how this helps us.
- 44:12The reorth layer takes that drifting matrix and violently decomposes it into two parts: How does this geometry help humans interact with AI?
- 44:16The reorth layer takes that drifting matrix and violently decomposes it into two parts: Because right now, trying to get an AI to do exactly what you want feels like trying to steer a ship by yelling at it.
- 44:22The reorth layer takes that drifting matrix and violently decomposes it into two parts: It really does.
- 44:23The reorth layer takes that drifting matrix and violently decomposes it into two parts: And this is where the theoretical math becomes highly practical for end users, especially in creative and structural fields.
- 44:30The reorth layer takes that drifting matrix and violently decomposes it into two parts: Historically, high-dimensional latent spaces in neural networks are treated as an impenetrable black box.
- 44:36The reorth layer takes that drifting matrix and violently decomposes it into two parts: A human operator cannot look at a 10,000-dimensional vector and make any sense of it whatsoever.
- 44:41The reorth layer takes that drifting matrix and violently decomposes it into two parts: You can't just reach into the code and tweak a number to make an AI-generated face smile more.
- 44:46The reorth layer takes that drifting matrix and violently decomposes it into two parts: Because everything is entangled in that flat Euclidean space.
- 44:50The reorth layer takes that drifting matrix and violently decomposes it into two parts: If you change one number in a Euclidean vector, hoping to make the face smile, you might inadvertently change the lighting to purple, change the eye color to green, and change the gender of the face all at once, because those features are all tangled up in the same flat numbers.
- 45:04The reorth layer takes that drifting matrix and violently decomposes it into two parts: And that lack of control is incredibly frustrating for users.
- 45:08The reorth layer takes that drifting matrix and violently decomposes it into two parts: But the Graspin manifold has a unique, beautiful property that solves this.
- 45:12The reorth layer takes that drifting matrix and violently decomposes it into two parts: Despite being a highly curved, nonlinear space that is difficult to work with directly, it can be mathematically linked to a flat, controllable space through an operation called the Ramanian logarithmic mapping.
- 45:24The reorth layer takes that drifting matrix and violently decomposes it into two parts: The Romanian logarithmic map.
- 45:27The reorth layer takes that drifting matrix and violently decomposes it into two parts: Let me try an analogy to see if I'm tracking this.
- 45:30The reorth layer takes that drifting matrix and violently decomposes it into two parts: Is it like taking a globe, which is a curved manifold, and creating a flat 2D map of a local area, like a street map of your neighborhood?
- 45:38The reorth layer takes that drifting matrix and violently decomposes it into two parts: That's, yeah, that's it.
- 45:40The reorth layer takes that drifting matrix and violently decomposes it into two parts: You know the Earth is fundamentally curved, but for the sake of navigating your local streets, flattening it out into a 2D map works perfectly well and doesn't distort things too much.
- 45:49The reorth layer takes that drifting matrix and violently decomposes it into two parts: That is an excellent analogy.
- 45:51The reorth layer takes that drifting matrix and violently decomposes it into two parts: The Ramanian logarithmic map allows us to take a specific localized point on the curved Grassman manifold, say the subspace representing a neutral human face, and locally linearize the highly curved space around it into a flat tangent space.
- 46:21The reorth layer takes that drifting matrix and violently decomposes it into two parts: Wow.
- 46:06The reorth layer takes that drifting matrix and violently decomposes it into two parts: And why is creating that flat tangent space so useful for us humans trying to control the AI?
- 46:12The reorth layer takes that drifting matrix and violently decomposes it into two parts: Because humans naturally understand and operate in linear math.
- 46:16The reorth layer takes that drifting matrix and violently decomposes it into two parts: In a flat tangent space, you can manipulate high-dimensional features using familiar linear combinations.
- 46:22The reorth layer takes that drifting matrix and violently decomposes it into two parts: You can isolate specific directions of change without affecting the others.
- 46:26The reorth layer takes that drifting matrix and violently decomposes it into two parts: This tangent space linearization acts as the ultimate user interface, essentially building a precise steering wheel for the AI.
- 46:33The reorth layer takes that drifting matrix and violently decomposes it into two parts: Building the steering wheel. I love this concept. Let's talk about how this works mechanically.
- 46:39The reorth layer takes that drifting matrix and violently decomposes it into two parts: How do we turn complex tangent math into something a human operator can actually use, like sliders on a computer screen?
- 46:46The reorth layer takes that drifting matrix and violently decomposes it into two parts: It comes down to analyzing the angles between the subspaces.
- 46:49The reorth layer takes that drifting matrix and violently decomposes it into two parts: The differences between any two subspaces on the Grossman Manifold are governed by what are called canonical angles or principal angles.
- 46:56The reorth layer takes that drifting matrix and violently decomposes it into two parts: So these canonical angles dictate the geometric difference between, say, a face looking forward and a face looking left.
- 47:04The reorth layer takes that drifting matrix and violently decomposes it into two parts: Exactly. And when you map these canonical angles into the linearized tangent space interface, they mathematically decouple from one another.
- 47:12The reorth layer takes that drifting matrix and violently decomposes it into two parts: In a user interface, these canonical angles quite literally become decoupled slider controls for human operators.
- 47:18The reorth layer takes that drifting matrix and violently decomposes it into two parts: You mean literal UI sliders, like the volume sliders on a soundboard or the contrast sliders in Photoshop?
- 47:25The reorth layer takes that drifting matrix and violently decomposes it into two parts: Literal sliders on a screen.
- 47:32Let's apply this to a specific real-world use case explored in these architectures: video, face verification, and editing.
- 47:35Let's apply this to a specific real-world use case explored in these architectures: In a Grasmanian interface, the sliders map directly to physical traits because of how the variance is geometrically structured on the manifold.
- 47:42Let's apply this to a specific real-world use case explored in these architectures: Okay, give me an example.
- 47:44Let's apply this to a specific real-world use case explored in these architectures: Researchers have found a highly consistent mapping.
- 47:46Let's apply this to a specific real-world use case explored in these architectures: The low-order canonical angles, the ones capturing the most massive amounts of variance, map to primary head rotations.
- 47:53Let's apply this to a specific real-world use case explored in these architectures: Pitch, yaw, and roll.
- 47:55Let's apply this to a specific real-world use case explored in these architectures: So slider number one mathematically turns the head left and right.
- 48:00Let's apply this to a specific real-world use case explored in these architectures: The mid-order canonical angles, which capture slightly less variance, map to illumination shifts.
- 48:05Let's apply this to a specific real-world use case explored in these architectures: Slider number two changes the lighting from bright overhead sun to dramatic side lighting.
- 48:11Let's apply this to a specific real-world use case explored in these architectures: And the high order canonical angles capture the tiny variances.
- 48:15Let's apply this to a specific real-world use case explored in these architectures: They control fine-grained details like specific facial expressions.
- 48:20Let's apply this to a specific real-world use case explored in these architectures: So slider number three makes the face smile or frown without turning the head or changing the lighting.
- 48:26Let's apply this to a specific real-world use case explored in these architectures: And because these are canonical angles mapped from a Grassman manifold, they are geometrically orthogonal to each other. They don't interfere.
- 48:34Let's apply this to a specific real-world use case explored in these architectures: They are completely mathematically decoupled.
- 48:38Let's apply this to a specific real-world use case explored in these architectures: Think about how revolutionary that is for AI interfaces.
- 48:41Let's apply this to a specific real-world use case explored in these architectures: Right now, if I want an AI to generate a specific image, I have to write a massive, complex text prompt and just pray it understands what a slight smile and dim lighting looking slightly left looks like.
- 48:53Let's apply this to a specific real-world use case explored in these architectures: Right. It's a lot of trial and error.
- 48:56Let's apply this to a specific real-world use case explored in these architectures: But with this, I can literally just grab a slider, push the head rotation up 10 degrees, drop the illumination slider down, and the math guarantees the face rotates and dims without distorting the identity of the person.
- 49:08Let's apply this to a specific real-world use case explored in these architectures: It mathematically guarantees it.
- 49:10Let's apply this to a specific real-world use case explored in these architectures: And the way it enforces that guarantee is through the inverse of the map we just discussed, geodesic execution.
- 49:17Let's apply this to a specific real-world use case explored in these architectures: Geodesic execution.
- 49:18Let's apply this to a specific real-world use case explored in these architectures: Yes.
- 49:25Let's apply this to a specific real-world use case explored in these architectures: Yes.
- 49:19Let's apply this to a specific real-world use case explored in these architectures: When you push that slider in the flat tangent space on your screen, the interface uses the Riemannian exponential map to snap that vector back onto the curved manifold.
- 49:29Let's apply this to a specific real-world use case explored in these architectures: It mathematically wraps your linear command around the curvature of the space to update the model instantly, ensuring the new representation remains a perfectly valid orthonormal basis matrix.
- 49:39Let's apply this to a specific real-world use case explored in these architectures: So the user's command drifted into flat space, but the exponential map snapped it back to the mountain road before the AI rendered the image.
- 49:48Let's apply this to a specific real-world use case explored in these architectures: And this guarantee is even more critical when applied to 3D human body motion tracking.
- 49:52Let's apply this to a specific real-world use case explored in these architectures: If you are using AI to track or generate a complex human movement like someone running or jumping, a standard Euclidean network might easily generate a frame where the knee bends backward.
- 50:02Let's apply this to a specific real-world use case explored in these architectures: Yeah.
- 50:03Let's apply this to a specific real-world use case explored in these architectures: Because Euclidean space is just a grid of numbers. It has no inherent physiological limits.
- 50:08Let's apply this to a specific real-world use case explored in these architectures: It doesn't know knees only bend one way.
- 50:10Let's apply this to a specific real-world use case explored in these architectures: It's just moving coordinates on a graph.
- 50:12Let's apply this to a specific real-world use case explored in these architectures: But in a Grasmanian interface, physiological limits, like the physical hinge limit of a human knee joint, are explicitly mapped as hard boundaries within the manifold space.
- 50:21Let's apply this to a specific real-world use case explored in these architectures: If a human operator or a tracking algorithm pushes a joint slider past a physiological limit, the Riemannian exponential map automatically projects the movement back to the nearest valid point on the geodesic curve.
- 50:32Let's apply this to a specific real-world use case explored in these architectures: So the map literally prevents the AI from generating impossible body mechanics.
- 50:37Let's apply this to a specific real-world use case explored in these architectures: You push the slider too far to bend the leg backward, and the math just says, nope, that point doesn't exist on the manifold and stops the knee from breaking.
- 50:45Let's apply this to a specific real-world use case explored in these architectures: It acts as an unbreakable geometric constraint.
- 50:48Let's apply this to a specific real-world use case explored in these architectures: You no longer have to blindly trust the black box to output physics-compliant reality.
- 50:52Let's apply this to a specific real-world use case explored in these architectures: The physics of the human body are baked into the geometry of the space itself.
- 50:56Let's apply this to a specific real-world use case explored in these architectures: We have covered a massive amount of ground today, moving from...
- 51:00Let's apply this to a specific real-world use case explored in these architectures: the most abstract theories of differential geometry to the practical realities of making AI run efficiently and intuitively.
- 51:08Let's apply this to a specific real-world use case explored in these architectures: Let's synthesize this journey.
- 51:10Let's apply this to a specific real-world use case explored in these architectures: Sounds good.
- 51:11Let's apply this to a specific real-world use case explored in these architectures: We started in the flat, inefficient world of Euclidean AI, a world where models are forced to blindly memorize data, hallucinate constantly when they run out of room, and require so much compute and memory that they threaten to crash our power grids.
- 51:25Let's apply this to a specific real-world use case explored in these architectures: A world trapped entirely in flatland, looking at shadows.
- 51:30Let's apply this to a specific real-world use case explored in these architectures: And we discovered the escape route.
- 51:32Let's apply this to a specific real-world use case explored in these architectures: By diving into True Shankar's breakthrough of geometric superposition, realizing that neural networks are naturally trying to fold information into complex angular origami, we saw how AI can pack features densely without confusing them, governed by that strict k is less than n over 2 threshold.
- 51:49Let's apply this to a specific real-world use case explored in these architectures: And we explored the incredible engineering required to survive on that curve.
- 51:54Let's apply this to a specific real-world use case explored in these architectures: Ziu Huang's GER net using QR decomposition to keep data from flying off the manifold, and Rui Huang's GDL net using Freche means to turn massive quadratic scaling problems into efficient linear scaling, fundamentally solving the transformer bottleneck.
- 52:09Let's apply this to a specific real-world use case explored in these architectures: We uncovered the mystery of grokking, realizing that an AI's aha moment is actually a physical phase transition, moving toward perfect equilibrium in a balanced tight frame, dropping its Gini coefficient to near zero, And finally, we saw how this exact same curved math creates the ultimate human steering wheel, allowing us to control AI faces and bodies using canonical angle sliders that mathematically guarantee the physics of reality.
- 52:34Let's apply this to a specific real-world use case explored in these architectures: It is a profound, necessary shift for the industry.
- 52:38Let's apply this to a specific real-world use case explored in these architectures: And it's vital for anyone listening to remember why this matters practically.
- 52:43Let's apply this to a specific real-world use case explored in these architectures: This isn't just abstract blackboard math meant for academic papers.
- 52:46Let's apply this to a specific real-world use case explored in these architectures: This is the key to making AI models sustainable for the future.
- 52:50Let's apply this to a specific real-world use case explored in these architectures: It is the key to models running on significantly less electricity.
- 52:53Let's apply this to a specific real-world use case explored in these architectures: It is the key to models hallucinating less.
- 52:56Let's apply this to a specific real-world use case explored in these architectures: And crucially, it turns AI from an uncontrollable, unpredictable black box into a precise geometric tool that humans can physically, intuitively steer.
- 53:06Let's apply this to a specific real-world use case explored in these architectures: It changes AI from a magic trick into a geometric instrument.
- 53:11Let's apply this to a specific real-world use case explored in these architectures: Which brings us to our final, provocative thought for today's Deep Dive.
- 53:15Let's apply this to a specific real-world use case explored in these architectures: A thought inspired by reading through all these incredible source texts.
- 53:18Let's apply this to a specific real-world use case explored in these architectures: Let's hear it.
- 53:20Let's apply this to a specific real-world use case explored in these architectures: We have spent the last hour discussing how artificial neural networks become vastly more efficient, how they stop hallucinating, and how they become capable of intuitively tracking complex human faces and bodies only after we force them to stop looking at flat grids.
- 53:34Let's apply this to a specific real-world use case explored in these architectures: Right.
- 53:35Let's apply this to a specific real-world use case explored in these architectures: They only achieve true understanding after we force them to process information as geometric subspaces on a curved manifold.
- 53:42Let's apply this to a specific real-world use case explored in these architectures: That is the core takeaway of this entire paradigm shift, yes.
- 53:46Let's apply this to a specific real-world use case explored in these architectures: So, if an artificial neural network only achieves true, efficient comprehension of the physical world when it uses Grasmanian geometry, is it possible that the biological human visual cortex has been operating as a Grasmanian manifold all along?
- 54:03Let's apply this to a specific real-world use case explored in these architectures: Oh, wow.
- 54:05Let's apply this to a specific real-world use case explored in these architectures: When we look at a rotating object in a dark room and instantly understand its 3D shape without having to relearn its shadows— Are our biological neurons calculating freshet means and navigating Riemannian geodesics without us knowing it?
- 54:20Let's apply this to a specific real-world use case explored in these architectures: Are we finally teaching computers to see the shape of reality the exact same way our own brains do?
- 54:25Let's apply this to a specific real-world use case explored in these architectures: That is an incredibly deep philosophical question to leave on.
- 54:30Let's apply this to a specific real-world use case explored in these architectures: If form truly follows function, the geometry of our own minds might look very much like the geometry we are finally building for these machines.
- 54:39Let's apply this to a specific real-world use case explored in these architectures: something to mull over the next time you recognize a friend's face turning in the sunlight.
- 54:43Let's apply this to a specific real-world use case explored in these architectures: Thanks for joining us on this journey out of Flatland. We'll see you on the next Deep Dive.