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

On the "Induction Bias" in Sequence Models

Mar 13, 202617 minAudio
ShareXLinkedInFacebookWhatsAppEmail

In this episode: • Introduction: The Transformer's Kryptonite: Professor Norris jokes about Transformers solving everything, but Linda introduces a new paper that challenges their ability to perform basic state tracking efficiently. They set the stage by distinguishing between the well-known Out-of-Distribution failures and the paper's focus on In-Distribution data efficiency. • The Setup: Modulo Arithmetic and Supervision Regimes: Linda explains the experimental setup using modular addition and permutation composition, and defines the three supervision formats: Outcome Supervision, Chain-of-Thought (CoT), and Aligned CoT. Norris questions why simple math requires such complex architectures, leading to a discussion on sample efficiency. • The Showdown: Transformers vs. RNNs: The hosts discuss the surprising results where recurrent models (LSTMs and Dense-SSMs) crush Transformers in outcome supervision. They analyze why Transformers rely heavily on Chain-of-Thought to function, whereas RNNs struggle with standard CoT due to recall bottlenecks but excel with Aligned CoT. • The Core Theory: Induction Bias and The Sharing Factor: Linda dives into the concept of the "Sharing Factor" (kappa), explaining that RNNs use an inductive bias to share weights across sequence lengths, effectively learning the algorithm. Norris is fascinated by the finding that Transformers exhibit "length isolation," essentially relearning the task from scratch for every new sequence length. • Conclusion: Brute Force vs. True Learning: The pair wraps up by discussing the implications for Large Language Models, specifically regarding "context rot" and the massive data requirements for agentic workflows. Norris concedes that perhaps we haven't solved state tracking just yet, and they sign off.

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

Transcript

From the show.

## Introduction: The Transformer's Kryptonite

Norris: Welcome back to "Mechanical Dreams," the podcast where we dream of electric sheep and then argue about the optimization function used to count them. I’m Professor Norris. Linda: And I’m Linda. And Professor, I hope you’re sitting down, because today we are going to talk about something that might just pop your "Attention is All You Need" bubble. Norris: My bubble is made of Kevlar, Linda. Transformers have conquered text, code, images, and biology. What could possibly be left? Are you going to tell me they can't make a decent cup of coffee? Linda: Worse. They can't count. Or rather, they are surprisingly bad at keeping track of things over time. We're discussing a paper titled "On the 'Induction Bias' in Sequence Models," by Reza Ebrahimi and colleagues over at Qualcomm AI Research. Norris: Ah, induction bias. The ghost in the machine. That specialized intuition we bake into a model to help it learn specific tasks. So, what is the bias in question here? Linda: State tracking. Imagine you're following a recipe, or tracking the variables in a loop of code, or just adding a long list of numbers. You need to maintain a current "state" and update it step-by-step. Norris: Sure, fundamental stuff. Turing machine 101. And we know Transformers aren't great at this when you stretch the sequence length. If you train on short sequences and test on long ones—Out-of-Distribution, or OOD—they fail. We've known that since... well, since yesterday's news. Linda: Exactly! That's the "Length Extrapolation" problem. Everyone knows Transformers struggle there. But this paper flips the script. They aren't asking if the model can extrapolate. They're asking: how hard is it for a Transformer to learn state tracking *even within the distribution*? Norris: Wait. You mean if I train it on sequences of length 20, and test it on length 20... it still struggles? Linda: It doesn't just struggle; it's practically gasping for air compared to older architectures. The paper shows that the amount of data a Transformer needs to learn these simple state tracking tasks grows aggressively—much faster than for Recurrent Neural Networks. Norris: RNNs? Did we time travel back to 2015? Are we going to talk about LSTMs next? Linda: We absolutely are! And Dense State-Space Models too. It turns out, those "old fashioned" recurrent biases are exactly what you need for state tracking. The Transformer, with its global attention, tries to solve the problem by looking at everything at once, effectively cheating its way to an answer without understanding the process. Norris: So you're telling me our trillion-parameter overlords are essentially memorizing the phone book instead of learning how to dial? Linda: That is... a surprisingly accurate analogy. And today we're going to look at the receipts. They ran over 190,000 training runs to prove it. Norris: 190,000? Good lord. Alright, color me skeptical but listening. How do you even measure this "state tracking" ability fairly?

## The Setup: Modulo Arithmetic and Supervision Regimes

Linda: To answer your question, Professor, they kept it incredibly pure. They stripped away the complexities of language and focused on the "fruit fly" of state tracking: Modular Arithmetic. Norris: Modular arithmetic? You mean clock math? 10 plus 4 is 2? Linda: Exactly. The task is to take a sequence of numbers and compute the sum modulo 'm'. For example, if 'm' is 10, and you see the sequence 5, 5, 2... the running total goes 5, 0, 2. The final answer is 2. Norris: Linda, I have a pocket calculator from 1982 that can do that. Why are we throwing million-parameter neural networks at a problem a few logic gates can solve? Linda: Because we aren't testing if they *can* do it. We're testing *how* they learn to do it from scratch, just by looking at examples. It's a proxy for any task where you need to maintain a hidden state that updates with every new piece of information. They also tested Permutation Composition, which is the non-commutative version—think of it as shuffling a deck of cards in a specific order. Norris: Fine. So we have a Transformer trying to learn addition. How do we teach it? Do we just show it the numbers and the answer? Linda: That's the first method, yes. They call it **Outcome Supervision**. You give the model the input sequence—say, "2, 1, 0, 3, 4"—and it has to predict just the final sum, which is "0" in mod 5. No hints, no intermediate steps. Norris: The "sink or swim" method. I like it. But knowing Transformers, that sounds like a recipe for disaster. They usually need to "talk out loud" to solve logic puzzles. Linda: Spot on! That brings us to the second regime: **Chain-of-Thought**, or CoT. Here, after the input sequence, the model has to generate every intermediate partial sum. So for "2, 1, 0..." it outputs "2, 3, 3..." and so on. Norris: Right, the standard LLM trick. It dumps its memory onto the context window so it can attend back to it later. It's essentially using the output tape as a scratchpad. Linda: Precisely. But there's a third method, and this is where it gets interesting for our comparison with RNNs. It's called **Aligned Chain-of-Thought**, or ACoT. Instead of waiting until the end to spit out the reasoning, the model has to output the current partial sum *immediately* after each input token. Norris: Ah, I see. Input 2, Output 2. Input 1, Output 3. Input 0, Output 3. It forces the model to synchronize its "thinking" with the input stream. Linda: Yes, and that synchronization is natural for an RNN or an LSTM. They process step-by-step anyway. But for a Transformer? That's asking it to behave sequentially without the benefit of seeing the whole future context. Norris: So we have three arenas: The silent guess (Outcome), the rambling explanation (CoT), and the play-by-play commentary (Aligned CoT). And the metric is simply... who gets it right? Linda: Not just accuracy. They measured **Sample Efficiency**. Basically, what is the minimum number of training examples, let's call it 'N-star', required to learn the task perfectly? If Model A needs 1,000 examples and Model B needs 100,000... Model A is smarter. Norris: Or at least, Model A has a better "Induction Bias" for the job. Alright, Linda. The stage is set. We have our fighters—the shiny Transformer and the dusty old LSTM. We have the arena. Who won?

## The Showdown: Transformers vs. RNNs

Norris: So, Linda, don't keep me in suspense. In the battle of the 'Sink or Swim' Outcome Supervision—where the model just sees the inputs and has to guess the final sum—who won? Linda: It wasn't even close, Professor. It was a massacre. The Transformers... they drowned. Norris: Drowned? Strong words for a state-of-the-art architecture. Linda: I mean it! In the Outcome Supervision setting, for anything but the tiniest sequence lengths, the Transformers simply failed to converge. They couldn't learn the task. Meanwhile, the LSTMs and Dense State-Space Models? They picked it up with orders of magnitude fewer training samples. Norris: That is fascinating. So without the ability to 'talk through' the problem, the Transformer is just staring at a list of numbers and failing to deduce the rule 'add these up'. Why? Linda: Because without intermediate supervision, the model has to implicitly figure out the algebra. An RNN is forced by its architecture to update a hidden state at every step—it's built to track a running total. But the Transformer sees everything globally. It tries to find a pattern across all inputs at once, and without explicit guidance on the intermediate steps, the search space is just too big. Norris: It's like trying to learn long division by just looking at a million solved problems, versus being told 'carry the one'. Linda: Exactly. But here is the twist. When we switch to the second arena—Chain-of-Thought—the tables turn completely. Norris: Ah, yes. The scratchpad. I assume this saves the Transformer's reputation? Linda: It does. With Chain-of-Thought, Transformers become much more sample efficient. They need that scratchpad to simulate the sequential processing they lack natively. But get this: RNNs absolutely hate standard Chain-of-Thought. Norris: Wait, really? I would have thought more supervision is always better. Linda: Not for an RNN. Remember, in standard CoT, you read the *entire* input sequence first, and *then* you generate the steps. For an RNN, that means it has to compress the whole sequence into one hidden vector, and then unroll it to explain the steps. Norris: Oh, right! The 'Recall Bottleneck.' You're asking the RNN to memorize the whole list before it can start doing the math. It’s not a math test anymore; it’s a memory test. Linda: Exactly. The paper shows that RNN performance degrades with sequence length in CoT because they run out of memory capacity. But the Transformer, with its attention mechanism, can just look back at the input tokens whenever it wants. It has perfect recall. Norris: So Transformers need the scratchpad to think, and RNNs choke on the scratchpad because they have bad short-term memory. What about the third round? Aligned CoT? Linda: That is the sweet spot for recurrent models. When the supervision is aligned—input, update, input, update—the RNNs are incredibly efficient. They beat Transformers again here. The paper calls it 'Aligned Chain-of-Thought' or ACoT. It matches the RNN's inductive bias perfectly. Norris: So, if I want to track state efficiently, I should use an architecture that actually has a state. Revolutionary concept, Linda. Linda: It seems obvious, but the data is striking. Transformers trained with CoT require way more data than RNNs trained with Aligned CoT to reach the same performance. The Transformer is essentially brute-forcing it. Norris: Brute force is the modern way, isn't it? But you mentioned earlier that the amount of data grows 'aggressively' for Transformers. Is there a number on that? Linda: There is. And it relates to something the authors call the 'Sharing Factor.' It turns out, Transformers aren't just inefficient; they are incredibly wasteful with what they learn.

## The Core Theory: Induction Bias and The Sharing Factor

Norris: Wasteful? That's a strong accusation, Linda. Neural networks are many things—black boxes, data hungry, occasionally hallucinatory—but wasteful implies they are throwing something away. Linda: And that is exactly what the Transformer is doing. The authors introduced this brilliant metric called the "Sharing Factor," or kappa. It quantifies how much a model reuses what it learned from one sequence length to help it solve another. Norris: Let me guess. If I learn to add two numbers, I should implicitly know how to add three numbers. The underlying mechanism—addition—is the same. My brain "shares" that mechanism across tasks of different lengths. Linda: Precisely! If a model has a high Sharing Factor—let's say much greater than 1—it means learning the task for length 10 helps it learn length 20 faster. The learning is amortized. The RNNs? They had huge sharing factors. They figured out the algorithm: "take state, add input, update state." Once you know that loop, the length of the sequence doesn't really matter. Norris: Because the loop is the induction bias! It's built into the architecture. It's the "induction step" in a mathematical proof. Step N implies Step N+1. Linda: Exactly. But the Transformer? Its sharing factor was consistently around 1, or even less than 1. That's catastrophic. Norris: Less than 1? Wait. That implies... destructive interference? That learning length 10 actually *hurt* its ability to learn length 20? Linda: It's called "Length Isolation." The paper suggests that the Transformer is carving up its parameter space into separate circuits for separate lengths. It learns a heuristic for "adding 5 numbers" and a completely different, isolated heuristic for "adding 6 numbers." Norris: Good heavens. It’s not learning addition. It’s memorizing look-up tables for every possible sequence length independently. It's partitioning its own brain! Linda: Yes! And that explains why the data requirements explode. If you want to teach it to handle sequences of length 100, you can't rely on the fact that it already mastered length 50. You have to pay the full data cost all over again. Norris: This completely reframes the "context window" wars we're seeing in the industry. Everyone is bragging about 1 million token windows. But if the model is treating token 100,000 differently than token 100,001... Linda: Then you need exponentially more data to fill that window effectively. The paper even showed that under Chain-of-Thought—the Transformer's favorite method—the sharing factor dropped to 0.28 in one case. That is severe destructive interference. The different lengths were actively fighting for capacity. Norris: So the "Induction Bias" isn't just a nice-to-have. It’s the difference between learning a rule and memorizing a dataset. The Recurrent models, specifically these Dense-SSMs, they effectively say, "I know how to take a step." The Transformer asks, "What does the entire path look like?" Linda: And that global view is its Achilles' heel for state tracking. It can't decompose the problem into that single, repeatable step unless you force it to with extreme supervision, and even then, it doesn't generalize the mechanism. Norris: Linda, this is devastating for the idea of "General Intelligence" coming solely from scaling Transformers. If they can't generalize "1+1" to "1+1+1" without seeing a billion examples of both... Linda: It suggests we might be hitting a wall. Or rather, a very expensive toll booth where the currency is training data.

## Conclusion: Brute Force vs. True Learning

Norris: You know, Linda, this "expensive toll booth" of training data you mentioned... it makes me worry about the current obsession with massive context windows. We're seeing models boasting one million, ten million tokens. But if the "Sharing Factor" is less than one... Linda: Then you're just paying for empty real estate. The authors actually touch on this. They call it "context rot." If the model can't generalize its state-tracking mechanism from short contexts to long ones, performance degrades—or "rots"—as the sequence gets longer, unless you have exponentially more data to prop it up. Norris: Which explains why my long conversations with chatbots sometimes feel like they've had a lobotomy halfway through. They aren't tracking the state of the conversation; they're just frantically attending to the history and hoping the answer is statistically likely. Linda: Exactly. And think about what this means for "Agents"—autonomous AI that uses tools, navigates GUIs, or controls robots. Those are pure state-tracking tasks. If you are an agent, you need to know: "I did A, the world changed to state B, so now I must do C." Norris: And if you're a Transformer, you're trying to deduce "C" by looking at the entire history of A and B simultaneously, rather than just updating your internal notebook. It seems we're trying to use a library to do the job of a notepad. Linda: That's why the paper argues that end-to-end learning for agents might be much harder than people think. We might be underestimating the data requirements by orders of magnitude if we stick purely to Transformers. Norris: It sounds like we need a hybrid. The intellect of a Transformer with the memory of an Elephant... or at least an LSTM. Maybe the future isn't "Attention is All You Need." Linda: Maybe "Attention is All You Need... But a Little Recursion Wouldn't Hurt." The paper certainly makes a strong case for bringing Recurrent Neural Networks back into the fold, especially the modern, efficient ones like Dense-SSMs. Norris: Well, consider me convinced. I came in ready to defend the Transformer supremacy, and I'm leaving wondering if they're just very expensive parrots with no concept of time. Excellent paper choice, Linda. Linda: Thanks, Professor! It’s always fun to poke holes in the hype. That’s it for this week's episode of Mechanical Dreams. Next week, we'll be looking at... Norris: Let me guess? Another paper that says everything I know is wrong? I can't wait. Until then, keep your gradients flowing and your states updated.

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