UltraMem, proposed in this paper, makes sparse LLMs run 6x faster by revolutionizing memory access patterns.
Smart memory access patterns unlock breakthrough speeds in large AI models.
UltraMem introduces a novel memory-based architecture that solves the inference speed bottleneck in sparse LLMs. It achieves 6x faster inference than Mixture of Experts (MoE) while maintaining comparable model performance through ultra-sparse memory layers and efficient memory access patterns.
-----
https://arxiv.org/abs/2411.12364
π€ Original Problem:
MoE models face significant slowdown during inference due to high memory access costs, despite their parameter efficiency. A model with 12x more parameters than dense models runs 2-6x slower in inference, varying by batch size.
-----
π§ Solution in this Paper:
β UltraMem distributes multiple small memory layers across transformer blocks instead of one large layer
β It introduces Tucker Decomposed Query-Key Retrieval (TDQKR) to improve memory access efficiency and reduce computation complexity
β Implicit Value Expansion (IVE) technique expands memory size while reducing actual memory access
β Multi-Core Scoring enhances performance by assigning multiple scores to single memory values
-----
π‘ Key Insights:
β Memory access patterns significantly impact inference speed more than parameter count
β Distributed smaller memory layers perform better than single large memory layer
β Tucker decomposition effectively reduces computation without losing performance
-----
π Results:
β 6x faster inference compared to MoE at batch size 64
β Matches 6.5B dense model performance with only 1.6B parameters
β Maintains consistent memory access as parameters scale up










