Send us Fan Mail 📖 Read: https://helioxpodcast.substack.com/publish/post/218050132 Why teaching neural networks to think in curved, folded space - not flat grids - could cut AI's power bill, stop it from hallucinating, and finally give humans a steering wheel for the black box. Your AI can write code and pass the bar exam - so why does it also hallucinate, drain a small country's worth of electricity, and turn dead in a huge fraction of its own neurons? This episode traces the answer to a surprisingly simple culprit: for a decade, AI has been forced to process the world using flat, grid-based math that was never built for a curved, rotating, three-dimensional reality. We trace the escape route - a shift toward curved geometry called the Grassmann manifold - through the real engineering that's made it possible, including the GRNet architecture built at ETH Zurich, and follow it all the way to a strange, well-documented phenomenon called grokking, where a stuck model suddenly, physically "clicks" into understanding. Along the way: why models hallucinate, why some neurons quietly die, how researchers turned an O(L²) bottleneck into a linear one, and how this same curved math is starting to hand humans literal sliders to steer AI-generated faces and bodies. Evidence-based, deeply researched, and gently skeptical throughout - this is Heliox: Where Evidence Meets Empathy. References: Building Deep Networks on Grassmann Manifolds and twelve other papers Chapters 00:00 Cold Open: The Shadow on the Wall 02:14 A New Paradigm for AI 04:07 How Euclidean Neural Networks Work 07:18 The Quadratic Scaling Problem 09:33 The Memory Wall 11:00 Dying ReLUs 14:28 Escape Route: The Grassmann Manifold 18:30 Neural Superposition Explained 21:41 The k < n/2 Threshold 23:36 Inside GPT-2's Geometry 29:10 Engineering GRNet 32:22 GDLNet and Linear Scaling 38:05 Grokking: The AI's Aha Moment 45:17 Building a Steering Wheel for AI 53:46 Closing Thought: Is Your Brain a Manifold? This is Heliox: Where Evidence Meets Empathy Independent, moderated, timely, deep, gentle, clinical, global, and community conversations about things that matter. Breathe Easy, we go deep and lightly surface the big ideas. Support the show Disclosure: This podcast uses AI-generated synthetic voices for a material portion of the audio content, in line with Apple Podcasts guidelines. We make rigorous science accessible, accurate, and unforgettable. Produced by Michelle Bruecker and Scott Bleackley, it features reviews of emerging research and ideas from leading thinkers, curated under our creative direction with AI assistance for voice, imagery, and composition. Systemic voices and illustrative images of people are representative tools, not depictions of specific individuals. We dive deep into peer-reviewed research, pre-prints, and major scientific works - then bring them to life through the stories of the researchers themselves. Complex ideas become clear. Obscure discoveries become conversation starters. And you walk away understanding not just what scientists discovered, but why it matters and how they got there. Independent, moderated, timely, deep, gentle, clinical, global, and community conversations about things that matter. Breathe Easy, we go deep and lightly surface the big ideas. Spoken word, short and sweet, with rhythm and a catchy beat. http://tinyurl.com/stonefolksongs
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Imagine for a second that you were standing in a completely dark room. And in the center of this room, there is this incredibly complex, wildly intricate three-dimensional sculpture. Okay, I'm picturing it. And it's suspended in midair, right? And it's spinning rapidly. Right. But here's the catch. You can't actually see the sculpture itself. Oh, wait. So it's totally dark? Totally 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.
Right. Okay. So 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. Which is, I mean, that's... impossible. 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. Trapped in a flat reality, trying to comprehend the multidimensional truth.
It's a deeply frustrating scenario just to picture mentally, honestly, because you are fundamentally limited by the geometry of your perspective. You'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. And this, this is where it gets really interesting for our deep dive today. Because this highly restricted, flat, two-dimensional shadow perspective, this is exactly how traditional artificial intelligence has been forced to view our world.
It really is, yeah. I mean, for all the massive headline-grabbing leaps we've seen in machine learning over the last decade or so... The foundational math running under the hood has been, well, it's been trapped in what mathematicians call Euclidean vector spaces. Right. Flat grids. Exactly. So today we are going to explore a massive fundamental paradigm shift in how we build AI.
Right. What if we could give these machines the mathematical equivalent of depth perception? Which we desperately need. We do. Because right now, being stuck in that flatland is literally draining our power crits. You know, we're going to talk about a global network of researchers. from 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. A very expensive wall. Yeah, a very expensive wall. We'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. And finally, how this curved math creates a, well, like an intuitive human controllable steering wheel for AI interfaces.
And 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. We are looking at a fundamental rewrite of the geometric rules that govern how neural networks represent reality. We are moving from those flat Euclidean grids into the curved, deeply counterintuitive geometry of something called the Grassman Manifold. The Grassman Manifold. It sounds like science fiction, but it's not, right? Not at all.
It's a rigorous application of differential geometry that is actively solving some of the biggest scaling problems in AI today. So before we get into the mind-bending curved math, I think we need to understand why this shift is happening now. Like, if Euclidean math is what's causing these models to hit a wall, what is actually going wrong? That's the right place to start. Let's take a step back and look at how a standard deep neural network operates on a really fundamental level. Well, 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.
Okay, let's break that down. Right. 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. W, 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? Yeah, the Cartesian plane. Right. The W, the weight matrix, is essentially stretching or squashing or rotating that point on the paper.
Correct. And the B, the bias, is just sliding it around the grid. But everything is still anchored to those rigid, straight lines of the graph paper. That's a perfect way to visualize it. It assumes that the data naturally lives in a flat Euclidean vector space. And you know, for simple tasks, this assumption holds up fairly well. Like what? Like if you are predicting housing prices based on square footage and the number of bedrooms. A flat grid works. It's just linear relationships. Right. Bigger house, higher price.
Exactly. Simple. Exactly. But it completely falls apart when you introduce complex perceptual phenomena. Like visual data? Yeah. Think about something as natural to us as a video of a human face. Think about dynamic facial expressions or the 3D skeletal motion of a person walking down the street. Okay. In the real world, this data naturally and constantly shifts. The illumination changes the moment a cloud passes over the sun. The viewing angle changes when the person turns their head. Parts of the face become occluded. So if I smile broadly, my cheek might actually block the camera's view of my jawline, right?
My physical geometry changed the actual data the camera receives. Right. And how does a flat Euclidean vector handle that occlusion or that rotation? I'm guessing terribly. Terribly, because Euclidean space relies on the rigid, absolute coordinates of that flat grid. A face turned just 10 degrees to the left generates a completely different set of pixel coordinates than the exact same face looking straight ahead. Oh wow. To a flat Euclidean vector, those two images might as well be completely different objects.
Because the numbers in the matrix are completely different now. Exactly. The 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. So the AI is literally looking at that 2D shadow on the wall we talked about. And every time the sculpture rotates a single degree, the AI has to relearn what the shadow means from scratch. Right. It has no object permanence. That 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.
That is exactly what we have been doing. And that incredible inefficiency leads directly to the scaling dead ends the AI industry is hitting today. We can't just keep feeding models millions of variations of the same thing. It's just brute force. Yeah. And the most famous of these dead ends is the quadratic scaling problem in modern AI models, specifically in transformer architecture.
Adam ChapnickTransformers. Okay. They are the engine behind pretty much every major large language model right now from ChatGPT on down, right?
Amy QuintonYep. The dominant architecture.
Adam ChapnickBut how does this flat math cause a bottleneck in a language model? I mean, words aren't physical objects rotating in space.
Amy QuintonIt has to do with how Transformers pay attention to data, which is mathematically very similar. 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. Okay, so it's checking how the word apple relates to every other word in the sentence. Right. And because these tokens are represented as flat Euclidean vectors, the comparison is done via a dot product matrix. 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?
Amy QuintonExactly. 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. Quadratically? Yes. In computer science, we express this as O L squared, where L is the length of the sequence. Let me do the math on that to make it tangible for you. If your sequence, say a short paragraph, is 100 tokens long, the network has to make 10,000 mathematical comparisons, right? 100 squared. Correct. But if you increase that sequence to a short essay of 1,000 tokens, which is just 10 times larger...
Amy QuintonThe network now has to make one million comparisons. Yep, a million. It's a hundred times the computational cost for just a 10x increase in text. And today, people are trying to feed AI models entire PDF books, legal briefs, hundreds of thousands of tokens at once. Which means the computational cost skyrockets into the billions and trillions of operations in the blink of an eye. This OL squared scaling is a massive fundamental bottleneck. It requires entire data centers and massive power grids just to crunch the flat math.
Amy QuintonYou're just brute forcing the context. Exactly. And this leads directly into another massive roadblock for the industry, which is the memory wall. The memory wall. I've seen hardware engineers talking about this. It's not just about processing power, right? It's about the physical limitations of the chips themselves. Right. Training these massive large language models requires vast, unprecedented amounts of memory. And it's crucial to understand that it's not just memory to store the data itself or the text you are feeding it. What else is taking up space?
Amy QuintonA huge portion of that memory is required just to track the weight gradients during the optimization process. The gradients. That's essentially the AI's internal compass while it's learning, right? Like the mathematical path it's taking to figure out the right answer? That's a good way to put it, yeah. 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. Oh, wow. You literally run out of physical space on the graphics processing units, the GPUs.
Amy Quintonyou hit a wall where you cannot fit the memory required to track the learning process onto the hardware. 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. Exactly. And the inefficiency isn't just in the memory or the scaling. There is a third dead end that occurs inside the actual architecture of the network itself. Another one? Yeah. It's a structural failure known as the problem of neural diversity, or more commonly in the field, dying ReLUs.
Amy QuintonDying ReLUs. It sounds vaguely tragic. Let's break that down. What is a ReLU and why are they dying off inside these models? Well, ReLU stands for Rectified Linear Unit. It is arguably the most common activation function used in deep learning today. Okay. 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. So it's a gatekeeper. 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.
Amy QuintonSo if I have a network analyzing images... I might accidentally have 10 different neurons all trying to be the detective vertical line neuron because they didn't coordinate with each other? Exactly. Because they are operating in a flat space without strict geometric constraints forcing them apart, they crowd each other. They collapse into redundant representations. The space is too unconstrained. And what happens when they crowd each other? When that crowding happens, many of the other neurons in the network get pushed into a negative state.
Amy QuintonAnd when they hit that ReLU activation function we just talked about, they are turned to zero. Oh, I see. They die. And once they output zero, they stop contributing to the network entirely. They are mathematically dead. 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. That's crazy. You end up with massive neural networks where a staggering percentage of the neurons are effectively dead space, just wasting electricity.
Amy QuintonHold on, though. I have to play devil's advocate here for a second. You're painting a picture of an industry built on a foundation of sand. 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. Yes. If it is really this inefficient, how did ChatGPT, Claude and all these modern AI models get so undeniably good? We use them every day. They write code, they pass the bar exam.
Amy QuintonAre we just brute forcing our way through this catastrophic inefficiency by throwing unfathomable amounts of data and electricity at it? The short answer is yes. Seriously? Seriously. We have achieved miraculous things with AI over the last few years, but we have achieved them almost entirely through brute force. We have scaled up the data centers to sizes that require their own dedicated power plants. We have increased the power consumption to alarming levels, and we have fed the models essentially the entire digitized text of the internet.
Amy QuintonWe threw compute at the problem. But you cannot brute force your way past the laws of physics forever. The ceiling is approaching. We are hitting the ceiling of that approach right now. The quadratic scaling curve is simply too steep. 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.
Amy QuintonWe need better math. We need better math. Which brings us to the escape route, the journey out of flatland. Facing these dead ends, an international network of researchers realized they needed an entirely new mathematical foundation. Right. They needed a space that didn't care about rigid grid coordinates, a space that naturally understood structure and geometry. And they found it in differential geometry. I want to dive into the groundbreaking work of Truong Suong Khan and his paper, "Superposition
as GeometryGrossman Manifold Structure of Neural Representations." Kahn's work is truly fascinating because it doesn't just propose a clever new engineering trick. 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. Oh wow, so they naturally want to do this. Exactly. But to really grasp his breakthrough, we have to clearly define what the Grassman manifold actually is. Okay, let's do that without the dense academic jargon.
as GeometryIf I am listening to this right now and I dropped out of math after trigonometry, how do I visualize the Grassman manifold? The formal notation in the paper is gr parentheses q comma d. What does that mean? Let's go back to your analogy of the dark room and the 3D space. Okay. In traditional Euclidean space, a data point is a specific set of coordinates. It's a single fixed dot on a flat grid. But on the Grassman manifold, a data point is not a dot. A data point is an entire linear subspace.
as GeometryA linear subspace. Okay. So instead of a dot, it's like a line or a 2D plane extending endlessly through space? 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. Got it. 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.
as GeometryLet 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. You nailed it. That's exactly it. That's exactly it. Okay, I can visualize that. 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? It buys us an elegant solution to transformations. It solves the rotating face problem we talked about earlier.
as GeometryThis is what mathematicians call a quotient space formulation. Walk me through that. Let's say your data represents that 2D plane of glass. 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. Right. The flat grid looks at the new coordinates and thinks, this is a totally new set of data. I've never seen this before. It's the shadow changing shape again. Right. But on the Grasmanian manifold, the plane of glass itself hasn't actually moved.
as GeometryYou just spun the lines within the plane. The manifold mathematically recognizes that any orthogonal transformation, like a rotation, applied to the basis spans the exact same linear subspace. So the sheet of glass is occupying the exact same space in the room? Exactly. Therefore? The math becomes naturally inherently invariant to useless transformations like rotation, arbitrary scaling, or certain types of ambient noise. That is profound. It's like the math has built-in object permanence.
as GeometryIt really does. It doesn't have to learn through millions of examples that a rotated face is the same face. The fundamental geometry of the space guarantees it. The identity of the object is baked into the math itself. 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. The mystery of neural superposition. Yes. This is a concept that has been puzzling researchers for years. What exactly is neural superposition?
as GeometryFor years, researchers had noticed a bizarre, almost paradoxical phenomenon. Neural networks were somehow representing far more features than they had neurons to hold them. Let me make sure I'm tracking this because the arithmetic seems wrong. If a network has exactly 100 neurons, common sense would dictate it could only learn 100 distinct concepts, right? That was the assumption. Like one neuron lights up for cats, one neuron lights up for dogs, one for cars, a one-to-one mapping. Right. 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.
as GeometryWait, thousands? How? They were packing concepts into the network in a way that completely defied simple arithmetic. This was called neural superposition. 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. They just shrugged and said, high dimensional math is weird. Pretty much. But Khan didn't accept that. He said, this isn't a statistical accident. He proved it is fundamentally geometric, didn't he?
as GeometryYes. 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. He proved that the weight matrix is actually trying to form a single point on the Grossman manifold. So the network itself, the brain of the AI, is physically trying to contort itself into a shape in this curved space. Yes. Khan's absolute aha moment in the paper was defining the superposition loss. 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.
as GeometryKahn 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. Okay, so it's measuring the geometric distance between the data and the subspace. Exactly. I'm trying to picture how a network holds thousands of concepts in 100 neurons. Is it like origami? Instead of assigning one flat neuron to cats and one to dogs, the network is building a complex, multidimensional origami shape.
as GeometryAnd the specific angles between the folds are what represent the concepts. That is a brilliant analogy. It is folding a subspace to maximize the angles between different concepts. The cat concept is at a 45-degree angle to the dog concept. but a 90 degree angle to the car concept. Oh, that makes so much sense. And Kahn didn't just theorize this origami folding. He calculated the exact geometric limits of it. He proved there is a strict mathematical threshold for this folding to work safely before the paper tears, so to speak.
as GeometryThe magic threshold. Let's unpack the math there, because this explains a lot about how AI behaves. What did he find? He defined the threshold as k is less than n/2. K n/2. Right. 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. 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.
as GeometryOkay, let's use real numbers. So if you have 100 neurons, you can only process 49 active features simultaneously. Exactly. Exactly. But what if you try to process 50 or 51 active concepts at the exact same millisecond? Does the geometry collapse? Yes. If k goes above that threshold, the mathematical projection ceases to be injective. Injective. Meaning a perfect one-to-one mapping back to the original concepts. Right.
as GeometryRight. If it's no longer injective, two completely different concepts might cast the exact same projection onto the subspace. The origami folds overlap perfectly. 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. It literally cannot tell them apart. It's a fundamental mathematical limit on how densely you can pack that origami before the AI gets irrecoverably confused. 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.
as GeometryIt's a physical limitation of the geometry it's using. Did Khan test this in the real world? Did he look inside an actual working AI model to see this origami happening? He did. And the data he gathered is stunning. He ran an experiment tracking the trajectory of representations inside a model called GPT-2-Small. Okay, a well-known language model. Yeah.
as GeometryYeah. He looked at the model across its 12 internal layers, mapping its weight matrices as points on a Grassman manifold, specifically GR768,100. Which means 100-dimensional linear subspaces within a 768-dimensional ambient space. Exactly. 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. What did the trajectory look like? Did the AI just smoothly slide along the curve as it read, layer by layer? Not at all. It wasn't smooth. He found a massive, violent geometric jump right at the beginning of the network.
as GeometryReally? Where? 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. Let's clarify that for the listener. The embedding layer is essentially where the AI just looks up the dictionary definition of a word. But the context layer is where it starts looking at how the words relate to each other. Like realizing that the word bank means a riverbank instead of a financial bank, based on the rest of the sentence.
as GeometryPrecisely. 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. 38 degrees? To put that in perspective, every subsequent step in the later layers was a rotation of less than 7 degrees. That's a huge jump. But even more fascinating than that initial jump was what happened in the middle layers. Kahn observed a strange phenomenon he called middle layer spectral collapse.
as GeometrySpectral collapse? That sounds like a star dying. What is collapsing inside GPT-2? In layers 3 through 7 of the GPT-2 model, the network's representation subspace compresses massively. 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. One-to-six dimensions? Out of 768. Yes. It physically compresses all that complex linguistic information into a remarkably narrow geometric bottleneck.
as GeometryWhy 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? Because that compression is how it forces abstraction. 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. It's distilling the meaning. Yeah. It's distilling the meaning. And this relates directly back to our earlier discussion about dying relus and wasted neurons.
as GeometryRight, the dead space. 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. Wait, MIMO communications? Yes. Like the multiple antennas on the back of my home Wi-Fi router? Exactly. Like your Wi-Fi router. In wireless communications, you want to send multiple radio signals through the air at the same time without them interfering with each other. Right. You mathematically pack the signal beams to be as orthogonally distant from each other as possible.
as GeometryRight. 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. Oh, that's brilliant. You prevent the neurons from crowding each other, completely solving the dying ReLU problem. Every single neuron is forced to hold a unique, mathematically distinct piece of the origami structure. No more dead space. No more wasted compute. Okay, this is completely blowing my mind. 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.
as GeometryIt's a huge step forward. But I have to bring us back to reality here. Knowing the math is beautiful on a chalkboard is one thing. But computers, the actual silicon chips we use, they're built on binary, flat math, right? They do addition and multiplication on straight grids. Very true. If you try to run standard Euclidean learning algorithms on a curved Grassman surface... wouldn't the data just slide right off the manifold the moment the computer tries to update a weight? That is the exact engineering nightmare researchers faced.
as GeometryYou've hit the nail on the head. If you use standard stochastic gradient descent, which is the fundamental learning algorithm for almost all AI... the optimization steps are calculated as flat, straight lines. Right. 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. You break the geometry completely. You shatter it. The basis matrices lose their orthonormality, the carefully constructed subspaces collapse, and the network outputs total garbage. So how do you fix that? This brings us to the incredible engineering journey of researchers like Zee Wu Kuang at ETH Zurich and Ri Wang at Jiangnan University.
as GeometryThey had to figure out how to build physical network architectures that forced the AI to stay glued to the curve. So how do they do it? How do you leash an AI to a curved manifold when the computer chip only wants to draw straight lines? Let's look at Ziu Huang's work on the GRASnet, the Grassmannian neural network. Huang realized that every single layer of a neural network had to be fundamentally redesigned from the ground up. You couldn't just use standard fully connected layers or standard pooling layers that rely on flat math.
as GeometryHe had to invent entirely specialized layers. What does a specialized grassman layer actually do? Like, what is the first step in the grass net? The first step is the FR map, or full rank mapping layer. 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. But it does so using a strict full-rank transformation matrix. This ensures that the resulting output doesn't accidentally collapse into a degenerate flat state during the math.
as GeometryIt maintains the geometric integrity of the subspace. I follow that. You transform the data carefully to keep it full-rank. But eventually, if you are doing billions of calculations per second on a physical computer, you are going to introduce tiny computational rounding errors. Floating point math is never perfect. Wouldn't those microscopic errors accumulate and eventually push the data off the curve anyway? They absolutely will. The drift is inevitable. And that is exactly why Huang had to design the most critical layer of the GRNet architecture, the reorth or reorthogonalization layer.
as GeometryReorthogonalization. That sounds like a structural reset. What is the mechanism there? It relies on a classic linear algebra technique called QR decomposition. Think of it as a geometric anchor dropped at the end of every layer. Okay, an anchor. After the FRMAP layer applies its transformation, the data might have drifted slightly off the pure manifold due to those computational realities you mentioned.
The reorth layer takes that drifting matrix and violently decomposes it into two partsan orthogonal matrix called Q and an upper triangular matrix called R. I haven't done QR decomposition since college. Remind me, why splitting the matrix into Q and R solves the drift problem? Because the Q matrix is strictly mathematically orthonormal by definition. It perfectly represents a subspace. 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.
The reorth layer takes that drifting matrix and violently decomposes it into two partsSo you just throw the R away? Just throw it away. It forces the matrices to remain normalized and mathematically stable. If you don't perform this QR decomposition step, the geometry accumulates errors and collapses entirely within a few passes. 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. That is a very apt visualization.
The reorth layer takes that drifting matrix and violently decomposes it into two partsAnd 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. Oh, right. The OL squared problem. Yeah. Huang developed an architecture called GDLNet or the Grasmanian Self-Attention Network. This is what I've been waiting for. How do you fix that bottleneck, that explosion of compute when you feed an AI a long document using this curved math?
The reorth layer takes that drifting matrix and violently decomposes it into two partsRemember 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? Right. Wong completely changed the paradigms. Instead of matching individual flat tokens, GDLNet groups sequence features into subblocks along the channel dimension. 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. 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.
The reorth layer takes that drifting matrix and violently decomposes it into two partsExactly. 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. So what did he use? He had to use the projection metric. What is the difference between a standard dot product and a projection metric? A dot product measures the angle between two straight lines intersecting on a flat plane. The projection metric measures the geodesic distance between two entire subspaces.
The reorth layer takes that drifting matrix and violently decomposes it into two partsGeodesic distance. Meaning the shortest path along the actual physical curve of the manifold. 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. Exactly. It respects the curvature of the space. To aggregate all this contextual information, GDLNet uses something called the weighted freche mean. Weighted freche mean. It basically calculates the geometric center of mass for all these subspaces along the curvature of the manifold.
The reorth layer takes that drifting matrix and violently decomposes it into two partsAnd because it's operating on these rich, dense subspaces rather than sparse, individual flat tokens, the computational requirement completely changes. Wang's approach, these Grassman flows, turns the massive OL-squared quadratic scaling problem into a linear OL-scaling factor. Hold on. You can't just gloss over that. Going from OL-squared to OL is the holy grail of modern computer science. It's massive. That means a sequence of a thousand tokens no longer takes a million operations.
The reorth layer takes that drifting matrix and violently decomposes it into two partsIt only takes a factor of a thousand. It scales linearly. That's a massive industry-altering reduction in compute. It is. But wait, I have to push back here with some genuine skepticism. You're pitching this curved math as a savior for computational efficiency. But look at what you just described. QR decomposition, singular value decompositions, calculating weighted for Shea means on curved spaces. That is significantly heavier, more complex math than just multiplying flat numbers together in a dot product.
The reorth layer takes that drifting matrix and violently decomposes it into two partsThat's a very fair point. Aren't we just trading a memory bottleneck for a processing bottleneck? How does doing harder math save energy? That is the most important question to ask here, and it's the exact trade-off the engineers had to meticulously calculate. Your stepticism is completely justified. The math per step on a Grassman manifold is significantly more complex than a simple Euclidean matrix multiplication. Doing a QR decomposition takes more compute cycles on a processor than a basic dot product. So where does the efficiency actually come from?
The reorth layer takes that drifting matrix and violently decomposes it into two partsBecause the dimensionality of the data is drastically reduced. You are doing harder math, yes, but you are doing it on vastly fewer numbers. Let's look back at the memory wall we discussed for tracking gradients in large language models. In Euclidean space, you might be tracking a gradient matrix of 10,000 by 10,000 parameters. That's 100 million distinct numbers you have to store in RAM just for one layer. But on the Grassmannian, using optimization methods like subtract, which gradient subspace tracking employs, you only track the compact core subspace of those gradients.
The reorth layer takes that drifting matrix and violently decomposes it into two partsYou might reduce that massive 10,000 dimension matrix down to a rank 10 subspace. Oh, I see. You do complex, heavy math on a tiny, dense matrix, rather than doing simple math on a gargantuan, sparse matrix. 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. That's incredible. Furthermore, Wang proved the robustness of GDLNet not just in theoretical math, but on incredibly difficult real-world data.
The reorth layer takes that drifting matrix and violently decomposes it into two partsThey tested this architecture on the radar dataset for drone recognition and on EEG datasets for human brainwave signal classification. Drone radar and human brainwaves? Those are notoriously noisy, chaotic data sets. You have ambient radio noise, you have biological noise. Highly complex, noisy spatiotemporal data. 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.
The reorth layer takes that drifting matrix and violently decomposes it into two partsWhy did it filter it out? Because noise usually operates in a flat, random distribution. It didn't align with the manifold. Right. The AI didn't get confused by the static. It only saw the pure shape of the data. So we've established that the math works and the engineering required to keep the data on the curve works. But Kahn's paper reveals something else, moving away from just efficiency. Oh, yes. It reveals something almost magical about how these networks actually learn over time. And this brings us to a famous, almost spooky AI mystery called grokking.
The reorth layer takes that drifting matrix and violently decomposes it into two partsGrokking is one of the most fascinating phenomena in modern machine learning. It was first documented a few years ago by researchers at OpenAI who were training small networks on algorithmic tasks. And it completely upended how we thought models learned. For the listeners who aren't steeped in AI lore, explain what grokking actually is. What happens during training? 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.
The reorth layer takes that drifting matrix and violently decomposes it into two partsOkay, that makes sense. Normally a network learns gradually, and both metrics go up together. But in grokking, something strange happens. The network rapidly memorizes the training data, achieving perfect accuracy there, but its performance on the test data stays near zero. It hasn't generalized the underlying rule at all, it just rote memorized the flashcards. It's like a student who memorizes the answers to a specific math test, but doesn't actually know how to do addition. If you change the numbers even slightly, they fail.
The reorth layer takes that drifting matrix and violently decomposes it into two partsExactly. And historically, if a researcher saw that happening, they would stop the training run. They would assume the model has overfit the data and failed. Cut their losses. Right. But in this case, the researchers left the training running. They let it plateau at the state of memorization. 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%. Whoa. The network suddenly groks the underlying algorithm perfectly.
The reorth layer takes that drifting matrix and violently decomposes it into two partsIt just clicks. It has a literal aha moment after hours of seemingly doing nothing. But why? What is happening inside the black box during that massive plateau where it seems stuck? 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.
The reorth layer takes that drifting matrix and violently decomposes it into two partsA phase transition. Like liquid water abruptly turning into solid ice when it hits a specific temperature. Yes. A sudden structural shift in the fundamental geometry of the network. To measure this, Kahn utilized a metric called the Gini coefficient. Like the Gini coefficient? Isn't that an economics term? 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.
The reorth layer takes that drifting matrix and violently decomposes it into two partsIt is the exact same metric, but Khan brilliantly repurposed it to measure feature usage inequality among the neurons in the network. Feature usage inequality. Yeah. He looked at how equitably the network was using its geometric space. 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. The network is using its neurons uneconomically. Meaning what, exactly? It's putting a high, heavy computational load on a few structural configurations while leaving others idle.
The reorth layer takes that drifting matrix and violently decomposes it into two partsThe projection mapping is non-injective. It's a messy, overlapping origami. The wealth of information is hoarded inefficiently by a few neurons. So what happens physically to the geometry at the exact moment of grokking? During grokking, Kahn observed that the representation subspace literally moves across the Grassman manifold toward a highly specific, perfectly isotropic point. It moves toward a state mathematically called the balanced tight frame, or BTF. A balanced tight frame.
The reorth layer takes that drifting matrix and violently decomposes it into two partsWhat does that look like geometrically? It is a state of absolute perfect geometric equilibrium. 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. The moment the network hits this specific geometric state, the Gini coefficient plummets to near zero. 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.
The reorth layer takes that drifting matrix and violently decomposes it into two partsAnd grokking is the exact moment it aligns perfectly with the mattress. All the stress points vanish, and it suddenly understands the algorithm. That is a wonderful way to contextualize it. Finding the balanced tight frame is literally the network finding the optimal geometric balance of its computational resources. And Kahn proved this with rigorous experimental detail. Oh, he tested it. He did. They tracked models performing Mod 97 modular addition tasks. They carefully watched the models employing weight decay.
The reorth layer takes that drifting matrix and violently decomposes it into two partsThe models that successfully grokked the math hit a genie coefficient of exactly.005, near perfect geometric equality, Wow. But the models that failed to grok, the ones that just stayed stuck in memorization, they stalled. Their Gini coefficient froze at 0.020. 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.
The reorth layer takes that drifting matrix and violently decomposes it into two partsThe aha moment never happened. The network couldn't find the perfect sleeping position, so it never woke up with the answer. 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. Generalization is a geometric destination. Okay, this is all incredibly profound for understanding how AI thinks and learns internally. 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.
The reorth layer takes that drifting matrix and violently decomposes it into two partsBut I want to pivot here. Sure, where to? I want to talk about how this helps us. How does this geometry help humans interact with AI? 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. It really does. And this is where the theoretical math becomes highly practical for end users, especially in creative and structural fields. Historically, high-dimensional latent spaces in neural networks are treated as an impenetrable black box. A human operator cannot look at a 10,000-dimensional vector and make any sense of it whatsoever.
The reorth layer takes that drifting matrix and violently decomposes it into two partsYou can't just reach into the code and tweak a number to make an AI-generated face smile more. Because everything is entangled in that flat Euclidean space. 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. And that lack of control is incredibly frustrating for users. But the Graspin manifold has a unique, beautiful property that solves this.
The reorth layer takes that drifting matrix and violently decomposes it into two partsDespite 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. The Romanian logarithmic map. Let me try an analogy to see if I'm tracking this. 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? That's, yeah, that's it. 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.
The reorth layer takes that drifting matrix and violently decomposes it into two partsThat is an excellent analogy. 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.
The reorth layer takes that drifting matrix and violently decomposes it into two partsWow. And why is creating that flat tangent space so useful for us humans trying to control the AI? Because humans naturally understand and operate in linear math. In a flat tangent space, you can manipulate high-dimensional features using familiar linear combinations. You can isolate specific directions of change without affecting the others. This tangent space linearization acts as the ultimate user interface, essentially building a precise steering wheel for the AI. Building the steering wheel. I love this concept. Let's talk about how this works mechanically. How do we turn complex tangent math into something a human operator can actually use, like sliders on a computer screen? It comes down to analyzing the angles between the subspaces. The differences between any two subspaces on the Grossman Manifold are governed by what are called canonical angles or principal angles.
The reorth layer takes that drifting matrix and violently decomposes it into two partsSo these canonical angles dictate the geometric difference between, say, a face looking forward and a face looking left. Exactly. And when you map these canonical angles into the linearized tangent space interface, they mathematically decouple from one another. In a user interface, these canonical angles quite literally become decoupled slider controls for human operators. You mean literal UI sliders, like the volume sliders on a soundboard or the contrast sliders in Photoshop? Literal sliders on a screen.
Let's apply this to a specific real-world use case explored in these architecturesvideo, face verification, and editing. In a Grasmanian interface, the sliders map directly to physical traits because of how the variance is geometrically structured on the manifold. Okay, give me an example. Researchers have found a highly consistent mapping. The low-order canonical angles, the ones capturing the most massive amounts of variance, map to primary head rotations. Pitch, yaw, and roll. So slider number one mathematically turns the head left and right. The mid-order canonical angles, which capture slightly less variance, map to illumination shifts.
Let's apply this to a specific real-world use case explored in these architecturesSlider number two changes the lighting from bright overhead sun to dramatic side lighting. And the high order canonical angles capture the tiny variances. They control fine-grained details like specific facial expressions. So slider number three makes the face smile or frown without turning the head or changing the lighting. And because these are canonical angles mapped from a Grassman manifold, they are geometrically orthogonal to each other. They don't interfere. They are completely mathematically decoupled.
Let's apply this to a specific real-world use case explored in these architecturesThink about how revolutionary that is for AI interfaces. 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. Right. It's a lot of trial and error. 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.
Let's apply this to a specific real-world use case explored in these architecturesIt mathematically guarantees it. And the way it enforces that guarantee is through the inverse of the map we just discussed, geodesic execution. Geodesic execution. Yes. Yes. 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. 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.
Let's apply this to a specific real-world use case explored in these architecturesSo 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. And this guarantee is even more critical when applied to 3D human body motion tracking. 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. Yeah. Because Euclidean space is just a grid of numbers. It has no inherent physiological limits. It doesn't know knees only bend one way.
Let's apply this to a specific real-world use case explored in these architecturesIt's just moving coordinates on a graph. 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. 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. So the map literally prevents the AI from generating impossible body mechanics. 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.
Let's apply this to a specific real-world use case explored in these architecturesIt acts as an unbreakable geometric constraint. You no longer have to blindly trust the black box to output physics-compliant reality. The physics of the human body are baked into the geometry of the space itself. We have covered a massive amount of ground today, moving from... the most abstract theories of differential geometry to the practical realities of making AI run efficiently and intuitively. Let's synthesize this journey. Sounds good. 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.
Let's apply this to a specific real-world use case explored in these architecturesA world trapped entirely in flatland, looking at shadows. And we discovered the escape route. 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. And we explored the incredible engineering required to survive on that curve. 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.
Let's apply this to a specific real-world use case explored in these architecturesWe 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. It is a profound, necessary shift for the industry. And it's vital for anyone listening to remember why this matters practically.
Let's apply this to a specific real-world use case explored in these architecturesThis isn't just abstract blackboard math meant for academic papers. This is the key to making AI models sustainable for the future. It is the key to models running on significantly less electricity. It is the key to models hallucinating less. And crucially, it turns AI from an uncontrollable, unpredictable black box into a precise geometric tool that humans can physically, intuitively steer. It changes AI from a magic trick into a geometric instrument. Which brings us to our final, provocative thought for today's Deep Dive.
Let's apply this to a specific real-world use case explored in these architecturesA thought inspired by reading through all these incredible source texts. Let's hear it. 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. Right. They only achieve true understanding after we force them to process information as geometric subspaces on a curved manifold. That is the core takeaway of this entire paradigm shift, yes.
Let's apply this to a specific real-world use case explored in these architecturesSo, 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? Oh, wow. 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?
Let's apply this to a specific real-world use case explored in these architecturesAre we finally teaching computers to see the shape of reality the exact same way our own brains do? That is an incredibly deep philosophical question to leave on. 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. something to mull over the next time you recognize a friend's face turning in the sunlight. Thanks for joining us on this journey out of Flatland. We'll see you on the next Deep Dive.
Send us Fan Mail Two 15-year-olds. Same classroom. Same teacher. One scores 34 points lower, which is about a year of school. 😮 It isn’t talent. It’s dread. In this episode we dig into the OECD’s global PISA data and...
Send us Fan Mail 📖 Read Why “impossible, not tedious” is the new security standard for autonomous AI AI agents can read your email, query your databases, and move your money. So how do you give them real power without...
Send us Fan Mail BP’s CEO said, “I would like my life back,” and by the textbooks, he was following the rules. This episode unpacks a 2026 study from Cogent Business and Management by Del Pozo and colleagues, based on...
Send us Fan Mail 📖 Read Where does consciousness actually live? A new brainstem theory says it may not be where you think. Why the “me inside” may live in your brainstem and what happens when the cortex falls silent...
Send us Fan Mail The English you’re hearing right now didn’t originate in England. 🧬 A 2026 Nature study of about 4,700 ancient genomes traces Germanic languages to a hidden population that crossed the Baltic Sea 4,000...