Saved in:
Bibliographic Details
Main Authors: Kostelec, Juan Gabriel, Guo, Qinghai
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.00576
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909881981730816
author Kostelec, Juan Gabriel
Guo, Qinghai
author_facet Kostelec, Juan Gabriel
Guo, Qinghai
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2511_00576
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle FlashEVA: Accelerating LLM inference via Efficient Attention
Kostelec, Juan Gabriel
Guo, Qinghai
Computation and Language
Artificial Intelligence
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.
title FlashEVA: Accelerating LLM inference via Efficient Attention
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2511.00576