FACET: On-the-Fly Activation Compression for Efficient Transformer Training
- 30 December 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Circuits and Systems I: Regular Papers
- Vol. 72 (8) , 4091-4102
Abstract
Training Transformer models, known for their outstanding performance in various tasks, can be challenging due to extensive training times and substantial memory requirements. One promising approach to minimize the memory footprint and accelerate training is compressing activations, which account for more than half of the total memory usage for large batch sizes. However, conventional compression schemes, such as FP8 quantization, may not adequately represent the dynamic range of Transformer activations, potentially leading to unsatisfactory accuracy. To address this issue, we propose FACET, a lightweight yet effective Transformer activation compressor and its corresponding hardware design. This compressor comprises a base-delta compression (BDC) and a bit-plane compression (BPC), targeting the exponent and sign/mantissa of activation data, respectively. The bitstreams generated by BDC and BPC are concatenated and then truncated to a target size, e.g., 8 bits per data. Experimental results with popular Transformer models (BERT, GPT-2, and T5) indicate that FACET reduces activation memory by 2- $4\times $ , with negligible accuracy degradation. We implemented our compressor in hardware and synthesized it using the 45nm TSMC process library. The encoder and decoder require 16K and 12K gate counts, respectively, exhibiting a 2.2- $3.8\times $ smaller overhead compared to other compressors. We also propose a system that integrates our compressor within memory with minimal system modifications, leveraging the small overhead of the compressor.
Keywords
Funding Information
- Samsung
- Institute of Information and Communications Technology Planning and Evaluation
- Korea Government (MSIT) (RS 2023-00228255)
- IITP
- Korea Government (MSIT) through the Artificial Intelligence Semiconductor Support Program to Nurture the Best Talents (IITP-2023-RS-2023-00256081)
- IITP
- Korea Government (MSIT) through the Information Technology Research Center (ITRC) Support Program (IITP-2024-2020-0-01461)
This publication has 21 references indexed in Scilit:
- Enabling Large Dynamic Neural Network Training with Learning-based Memory Management2024
- Quantization and Hardware Architecture Co-Design for Matrix-Vector Multiplications of Large Language ModelsIEEE Transactions on Circuits and Systems I: Regular Papers, 2024
- ASC: Adaptive Scale Feature Map Compression for Deep Neural NetworkIEEE Transactions on Circuits and Systems I: Regular Papers, 2023
- Hardware Architecture and Software Stack for PIM Based on Commercial DRAM Technology : Industrial Product2021
- Shuhai: A Tool for Benchmarking High Bandwidth Memory on FPGAsIEEE Transactions on Computers, 2021
- An Approximate Memory Architecture for Energy Saving in Deep Learning ApplicationsIEEE Transactions on Circuits and Systems I: Regular Papers, 2020
- EBPC: Extended Bit-Plane Compression for Deep Neural Network Inference and Training AcceleratorsIEEE Journal on Emerging and Selected Topics in Circuits and Systems, 2019
- Compressing DMA Engine: Leveraging Activation Sparsity for Training Deep Neural Networks2018
- Fast Error-Bounded Lossy HPC Data Compression with SZ2016
- Fixed-Rate Compressed Floating-Point ArraysIEEE Transactions on Visualization and Computer Graphics, 2014