Memory-based Language Models: An Efficient, Explainable, and Eco-friendly Approach to Large Language Modeling
Bosch, Antal van den, Patón, Ainhoa Risco, Buijse, Teun, Berck, Peter, van Gompel, Maarten
–arXiv.org Artificial Intelligence
We present memory-based language modeling as an efficient, eco-friendly alternative to deep neural network-based language modeling. It offers log-linearly scalable next-token prediction performance and strong memorization capabilities. Implementing fast approximations of k-nearest neighbor classification, memory-based language modeling leaves a relatively small ecological footprint both in training and in inference mode, as it relies fully on CPUs and attains low token latencies. Its internal workings are simple and fully transparent. We compare our implementation of memory-based language modeling, OLIFANT, with GPT-2 and GPT-Neo on next-token prediction accuracy, estimated emissions and speeds, and offer some deeper analyses of the model.
arXiv.org Artificial Intelligence
Oct-28-2025
- Country:
- Europe
- Belgium > Brussels-Capital Region
- Brussels (0.04)
- Bulgaria > Sofia City Province
- Sofia (0.04)
- Czechia > Prague (0.04)
- Germany > Berlin (0.04)
- Italy > Tuscany
- Florence (0.04)
- Netherlands > North Holland
- Amsterdam (0.04)
- Sweden > Vaestra Goetaland
- Gothenburg (0.04)
- United Kingdom > England
- Cambridgeshire > Cambridge (0.14)
- Belgium > Brussels-Capital Region
- North America > United States
- California > San Mateo County
- San Mateo (0.04)
- Massachusetts > Middlesex County
- Reading (0.04)
- New Jersey > Middlesex County
- New Brunswick (0.04)
- New Mexico > Bernalillo County
- Albuquerque (0.04)
- California > San Mateo County
- Europe
- Genre:
- Research Report > New Finding (0.93)
- Technology: