Is It a Free Lunch for Removing Outliers during Pretraining?

Baohao Liao, Christof Monz
2/19/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

With the growing size of large language models, the role of quantization becomes increasingly significant. However, outliers present in weights or activations notably influence the performance of quantized models. Recently, \citet{qtransformer} introduced a novel softmax function aimed at pretraining models in an outlier-free manner, thereby enhancing their suitability for quantization. Interestingly, we observed that such an approach leads to performance degradation in full precision. Building on this insight, we enhance the method by ensuring its normalization is invariant to sequence length, a crucial factor for bridging the gap between pretraining and fine-tuning. Moreover, this improved method also facilitates successful pretraining of causal language models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liao2024free,
  title  = {Is It a Free Lunch for Removing Outliers during Pretraining?},
  author = {Baohao Liao and Christof Monz},
  year   = {2024},
  eprint = {2402.12102},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.12102v1}
}

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

Discussion