DeepSeek Zeros in on Enterprise: The Sound of Competitors Losing the China Market
In this series, we review NeurIPS, ICLR, AAAI, ICML, and CVPR papers in an approachable way. Our main tool is NotebookLM, which is hacking into our human desire for narratives. To supplement, I provide commentary drawn from my experience as a Senior Research Scientist at Nvidia.
Today’s paper:
Commentary
Just what an incredible boon to the open source and closed source communities is the DeepSeek paper.
The podcast ends with one hell of a kicker, which is that self-improvement is solved when expert knowledge stress tests for every edge case are commoditized.
The journey begins quite naturally with KV cache limitations, quickly overcoming that with compressed sparse attention, using analogies of post-it notes to express how tradeoffs are managed to have excellent near-term and long-term recall.
They then talk about pipelining computation and network communication.
And then, of course, this natural thing of everybody tuning their own extra models is best left to the experts, where they do that each for each specific domain like programming and mathematics, and then do logit distillation, which is really something quite well known and not perhaps the most innovative thing.
They have more innovative constructs like the polytope and the special Muon optimizer.
Finally, their exhaustive enterprise-like reasoning features of keeping the reasoning trace and audit logs has shown their hand that they’re a serious competitor to enterprise functions, especially in China, where state sponsorship will make them the de facto choice.
This is the power of an open marketplace, forcing pricing lower and broadening competition, which ultimately results in a better experience for the consumer.
NotebookLM podcast and transcript (Google AI transcription)
Read full AI transcript
“You know, usually when we talk about human working memory, there’s this expectation of well, severe limitation,
right? It’s a very finite system.
Yeah. It’s like having this tiny kind of wobbly mental shelf. You try to hold a phone number in your head, maybe add a grocery list, try to remember the name of that person you just met, and suddenly your brain just it just dumps the phone number to make room.
Exactly. In cognitive psychology, there is a well-known concept called Miller’s law. It basically suggests we can hold maybe seven items plus or minus two at once in our active working memory.
Seven little items.
Yeah. Anything beyond that requires external storage like writing it down.
Right now, I want you to imagine stepping into a completely different cognitive reality. Imagine an entity that can read 30 full length books at the exact same time.
That’s a lot of books,
right? It holds every single character, every branching plot point, every tiny footnote in its active memory. It instantly cross references all of it to spot a contradiction in book 29 that relates back to book two. And here’s the real kicker. It never experiences that brain dump moment,
right? It doesn’t run out of working memory.
Never.
Which is, I mean, the absolute definition of a cognitive superpower. And strictly mathematically speaking, handling that volume of data simultaneously shouldn’t even be possible without, you know, a supercomput farm taking up the square footage of a city block.
Well, welcome to the deep dive. Today, our mission is exploring the technical blueprint behind exactly that kind of of superpower. We’re looking at the Deepseek V4 series, specifically their Pro and Flash models.
It’s an incredible piece of tech.
It really is. We’re pulling from a dense, highly technical research paper released by DeepSeek AI that details their V4 architecture. And we aren’t just going to list off a bunch of benchmark numbers today.
No, that would be boring.
Exactly. We’re going to figure out how they crack the code on making massive AI models radically more efficient. We’re talking about achieving the holy grail of current AI. which is a functioning efficient 1 million token context window.
To put it mildly, this paper details a staggering engineering achievement. It uh it challenges a lot of assumptions the industry had about hardware limitations.
Okay, let’s unpack this because whether you are writing code, parsing thousands of pages of legal documents, or just trying to understand where the technology is heading tomorrow, this paper is a literal blueprint for the future.
Absolutely.
But before we get to the solution, I think we need to understand the brick wall everyone was hitting. Why is a 1 million token context window so incredibly hard to build in the first place?
It comes down to a fundamental mechanical flaw in the way AI models pay attention to data. It’s a scaling problem called quadratic computational complexity.
Quadratic computational complexity.
Right? So in vanilla attention, which has been the standard mechanism most major language models use, every time the model generates a new word, or a token, it has to look back at every single previous token to understand the context of what it’s saying.
Okay, I’m trying to visualize the math on that. So, if the model is writing token number 10, it looks back at the previous nine.
Easy enough,
right? That’s easy. But if it’s writing token number 1 million, it has to look back at 999,999 tokens.
And it does that by storing the mathematical representations of all those previous words in something called the KV cache, the key value cache.
Okay,
think of it as the model’s short-term memory bank. As that sequence grows, the memory required doesn’t just grow in a straight line, it explodes quadratically.
Oh wow.
Yeah. So, by the time you hit a million tokens, the computation required to just check the memory becomes a massive crippling bottleneck.
It sounds like trying to keep a million Post-it notes on your physical desk at once.
Exactly.
At first, finding a note is easy, but at a million, even if the desk miraculously holds the weight, you are spending $99. 10% of your time just frantically digging through piles of paper instead of actually writing the report.
That analogy hits the nail on the head. You exhaust your memory
and your processing speed just grinds to an absolute halt,
right? The processing power required to search the desk becomes larger than the processing power required to generate the answer.
So, if every major player in the AI industry is looking at this exact same desk collapsing problem, how did DeepSeek bypass it? Because I’m assuming you can’t just buy a bigger desk forever.
No, hardware has physical limits. You can’t to scale infinitely. So they completely redesigned the attention mechanism itself. They introduced a breakthrough hybrid approach combining two distinct techniques.
Oh, really?
Compressed sparse attention or CSA and heavily compressed attention HCA. What’s fascinating here is how they tackle the post-it note problem not by expanding the desk but by uh magically summarizing and shrinking the notes depending on how important they are.
Okay, start with CSA compressed bars attention. If I have a million in post-it notes. How does CSA shrink them without losing the information I need?
Well, instead of keeping every single token as a separate memory entry, the CSA module takes a small sequence, specifically four tokens. There’s
four.
Yeah. And compresses them into a single key value entry. So, you are summarizing four Post-it notes into one. But compression alone isn’t enough. The real innovation is a secondary mechanism called a lightning indexer.
A lightning indexer,
right? So, when the model needs to look back through its memory, the lightning indexer quickly scans these compressed blocks and selects only the most relevant chunks to focus on entirely ignoring the rest.
I see the logic. But wait, if I’m searching for a very specific needle in those post-it notes, like a single variable in a massive code base, doesn’t summarizing four notes into one mean I might lose the exact spelling of the variable?
That’s why the Lightning Indexer is so vital. It’s sparse.
Sparse meaning
meaning it doesn’t force the model to read the whole desk. It just points to the specific pile that matters for the exact word it’s generating right now.
Okay.
And because the compression is relatively light, just 4:1, the local specific detail is preserved enough for the model to retrieve it.
Makes sense.
But then you have the other half of the system, heavily compressed attention or HCA, which operates very differently.
How heavy is heavily compressed?
Very. They take a massive chunk of 128 tokens and compress all of them into a single entry.
128 into one. That seems incredible. destructive to the data.
It is
like you absolutely lose the fine grain details doing that.
You do which is why they don’t use sparse selection here. They use dense attention for the HCA blocks.
Dense attention.
Yeah. Because the data is already squashed down by a factor of 128. The model can afford to look at all the HCA blocks simultaneously without hitting that quadrat computation wall.
Oh, I see.
It gives the model a fantastic highle summary of the distant context.
Oh, I get it. So, the HCA provides the vibe or like the macro plot of the book.
Yeah.
It tells the model, “Hey, we are currently in a chapter about a naval battle.”
Exactly.
While the CSA provides the precise exact wording for the immediate actions taking place.
That’s the brilliance of the hybrid system. By running both simultaneously, the model maintains a perfect macro understanding of the entire million token document while retaining the ability to instantly recall specific micro details.
Okay. But if you’re sitting at home writing code or trying to parse a massive legal ument what does this actually change for your workflow like let’s translate this architecture into real world efficiency
sure
because of this hybrid approach deepseeek v4 pro which the paper notes is a behemoth model with 1.6 trillion total parameters
massive
yeah so it only uses 27% of the computing power the loops and just 10% of the memory cache compared to its predecessor at a million tokens
and looking at their smaller more agile model Deepseek V4 Flash the efficiency gains are even steeper.
Wait, steeper than 10%.
Yeah, processing a million tokens on the flash model uses only 10% of the computing power and 7% of the memory compared to the previous generation.
That is absurd. We are talking about tasks that literally used to require dedicating a massive supercomputer farm for hours.
Right
now, they can be run economically. It completely democratizes extreme AI capabilities. But hold on, I have a major bone to pick. with this architecture.
Let’s hear it.
Okay. If you take a million tokens of data, heavily compress parts of it by a factor of 128, and then route all of those compressed signals through an incredibly complex mixture of experts web across dozens and dozens of neural layers.
Yeah.
Doesn’t the signal just degrade? Sound like a massive game of telephone. Doesn’t the math get so messy that the model just crashes or starts hallucinating wildly?
You’ve zeroed in on the exact nightmare scenario for AI researchers.
Oh, really?
Yeah. When you build deep neural networks of this scale, the signal propagating through the layers tends to either degrade into static or explode into numerical instability.
Right?
Deepseek anticipated this. So they implemented two foundational fixes at the very base of the architecture. Manifold constrained hyperconnections and a brand new optimizer called Muon.
Manifold constrained hyperconnections. MHC. That sounds like something a Starfleet engineer makes up to fix a warp drive.
It does sound a bit sci-fi. For those of us without PhDs in advanced linear algebra, what is a manifold constrained hyperconnection actually doing?
Okay, let’s strip away the jargon. In a standard model, you have residual connections. Think of them as bypass highways that let data skip certain complex layers. So, the original signal isn’t completely mutated by the time it reaches the end.
Makes sense.
But when you scale up the network to a trillion parameters, those highways get overloaded. The mathematical values can multiply exponentially.
They blow up. Exactly. So, MHC replaces those standard connections. It forces the data mapping onto a very specific mathematical shape known as the Burkoff polytope.
You said we were stripping away the jargon. Burkoff polytope does not help me visualize this.
Fair point. Fair point. Uh, think of it like an audio feedback loop.
Yeah.
If you put a microphone too close to a speaker, the sound goes into the mic, comes out the speaker louder, goes back into the mic, and within seconds you get an exploding, deafening screech.
Yeah. That awful squealing sound,
right? That’s numerical. instability. What the Burkoff polytope does by using what are called double stochastic matrices is mathematically guarantee that the volume multiplier of the data mapping can never exceed one.
Ah so it’s like an unbreakable physical law built into the math
precisely.
It doesn’t matter how many times the signal passes through the microphone and the speaker
the volume knob physically cannot be turned up past a safe limit.
It mathematically guarantees the signal cannot expand out of control no matter how deep the network gets. That’s it acts as a flawless pressure regulator.
That’s clever.
It is. It preserves the complexity of the model’s thoughts without the risk of a mathematical blowout. But regulating the pressure is only half the battle. They also completely swapped out the engine that trains the model.
The optimizer.
Yes.
For years, the industry standard optimizer, the algorithm that calculates the errors and actually updates the model’s weights during training. So it learns,
right? The thing doing the actual teaching.
Yeah. Uh, that’s been something called Atomw. Deepseek replaced Atom W for the vast majority of their model with the Muon optimizer.
Why swap a reliable engine for a new one? What does Muan do differently that makes it worth the risk?
Well, standard optimizers like Atom often update the network’s parameters by looking at them element byelement.
Okay,
Muan uses something called hybrid Newton Schultz iterations. Instead of looking at individual elements, it looks at the full gradient matrix to update the parameters.
It’s a full matrix,
right? It orthogonalizes the data. taking a completely holistic view of the network’s errors at every single step.
So, if I’m a mechanic trying to tune a car engine,
an element byelement optimizer is like adjusting one valve, turning the car on to see if it sounds right, turning it off, and moving to the next valve.
Very slow.
But Muon is like looking at a holographic diagnostic of the entire engine at once, and adjusting all the valves in perfect harmony based on how they interact with each other.
That’s a great way to look at it. Because it sees the whole matrix,
it converges on the right answer significantly faster and with far greater stability. But there is a catch. If you are looking at the full matrix constantly, it requires a massive amount of communication between the GPUs in your server farm
which usually slows things down or
Yeah,
it does. And this raises an important question. How do you prevent the hardware communication from becoming the new bottleneck?
Right?
If we connect this to the bigger picture, Deepseek didn’t just change the math. They optimized how the physical hardware communicates. They implemented fine grained expert parallelism.
Expert parallelism.
Yeah. They basically split the AI’s compute tasks into overlapping waves.
So while the GPUs are crunching the math for wave 1, they are simultaneously transmitting the necessary data for wave two over the network wires and offloading the finished results for wave three.
Yes, exactly. They completely overlap the computation in the communication. The hardware never sits idle waiting for a download to finish.
Oh, that’s brilliant.
They effectively remove the physical latency bottlenecks of training trillion parameter models.
Okay, so the pipes are regulated with MHC. The engine is swapped to muon. The hardware is humming without latency. Structurally, it has a brilliant brain.
Very brilliant.
But a great brain is completely useless if it hasn’t actually learned anything. How does it learn to think like an expert coder or a mathematician or a data analyst?
That brings us to their post-training phase. Specifically, a technique called on policy distillation or OPD.
OPD.
Historically, companies might try to train one giant model on everything all at once or use reinforcement learning with human feedback, having humans rate answers, which is incredibly slow and expensive,
right? Getting thousands of humans to click thumbs up or thumbs down.
Exactly. Deepseek took a highly specialized route instead.
They trained an army of hyper specialized models first.
They did. One model lived and breathed nothing but mathematics. Another was trained exclusively in complex software engineering environments.
Oh,
another was an expert in logical instruction following. They let these smaller models become absolute masters of their specific domains,
which is great. But as a user, I don’t want to switch between 10 different AI apps depending on what I’m doing. I want one unified model.
And that is where the distillation happens. They used full vocabulary logic distillation to merge all that highly specialized knowledge into a single unified student. model
full vocabulary logic distillation. Uh try to break that down for me.
Sure. Normally, if you train a model based on another model’s answers, you just give it the final correct answer, the hard label.
Okay.
Logite distillation means the student model looks at the teacher model’s entire probability distribution for every single word.
The entire distribution.
Yeah. It doesn’t just see the correct answer. It sees why the teacher considered three other answers and ultimately rejected them.
Oh,
it transfers the deep nuance Ed intuition of the specialists, not just their final outputs.
It’s the difference between memorizing a cheat sheet and actually inheriting the teachers internal thought process.
Exactly.
That actually makes total sense. And this leads to one of the most fascinating parts of the source material. I was looking at their reasoning efforts table. Deepseek v4 has a standard mode for daily tasks like write a quick email, summarize this article, fast, intuitive. But it also has a think max mode.
The think max mode is where the model is pushed to its absolute limits for complex reasoning.
I want to read directly from the system prompt they literally inject into the model when you trigger ThinkMax.
Go for it.
This is what the model is explicitly told to do. Quote, “Reasoning effort, absolute maximum with no shortcuts permitted. Explicitly write out your entire deliberation process, documenting every intermediate step considered alternative and rejected hypothesis to ensure absolutely no assumption is left unchecked. End quote.
It is essentially forcing the model into a rigorous exhaustive scientific peer review of its own thoughts before it outputs a single word to the user.
It’s wild. But I keep coming back to this problem. How do you train it to know if it’s rigorous thoughts are actually good,
right?
Because if it’s generating thousands of words of internal hypothesis, you can’t have humans grading all of that.
You can’t. Which is why the paper highlights their generative reward model. Instead of paying thousands of humans to rate the AI’s internal monologue, the actor network natively functions as its own judge. Wait, it grades its own homework?
Essentially, yes.
How does it know it’s not just hallucinating a good grade?
Because in domains like math and coding, the intermediate steps are logically verifiable. The model builds a rubric based on logical rules, evaluates its own trajectory against those rules, and learns from its own logical deductions.
It self-corrects.
Yes, it self-corrects during the thought process. And this self-reflection isn’t just a fleeting temporary thought. For developers building AI agents program, programs that use tools, search the web, and run code autonomously. Deepsee v4 introduced interled thinking.
So, if I’m understanding this right, older models are essentially like someone with short-term amnesia.
Fair comparison.
Like, if the AI thinks for a long time, uses a calculator tool, and gives me an answer. The moment I reply with a follow-up question, it flushes all its internal thinking. It just keeps the final answer, and has to start its reasoning process from scratch. Interleved thinking fixes that.
Exactly. Because of Deepseek V4’s massive 1 million token context window, when it’s operating in a tool calling scenario, it retains the complete reasoning history,
all the internal tags and notes,
all of it, all the rejected hypotheses, all the previous context. It literally remembers why it made a specific decision five steps ago, allowing for a continuous unbroken train of thought across an incredibly long workflow.
Okay, the architecture handles the memory. The training builds deep intuition. The self-reflection is continuous. I have to play ‘s advocate here. Please do
papers always look great in theory. Does it actually beat the competition in the real world or is this just a highly optimized academic experiment?
The benchmark data they’ve published is highly compelling and it goes far beyond academic tests. Deepseek V4 Pro Max, the maximum reasoning mode of the large model, is redefining the state-of-the-art for open models.
Give me the specifics. How does it handle coding
on rigorous coding evaluations? It directly rivals GPT 5.4. which currently sits at the absolute frontier of closed source proprietary models. Right.
But to prove it isn’t just memorizing static test sets from the internet. They evaluated it on the live code forces leaderboard.
Code forces. That’s competitive programming, right?
Yes. Designed for top tier humans. Deepseek V4 Pro Max actually ranks 23rd among human candidates.
It is the 23rd best competitive programmer in the world
on that leaderboard. Yes.
Against actual humans trying to trick it.
That’s why.
What about the 1 million token context? Does it actually remember the million tokens or does it lose things in the middle?
They ran it through the MRC 1 million token retrieval benchmark. It’s essentially a massive needle in a haststack test, asking the model to retrieve and synthesize tiny obscure facts hidden in a mountain of text.
And B,
Deepseek V4 Pro completely outperformed Gemini 3.1 Pro on this task.
But benchmarks can be synthetic. What about realworld messy human tasks where the instructions are vague? The source material details a white smaller tasks test.
Yes. To prove its utility in actual enterprise environments, Deepseek created a suite of 30 advanced Chinese professional workflows.
Like what
we’re talking deep financial analysis, parsing complex law, generating long- form professional reports. They put DeepSeek V4 Pro Max head-to-head blindly against Opus 4.6 Max.
And the human evaluators preferred which one?
Deepseek achieved a 63% non-loss rate against Opus.
Oh wow.
The evaluators specific speifically noted that Deepseek Excel because it anticipates implicit user intents.
Implicit intents, so reading between the lines,
right? If you ask it for a financial breakdown, it doesn’t just spit out simplistic bullet points. It provides proactive supplementary insights, considers edge cases you didn’t think to ask about, and uses strict professional formatting. It understands what the professional actually needs to present to their boss, not just what they literally typed into the prompt box.
Exactly. And if an enterprise is trying to automate actual software engineering pipelines, they built an entire platform to prove the model can handle it. The Agentic Sandbox or DSAC.
DSAC.
DSAC is their internal elastic compute platform. Think about an AI agent trying to fix a bug in a massive sprawling codebase.
Okay.
It needs to run bash commands, edit files, compile code, read the error logs, and try again. DX safely runs hundreds of thousands of these concurrent sandboxes.
Hundreds of thousands.
Yeah. And to solve the reality of hardware failures, because if you run a massive cluster for weeks, GPUs will eventually crash.
Of course,
Detect keeps a globally ordered trajectory log.
So, if it’s compiling a massive project and the server catches fire midway through, it doesn’t lose its mind. It’s like a save state in a video game.
That’s exactly how it functions. If a hardware node fails at step 400 of a 500step complex coding task, the model doesn’t have to start over from step one.
That saves so much time.
It uses the trajectory log to instantly fast forward back to step 400, replaying the C results without executing the expensive commands all over again.
Here’s where it gets really interesting for me. Looking at the adoption metrics from the people who actually built it.
Oh yeah.
The paper notes that they surveyed their own internal DeepSeek engineers, people with unfettered access to every single Frontier model on the planet. 52% of them said they are ready to make V4 Pro their absolute default coding model over the closed models they used to rely on.
When the engineers building the tools prefer their own open- source creation. You know, a major threshold has been crossed.
It’s a massive practical vote of confidence that validates the entire architecture.
Truly.
So, let’s step back and recap this journey we’ve been on. We started with the quadratic bottleneck of vanilla attention, the desk collapsing under a million post-it notes. We explored how DeepSeek solved it with hybrid attention,
right? Using compressed, sparse attention to quickly index the specific local details and heavily compressed attention to simultaneously grasp the broad overarching context.
We also looked under the hood at the foundational math, how manifold constrained hyperconnections and the Burkhoff polytope act as an unbreakable mathematical pressure valve to stabilize the neural network
and how the muon optimizer drastically accelerates learning by analyzing the full gradient matrix of the engine all while expert parallelism hides the communication latency.
And then we move to the actual intelligence using on policy distillation. to absorb the nuanced intuition of domain experts and unlocking the think max mode where the model is forced to explicitly stress test its own logic and act as its own judge.
All of this culminates in a model that stands shoulder-to-shoulder with the most expensive proprietary models in the world.
It really is a marvel.
If there is one primary takeaway for anyone listening to this deep dive, it’s that this paper proves test time scaling is the new frontier.
Test time scaling
giving an AI the architectural freedom, the compute time, and the million token in context window to think deeply through a problem before answering. It’s how we solve complex realw world issues. The bottleneck is no longer just holding the memory. It’s giving the model the framework to rigorously reason through it.
So what does this all mean? It leaves us with a fascinating and maybe slightly provocative question to ponder. If an open source model running on your local server can now seamlessly hold a million tokens of context in its working memory, 30 full length books while being exp implicitly instructed to rigorously stress test its own logic against every possible edge case. What happens to our traditional definition of human expertise?
That is the million-dollar question.
When being perfectly well-informed, perfectly cross-referenced, and exhaustively logical on literally any topic is instantly commoditized, how do we redefine the value of human intuition? Thank you for joining us on this deep dive. Keep learning, keep questioning, and we will see you next time.”