# deepseek-ai/engram

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/deepseek-ai-engram).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

4,462 stars · 341 forks · Python · Apache-2.0

## Links

- GitHub: https://github.com/deepseek-ai/Engram
- awesome-repositories: https://awesome-repositories.com/repository/deepseek-ai-engram.md

## Description

Engram is a dynamic knowledge retrieval system and memory augmentation framework for large language models. It functions as a scalable memory lookup layer and sparse architecture component designed to fuse static model knowledge with dynamic external states to improve factuality and reduce hallucinations.

The system utilizes conditional memory retrieval and differentiable memory addressing to map input tokens to specific indices within a large-scale associative memory store. This allows the model to increase its total available parameters by storing weights in external lookup tables and activating only the relevant knowledge segments for a given input.

The framework covers model sparsity optimization and scalable augmentation, using key-value retrieval and dynamic parameter fusion to enhance performance on specialized tasks without requiring a full retraining of the network.

## Tags

### Artificial Intelligence & ML

- [Knowledge Retrieval Systems](https://awesome-repositories.com/f/artificial-intelligence-ml/knowledge-retrieval-systems.md) — Implements a system for accessing stored information by fusing static weights with scalable lookup mechanisms.
- [Memory Storage and Retrieval Systems](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-architectures/memory-management-systems/long-term-memory-stores/hybrid-short-and-long-term-memory/memory-storage-and-retrieval-systems.md) — Combines static memory with dynamic states to improve knowledge retrieval and manage data sparsity. ([source](https://cdn.jsdelivr.net/gh/deepseek-ai/engram@main/README.md))
- [Learned Memory Augmentations](https://awesome-repositories.com/f/artificial-intelligence-ml/attention-mechanisms/attention-memory-optimizations/learned-memory-augmentations.md) — Fuses static knowledge with dynamic states to improve retrieval and increase sparsity in large language models.
- [Differentiable Memory Addressing](https://awesome-repositories.com/f/artificial-intelligence-ml/content-addressable-neural-memory/differentiable-memory-addressing.md) — Uses differentiable memory addressing to learn optimal mappings between input tokens and memory indices.
- [Parameter State Fusion](https://awesome-repositories.com/f/artificial-intelligence-ml/feature-fusion-architectures/dynamic-feature-fusion/parameter-state-fusion.md) — Fuses static weights with dynamic memory states to adapt the model's knowledge for each input.
- [Dynamic Memory Integration](https://awesome-repositories.com/f/artificial-intelligence-ml/large-language-models/dynamic-memory-integration.md) — Expands the knowledge capacity of language models by integrating dynamic external memory states during inference.
- [Model Sparsity](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-inference-serving/inference-optimization/model-sparsity.md) — Reduces computational overhead by using conditional memory lookups to increase structural sparsity.
- [External Memory Scaling](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-inference-serving/inference-optimization/model-sparsity/external-memory-scaling.md) — Increases total available parameters by storing weights in external lookup tables instead of active layers.
- [Conditional Weight Retrieval](https://awesome-repositories.com/f/artificial-intelligence-ml/memory-bank-architectures/conditional-weight-retrieval.md) — Implements a conditional memory lookup mechanism to retrieve specific weights based on input tokens.
- [Sparse Model Architectures](https://awesome-repositories.com/f/artificial-intelligence-ml/sparse-model-architectures.md) — Optimizes memory usage by implementing an architecture that activates only relevant knowledge segments.
- [Associative Weight Retrieval](https://awesome-repositories.com/f/artificial-intelligence-ml/associative-weight-retrieval.md) — Provides a query-based lookup mechanism to retrieve specific weight vectors from an associative memory store.
- [Embedding-to-Memory Mapping](https://awesome-repositories.com/f/artificial-intelligence-ml/context-memory-management/memory-indexes/embedding-to-memory-mapping.md) — Maps input embeddings to specific memory locations to retrieve relevant weights during the forward pass.
- [Memory-Based Augmentation](https://awesome-repositories.com/f/artificial-intelligence-ml/language-model-orchestration/large-language-models/tool-augmented-language-models/memory-based-augmentation.md) — Enhances performance on specialized tasks using external memory modules without requiring full network retraining.
- [Embedding Lookup Layers](https://awesome-repositories.com/f/artificial-intelligence-ml/vector-embeddings/dense-embeddings/token-embedding-layers/embedding-lookup-layers.md) — Provides a scalable lookup layer for conditional memory retrieval of external knowledge.
