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

NOBLE- Accelerating Transformers with Nonlinear Low-Rank Branches

Mar 12, 202616 minAudio
ShareXLinkedInFacebookWhatsAppEmail

In this episode: • A Noble Introduction: Professor Norris makes a pun about aristocracy while Linda introduces the paper 'NOBLE' from Canva Research, setting the stage for a discussion on accelerating Transformer pretraining. • The Linear Collapse Problem: Linda explains why standard LoRA doesn't work for pretraining from scratch, and Norris helps clarify the difference between parameter-efficient fine-tuning and architectural augmentation. • Anatomy of a Nonlinear Branch: A deep dive into the NOBLE architecture and the 'CosNet' activation function, discussing why a cosine sandwich is better than ReLU for low-rank bottlenecks. • Crunching the Numbers: The hosts discuss the experimental results, highlighting the 1.47x step speedup and debating whether the parameter overhead is worth the wall-clock time savings. • The Mixup Mystery: Linda reveals a fascinating caveat regarding Mixup/CutMix augmentation, leading to a theoretical realization about NOBLE's role in learning high-frequency signals versus smooth global trends. • Inference and Impact: The duo wraps up by discussing the trade-offs, specifically the permanent inference cost, and gives their final verdict on whether NOBLE is the future of pretraining.

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

Transcript

From the show.

## A Noble Introduction

Norris: Welcome back to another episode of Mechanical Dreams, the podcast where we sift through the noise of signal processing and try to find the ghost in the machine. I’m Professor Norris. Linda: And I’m Linda! Professor, I hope you polished your crown and scepter for today’s episode. Norris: My... crown? Linda, have we finally pivoted to a history podcast? I do have some strong opinions on the Industrial Revolution, but I assume that’s not why we’re here. Linda: Not quite! We are talking about royalty, in a sense. Today’s paper is titled "NOBLE: Accelerating Transformers with Nonlinear Low-Rank Branches." Norris: Ah, I see. Noble. Very clever. I assume it’s one of those tortured acronyms you love so much? Linda: Guilty as charged. It stands for Nonlinear lOw-rank Branch for Linear Enhancement. It’s a preprint from Ethan Smith at Canva Research. Norris: Canva? The graphic design platform? I didn't realize they were publishing deep learning architecture papers. Linda: They are, and this one is a heavy hitter. It tackles something we usually think is set in stone: the architecture of the Transformer itself. Specifically, making pretraining much, much faster. Norris: Now, hold on. Usually, when someone says "faster pretraining," they mean they bought more H100 GPUs, or they found a way to skip the hard examples. You’re telling me this is an architectural change? Linda: It is. And the results are wild, Professor. They’re claiming up to a 1.47x speedup in training steps to reach the same loss. That’s like getting a third of your compute budget back for free. Norris: Nothing in life is free, Linda. Especially not in optimization landscapes. There’s always a trade-off. Let me guess—it involves low-rank adaptation? That 'Low-Rank' in the title rings a bell. Linda: It does, but it’s not what you think. It looks like LoRA—that famous fine-tuning method—but it’s for pretraining from scratch. And that distinction changes everything.

## The Linear Collapse Problem

Norris: Okay, Linda, help an old professor out. We all know LoRA. It’s the bread and butter of the GPU-poor. You freeze the big model, you learn two tiny low-rank matrices—let's call them A and B—and you multiply them to get your update. Why can’t we just do that from step zero? Why do we need a new acronym? Linda: That is exactly what the author, Ethan Smith, addresses first. Imagine you take a standard linear layer in a Transformer, represented by a matrix W. Now, you add a low-rank branch, B times A, in parallel. Norris: Right. So the output is x times W plus x times B times A. Linda: Exactly. But mathematically, W plus B-A is just... another matrix. Let's call it W-prime. Because both paths are purely linear, they collapse into a single linear transformation. Norris: Ah, of course. Linearity is additive. If I have a straight line and I add another straight line to it, I just get a steeper—or shallower—straight line. I haven't actually changed the shape of the function. Linda: Precisely! If you use standard LoRA for pretraining, you aren't adding any architectural capacity. You're basically just initializing your linear layer in a weird, slightly more expensive way. The network can't learn anything new that the main W couldn't already learn on its own. Norris: So it's a structural redundancy. You're paying for extra compute but getting zero extra expressivity. That sounds like half the grant proposals I review. Linda: Ha! Well, NOBLE fixes this by breaking the linearity. The 'N' in NOBLE stands for Nonlinear. They insert an activation function inside that low-rank branch. Norris: I see. So now we have W plus... some nonlinearity of B times A. That doesn't collapse anymore. Linda: Exactly. By adding a nonlinearity, the branch becomes a permanent, separate computational pathway. It can capture features that a simple linear projection fundamentally cannot. Norris: This is an important distinction. Usually, when we talk about LoRA, we talk about PEFT—Parameter-Efficient Fine-Tuning. The goal there is to avoid retraining the main weights. Linda: Right, but NOBLE isn't PEFT. It's an architectural augmentation. The main weights aren't frozen; everything is trained jointly from scratch. The low-rank branch is there to help the main layer learn faster, not to replace it. Norris: So instead of an adapter we bolt on later, it’s an extra limb we grow in the womb. But if we’re adding nonlinearities, aren't we just making a tiny MLP inside every layer? Linda: Sort of! But the choice of nonlinearity matters a lot. You can't just slap a ReLU in there and call it a day. The paper found something much more interesting...

## Anatomy of a Nonlinear Branch

Linda: So, we need a nonlinearity to stop the branch from collapsing into the main weight matrix. But you can't just slap a ReLU in there. The authors actually tested ReLU, GELU, Tanh—the usual suspects—but the winner was something called CosNet. Norris: CosNet? Sounds like a 1980s internet provider. I assume it involves... cosine? Linda: Spot on. It’s actually a 'cosine sandwich.' Imagine this: you project your input down to a low rank, say 64 or 128 dimensions. Then you apply a learnable cosine function. Then, you mix those features with a small square matrix. Then, *another* cosine. And finally, you project back up. Norris: Wait, wait. Two cosines? With a matrix in the middle? That sounds incredibly specific. Why on earth would we use a periodic function like cosine inside a deep network? We usually avoid them because they wiggle too much. Linda: The wiggle is the point! Think about the constraints here. We are in a bottleneck. We’ve crunched a 1024-dimensional vector down to, say, 64 dimensions. Every single dimension is precious real estate. Norris: Right. Information density is key. Linda: Exactly. Now, think about what ReLU does. It takes all the negative values and sets them to zero. It 'turns off' half the neurons, effectively. In a massive MLP layer with thousands of neurons, that sparsity is fine. But in a tiny 64-dimension bottleneck? You’re throwing away information you can’t afford to lose. Norris: I see. It’s like renting a studio apartment and walling off the kitchen. You don't have the square footage to waste. Linda: Great analogy! So, ReLU is out because it gates information too aggressively. Then they looked at Tanh. Tanh is symmetric, so it doesn't kill half the signal, but it saturates. If your values get too high or too low, the gradient vanishes. It goes flat. Norris: And dead gradients are the enemy of fast training. So Cosine... let me guess. It’s bounded between minus one and one, so it doesn't explode. And it oscillates, so it never really flattens out forever. It’s non-saturating. Linda: Bingo. The derivative of cosine is negative sine. It just keeps waving. But there’s a deeper reason, Professor. It’s about 'spectral bias.' The paper suggests that the main linear layer—the big matrix—is really good at learning smooth, low-frequency patterns. The general trends. Norris: Ah, and the cosine branch acts like a Fourier term! It’s there to catch the high-frequency noise, the sharp edges, the fine details that the linear layer smoothes over. Linda: Exactly! And CosNet makes this even better because the frequency and phase are *learnable parameters*. The network can tune how 'wiggly' the activation is for each dimension. Norris: So we have the main pathway doing the heavy lifting of the 'shape' of the data, and this little low-rank cosine sidecar scribbling in all the fine texture. It’s a division of labor. Linda: Yes! And that division of labor is what lets them converge so much faster. The main weights don't have to struggle to fit the sharp bits. Norris: It’s elegant, I’ll give them that. But elegance doesn't always pay the rent. Did this actually work, or is it just pretty math?

## Crunching the Numbers

Linda: It didn't just work, Professor; it flew. Let's look at the numbers. On a 1.5 billion parameter LLM trained on OpenWebText, NOBLE reached the baseline's final loss value up to 1.47 times faster in terms of training steps. Norris: 1.47x? That’s nearly a 50% reduction in training steps. That’s massive. But hold on, Linda. I know how these things work. You add a branch, you add parameters. You add parameters, the model gets heavier. The steps might be fewer, but are they slower? Linda: You caught that. Yes, because we are adding these low-rank matrices and the cosine sandwich, the step time—the actual time it takes to do one forward and backward pass—goes up by about 7% to 21%. Norris: Aha! The bill comes due. So if I save 30% on steps but each step takes 20% longer... let me do some mental math... I’m still ahead, aren't I? Linda: You are. The net wall-clock speedup—the actual time you wait for the model to finish—is between 1.17x and 1.22x. So even with the overhead, you are finishing your training run about 20% faster. Norris: Twenty percent is nothing to sneeze at. In a million-dollar training run, that’s two hundred grand back in your pocket. But what about the parameter count? Are we just comparing a bigger model to a smaller one? Linda: That is the main critique. NOBLE adds about 4% to 12% more parameters, depending on the rank you choose. So technically, yes, the model is slightly larger. Norris: Well, usually, a larger model converges faster per step, but runs slower. This seems to follow that trend, but the efficiency gain seems... disproportionate. Usually, adding 5% parameters doesn't give you a 47% step reduction. Linda: Exactly! That’s the key. The efficiency gain isn't just from 'more parameters.' It’s about *where* those parameters are and *what* they are doing. Remember the cosine function? It’s doing work that a standard MLP layer struggles with. Norris: It’s quality over quantity. Did they test this on anything else besides LLMs? Or is this another 'works on my machine' situation? Linda: They were thorough. They tested it on BERT for masked language modeling, and on autoregressive image token modeling. The results were consistent: faster convergence across the board. The model learns the hard stuff earlier. Norris: And vision? You mentioned image tokens, but what about standard classification? Linda: Ah, Vision Transformers. That’s where things get... weird. And it leads us to the most interesting theoretical part of the paper.

## The Mixup Mystery

Linda: So, here is where the plot thickens. They tried NOBLE on Vision Transformers for ImageNet classification. And at first glance? Nothing. No improvement. It was basically a flat line compared to the baseline. Norris: A flat line? After all that talk about cosine sandwiches and high-frequency signals? That’s disappointing. Was it the architecture? Linda: That’s what they thought initially. But then they looked at the training recipe. Standard ViT training uses heavy augmentation: specifically, Mixup and CutMix. Norris: Ah, yes. The smoothie approach to computer vision. Mixup takes a picture of a cat and a picture of a dog, blends the pixels together, and tells the model: 'This is 60% cat, 40% dog.' It forces the network to behave linearly between data points. Linda: Exactly! It forces linearity. It smooths out the decision boundaries. Now, remember what we said about CosNet? It thrives on sharp, high-frequency variations. It wants to fit the complex, wiggly details. Norris: I see where you're going. Mixup basically sands down all the sharp edges in the data. If you artificially smooth the target function, you don't need a high-frequency specialist like NOBLE to model it. Linda: Precisely. The authors describe it as a 'spectral bias.' The main linear layer captures the smooth trend—which is exactly what Mixup emphasizes. So the NOBLE branch was sitting there, ready to capture fine-grained details, but the augmentation had effectively erased them. Norris: So the tool was too precise for the job. Like trying to use a scalpel to frost a cake. Linda: And they proved it! When they turned *off* Mixup and CutMix, suddenly NOBLE started working again. The training loss dropped significantly compared to the baseline without augmentation. Norris: That is fascinating. It’s a negative result that actually confirms the theory. It proves that the NOBLE branch really is acting as a high-frequency residual learner. It’s catching the noise that the main linear layer misses. Linda: Right. It suggests that NOBLE is most useful in tasks where the target function is complex and sharp—like language modeling, or generating discrete image tokens. Generative tasks, essentially. Norris: Which makes sense. Generating the next word in a sentence is full of sharp turns. 'I went to the bank to... deposit a check' versus 'I went to the bank to... fish.' One word changes the entire context. It’s not a smooth interpolation. Linda: Exactly. So while it didn't beat the state-of-the-art recipe for image classification, it actually taught us something fundamental about *why* it works for everything else.

## Inference and Impact

Norris: So, Linda, we’ve established that NOBLE is clever, theoretically sound, and empirically faster for training. But I have to be the grumpy pragmatist one last time. Unlike LoRA adapters, which you can merge back into the main weights, this branch is permanent. Linda: It is. Because of that CosNet nonlinearity, you can't just mathematically fuse the branch back into the linear layer. It’s there forever. That means inference is permanently more expensive. Norris: And inference is where the money is really burned. Training happens once; inference happens billions of times. If I deploy this model, I’m paying that 6 to 12 percent FLOPs tax on every single token generated. Linda: That’s the big catch. The paper is upfront about it. For massive-scale deployments where inference cost is the only metric that matters, NOBLE might be a tough sell. But for research, or scenarios where training compute is the bottleneck, getting a model 20% faster is huge. Norris: It’s the classic trade-off. Pay now or pay later. But I suspect this idea of nonlinear branches isn't going away. Maybe we'll find a way to distill them back into the main network eventually. Linda: Or maybe hardware will just get fast enough that we stop caring about a few extra matrix multiplications. But for now, NOBLE is a fascinating look at how we can break the linearity of Transformers. Norris: Indeed. A noble effort, if I may say so. And on that terrible pun, we’ll wrap up. Linda: Thanks for listening! Don't forget to check out the paper by Ethan Smith from Canva Research. Norris: Until next time, keep dreaming mechanically.

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