paper-with-me

Papers

AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems

2023-01-23 · Yuan Feng, Hyeran Jeon, Filip Blagojevic, Cyril Guyot, Qing Li, Dong Li

Transformer models gain popularity because of their superior inference accuracy and inference throughput. However, the transformer is computation-intensive, causing a long inference time. The existing works on transformer inference acceleration have limitations caused by either the modification of transformer architectures or the need of specialized hardware. In this paper, we identify the opportunities of using memoization to accelerate the self-attention mechanism in transformers without the above limitations. Built upon a unique observation that there is rich similarity in attention computation across inference sequences, we build a memoization database that leverages the emerging big memory system. We introduce a novel embedding technique to find semantically similar inputs to identify computation similarity. We also introduce a series of techniques such as memory mapping and selective memoization to avoid memory copy and unnecessary overhead. We enable 22% inference-latency reduction on average (up to 68%) with negligible loss in inference accuracy.

📄 PDF Abstract BibTeX arXiv:2301.09262

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Accelerating String-Key Learned Index Structures via Memoization-based Incremental Training

2024-03-18 · Minsu Kim, Jinwoo Hwang, Guseul Heo, Seiyeon Cho 외

Learned indexes use machine learning models to learn the mappings between keys and their corresponding positions in key-value indexes. These indexes use the mapping information as training data. Learned indexes require f…

CPU

ClipFormer: Key-Value Clipping of Transformers on Memristive Crossbars for Write Noise Mitigation

2024-02-04 · Abhiroop Bhattacharjee, Abhishek Moitra, Priyadarshini Panda

Transformers have revolutionized various real-world applications from natural language processing to computer vision. However, traditional von-Neumann computing paradigm faces memory and bandwidth limitations in accelera…

Accelerating NMT Batched Beam Decoding with LMBR Posteriors for Deployment

2018-04-30 · NAACL 2018 6 · Gonzalo Iglesias, William Tambellini, Adrià De Gispert, Eva Hasler 외

We describe a batched beam decoding algorithm for NMT with LMBR n-gram posteriors, showing that LMBR techniques still yield gains on top of the best recently reported results with Transformers. We also discuss accelerati…

NMT

The Sharpness Disparity Principle in Transformers for Accelerating Language Model Pre-Training

2025-02-26 · Jinbo Wang, Mingze Wang, Zhanpeng Zhou, Junchi Yan 외

Transformers consist of diverse building blocks, such as embedding layers, normalization layers, self-attention mechanisms, and point-wise feedforward networks. Thus, understanding the differences and interactions among …

Language ModelingLanguage ModellingLarge Language Model

Atleus: Accelerating Transformers on the Edge Enabled by 3D Heterogeneous Manycore Architectures

2025-01-16 · Pratyush Dhingra, Janardhan Rao Doppa, Partha Pratim Pande

Transformer architectures have become the standard neural network model for various machine learning applications including natural language processing and computer vision. However, the compute and memory requirements in…

Model CompressionQuantization