DeepSeek’s Insane New Architecture

DeepSeek 4.1 Flash cuts KV-cache memory by up to 437x and outperforms Claude Opus 5 on benchmarks while costing a quarter of the previous generation's hardware. The CSA2 technique uses shared memory between encoder and decoder layers to shrink the cache, and the open research paper lets anyone reproduce and fine-tune the model.
Chapters
The new DeepSeek is here. 4.1 Flash. And it is— wow! Look at that! It is incredibly fast. And I was also stunned by this. Look! It can outperform Claude Opus 5, KIMI K3 on some tests. Not everything. We'll see about that. But there is a catch. I'll show you at the end. It also reliably outperforms DeepSeek 4.0 Pro, which is a huge surprise. I mean, that system costs maybe $300k to run locally, and this one can be run for a quarter of that. Well, that's still a lot of money, but the tendency is undeniable. This might run in our pocket in a year's time. It also has native visual understanding. So finally, you can give it images of an iconic game menu and have it write a game that reproduces it. I'll tell you more about my other experiments at the end. And this is huge and small at the same time. How? Well, now hold on to your papers, Fellow Scholars. It's small because of the KV cache. This contains the context and is 437 times smaller than V1 was 3 years ago. Whew. But also 4 times smaller than the previous 4.0 Flash. But That was just a few months ago! And you compressed it 4x? That is— what? How did they do that? Do we know? Yes, we do! Dear Fellow Scholars, this is Two Minute Papers with Dr. Károly Zsolnai-Fehér. Why? Because this is an open model. And there is a free research paper explaining it. I am not an expert, just a student. But I'll try to break it down. They call this technique CSA2. And they are finally onto something here. You see, a neural network is given by a lot of layers of neurons. And as information is propagated through these layers, each of them has its own KV memory. But not here. DeepSeek 4.1 Flash finally gives us shared memory between the layers. Not everyone has to remember everything. No. They share the memories. It's a nightmare to pull off well, because different layers need different views of the same history. And if we pop the hood and look closer— oh, look! An encoder-decoder structure. The encoder creates a shared global memory, and the decoder reads from it. And all that is what finally gives us a much smaller KV cache, which is the bane of my existence, because it needs to Too much video RAM. Incredible leap forward. Now, I also said this is huge. More than 500 billion parameters. So I have no chance to run this at home whatsoever. And when I tried to reproduce this beautiful honeycoiling paper, GPT-6 Astra nailed it. Absolutely stunning. Ooh. Opus 5.1, Not as stunning. But the physics is quite formidable. Rendering, a bit less so. Now, this one. Well, we still need to get a couple more papers down the line to match that, but it will happen. Of that, I am certain. And you see, I am here to show you the truth, not just believe the headlines. Now, also, since YouTube stopped recommending my physics simulation papers, which breaks my heart, At least I get to show you this, which fills me with joy. Subscribe and hit the bell to see more. Also, the catch. 4.1 Flash likes to think a lot and burns a lot of tokens. Fortunately, it is not that expensive, but man, that's a lot of tokens. But if you have the hardware, you get to run all this for free. I don't, so I run it through the API or Lambda, but given that every time DeepSeek publishes a new paper, AI gets cheaper for all of us, So, thank you so much for that! Huge contribution to humanity. This is going to help a lot of doctors and scientists do their work. Open science for the win! What a time to be alive! I use LaMDA to reproduce AI research papers, often in minutes. It's also great to train your own models, or fine-tune an existing one. Run inference, or text to image or video, easy peasy. Running a DeepSeek chatbot or agent? Super fast, super reliable. Lambda gives you powerful NVIDIA GPUs to run your own experiments. I test ideas from the papers I cover, and moments later, results. Love it! Seriously, try it out now at lambda.ai/papers.










