EmbBERT: Attention Under 2 MB Memory
Not on the map. Why?
Abstract (arXiv)
Transformer architectures based on the attention mechanism have revolutionized natural language processing (NLP), driving major breakthroughs across virtually every NLP task. However, their substantial memory and computational requirements still hinder deployment on ultra-constrained devices such as wearables and Internet-of-Things (IoT) units, where available memory is limited to just a few megabytes. To address this challenge, we introduce EmbBERT, a tiny language model (TLM) architecturally designed for extreme efficiency. The model integrates a compact embedding layer, streamlined feed-forward blocks, and an efficient attention mechanism that together enable optimal performance under strict memory budgets. Through this redesign for the extreme edge, we demonstrate that highly simplified transformer architectures remain remarkably effective under tight resource constraints. EmbBERT requires only 2 MB of total memory, and achieves accuracy performance comparable to the ones of state-of-the-art (SotA) models that require a 10× memory budget. Extensive experiments on the curated TinyNLP benchmark and the GLUE suite confirm that EmbBERT achieves competitive accuracy, comparable to that of larger SotA models, and consistently outperforms downsized versions of BERT and MAMBA of similar size. Furthermore, we demonstrate the model resilience to 8-bit quantization, which further reduces memory usage to just 781 kB , and the scalability of the EmbBERT architecture across the sub-megabyte to tens-of-megabytes range. Finally, we perform an ablation study demonstrating the positive contributions of all components and the pre-training procedure. All code, scripts, and checkpoints are publicly released to ensure reproducibility: https://github.com/RiccardoBravin/tiny-LLM.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 21 of its 47 references that are in the map. First posted on arXiv 14 Feb 2025.
Builds on
21 of 47 references.
References · 21
- 2017Attention Is All You Needcited by 59,932
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
- 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 798
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
9 more
- 2021A White Paper on Neural Network Quantizationcited by 453
- 2020MCUNet: Tiny Deep Learning on IoT Devicescited by 269
- 2021I-BERT: Integer-only BERT Quantizationcited by 250
- 2019Benchmarking Natural Language Understanding Services for building Conversational Agentscited by 166
- 2023Machine Learning for Synthetic Data Generation: A Reviewcited by 118
- 2020ConvBERT: Improving BERT with Span-based Dynamic Convolutioncited by 88
- 2024Tiny Machine Learning: Progress and Futurescited by 40
- 2024On-Device Domain Learning for Keyword Spotting on Low-Power Extreme Edge Embedded Systemscited by 13
- 2020MicroNet: Towards Image Recognition with Extremely Low FLOPscited by 9
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025EdgeInfinite: A Memory-Efficient Infinite-Context Transformer for Edge Devices
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems
- 2025End-to-End Transformer Acceleration Through Processing-in-Memory Architectures
- 2026Revisiting the Shape Convention of Transformer Language Models
- 2026Keyless Attention: Value-Space Routing and Value-Only Caching for Efficient Transformers
- 2025Pretraining with hierarchical memories: separating long-tail and common knowledge
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer
- 2025Large Language Model Partitioning for Low-Latency Inference at the Edge