Learning without training: The implicit dynamics of in-context learning

7 Mar 2026 · 24 min · 15 chapters

Ask about this episode

Ask anything about it. ChatGPT or Claude reads this page and answers with the times it was said.

Connect VO and ask about every podcast you hear, including the moments you saved. Add to ChatGPT · Add to Claude

In short

Explains Google research on in-context learning (ICL): how a frozen transformer “learns” a new task from the prompt without updating permanent weights, by applying implicit, temporary parameter changes inside transformer blocks.

Guest backgrounds

No guest names or bios are provided in the transcript; it’s a two-host discussion.

Key claims

Prompt text induces a rank-one (low-rank) temporary weight update in the MLP portion of each transformer contextual block; attention mainly routes relationships. The update can be reverse-engineered: deleting the prompt and manually applying the predicted rank-one MLP update reproduces outputs to ~10^-7 precision. Token-by-token processing behaves like online SGD, converging as marginal token effects drop to zero. Self-attention is crucial for stable convergence; replacing it with an RNN yields unstable, non-convergent implicit gradient dynamics.

Notable examples

“Surgical” model editing tools (Roam/Mend) are argued to use the same low-rank update mechanism as natural ICL; steering/task vectors are claimed to be natively generated during ICL. Mentions using implicit dynamics to detect hallucination/mode collapse and to enable context compression by converting long documents into compact weight updates.

Written by AI. May contain mistakes. Listen to the episode to check what was said.

Chapters

Tap a time to open that second in VO

Understanding In-Context Learning (ICL)

0:46 to 2:13

Exploration of ICL and its significance in AI interactions.

“We are diving into some truly groundbreaking new research from Google, an investigation that uncovers the hidden mechanics of how artificial intelligence actually manages to learn on the fly.”

Historical Learning Processes in AI

2:14 to 3:19

Discussion on traditional machine learning processes and their limitations.

“The system makes a guess, computes its error, and then uses complex mathematical algorithms to physically update the model's weights.”

New Insights from Google Research

3:20 to 4:24

Unpacking new findings from recent Google research on AI learning.

“They didn't go back to culinary school for a month.”

The Concept of Contextual Blocks

4:25 to 6:07

Introduction to contextual blocks and their role in AI processing.

“And the breakthrough centers around a structure they call a contextual block.”

Rank-One Matrix Updates Explained

6:08 to 8:13

Detailed explanation of rank-one matrix updates and their implications.

“Let's break down the math they uncovered.”

Implicit Learning Dynamics in Action

8:14 to 11:15

How AI processes prompts and updates its understanding in real-time.

“is algebraic code that physically rewires the AI's processing center on the fly.”

Exploring Skip Connections and Bias Updates

11:16 to 12:29

Understanding skip connections and their impact on AI's learning process.

“That paints a really elegant picture of how this works.”

RNNs vs. Transformers in Context Learning

12:30 to 14:01

Investigating the performance of RNNs compared to transformers for ICL.

“a bias update is an additive shift to the final output.”

Exploring RNNs vs Self-Attention

14:01 to 15:09

Learn why self-attention is favored over RNNs in AI models.

“This raises an important question about why the tech industry almost universally abandoned RNNs in favor of transformers.”

Implications of Implicit Weight Updates

15:10 to 16:05

Discover how implicit weight updates affect AI interaction and design.

“It's not just that self-attention is highly efficient at reading text.”
Show all 15 chapters

Advancements in Prompt Engineering

16:06 to 18:24

Understand the evolution of prompt engineering into a formal science.

“Let's look at how this unifies our understanding of AI adaptation.”

Detecting and Preventing AI Hallucinations

18:25 to 19:55

Learn how dynamic tracking can improve AI reliability.

“But there's also the safety aspect to consider.”

The Concept of Context Compression

19:56 to 21:28

Explore context compression and its potential to revolutionize AI efficiency.

“Context compression is the holy grail of efficiency in this space.”

Recapping Our Insights on AI Learning

21:29 to 22:24

Reflect on how AI learns dynamically and the implications for users.

“We peeled back the layers of the contextual block and uncovered the hidden rank one matrix updates happening deep inside the feedforward MLP layers.”

The Future of AI Communication

22:25 to 23:35

Consider the possibility of direct mathematical transfer between AIs.

“It changes how you look at that blinking cursor in the chat box, doesn't it?”
Hear the part that matters, and keep it.Open this episode in VO. Double tap your headphones to save a moment as you listen.
Get VO free

Transcript

Automatic transcript. May contain errors.

0:00Welcome. Come on in. Get comfortable. We are really thrilled to have you joining us today for this custom-tailored deep dive. Yeah, we've got a fantastic topic today. Really glad you're here with us. So I want you to think about the last time you interacted with a modern AI. Maybe you dropped a massive 50-page document into the chat box and just asked for a bulleted summary. Or even something more complex, like feeding it three examples of a highly specific kind of quirky coding style and then telling it to write a brand new script matching that exact format. Right, right. And when the AI nails that request, it's, I mean, it feels like a magic trick.

0:37You are basically interacting with a complete black box. You really are. You see the input, you see the output, but the middle is just, well, it's hidden. Exactly. So today, our mission is to crack that black box wide open. We are diving into some truly groundbreaking new research from Google, an investigation that uncovers the hidden mechanics of how artificial intelligence actually manages to learn on the fly. It really does feel like magic when you step back and look at it. The technical term for this phenomenon, when an AI adapts to your prompt in real time, is in context learning or ICL. ICL.

1:11Yeah, ICL. And for years, the broader tech community has known that ICL works. And we've obviously seen how incredibly powerful it is. But the precise mathematical, you know, the how happening under the hood has just been shrouded in mystery. We were looking at the results without really understanding the engine. Precisely. That is, until this new data came to light and finally gave us the blueprint. Okay, let's unpack this. How does an AI learn a brand new pattern from a prompt you just typed in without actually updating its permanent brain wiring? That is the million-dollar question. Because to really grasp why this new Google research study is such a massive paradigm shift, we first have to understand why this on-the-fly learning shouldn't technically be possible in the first place.

1:56Right. To see why that's so strange, we have to look at how machine learning historically operates. In this field, learning is a very specific, dynamical process of optimization. Meaning it takes time and structural change. Exactly. When engineers are initially training in AI, they feed it massive amounts of data, billions of words. The system makes a guess, computes its error, and then uses complex mathematical algorithms to physically update the model's weights. And because you're already familiar with the basics, you know these weights are the core parameters of the neural network. Yeah, learning by definition has always required permanently changing those weights.

2:34But the paradox here is that when the AI is finally deployed to your laptop or your phone, that training period is over. It's totally over. The weights are frozen. It's a finished, static product. Which is exactly what makes in-context learning so baffling. You give this FERS and AI a prompt today with a completely novel task. may be a specific logical puzzle or a brand new pattern it never once saw in its massive training data. And it somehow adapts and succeeds. It figures out the new rules you just dictated without changing a single one of its underlying weights. Let's put this in human terms for a second.

3:07It's like a master chef instantly executing a complex, avant-garde new dish just by glancing at a recipe card for two seconds. Oh, I like that analogy. Right. They didn't practice the dish. They didn't go back to culinary school for a month. to alter their fundamental cooking skills. They just looked at the context you handed them, and they flawlessly performed. That chef concept really highlights the gap in our understanding. Because of this Furs and Waite paradox, researchers have long hypothesized that the AI must be doing some form of implicit fine-tuning. Implicit fine-tuning. Yeah, the assumption was that the model simulates the process of learning, using your prompt to temporarily reconfigure how it represents information, But the exact mathematical mechanics of how a massive, modern, large language model actually did this were essentially unknown.

3:57Just theories and guesswork. Mostly, yeah. Previous investigations had only really proven this simulated learning concept using oversimplified toy AI models or models that relied on heavily modified architectures. Real-world models remained a total mystery. So if previous studies couldn't figure out the mechanics for real massive models, what did this new investigation actually uncover? Because they didn't just theorize here. They really dug into the math. They absolutely did. And the breakthrough centers around a structure they call a contextual block. A contextual block. Right. To visualize this, think of the anatomy of a standard transformer model, which is the architecture behind almost all modern AI.

4:38A transformer block is essentially two main layers stacked together. Okay, I'm picturing it. First, you have a contextual layer. The most famous example is self-attention, which acts like a highlighter, figuring out how different words in your prompt relate to one another. So it's looking at the words and drawing connections. Exactly. And right next to that, you have a standard feed-forward neural network, which is known as the MLP layer. The multi-layer perceptron. You got it. The researchers grouped these together as a contextual block. And when they analyzed how data flows through this block during a prompt, they found something staggering.

5:12Here's where it gets really interesting. Because I know other studies have looked at the self-attention layer specifically and concluded that it's mathematically impossible to seamlessly compress a new prompt entirely into the attention weights without breaking the model's architecture. Yes, that was a major roadblock in previous research. So if the attention layer isn't doing the implicit learning, where is the prompt actually going? The investigation proves that the attention layer isn't absorbing the pump at all. It's just processing it. The real magic happens in that second half of the block, the MLP layer.

5:46The feedforward network. Exactly. The researchers discover that the AI is updating its weights, but it's doing so implicitly and strictly temporarily inside that feedforward MLP network. The context, the literal text you type into the interface, acts as an exact mathematical weight update. Wait, slow down there. an exact mathematical weight update. What does that actually look like in plain English? Let's break down the math they uncovered. The prompt acts as what they call a low-rank weight update, and to be highly specific, a rank-one matrix update. Rank-one matrix update. Right. If someone hasn't taken linear algebra in a while, how should they visualize that?

6:23Think of a massive spreadsheet representing the AI's permanent knowledge. A full-rank update would be like rewriting every single cell in that massive spreadsheet. Which would take forever and fundamentally change the AI. Right. A rank one matrix update, however, is an incredibly elegant, low dimensional shift. It's like taking a highly specific transparent colored filter and placing it over the lens of the AI's brain. Oh, wow. It doesn't rewrite the permanent database, but it entirely changes how the data is viewed and processed for that specific moment. So the attention layer figures out the relationships in the prompt and then uses that information to cast this temporary colored filter over the MLP layer's weights.

7:04That is the core discovery right there. The MLP layer is naturally predisposed to absorb your prompt as a direct temporary modification to its own wiring. Now I have to bring up a specific metric from the research that I know you were geeking out over before we started recording because it proves just how literal this temporary wiring concept really is. What's fascinating here is the sheer undeniable mathematical precision of their experiment. The researchers didn't just theorize this rank one update. They proved it by reverse engineering the AI. How did they do that? They took the model and ran it normally with a standard prompt recording the exact output.

7:40Then they completely deleted the prompt. Just wiped it out. Wiped it out. They explicitly manually applied this new rank one matrix formula to modify the MLP weights and ran the model again completely blind without the context. And the result. The output was mathematically identical. And when I say identical, the data shows it was exact up to a margin of 10 to the negative 7th power. 10 to the negative 7th power. That is completely mind-blowing. It really is an incredible level of precision. It means the prompt isn't just text that the AI is reading like a human reads a book. The text of your prompt is literally a temporary software patch.

8:17is algebraic code that physically rewires the AI's processing center on the fly. It forces us to completely reevaluate what typing into a chat box actually does to the machine. It's not just a conversation. But that raises a massive logistical question for me. How does this play out in real time? Because when I type a prompt or paste a long document, the AI doesn't swallow it whole. It reads it token by token, word by word. Right, sequentially. Does the model's brain rewire itself with every single syllable? It does, and this leads us into what the investigation calls the implicit learning dynamics.

8:53As the AI consumes your prompt token by token, it mimics a famous machine learning process called online stochastic gradient descent, or SGD. Let's translate SGD for the listener who might not be deep in the data science weeds. What is that process actually doing? Think of stochastic gradient descent as a process of step-by-step tweaking based on immediate feedback. In traditional training, the AI makes a guess, sees how far off it is, that's the gradient, and takes a tiny mathematical step closer to the correct answer. And it repeats this millions of times during normal training. Exactly. What this new research shows is that this exact same stepping process is happening implicitly in a fraction of a second while you type.

9:35Every single time the model processes a new token from your prompt, that token acts like a brand new training data point. So each word is a new lesson. Basically, yes. That data point creates a fresh gradient update, a new tweak to those temporary colored filters in the MLP layer. It reminds me of adjusting the focus knob on a really powerful telescope. Imagine you were trying to resolve an image of a distant galaxy. When you first start turning the knob, which would be the first few words of your prompt, you're making huge sweeping adjustments. Right. Big changes early on. The image is drastically changing from a blurry mess to something slightly recognizable.

10:11But as the image gets clearer, your adjustments get smaller, finer, and more microscopic. Eventually, you hit the perfect focus and you stop turning the knob altogether. The telescope analogy is remarkably accurate to the underlying math. To test this dynamic, the researchers set up a linear regression experiment. They tracked these implicit gradient tweaks as the model processed a sequence of tokens one by one. And what did they find? What the data revealed was a beautiful stabilization process. As the marginal effect of new context tokens drops to zero, meaning the new words you are providing aren't adding any drastically different information to the core task, the relative change in the MLP weights completely vanishes.

10:53The mathematical tweaks approach zero. So the AI's temporary brain essentially reaches a state of convergence. Yes. It hits perfect focus and says, okay, I've learned the fundamental pattern from this prompt. I don't need to adjust my implicit weights anymore, even if you keep typing. It is a ghostly gradient descent happening entirely in the background. It finds the solution without any permanent changes to the hard drive. That paints a really elegant picture of how this works. But let's bring a little messiness into the conversation. Bring on the messiness. The models you and I interact with every day, the massive multibillion parameter behemoths, are just simple stacks of attention and MLP layers.

11:31They utilize complex architectural features, specifically things called skip connections. Also known as residual connections. In incredibly deep neural networks, data can sometimes get lost or diluted as it passes through dozens of layers. Skip connections act like highway bypasses. Highway bypasses, I like that. Yeah, they allow data to leapfrog over certain layers to keep the whole network mathematically stable and prevent the signal from degrading. So when you introduce the messy reality of skip connections, does this beautiful theory of rank 1 matrix updates still hold up? Or does the highway bypass break the math?

12:09The framework completely holds up, but it introduces a fascinating new variable. In models utilizing skip connections, the investigation shows that the context still creates that exact rank 1 weight update in the first dense layer of the MLP, but it also creates a bias update in the final layer. A bias update. How is that different from the weight update we just talked about? If the weight update is the transparent colored filter changing how the data is viewed, a bias update is an additive shift to the final output. Think of it like adjusting the baseline idle speed on a car engine. Okay, adjusting the idle speed.

12:42You aren't changing how the gas pedal works, that's the weight, but you are permanently nudging the starting RPM up or down. It's a fundamental baseline shift. And what is so incredible about finding this implicit bias update is that it perfectly mirrors heuristic tricks that human engineers have been using manually for years. You're talking about steering vectors, right? Yes, steering vectors or task vectors. These are techniques where researchers manually calculate a mathematical vector and inject it into an AI to forcefully steer its behavior. Give us an example. For example, injecting a specific vector to make the AI act highly polite or forcing it to strictly output Python code.

13:21Engineers invented these vectors to control models. But this new data reveals that the AI is natively generating and applying these exact same steering vectors to itself during natural in-context learning. We reverse engineered a tool we thought we invented only to find out the machine was already using it the whole time. That is wild. It really highlights how deep the alignment is between human engineered solutions and the mathematical nature of the transformer block. And speaking of the transformer block, the researchers didn't just stop at analyzing standard modern models. They threw a massive curveball into the investigation to test the limits of their theory.

13:59They did. They took a big swing. They asked what happens if you rip out the self-attention layer entirely and replace it with a much older architecture, like a recurrent neural network or an RNN. This raises an important question about why the tech industry almost universally abandoned RNNs in favor of transformers. If you swap self-attention for an RNN, does the AI still manage to learn in context using these temporary weight updates? And what did the data show? The data here provides a profound insight. The researchers discovered that the fundamental algebra still works. An RNN can absolutely map a text prompt into an implicit weight update.

14:35The underlying mechanism is there. But there's a catch. A huge catch. When they ran the actual experiments, the gradient descent dynamics became highly unstable. So to go back to our telescope analogy, it couldn't focus the lens. The telescope was essentially shaking uncontrollably. The gradient updates, those micro-adjustments we talked about, fluctuated wildly and failed to converge. The relative change in the temporary weights never settled down to zero. The model kept violently overcorrecting with every new token. Which means it never learns the pattern properly. Exactly. This finding finally gives us concrete mathematical proof as to why self-attention is the undisputed king of modern AI.

15:16It's not just that self-attention is highly efficient at reading text. It is the fact that self-attention creates an inherently stable environment for implicit learning. It's the stable foundation. It acts like a heavy, solid tripod for our telescope, allowing those temporary weight updates to smoothly and reliably converge on a perfect solution. That makes so much sense. We've spent a lot of time deep in the mechanics today, from rank-1 matrices to stochastic gradient descent and unstable RNNs. So what does this all mean? It means everything for how we build and interact with AI moving forward.

15:49Why should the listener, who is just trying to use AI to make their workflow faster or their life a little easier, care about implicit weight updates? If we connect this to the bigger picture, the implications of this data extend far beyond theoretical mathematics. We are looking at shifts that will directly impact how tools are built and how you interact with them. Let's look at how this unifies our understanding of AI adaptation. Right now, there are popular manual model editing techniques being used in the industry, methods you might see referred to as Roam and Mend. For the listener, what exactly do Roam and Mend do?

16:24They are essentially surgical editing tools for an AI's memory. Let's say a country changes its capital city or the CEO of a major company steps down. You don't want to spend millions of dollars retraining the entire massive model just to update one fact. No, that would be incredibly inefficient. Right. So engineers use techniques like Roam to explicitly inject low-rank matrix updates directly into the AI's MLP layers to forcefully rewrite that specific piece of knowledge. Like going in with a scalpel and tweaking a single memory bank. Precisely. But what this new investigation proves is that these highly engineered manual surgical hacks and natural in-context learning are actually the exact same mechanism.

17:06The AI's natural intuitive method for adapting to your text prompt uses the exact same mathematical pathways as these forced manual edits. Wow. It provides a grand, unifying theory for how large language models process, store, and manipulate temporary information. Which naturally leads into how we actually talk to these machines. Let's look at the science of prompt engineering. Up until now, writing the perfect prompt has felt a bit like trial and error witchcraft. Witchcraft is a very good word for it. You add a keyword here, you format it in all caps, you tell the AI to take a deep breath and think step by step, and you just cross your fingers hoping it gives you a better output.

17:42It has been an incredibly heuristic guessing game approach. But this research changes the paradigm. Because we now have proof that a text prompt is literally a mathematical operator that temporarily updates weights. Prompt engineering doesn't have to be guesswork anymore. It becomes an actual science. It can evolve into a formal algebraic science. Developers can start to analyze prompt segments as linear operators. They can study how these segments compose together, how they commute, and how they invert mathematically. We are moving toward a future where we don't guess what words work best. We mathematically calculate the exact textual input required to perfectly optimize the AI's implicit weight updates.

18:24That alone is going to spawn an entirely new generation of tools built on top of these models. Absolutely. But there's also the safety aspect to consider. Because one of the most frustrating experiences for any user is when an AI confidently lies to you or starts outputting complete nonsense. Let's talk about detecting hallucinations. This is where dynamic tracking becomes a game changer. Remember those implicit meta-gradients we discussed? The telescope focusing token by token. Right, the micro-adjustments. By actively monitoring those tiny gradient updates in real time as the AI generates a response, developers suddenly have a diagnostic window into the model's internal health.

19:01So if the AI is humming along fine, the updates are small and stable. But what happens when it goes off the rails? The data reflects it instantly. If the system is about to hallucinate or suffer what we call a mode collapse, which is when the AI gets stuck in a loop and just outputs repetitive degraded garbage, those internal gradient updates will start to behave erratically. The telescope suddenly loses focus. Exactly. And the mathematical tweaks start wildly fluctuating. Because developers can track this mathematically, it serves as an early warning signal. The system can detect the collapse milliseconds before it happens and actually halt the generation before it ever outputs that bad information to your screen.

19:43It's essentially an EKG for the AI's thought process. You can watch the heart rate spike and intervene before the AI actually says something incorrect. That is massive for reliability. It's a huge step forward for trust in these systems. And finally, there's one more major implication that I think will have the most immediate, tangible impact on users who deal with massive amounts of data, and that is context compression. Context compression is the holy grail of efficiency in this space. Right now, when you upload a massive PDF, say a thousand page legal contract into an AI's context window, the system has to dynamically process all of those millions of tokens over and over again every single time you ask a follow up question.

20:23Which takes time and costs money. It requires an immense amount of computing power and memory to keep that context active. But if the context simply equates to a mathematical weight update in the MLP layer, then we don't actually need the prompt sitting there anymore once the math is calculated. That is the theoretical leap this research opens up. While the investigation does note that these implicit updates currently still depend somewhat on the specific query token you are asking about, the pathway is clear. The door is open. Right. If developers can find a way to aggregate or average these dynamic token-by-token tweaks into a single static weight update, we could theoretically freeze the context into the model's weights.

21:02Meaning you take that thousand-page legal contract, the AI reads it once, converts the entire document into a tiny, mathematically dense rank-one matrix patch, and instantly loads it into the MLP layer. And then you discard the document entirely. No more processing millions of tokens for every single question. The computing power, the server costs, and the memory saved by bypassing that repetition would be absolutely astronomical. So to pull all of these threads together and recap the journey we've been on today, we started with the ultimate paradox of how a frozen AI manages to learn without traditional training.

21:38We peeled back the layers of the contextual block and uncovered the hidden rank one matrix updates happening deep inside the feedforward MLP layers. It's been quite a journey. We saw how every single prompt you typed triggers a ghostly on-the-fly gradient descent, focusing the AI's temporary brain token by token like a telescope. We explored how self-attention keeps that telescope stable compared to older architectures. The tripod of the whole operation. Right. And finally, we looked at how this underlying math fundamentally shifts prompt engineering from witchcraft to algebra, offers an EKG for hallucination detection, and paves the way for massive compute efficiency.

22:15It is a phenomenal piece of investigation that fundamentally reshapes our understanding of the machine. The AI is not just passively reading the text you give it. It is constantly dynamically rewiring its own processing centers in direct response to you. It changes how you look at that blinking cursor in the chat box, doesn't it? And before we go, I want to leave you with one final provocative thought to mull over. I love a good thought experiment. If every single prompt temporarily rewires an AI's brain via these exact mathematical low-rank updates, what happens when we start chaining multiple AIs together?

22:50That's interesting. Right now, when we build multi-agent systems and two AIs interact, they have to use clunky human text. One generates an English paragraph, the other reads the English, processes the tokens, and eventually adjusts its implicit weights. But what if they skip the text bottleneck entirely? Just direct mathematical transfer. Could these models one day communicate instantly by directly transmitting these precise mathematical weight updates into each other's MLP layers? Imagine a form of pure instantaneous digital telepathy where they don't speak to each other. They just beam the learned context directly into each other's brains.

23:26Bypassing language entirely to share raw mathematical understanding. Now that is a truly fascinating concept to consider for the future of artificial intelligence. It really is. Thank you so much for joining us for this deep dive. We hope it gave you a new perspective on the tools you use every day. Keep questioning the hidden mechanics of the technology around you and never stop being curious about the black boxes in our lives. We'll catch you next time. Goodbye and keep exploring.

From the publisher

This research explores the mechanisms of in-context learning (ICL) in Large Language Models, proposing that transformers learn by implicitly updating their internal weights during inference. The authors demonstrate that a transformer block effectively transforms prompt examples into a rank-1 weight update of the model's MLP layer. This process allows the model to adapt to new patterns without permanent training, mathematically mirroring stochastic gradient descent as tokens are processed. Theoretical formulas are provided to map these context-driven adjustments exactly, showing that MLP layers are naturally structured to absorb and store contextual information. Experimental results on linear regression tasks confirm that modifying model weights using these formulas produces identical predictions to providing the original in-context prompt. The study ultimately unifies ICL with model editing and steering vectors, offering a principled framework for understanding how LLMs reorganize their internal representations dynamically.

More from Best AI papers explained

All 475 episodes
Learning without training: The implicit dynamics of in-context learningBest AI papers explained · 24 min
Listen in VO