{"id":767260,"date":"2026-09-11T12:52:09","date_gmt":"2026-09-11T12:52:09","guid":{"rendered":"https:\/\/www.newsbeep.com\/uk\/767260\/"},"modified":"2026-09-11T12:52:09","modified_gmt":"2026-09-11T12:52:09","slug":"deepseeks-new-model-sets-a-template-for-powerful-llms-that-run-lean","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/uk\/767260\/","title":{"rendered":"DeepSeek&#8217;s new model sets a template for powerful LLMs that run lean"},"content":{"rendered":"<p>Chinese AI darling DeepSeek unveiled an updated version of its cost-and-latency-optimized Flash model on Thursday, with a new version 4.1 that includes\u00a0architectural improvements more significant than you would expect in a point release because the changes might open the door to larger, smarter, and less resource-intensive models.<\/p>\n<p>At 763 billion parameters, the <a href=\"https:\/\/huggingface.co\/deepseek-ai\/DeepSeek-V4.1-Flash\" target=\"_blank\" rel=\"nofollow noopener\">point release<\/a> is more than 2.5x the size of the model it replaces. In fact, the model is larger than the V3 and R1 models that put DeepSeek on the map back in early 2025.<\/p>\n<p>Despite its ginormous parameter count, DeepSeek V4.1 Flash\u2019s memory requirements aren\u2019t nearly as high as you\u2019d expect for a model of its size. Under the hood, DeepSeek&#8217;s devs have made numerous architectural changes that see the LLM become smarter while dramatically reducing the resources necessary to serve it.<\/p>\n<p>DeepSeek has managed this through two key improvements. First, it made significant changes to how the model handles the key-value (KV) caches used to track model state across multiple sessions. These so-called KV caches can be quite memory-hungry, particularly in high-throughput applications like chatbots.<\/p>\n<p>Updates to the model\u2019s various attention mechanisms and the introduction of a new causal encoder-decoder (CED) enabled the devs to improve prompt processing performance while cutting KV cache consumption to between 13 percent and 25 percent of DeepSeek V4 Flash&#8217;s requirements.<\/p>\n<p>In other words, the V4.1 release can support four to eight times as many users in the same KV cache footprint.\u00a0<\/p>\n<p>DeepSeek\u2019s <a href=\"https:\/\/huggingface.co\/deepseek-ai\/DeepSeek-V4.1-Flash\/blob\/main\/DeepSeek_V41_Tech_Report.pdf\" target=\"_blank\" rel=\"nofollow noopener\">technical report<\/a> goes into far greater detail on the architectural changes, but arguably the most interesting change is the introduction of a different kind of model weight.<\/p>\n<p>Of its 763 billion parameters, 196 billion are N-gram parameters that form what DeepSeek&#8217;s developers refer to as a \u201cconditional memory module.\u201d The idea is that by decoupling memory from computation, DeepSeek can make its models smarter while also reducing the compute and memory resources required to serve them.<\/p>\n<p>What the heck is an N-gram?<\/p>\n<p>The big idea behind DeepSeek\u2019s V4.1 Flash\u2019s memory module is similar in many respects to Per-Layer Embedding (PLE) tech originally <a href=\"https:\/\/ai.google.dev\/gemma\/docs\/gemma-3n\" target=\"_blank\" rel=\"nofollow noopener\">developed by Google<\/a>\u2019s Gemma team. The goal with PLE was to get LLMs to be smart enough to run usefully on devices with constrained bandwidth, memory, and compute \u2013 like smartphones.<\/p>\n<p>DeepSeek\u2019s implementation, first detailed in a January <a href=\"https:\/\/aclanthology.org\/2026.acl-long.226.pdf\" target=\"_blank\" rel=\"nofollow noopener\">research paper,<\/a> trades PLE embeddings for N-grams. At a high level, N-grams are just groups of tokens. A three-gram would be three tokens in a row, a two-gram would be two, and so forth.\u00a0<\/p>\n<p>As complicated as that might sound, it actually works a bit like word or phrase association.<\/p>\n<p>If you were asked: &#8220;Find the parameter of a right triangle when only two sides are known.&#8221; For those of you for whom geometry isn&#8217;t too distant of a memory, the phrases &#8220;use the pythagorean theorem&#8221; or &#8220;A2\u00a0+ B2\u00a0= C2&#8221; or perhaps &#8220;the perimeter would be the sum of its sides&#8221; might immediately pop to mind.<\/p>\n<p>The N-gram parameters found in models like DeepSeek V4.1 Flash are similar in concept. The weights are a source of implicit knowledge or ingrained memory. Rather than just calculating which combination of tokens have the highest probability of answering the question, as LLMs have traditionally done, the N-gram weights supplement this by quickly surfacing relevant information through a cheap lookup.<\/p>\n<p>This is a gross oversimplification of what&#8217;s going on under the hood. In fact, the model isn&#8217;t looking up the prompt so much as a series of hashes. These are numbers representing &#8220;Find the parameter,&#8221; &#8220;right triangle,&#8221; and so on.\u00a0 Similarly, the contents of the lookup table aren&#8217;t raw responses. They&#8217;re another mathematical representation, called vectors, which get fed into the inference pipeline.\u00a0<\/p>\n<p>However, the end result is the same: The model can provide smarter, more nuanced answers without the performance penalty normally associated with additional parameters.<\/p>\n<p>What makes N-grams so cheap<\/p>\n<p>The relationship between model size and intelligence is well established at this point. The reason DeepSeek\u2019s n-gram parameters are so interesting is actually related to how the data is accessed.<\/p>\n<p>As a general rule, modern LLMs are autoregressive during decode. That means for every token a chatbot or agent generates, the entirety of the model\u2019s active weights have to be read from memory, making bandwidth the limiting factor.<\/p>\n<p>As we\u2019ve previously <a href=\"https:\/\/www.theregister.com\/software\/2025\/05\/25\/devs-are-finally-getting-serious-about-efficiency\/305206\" target=\"_blank\" rel=\"nofollow noopener\">discussed<\/a>, architectural changes, like the rise of mixture of expert models or ultra-low precision <a href=\"https:\/\/www.theregister.com\/software\/2025\/08\/10\/openai-gpt-oss-llms-use-mxfp4-smaller-faster-cheaper\/1460892\" target=\"_blank\" rel=\"nofollow noopener\">block-floating point datatypes<\/a>, have helped to minimize this bottleneck. But the N-gram weights found in DeepSeek V4.1 Flash work a bit differently.<\/p>\n<p>They offer a way of effectively increasing the number of parameters available to the model during inference without a proportionate increase in memory pressure.<\/p>\n<p>These N-gram weights are essentially enormous look up tables (LUTs). This makes them fast and cheap to query, since unlike the rest of the model\u2019s active parameters, they don\u2019t need to be read in their entirety from memory each time a token is generated. It\u2019s just a few dozen table lookups per token.<\/p>\n<p>This has a couple of implications for memory access, but the big one is that those n-gram weights don\u2019t have to be crammed into GPU memory to maintain performance. They can be offloaded to system RAM or, possibly even a sufficiently speedy storage array.<\/p>\n<p>So what does that mean in practice? If you look at DeepSeek V4.1 Flash, the model would normally need a minimum of 763 GB of GPU memory to hold the weights at FP8.<\/p>\n<p>However, since those n-gram weights can be offloaded to cheaper system memory, we can get away with around 567 GB of GPU memory.\u00a0<\/p>\n<p>We emphasize the minimum here, because in production those numbers are going to be substantially higher since we also need to take into account key-value caches, which scale with context length and concurrent users.\u00a0<\/p>\n<p>During inference, those N-gram weights supplement the eight billion active parameters DeepSeek uses to\u00a0process a prompt, in theory increasing the accuracy and quality of the output in the process. <\/p>\n<p>It\u2019s important to note at this point that the n-gram weights don\u2019t actually increase the active parameter count. Instead, they function more like an oddly specific encyclopedia that almost instantly opens relevant pages as the model processes prompts.<\/p>\n<p>The future of open LLMs<\/p>\n<p>While DeepSeek\u2019s latest model may have one of the largest pools of N-gram parameters yet, it\u2019s not the only model developer betting on tech to make deploying larger models more efficient.\u00a0<\/p>\n<p>As mentioned earlier, Google is already employing a similar approach using PLE to offload less bandwidth-sensitive weights to local storage. So far, it&#8217;s only been applied to tiny models \u2014 at least that we know of (it&#8217;s not like Google is particularly transparent about its proprietary models). <\/p>\n<p>Meanwhile, late last month, Alibaba <a href=\"https:\/\/qwen.ai\/blog?id=qwen3.8-flash-next\" target=\"_blank\" rel=\"nofollow noopener\">revealed<\/a> its latest experimental model codenamed Qwen 3.8-Flash-Next.\u00a0Much like DeepSeek V4.1 Flash, the 180 billion-parameter model featured a large 51 billion-parameter pool of N-gram weights for much the same reason. In fact, the model&#8217;s N-gram implementation uses techniques from the same research published by the DeepSeek team back in January.<\/p>\n<p>According to Alibaba, Qwen 3.8-Flash-Next&#8217;s architectural underpinnings will form the foundation of its next generation of Qwen 4 models when they arrive. <\/p>\n<p>Which means, like it or not, this probably won\u2019t be the last time you hear about N-grams. \u00ae<\/p>\n","protected":false},"excerpt":{"rendered":"Chinese AI darling DeepSeek unveiled an updated version of its cost-and-latency-optimized Flash model on Thursday, with a new&hellip;\n","protected":false},"author":2,"featured_media":767261,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[554,733,4308,86,56,54,55],"class_list":["post-767260","post","type-post","status-publish","format-standard","has-post-thumbnail","category-artificial-intelligence","tag-ai","tag-artificial-intelligence","tag-artificialintelligence","tag-technology","tag-uk","tag-united-kingdom","tag-unitedkingdom"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/767260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/comments?post=767260"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/posts\/767260\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media\/767261"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/media?parent=767260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/categories?post=767260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/uk\/wp-json\/wp\/v2\/tags?post=767260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}