Back to list

DeepSeek, efficiency first

Jim Lin
AGITech

The last time DeepSeek really shook the world was R1, in January 2025. That release stopped the whole industry for a moment: restricted chips, restricted compute, restricted budget, and out came a reasoning model that could take on OpenAI o1 head to head. After that DeepSeek went almost silent. No big models, no big announcements, just the occasional quiet launch of an "expert mode" or a "flash mode" in the chat interface, while everyone outside kept guessing whether something big was coming.

When V4 came out, my first reaction wasn't "here's another big model." It was: "this is something DeepSeek seriously wants to say."

Fifteen months to the day since R1. (Further reading: My thoughts after the R1 release)

Late, but on target

V4 was expected around Chinese New Year and ended up slipping to the end of April. When a Chinese AI company delays its flagship, the reasons are never simple: there were rumors of talent leaving, guesses about unstable training runs, and outside pressure over whether to adapt to domestic chipmakers first. I don't know the actual reasons, and I have no way to confirm them.

But I think the delay itself is worth noticing. DeepSeek chose to wait until it was really ready, instead of shipping a version that "looks good enough" to hold the spot. That's a different mindset from a lot of companies. In this industry, "ship first, update later" has become standard practice, and shipping fast matters more than shipping right. DeepSeek didn't take that road.

Two models came out this time:

  • DeepSeek-V4-Pro, 1.6T total parameters, 49B active at inference, 1M context
  • DeepSeek-V4-Flash, 284B total parameters, 13B active at inference, 1M context

Pro targets complex agent tasks and hard programming; Flash targets fast, cheap everyday reasoning. Both are open-weight, MoE, MIT-licensed, and you can download and run them directly.

1M context becomes standard

"Supports a million-token context" doesn't sound new anymore. Gemini advertised 1M context early, Claude has it too, and lately almost every new flagship shouts this number.

But I've used these models on real tasks, including having one read an entire mid-sized codebase and then review it, and dumping dozens of documents in for a combined analysis. My conclusion: "supporting" a million tokens of context and actually using it well are two different things.

The reason is simple: the KV cache is too expensive. As the context grows, every new token has to attend to every token before it, and the memory and compute overhead grows exponentially. In a test demo you can stuff in a million tokens, but once you hit real inference costs, most teams truncate on purpose, because they can't afford to run it. More importantly, once the context gets long, models hallucinate very easily and can even forget the most important system prompt. (My own practice is still to keep context at around 50% to 80% and break more complex long tasks down further.)

V4's answer is: I'll solve the cost problem, not just announce the number.

The paper has a key set of figures: at 1M tokens of context, V4-Pro's per-token inference FLOPs are only 27% of DeepSeek-V3.2's, and its KV cache footprint is only 10% of V3.2's. V4-Flash goes further: FLOPs drop to 10%, KV cache to 7%.

Using a million tokens costs less than other models using a hundred thousand. That's the real technical thesis of V4.

This isn't "we built a longer context window." It's "we redesigned the cost structure of long context." The two are nowhere near each other in difficulty or significance.

Architecture breakdown: where the efficiency comes from

After reading the technical report, I'd say DeepSeek's architectural innovations this time come down to three things: a redesigned attention, a stabilized residual connection, and a new-generation optimizer.

Attention: two kinds of compression, interleaved

V4's core innovation is splitting attention into two mechanisms that take turns, instead of brute-forcing long sequences with one approach.

CSA (Compressed Sparse Attention) is "smart selective reading." It first compresses the historical KV by 4x, then uses a lightweight FP4 retriever to pick the top-k blocks most relevant to the current query from the compressed sequence, plus a sliding window over the most recent uncompressed tokens.

HCA (Heavily Compressed Attention) is more aggressive: it compresses the KV by 128x and runs dense attention over that extremely compressed representation. It doesn't select; it scans everything, but what it scans is a heavily condensed version of everything.

The logic of interleaving them is clear: CSA handles "precise retrieval of history," HCA handles "cheap global awareness." Together you get both the details and the big picture, and it's far cheaper than traditional attention.

Both mechanisms also store most of the KV in FP8, use FP4 for the retriever, and keep BF16 only for the RoPE dimensions. Tiered precision is part of the cost control too.

Residual connections: mHC is the underrated highlight

V4 replaces the standard residual connection with mHC (Manifold-Constrained Hyper-Connections). This part isn't as eye-catching as the attention work, but I think it's well worth a look.

The core idea: constrain the residual mapping matrix to the manifold of doubly stochastic matrices (the Birkhoff polytope), project onto it with the Sinkhorn-Knopp algorithm, and guarantee the matrix's spectral norm never exceeds 1.

The result: the residual mapping is always "non-expansive," so the signal can't blow up across 61 stacked layers.

This isn't a fancy math trick. It's a very pragmatic engineering decision. With 1.6T parameters, 61 layers, and ultra-long sequences, any training instability is enormously expensive. mHC uses mathematical structure to guarantee it "doesn't blow up."

The Muon optimizer: more than an academic experiment

For the main training run, V4 uses the Muon optimizer, which orthogonalizes weight matrices with Newton-Schulz iterations, instead of sticking with AdamW.

Muon has already been shown in some research to give faster convergence and steadier gradient flow, but using it for trillion-scale MoE training is what DeepSeek did here. They also layered on FP4 quantization-aware training (QAT), so the model learns to cope with low-precision inference during training instead of being compressed after training is done.

Together these two point to a product logic I strongly agree with: move inference-cost optimization forward into training, instead of figuring it out at deployment time.

Post-training, redesigned

V4's post-training path is also different from the last generation. It drops R1's mixed RL approach and uses On-Policy Distillation (OPD) instead.

The idea is clean: first train expert models for math, code, agents, instruction following and so on independently, then use OPD to distill the abilities of multiple teachers into one unified student model. That's completely different from the approach some recent models take, trying to slap every ability together in one big RL run.

Personally, I agree with this choice. Different abilities really do interfere with each other, especially the tension between "depth of reasoning" and "precision in following instructions," and brute-force RL struggles to optimize both at once. Develop them separately, then integrate: the logic is cleaner and the results are more predictable.

It's a bit like managing a team: you don't ask everyone to become all-rounders under one shared scorecard. You let each person go deep on their specialty first, then figure out how they work together.

The impact on open source

The timing of V4's release is interesting: the day after OpenAI shipped GPT-5.5. That's not a coincidence, and not entirely strategy either. It's more a snapshot of an industry in an acceleration cycle, where everyone is pushing and everyone is competing.

But I think V4's impact on open source runs much deeper than "one more good open model."

1. It redraws the baseline

Before V4, if you asked "where's the ceiling for open models," most serious answers were: one step behind the closed flagships. Code, reasoning, long documents: open models could be very good, but at the top end there was still a gap.

After V4, that answer changed. On code (LiveCodeBench 93.5, Codeforces 3206) and agent tasks (SWE Verified 80.6), V4-Pro-Max is in the same band as Claude Opus 4.6 and Gemini 3.1 Pro. That isn't "caught up." It's "entered the same arena."

What this means: from now on, any company releasing a closed flagship has to include V4 as one of its comparisons. Open source is no longer just "the fallback when the budget is tight."

2. It squeezes the pricing ceiling for the whole industry

By the estimates for V4-Flash's API pricing, processing a million input tokens costs under 14 cents. For a coding agent or an enterprise knowledge system, that nearly eliminates "we can't do this because the API is too expensive" as a reason.

Every time DeepSeek ships, the closed vendors have to cut prices. This is the third time (V3, R1, V4). That pressure doesn't come from direct competition; it comes from information. Once developers know a capability is available at this price, they won't accept ten times the price for the same capability again.

3. Agent tool calling becomes a default capability

V4 is essentially designed for agent workloads: cheaper long context, thinking that persists across tool calls, an XML tool-calling schema that reduces parsing errors, and the DSec sandbox supporting RL training. Together these push "running real agent workflows on an open model" forward on both cost and reliability.

This used to be a game only big institutions could play, because only they could afford closed APIs or the compute to run a full cluster themselves. Now the bar is coming down.

4. Huawei Ascend support breaks the hardware lock-in

V4 is DeepSeek's first model to support inference on Huawei Ascend chips. The technical significance is limited; core training still runs on Nvidia. But the signal matters: once inference is proven to run stably on domestic Chinese chips, the rest is a matter of gradually moving more stages over. For the whole open-source community, it means there may eventually be a deployment path that doesn't depend on Nvidia, even if it isn't mature yet.

Where it's strong, where it's weak

I'll try to stick to the numbers in the official report, without hyping it or deliberately talking it down.

Strengths:

Code is V4's most impressive area. A Codeforces rating of 3206, first among all the models compared. LiveCodeBench 93.5, also first. This isn't writing Hello World; it's competition-level code and hard algorithm problems. For developers, this is the capability you feel most.

Long context is also a real advantage. On the 1M-token MRCR task, V4-Pro scores 83.5, ahead of Gemini 3.1 Pro's 76.3. That gap is noticeable in real tasks.

On agent tasks, SWE Verified 80.6 is basically level with Claude Opus 4.6 (80.8), and on the public MCPAtlas leaderboard it's second only to Claude.

Weaknesses:

No native multimodality, which is V4's most obvious gap. In 2026, users assume a flagship can handle images, video, and document screenshots. V4 can't, which means in a lot of real workflows it has to be paired with another model.

It still trails closed models on some reasoning tasks. On GPQA Diamond, V4-Pro-Max scores 90.1, against 94.3 for Gemini 3.1 Pro and 93.0 for GPT-5.4. The gap is real. It shows that on the "general world knowledge + deep reasoning" line, it hasn't fully caught the strongest closed rivals.

The paper is also candid about some practical problems: strict format constraints are occasionally unstable, condensing very long text isn't as good as Claude, and the "taste" of structured output like slide decks lags behind. All of that is real.

I've always found that a technical report willing to admit its weaknesses is more credible than one claiming to "beat everything across the board."

Practical use cases

My most direct take on V4: it fits very well in a few specific places.

Large codebase analysis is the most natural one. When I used to have a model review code, I'd usually chop the files up and feed them in batches, or limit it to analyzing one module's functionality, then stitch the conclusions together myself. It was inefficient, and the model lost the global context, so it missed a lot of problems. V4's long context plus low cost means you can put a whole module in at once and get analysis that's actually based on the whole picture, not stitched together from fragments. If it can't see enough, the analysis can't go deep enough.

Internal enterprise knowledge systems are another direction. Companies are piled high with PDFs, meeting notes, and requirements docs; search can find them but can't understand them. Models like V4 are better suited to "cross-document synthesis": reconciling contradictory information across dozens of documents and pulling together the scattered thread of decisions.

Agentic coding assistants. I use Claude Code myself, and V4's coding ability has reached the point where replacing it is worth serious consideration, at a much lower cost. I'll actually test this over the next few months.

My take

After reading the V4 technical report, I came away with one strong feeling:

DeepSeek isn't catching up. It's choosing a different track and building a fully self-sufficient tech stack.

It didn't do native multimodality, didn't do voice, didn't do all kinds of flashy product integrations. It put all its effort into one thing: making "genuinely useful intelligence" more practical in both cost and architecture.

That's fundamentally different from the Silicon Valley flagship route. What OpenAI and Anthropic are doing is building as complete a general platform as possible: multimodality, voice, search, tools, safety, compliance, every base covered. What DeepSeek is doing is more like sharpening one knife to an extreme edge, then opening that knife up to the whole world as efficiently as possible.

I don't think one road is better than the other. But for the vast majority of developers and product teams, V4's route is more direct: you need a reasoning system that works reliably on real tasks, and you need to be able to afford it.

Another thing I keep thinking about: the very existence of DeepSeek is changing the industry's rules of competition. Not through the size of its funding, not through product marketing, but by consistently publishing its technical reports so the whole community can study, reproduce, and improve on them. That openness and transparency gives developers around the world a sense of security, and it's why the community kept watching for when DeepSeek V4 would ship.

Commercially this looks like a bad deal, since you're essentially teaching your competitors for free. But what it buys is trust, community, and a voice. Since R1, DeepSeek's credibility among developers has been solid. V4 just keeps that account going.

I've always believed that lasting technical influence doesn't come from whoever releases the most expensive model. It comes from whoever changes what the industry believes "should be done."

References