Why Lift so Heavy? Slimming Large Language Models by Cutting Off the Layers

Shuzhou Yuan, Ercong Nie, Bolei Ma, Michael Färber
2/18/2024
cs.CL

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Large Language Models (LLMs) possess outstanding capabilities in addressing various natural language processing (NLP) tasks. However, the sheer size of these models poses challenges in terms of storage, training and inference due to the inclusion of billions of parameters through layer stacking. While traditional approaches such as model pruning or distillation offer ways for reducing model size, they often come at the expense of performance retention. In our investigation, we systematically explore the approach of reducing the number of layers in LLMs. Surprisingly, we observe that even with fewer layers, LLMs maintain similar or better performance levels, particularly in prompt-based fine-tuning for text classification tasks. Remarkably, in certain cases, models with a single layer outperform their fully layered counterparts. These findings offer valuable insights for future work aimed at mitigating the size constraints of LLMs while preserving their performance, thereby opening avenues for significantly more efficient use of LLMs.

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. 3 weaker matches are hidden by default — 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{yuan2024lift,
  title  = {Why Lift so Heavy? Slimming Large Language Models by Cutting Off the Layers},
  author = {Shuzhou Yuan and Ercong Nie and Bolei Ma and Michael Färber},
  year   = {2024},
  eprint = {2402.11700},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.11700v2}
}

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

Discussion