---
title: 'DeepSeek Just Fixed One of the Biggest Problems With AI'
source: 'https://youtube.com/watch?v=DmtoVnTkQnM'
video_id: 'DmtoVnTkQnM'
date: 2026-07-24
duration_sec: 586
channel: 'Two Minute Papers'
---

# DeepSeek Just Fixed One of the Biggest Problems With AI

> Source: [DeepSeek Just Fixed One of the Biggest Problems With AI](https://youtube.com/watch?v=DmtoVnTkQnM)

## Summary

Modern AI systems like ChatGPT and Gemini inefficiently reconstruct knowledge from scratch for every query, akin to a chef planting peanuts to make a sandwich. DeepSeek's Engram introduces a lookup mechanism that acts as a 'pantry,' storing precomputed facts for quick retrieval, dramatically improving efficiency and performance.

### Key Points

- **Inefficiency of Current AI** [00:00] — AI systems like ChatGPT and Gemini lack a simple lookup mechanism, forcing them to recompute facts from scratch each time, wasting compute resources.
- **DeepSeek Engram Introduction** [01:44] — DeepSeek's Engram provides a 'pantry' for AI, allowing it to retrieve precomputed ingredients instead of generating everything from scratch, improving efficiency.
- **Unexpected Performance Gain** [02:15] — Replacing some complex reasoning parts (Mixture of Experts) with Engram actually makes the AI smarter, reducing loss significantly.
- **Context-Aware Gating** [02:58] — Engram includes a context-aware gating mechanism that checks retrieved memory against current context, discarding irrelevant information (e.g., 'rotting fish in strawberry jam').
- **Universal Improvement** [03:39] — The Engram technique improves performance on every benchmark compared to previous methods, a rare result in AI research.
- **How Engram Works** [04:58] — Engram uses n-gram embeddings combined with multi-head hashing to quickly look up relevant precomputed information based on input phrases.
- **Brain Specialization** [05:51] — When Engram is disabled, trivia ability drops 70% but reading comprehension remains at 93%, showing the AI splits fact storage from reasoning.
- **Limitations and Future** [07:04] — Engram works best when placed early in the network; if too deep, it loses accuracy. The technique promises cheaper, smarter, locally-run AI systems.

### Conclusion

DeepSeek's Engram is a simple yet revolutionary lookup mechanism that makes AI both more efficient and smarter, potentially becoming a standard component in future AI systems.

## Transcript

Few people know, but modern AI systems are&nbsp; really silly. How? Well, imagine having a&nbsp;&nbsp; Michelin-star chef being asked for a simple peanut&nbsp; butter sandwich. That’s weird, but okay. Now,&nbsp;&nbsp;
the chef says, you’ll need to wait just a bit,&nbsp; because I am going to start planting peanuts,&nbsp;&nbsp; wait six months, harvest, churn some peanut&nbsp; butter, and then get to work on your bread.&nbsp;&nbsp;
That sounds really silly, and that is exactly&nbsp; what modern AI systems like ChatGPT and Gemini do. When they need to recall a simple&nbsp; fact, like who Alexander the Great was,&nbsp;&nbsp;
something crazy happens. They&nbsp; go through complex reasoning&nbsp;&nbsp; layers and reconstruct everything from&nbsp; scratch every single time. That is crazy. Now I have an amazing research paper for you&nbsp; here from folks at DeepSeek AI, and this is a&nbsp;&nbsp;
piece of technology that might underpin most if&nbsp; not all of the amazing AI systems of the future.&nbsp;&nbsp; Now every now and then we are going to look at a&nbsp; figure, but for the rest, I am going to bring my&nbsp;&nbsp;
physics simulations and all the goodness we&nbsp; talk about around here. Apologies for that. Okay, so this is a massive waste of&nbsp; compute. But why does this happen? Well,&nbsp;&nbsp;
standard transformers are a kind of neural&nbsp; network that is inside nearly all modern AI&nbsp;&nbsp; assistants. And here is the problem: they lack&nbsp; a simple and cheap way to just look things up.
Whatever the question is, the answer is a huge&nbsp; bunch of dense mathematical calculations. From&nbsp;&nbsp; scratch. Yes, it is literally planting&nbsp; that peanut when you ask for a sandwich.
Now in this work, DeepSeek introduces&nbsp; Engram. With this, they are giving our&nbsp;&nbsp; tired little chef a pantry. Cutting&nbsp; edge technology brother! Instead of&nbsp;&nbsp;
growing that peanut butter sandwich&nbsp; from scratch, it now just grabs the&nbsp;&nbsp; ingredients from the pantry. I’ll explain&nbsp; to you how exactly they did it in a bit. Now, this makes the AI way more efficient, okay,&nbsp; I expected that. But, what? Are you seeing what&nbsp;&nbsp;
I am seeing? Now this I did not expect at all.&nbsp; So here comes the surprise. Now hold on to your&nbsp;&nbsp; papers Fellow Scholars, because when taking away&nbsp; some of the AI's complex reasoning parts, known as&nbsp;&nbsp;
mixture of experts, MoE. Then, replacing it with&nbsp; the pantry actually makes the AI smarter. Lower&nbsp;&nbsp; is better here on the loss curves. And not just a&nbsp; little, this is significantly smarter. Those dots&nbsp;&nbsp;
dipping way down show that this hybrid chef makes&nbsp; far fewer mistakes than previous techniques. It&nbsp;&nbsp; achieves a perfect balance of active cooking&nbsp; and just grabbing from the pantry. Genius.
But that is not the only surprising thing in this&nbsp; paper. They also added a way for the AI to check&nbsp;&nbsp; the ingredients before using them. You don’t&nbsp; want rotting fish in your strawberry jam. To&nbsp;&nbsp;
ensure this, they created a context-aware gating&nbsp; mechanism. The current context is the dish being&nbsp;&nbsp; cooked. Now here, this is compared against the&nbsp; retrieved memory, the jar from the pantry. If&nbsp;&nbsp;
the jar's contents don’t agree with the dish,&nbsp; the gate drops to zero, throwing the ingredient&nbsp;&nbsp; away. Bye bye rotting fish! This mechanism lives&nbsp; right here, inside this jolly little dot product.
Now let’s see how it actually performs against&nbsp; the current systems. I’ll tell you exactly what&nbsp;&nbsp; is going to happen now. What happens in nearly&nbsp; all research papers with something new. It&nbsp;&nbsp;
does something, it is compared to previous&nbsp; methods, and it’s better at some things,&nbsp;&nbsp; worse at others. And then you sit down and you&nbsp; do your analysis. Okay, let’s see…wait what? What&nbsp;&nbsp;
just happened here? The new engram technique&nbsp; makes the neural network better…everywhere.&nbsp;&nbsp; Absolutely everything is measurably&nbsp; better. This is an absolute miracle work.
The engram model is actually better&nbsp; on every single benchmark compared to&nbsp;&nbsp; Now this is an amazing life lesson too. How? Well,&nbsp;&nbsp;
essentially what DeepSeek does is&nbsp; automates the easy part, and focuses&nbsp;&nbsp; on the more difficult tasks. No wonder it&nbsp; works so well! What a time to be alive! We&nbsp;&nbsp;
can learn so much from these research papers,&nbsp; and not just about AI, but about life itself. Okay, now I’ll tell you how this works, and&nbsp; it turns out, there are more surprises ahead.&nbsp;&nbsp;
Dear Fellow Scholars, this is Two Minute&nbsp; Papers with Dr. Károly Zsolnai-Fehér. Okay, so how does it do this magic?&nbsp; Well, it uses what they call n-gram&nbsp;&nbsp; embeddings combined with multi-head hashing.&nbsp; Okay, what the heck does that mean? Well,&nbsp;&nbsp;
in the kitchen, the chef looks at the order&nbsp; ticket, sees a 3-word phrase, and instantly&nbsp;&nbsp; knows exactly which shelf in the pantry has&nbsp; the premade sauce, and grabs it quickly.
And I think this also shows us that there are&nbsp; simple and basic ideas in AI that we haven’t&nbsp;&nbsp; found yet. I mean, this thing is basically&nbsp; a look up table. It is as simple as it gets,&nbsp;&nbsp;
and it makes everything more efficient and&nbsp; better across the board. Just think about it:&nbsp;&nbsp; we removed 20 or 25% of the smart&nbsp; experts in this little virtual brain,&nbsp;&nbsp;
put a spreadsheet there, and it&nbsp; got better! I mean what? Crazy. And I love how we have a little&nbsp; better understanding of the AI&nbsp;&nbsp; system itself. Usually, no one&nbsp; knows what is going on inside,&nbsp;&nbsp;
but here. Look. When they switched off&nbsp; the engram memory during testing, the&nbsp;&nbsp; AI’s ability to answer trivia went down 70%. But&nbsp; its reading comprehension remained at 93%. Why?&nbsp;&nbsp;
Well I think this shows that AI split its brain,&nbsp; and it’s using the new part just to store facts. Just think about it. When they locked the&nbsp; pantry door during testing his ability to&nbsp;&nbsp;
understand a recipe stayed at a massive&nbsp; 93%! What does that mean? It shows the&nbsp;&nbsp; chef split the work perfectly. He used&nbsp; the pantry strictly as a storage shelf&nbsp;&nbsp;
for memorized ingredients, but he&nbsp; can still cook an amazing meal. I think this is going to lead to even&nbsp; cheaper and even smarter AI systems,&nbsp;&nbsp; and this will be an important part of why we will&nbsp; all get more systems that we can actually own,&nbsp;&nbsp;
no subscriptions, these run in our&nbsp; pockets super fast, mostly for free. Okay, now not even this technique is perfect.&nbsp; One limitation is that if you put the engram&nbsp;&nbsp; module too deep in the network, it gets less&nbsp; accurate because the model has already wasted&nbsp;&nbsp;
time processing what is being asked. Of course,&nbsp; there is no need to look up what you already&nbsp;&nbsp; computed. I think this is common sense at this&nbsp; point. Our chef has to check the pantry at the&nbsp;&nbsp;
start of the shift. If he checks it after the&nbsp; food was served, the pantry is completely useless. A really advanced research paper explained&nbsp; in simple words. We are Fellow Scholars,&nbsp;&nbsp;
and that’s what we do here. And we have a growing&nbsp; club. I’ll continue in a moment, but you know&nbsp;&nbsp; who is also watching us? The one and only Larry&nbsp; Wheels. Yes. He is one of our OG Fellow Scholars,&nbsp;&nbsp;
doing some Scholarly work between two hard sets&nbsp; of bicep curls in the gym. You think I am kidding?&nbsp;&nbsp; I am not. Link is in the description. Reading his comment made me instantly&nbsp;&nbsp;
more muscular. So much value. Huge respect&nbsp; to Mr. Wheels! Honored to have you here. And here comes the best part. I think this&nbsp; will be a part of every major AI system,&nbsp;&nbsp;
and it is knowledge out there for free for all&nbsp; of us, and now you know exactly how it works!&nbsp;&nbsp; No nonsense where everything is hidden&nbsp; in a proprietary system that costs&nbsp;&nbsp; 300 dollars per month to run. Nope. All&nbsp; free for all of us. Glorious. An epic paper.
Now, as our chef does, I took a bit longer&nbsp; to cook this video. But I promise that I did&nbsp;&nbsp; not put together my computer from scratch&nbsp; before starting. So I took some more time&nbsp;&nbsp;
to make sure you get a better video. If you feel&nbsp; this is the right way of doing that, subscribe,&nbsp;&nbsp; hit the bell and leave a really kind comment.&nbsp; And you can also check out Lambda with our link&nbsp;&nbsp;
in the description because it is an excellent&nbsp; way of running DeepSeek privately, I do it too.
