Logarithmic Memory Networks (LMNs): Efficient Long-Range Sequence Modeling for Resource-Constrained Environments
Mohamed A. Taha

TL;DR
Logarithmic Memory Networks (LMNs) introduce a hierarchical logarithmic tree structure to efficiently model long-range sequences, significantly reducing memory and computation costs for resource-constrained environments in NLP and time series tasks.
Contribution
LMNs present a novel hierarchical architecture that reduces attention complexity from O(n^2) to O(log(n)), enabling efficient long-range sequence modeling with implicit positional encoding.
Findings
Reduced memory footprint and computational complexity.
Effective long-range sequence modeling in resource-limited settings.
Open-source implementation available on GitHub.
Abstract
Long-range sequence modeling is a crucial aspect of natural language processing and time series analysis. However, traditional models like Recurrent Neural Networks (RNNs) and Transformers suffer from computational and memory inefficiencies, especially when dealing with long sequences. This paper introduces Logarithmic Memory Networks (LMNs), a novel architecture that leverages a hierarchical logarithmic tree structure to efficiently store and retrieve past information. LMNs dynamically summarize historical context, significantly reducing the memory footprint and computational complexity of attention mechanisms from O(n2) to O(log(n)). The model employs a single-vector, targeted attention mechanism to access stored information, and the memory block construction worker (summarizer) layer operates in two modes: a parallel execution mode during training for efficient processing of…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques
MethodsSoftmax · Attention Is All You Need
