Mitigating Outlier Activations in Low-Precision Fine-Tuning of Language Models

Alireza Ghaffari, Justin Yu, Mahsa Nejad, Masoud Asgharian, Boxing Chen, Vahid Partovi Nia

2024

Abstract

Low-precision fine-tuning of language models has gained prominence as a cost-effective and energy-efficient approach to deploying large-scale models in various applications. However, this approach is susceptible to the existence of outlier values in activation. The outlier values in the activation can negatively affect the performance of fine-tuning language models in the low-precision regime since they affect the scaling factor and thus make representing smaller values harder. This paper investigates techniques for mitigating outlier activation in low-precision integer fine-tuning of the language models. Our proposed novel approach enables us to represent the outlier activation values in 8-bit integers instead of floating-point ( FP16) values. The benefit of using integers for outlier values is that it enables us to use operator tiling to avoid performing 16-bit integer matrix multiplication to address this problem effectively. We provide theoretical analysis and supporting experiments to demonstrate the effectiveness of our approach in improving the robustness and performance of low-precision fine-tuned language models.

Download


Paper Citation


in Harvard Style

Ghaffari A., Yu J., Nejad M., Asgharian M., Chen B. and Partovi Nia V. (2024). Mitigating Outlier Activations in Low-Precision Fine-Tuning of Language Models. In Proceedings of the 13th International Conference on Pattern Recognition Applications and Methods - Volume 1: ICPRAM; ISBN 978-989-758-684-2, SciTePress, pages 478-484. DOI: 10.5220/0012567700003654


in Bibtex Style

@conference{icpram24,
author={Alireza Ghaffari and Justin Yu and Mahsa Nejad and Masoud Asgharian and Boxing Chen and Vahid Partovi Nia},
title={Mitigating Outlier Activations in Low-Precision Fine-Tuning of Language Models},
booktitle={Proceedings of the 13th International Conference on Pattern Recognition Applications and Methods - Volume 1: ICPRAM},
year={2024},
pages={478-484},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0012567700003654},
isbn={978-989-758-684-2},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 13th International Conference on Pattern Recognition Applications and Methods - Volume 1: ICPRAM
TI - Mitigating Outlier Activations in Low-Precision Fine-Tuning of Language Models
SN - 978-989-758-684-2
AU - Ghaffari A.
AU - Yu J.
AU - Nejad M.
AU - Asgharian M.
AU - Chen B.
AU - Partovi Nia V.
PY - 2024
SP - 478
EP - 484
DO - 10.5220/0012567700003654
PB - SciTePress