paper-with-me

Papers

LoMA: Lossless Compressed Memory Attention

2024-01-16 · Yumeng Wang, Zhenyang Xiao

Large Language Models (LLMs) face limitations due to the high demand on GPU memory and computational resources when handling long contexts. While sparsify the Key-Value (KV) cache of transformer model is a typical strategy to alleviate resource usage, it unavoidably results in the loss of information. We introduce Lossless Compressed Memory Attention (LoMA), a novel approach that enables lossless compression of the KV cache, thereby reducing the memory and computational demands during autoregressive generation. LoMA incorporates a specialized training or fine-tuning precedure alongside an autoregressive generation algorithm optimized for the compressed context. Our method compresses the KV cache after every $tc$ generated tokens with a compression ratio of $c$ and a target compressed length $t$, and this process occurs within a single inference pass without dependency on auxiliary models. We engineered an efficient training scheme involving specific inputs, attention masks, and position identifiers to instill this compression capability. Experimental validation has demonstrated that LoMA significantly reducing computational consumption and memory usage through achieving lossless KV cache compression.

📄 PDF Abstract BibTeX arXiv:2401.09486

Code (0)

등록된 구현이 없습니다.

Tasks

GPU

Methods 이 논문이 사용한 방법론

Compressed Memory Compressed Memory is a secondary FIFO memory component proposed as part of the Compressive Transformer model. The…

Similar Papers 제목 키워드 기반

ZipServ: Fast and Memory-Efficient LLM Inference with Hardware-Aware Lossless Compression

2026-03-18 · Ruibo Fan, Xiangrui Yu, Xinglin Pan, Zeyu Li 외 arxiv

Lossless model compression holds tremendous promise for alleviating the memory and bandwidth bottlenecks in bit-exact Large Language Model (LLM) serving. However, existing approaches often result in substantial inference…

Model Compression

Huff-LLM: End-to-End Lossless Compression for Efficient LLM Inference

2025-02-02 · Patrick Yubeaton, Tareq Mahmoud, Shehab Naga, Pooria Taheri 외

As they become more capable, large language models (LLMs) have continued to rapidly increase in size. This has exacerbated the difficulty in running state of the art LLMs on small, edge devices. Standard techniques advoc…

Model CompressionQuantization

Morphing-based Compression for Data-centric ML Pipelines

2025-04-15 · Sebastian Baunsgaard, Matthias Boehm

Data-centric ML pipelines extend traditional machine learning (ML) pipelines -- of feature transformations and ML model training -- by outer loops for data cleaning, augmentation, and feature engineering to create high-q…

Feature Engineering

Graph Compression: Toward a Generalized Algorithm

2022-05-09 · Preprint 2022 5 · Daniel Szelogowski

Currently, most graph compression algorithms focus on in-memory compression (such as for web graphs) – few are feasible for external compression, and there is no generalized approach to either task. These compressed repr…

EL-Attention: Memory Efficient Lossless Attention for Generation

2021-05-11 · Yu Yan, Jiusheng Chen, Weizhen Qi, Nikhil Bhendawade 외

Transformer model with multi-head attention requires caching intermediate results for efficient inference in generation tasks. However, cache brings new memory-related costs and prevents leveraging larger batch size for …

GPUQuestion GenerationQuestion-Generation