DeepSeek's Engram introduces conditional memory as a new dimesion of sparsity for LLMs, complementing Mixture-of-Experts by replacing expensive neural computation for static knowledge retrieval with O(1) hash-based lookups.
- Language models without Engram waste compute just for retrieval of static multi-token phrases through layers of attention – work that is structurally just a dictionary lookup. Engram addresses this with a modernised N-gram embedding table, gated by context to remain semantically relevant.
- DeepSeek discovers U-shaped sparsity allocation law, identifying ~20-25% of sparse capacity allocated to Engram as the optimal memory budget, with ~80-85% allocated to MoE.