FlashEVA: Accelerating LLM inference via Efficient Attention

Juan Gabriel Kostelec, Qinghai Guo
11/1/2025
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Transformer models have revolutionized natural language processing, achieving state-of-the-art performance and demonstrating remarkable scalability. However, their memory demands, particularly due to maintaining full context in memory, pose significant challenges for inference. In this paper, we present FlashEVA, an efficient implementation of EVA (Efficient Attention via Control Variates), and demonstrate how to finetune transformers to adapt to FlashEVA attention. Our method enables fine-tuning of Transformer models with as few as 1.5B tokens while preserving effectiveness across various downstream tasks. Notably, FlashEVA achieves up to 6.7x higher throughput and 5x lower peak GPU memory usage during inference compared to standard Transformer implementations. Despite these improvements, we observe limitations in retrieval-focused tasks. Our implementation offers control over the trade-off between throughput and accuracy through adjustable hyperparameters, providing flexibility for diverse use cases. This work represents a significant step towards more efficient and adaptable Transformer-based models for inference.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kostelec2025flasheva,
  title  = {FlashEVA: Accelerating LLM inference via Efficient Attention},
  author = {Juan Gabriel Kostelec and Qinghai Guo},
  year   = {2025},
  eprint = {2511.00576},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.00576v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.00576.svg)](https://codeofpaper.com/paper/2511.00576)

Discussion