Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Mechanical Dreams

Mechanical Dreams artwork

Teon

Feb 3, 202619 minAudio
ShareXLinkedInFacebookWhatsAppEmail

In this episode: • Introduction: The Optimizer Zoo: Professor Norris and Linda introduce the topic of optimization in LLMs, joking about the explosion of new optimizers before introducing the paper of the week: TEON. • The Muon Foundation: Linda recaps the Muon optimizer, explaining how it uses orthogonalization to prevent gradient rank collapse, while Norris questions its limitations regarding layer independence. • Enter the Tensor: How TEON Works: Linda explains the core innovation of TEON: stacking gradients from multiple layers into a tensor and using matricization to orthogonalize them jointly. • The Theory: Singular Vector Alignment: The hosts discuss the theoretical justification, focusing on Proposition 4.6 and why gradients in Transformers (specifically Q, K, and V) exhibit strong singular vector alignment. • Results and The Polar Express: A look at the experimental results on GPT and LLaMA models, confirming TEON outperforms Muon even when using approximate SVD methods like PolarExpress. • Conclusion: Professor Norris concedes that TEON offers a principled improvement over Muon, and the duo signs off.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show.

## Introduction: The Optimizer Zoo

Norris: Welcome back to Mechanical Dreams, the podcast where we dream of electric sheep and, occasionally, wake up in a cold sweat thinking about vanishing gradients. I am your host, Professor Norris. Linda: And I’m Linda! Professor, you look... contemplative this morning. Is it the coffee again? Norris: It is always the coffee, Linda. But no, today I was staring at the steam rising from my mug, observing the chaotic dynamics, and it reminded me of the current state of neural network optimization. It feels like every time I blink, there is a new optimizer on arXiv. Linda: Oh, you mean the 'Optimizer Zoo'? It has been pretty wild lately. We've moved way past just Adam and SGD. Norris: Exactly! It’s a veritable menagerie. We have Adam, obviously. Then we had AdamW, his slightly more disciplined cousin. Then came Lion—literally named after the animal, I assume? Then Sophia... at this point, I’m expecting an optimizer named 'Steve' or 'Badger' to drop next week. Do we really need all of these? Linda: We definitely do! Training these massive foundation models is incredibly expensive, Professor. If an optimizer can shave even ten percent off the training time, that saves millions of dollars in compute. It’s not just about naming rights; it’s about efficiency at scale. Norris: I suppose you are right. Back in my day, we had Stochastic Gradient Descent, and we liked it! We walked uphill both ways in the loss landscape. But I concede, with billion-parameter models, 'slow and steady' just bankrupts the university. Linda: Exactly. And that brings us to today's paper, which is tackling exactly that problem—efficiency in pre-training large language models. But it’s not named after a zoo animal this time. Norris: Thank heavens. What is it called? Linda: It’s called TEON. T-E-O-N. Norris: TEON. It sounds like a high-end toaster, or perhaps a minor deity from a sci-fi novel. What does the acronym stand for? Linda: It stands for 'Tensorized Orthonormalization.' The full title of the paper is 'TEON: Tensorized Orthonormalization Beyond Layer-Wise MUON for Large Language Model Pre-Training.' It’s by Ruijie Zhang and colleagues from UC Santa Barbara and Michigan State. Norris: 'Beyond Layer-Wise MUON'... interesting. So it frames itself explicitly as an evolution of the Muon optimizer? We talked briefly about Muon a few weeks ago—that was the one using Newton-Schulz iterations, correct? Linda: That's the one! Muon has been getting a lot of attention because it orthogonizes the gradient updates, which helps keep the training stable and fast. But TEON claims Muon has a blind spot. Norris: A blind spot? Well, don't leave me hanging. If we are going to move from a Zoo to sub-atomic particles, I need to know why.

## The Muon Foundation

Linda: To understand the blind spot, we first need to really nail down what Muon is doing right. It was a huge leap forward because it stopped treating parameters as just a bag of independent numbers. Most optimizers, like Adam, essentially flatten the weights into a long vector and update them element-by-element. Norris: Right, ignoring the fact that these numbers actually form a matrix—a grid with structure. It’s like trying to understand a painting by looking at a list of all the pixel colors sorted alphabetically. Linda: Exactly! Muon respects the matrix structure. Specifically, it performs an orthogonalization of the gradient matrix. The core issue it solves is something called 'rank collapse.' Norris: Rank collapse. Sounds like a demotion in the military. I assume in linear algebra terms, this means the gradients are all pointing in roughly the same few directions? Linda: Spot on. In high-dimensional space, the gradient signal often gets trapped in a tiny subspace. Imagine you are in a massive ballroom, but you are only taking steps forward and backward along a single tightrope. You aren't exploring the width of the room at all. That’s rank collapse. The optimizer isn't utilizing the full capacity of the weight matrix. Norris: I see. So the model has millions of parameters, but it’s only really learning along a few dominant axes. It is squandering its potential. Linda: Precisely. So, Muon forces the update to be orthogonal. It effectively says, 'I don't care if the gradient in this weird side-direction is small; we are going to normalize it and take a step in that direction anyway.' It forces the model to learn across all dimensions equally. It creates a full-rank update. Norris: That sounds... aggressive. But I suppose sometimes you need to force the issue. Now, you mentioned Newton-Schulz iterations earlier. That’s how they do this without melting the GPUs, right? Linda: Right. Calculating a true Singular Value Decomposition, or SVD, to get orthogonal vectors is extremely computationally expensive—O(N cubed). Newton-Schulz is an iterative method that approximates this much faster, using just matrix multiplications. It’s like a quick-and-dirty scrub that gets you 99% of the way to orthogonality. Norris: Okay, so Muon is efficient, and it forces the model to stop slacking off in low-rank subspaces. It sounds perfect. It’s scrubbing the gradients clean, layer by layer. Layer 1 gets scrubbed. Layer 2 gets scrubbed. Where is the flaw? Linda: You just said it yourself, Professor. 'Layer 1 gets scrubbed. Layer 2 gets scrubbed.' It does this sequentially, but independently. It treats Layer 5 and Layer 6 as if they exist in completely different universes. Norris: Ah. I see. The independence assumption. But in a deep neural network, especially a Transformer, the signal flows directly from one layer to the next. They are intimately connected. Linda: Exactly! By orthogonalizing them in isolation, Muon ignores the correlations *between* layers. If the gradients of Layer 5 and Layer 6 are trying to do something coordinated, Muon might break that coordination by forcing them into separate orthogonal boxes. Norris: So it is like a synchronized swimming team where every swimmer is wearing a blindfold and noise-canceling headphones. They might be swimming perfectly individually, with perfect form, but they aren't swimming *together*. Linda: That is... a surprisingly accurate visual! That lack of coordination is the blind spot. And that is exactly where TEON steps in to bridge the gap.

## Enter the Tensor: How TEON Works

Norris: So, we have our blindfolded synchronized swimmers, thrashing about in their separate layer-pools. How does TEON get them to coordinate? Do we simply shout louder? Linda: No shouting required, Professor. We just put them in the same pool. Or, mathematically speaking, we put them into the same Tensor. This is where the 'T' in TEON comes from. Norris: Right, 'Tensorized'. But let's be precise. A gradient for a weight matrix is... well, a matrix. If I have gradients for three different layers, I just have three matrices. Why call it a tensor? Linda: Think of it like a stack of pancakes. Each pancake is a matrix—a layer's gradient. If you stack $K$ of them on top of each other, you now have a 3D object. That 3D object is a 3rd-order tensor. Instead of updating each pancake individually, TEON picks up the whole stack and treats it as a single mathematical object. Norris: Okay, I'm visualizing the pancake stack. But the orthogonalization algorithm—the 'scrubbing' we talked about—is designed for 2D matrices. You can't just feed a 3D block into a matrix algorithm. Linda: Exactly, and that's the clever trick. It's called 'matricization,' or unfolding. Imagine taking your stack of pancakes and, instead of leaving them piled up, you lay them out side-by-side on a very long table to form one giant, wide rectangle. Norris: So, concatenation? If I have two $M \times N$ gradient matrices, I just paste them next to each other to get an $M \times 2N$ matrix? Linda: Precisely. In tensor terminology, that would be 'Mode-1 Matricization.' You preserve the first dimension—the rows—and you flatten everything else into the second dimension. So you get this wide matrix that contains the information from all the stacked layers. Norris: I see. And then you apply the orthogonalization—the Newton-Schulz iteration—to this giant, wide matrix? Linda: Yes! And this is the key: when you orthogonalize this joint matrix, you are enforcing constraints across the layers. You aren't just saying 'Layer A's rows must be orthogonal' and 'Layer B's rows must be orthogonal.' You are saying 'The combined rows of Layer A and B must be orthogonal in this shared space.' Norris: That is fascinating. It effectively couples the optimization steps. If Layer 5 wants to push a parameter in one direction, and Layer 6 wants to push a correlated parameter in the same direction, the joint orthogonalization will see that redundancy and adjust the update accordingly. It stops them from stepping on each other's toes. Linda: Exactly! It captures the cross-layer correlations that Muon completely ignores. And after the scrubbing is done, you just 'fold' the long matrix back into the stack of pancakes and apply the updates to the respective layers. Norris: Now, wait a minute. We know that these operations are expensive. If I make the matrix twice as wide, does the cost not explode? SVD is usually cubic complexity. Linda: That’s the beauty of it. The Newton-Schulz iteration relies mostly on matrix multiplication. While the matrix is wider, you are processing $K$ layers at once. The paper shows that the per-step computational cost is almost identical to running Muon on each layer individually. Norris: So we get better coordination for roughly the same price. That sounds like a free lunch, Linda. And as an economist at heart, I am suspicious of free lunches. Linda: It’s not entirely free—you have to choose *which* layers to stack. You can't just stack random layers and expect magic. The layers need to have some structural relationship for this joint orthogonalization to actually help. Norris: Ah, there it is. The catch. We need a heuristic for grouping. I assume we aren't mixing the embedding layer with the final output layer? Linda: Definitely not. And that actually leads us to the theoretical part of the paper. They have a very specific mathematical justification for why and how to stack them, based on something called 'singular vector alignment.'

## The Theory: Singular Vector Alignment

Norris: Singular vector alignment. I must say, Linda, that sounds less like a mathematical theorem and more like a chiropractor appointment for matrices. 'Doctor, my singular vectors are out of alignment, I can't rotate my subspace.' Linda: It does sound a bit medical! But it’s actually the core theoretical insight of the paper. They derive something called Proposition 4.6. It basically asks: when does stacking matrices actually help? Norris: And I assume the answer isn't 'always.' If I stack a matrix representing my grocery list with a matrix representing the gradients of a language model, I doubt I will achieve AGI or remember the milk. Linda: Exactly. The math shows that TEON provides a convergence boost—specifically up to a factor of the square root of $K$—only when the stacked gradients share the same principal directions. Norris: Principal directions... you mean the top singular vectors? The axes along which the gradients have the most energy? Linda: Yes. If Layer A is trying to update its weights primarily along direction X, and Layer B is *also* trying to update primarily along direction X, then they are 'aligned.' TEON can exploit this shared structure to take a much more efficient step for both of them simultaneously. Norris: That makes intuitive sense. You are essentially denoising the signal by looking at the consensus across layers. So, where in a Transformer do we find this magical consensus? I always assumed neural network gradients were chaotic and distinct. Linda: That’s what I thought too! But it turns out the Attention mechanism is very structured. The authors looked at the Query, Key, and Value matrices—the Q, K, and V projections—and found their top singular vectors are almost identical. Norris: Ah, the Holy Trinity of Attention. I suppose that stands to reason. In a given layer, Q, K, and V are all operating on the exact same input—the hidden state from the previous block. They are looking at the same data, just projecting it differently. Linda: Precisely! Because they share the same input, their *right* singular vectors—which correspond to the input dimension—are highly aligned. That’s why the paper recommends 'Mode-1' matricization for these layers. It groups them by their shared input structure. Norris: Wait, Mode-1? That implies there is a Mode-2. Linda: There is. Mode-2 would group them by the *output* dimension—the left singular vectors. But the authors found those don't align nearly as well. The outputs of Q, K, and V go to very different places functionally. But the inputs are shared. Norris: Fascinating. So the strategy is to stack Q, K, and V together because they are reading from the same page. What about the Feed-Forward Networks? The MLPs? That is usually two-thirds of the parameter count. Do we stack those? Linda: They tried, but the results were disappointing. The theory explains why: MLP layers are much more heterogeneous. Recent research suggests MLPs act like key-value memories storing specific facts. Because they are storing different facts, their gradients point in wildly different directions. Norris: So no alignment, no gain. If you stack them, you are just adding noise to the process. Linda: Exactly. So the practical 'recipe' for TEON is: stack the Q, K, and V gradients into a tensor and orthogonalize them jointly. But leave the MLPs to be handled separately or with standard methods. It’s a targeted surgical strike, not a carpet bombing. Norris: I like that. It leverages the specific architecture of the Transformer rather than treating it as a black box. But theory is one thing, Linda. Did this 'surgical strike' actually win the war? What did the loss curves look like?

## Results and The Polar Express

Linda: Well, Professor, looking at the curves, it wasn't just a win; it was a rout. They tested this on both GPT-style models and LLaMA-style architectures, ranging from small 60 million parameter models up to about a billion parameters. They pre-trained them on 10 billion tokens from the FineWeb dataset. Norris: A billion parameters is a respectable size for an academic lab. And 10 billion tokens is enough to see if a model is actually learning or just hallucinating patterns in noise. What were the numbers? Linda: The difference was stark. For a GPT-Small model, using the standard Muon optimizer gave a validation perplexity of around 30.89. With TEON, that dropped to 27.45. Norris: Wait, did you say a drop from 30 to 27? In language modeling, people usually pop champagne for a 0.5 improvement. A 3-point drop on the same data budget is... frankly, suspicious. Are you sure they didn't just train it for longer? Linda: Same number of tokens, same compute budget. That’s the power of the alignment we discussed. Because the gradients in the Attention layers are so correlated, TEON takes much cleaner steps. It converges significantly faster. Norris: Impressive. But I have to ask about the practical side again. We talked about 'scrubbing' the matrices. Doing that exactly via SVD is slow. In the real world, we need speed. Linda: That’s where the second part of their results comes in. They tested TEON with different approximation methods. The best performance actually came from combining TEON with something called 'PolarExpress'. Norris: PolarExpress? Please tell me we aren't optimizing neural networks using a magical train to the North Pole. Linda: Not quite! PolarExpress is a cutting-edge algorithm for quickly finding orthogonal matrices. Instead of doing a heavy Singular Value Decomposition, it uses iterative sign functions to approximate the orthogonal factors. It’s incredibly fast. Norris: Ah, the matrix sign function. I recall that. It pushes the eigenvalues to plus or minus one, effectively flattening the spectrum without rotating the eigenvectors. Clever. Linda: Exactly. And here is the kicker: TEON combined with PolarExpress actually outperformed TEON with exact SVD in some of their ablations. The approximation noise seems to act almost like a regularizer, helping the model generalize better. Norris: So, let me get this straight. We take gradients from multiple layers, stack them into a tensor, flatten them into a wide matrix, and then run a fast, approximate iterative algorithm named after a Christmas movie to orthogonalize them. And this beats the state-of-the-art by a massive margin? Linda: That is the summary! It’s robust, it’s fast, and it works across different model scales. They showed consistent gains on LLaMA architectures too, not just GPT. Norris: Well, when you put it that way, it’s hard to argue with. It seems the 'Tensor' era of optimization has officially arrived at the station.

## Conclusion

Norris: I must admit, Linda, I started this episode ready to dismiss TEON as just another acronym in the zoo. But you have convinced me. It’s not just adding complexity; it’s actually respecting the geometry of the model. Linda: I knew you’d come around! It’s all about realizing that layers don't live in isolation. By moving from matrix optimization to tensor optimization, we’re finally letting the architecture talk to itself during training. Norris: Indeed. We are giving the synchronized swimmers a beat they can all hear. It’s a principled step forward. Though I still think 'PolarExpress' sounds like a train ride I’m too old for. Linda: Maybe next week we’ll cover an optimizer named 'The Recliner' just for you, Professor. Norris: Now that is an optimization landscape I would gladly get stuck in a local minimum of. Until then, thank you for listening. Linda: See you next time on Mechanical Dreams!

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. You don’t need long context

    Nov 12, 202620 minAudio

    In this episode: • The Context Window Arms Race: Professor Norris and Linda introduce the episode and discuss a new NVIDIA paper challenging the necessity of massive context windows, highlighting the hidden...

    Credit the people on this episode

  2. Scaling Hierarchical Networks

    Nov 11, 202621 minAudio

    In this episode: • Intro and The Bitter Lesson: Introducing the podcast and the Cartesia paper on Hierarchical Networks. • Scaling Ladders and The BPE Comparison: Discussing the compute efficiency gains of 1-stage...

    Credit the people on this episode

  3. Perturbing Inputs Improves Pretraining Distillation

    Nov 10, 202621 minAudio

    In this episode: • Introduction and Standard Distillation: Professor Norris and Linda introduce the podcast and set the baseline for standard knowledge distillation in language models. • The Core Idea of Perturbed...

    Credit the people on this episode

  4. Why is AI-generated language so hard to understand

    Nov 9, 202620 minAudio

    In this episode: • Introduction: The Reader-Patience Budget: Professor Norris and Linda introduce the episode's topic, discussing the growing sentiment that AI-generated text is becoming overly convoluted. • The...

    Credit the people on this episode

  5. Muse Glimmer 30B

    Nov 8, 202622 minAudio

    In this episode: • Introduction & Paper Overview: Professor Norris and Linda introduce the episode and the Muse Glimmer 30B paper, outlining its goal of bringing agentic capabilities to consumer hardware. • Architecture...

    Credit the people on this episode