Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime Requantization

Jungi Lee, Wonbeom Lee, Jaewoong Sim
6/16/2024
cs.LGcs.AR

No official code found. Best implementation: snu-comparch/Tender (34 stars, last commit 2024-07-04).

Abstract

Large language models (LLMs) demonstrate outstanding performance in various tasks in machine learning and have thus become one of the most important workloads in today's computing landscape. However, deploying LLM inference poses challenges due to the high compute and memory requirements stemming from the enormous model size and the difficulty of running it in the integer pipelines. In this paper, we present Tender, an algorithm-hardware co-design solution that enables efficient deployment of LLM inference at low precision. Based on our analysis of outlier values in LLMs, we propose a decomposed quantization technique in which the scale factors of decomposed matrices are powers of two apart. The proposed scheme allows us to avoid explicit requantization (i.e., dequantization/quantization) when accumulating the partial sums from the decomposed matrices, with a minimal extension to the commodity tensor compute hardware. Our evaluation shows that Tender achieves higher accuracy and inference performance compared to the state-of-the-art methods while also being significantly less intrusive to the existing accelerators.

View on arXivView PDF

Code Implementations(1)

Tender: Accelerating Large Language Models via Tensor Decompostion and Runtime Requantization (ISCA'24)

341Shell, PythonJul 3, 20242 years ago

Similar Papers

Cite this paper

@article{lee2024tender,
  title  = {Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime Requantization},
  author = {Jungi Lee and Wonbeom Lee and Jaewoong Sim},
  year   = {2024},
  eprint = {2406.12930},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.12930v1}
}

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/2406.12930.svg)](https://codeofpaper.com/paper/2406.12930)

Discussion