The Unreasonable Ineffectiveness of the Deeper Layers

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Gromov, Andrey, Tirumala, Kushal, Shapourian, Hassan, Glorioso, Paolo, Roberts, Daniel A.
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929739347787776
author Gromov, Andrey
Tirumala, Kushal
Shapourian, Hassan
Glorioso, Paolo
Roberts, Daniel A.
author_facet Gromov, Andrey
Tirumala, Kushal
Shapourian, Hassan
Glorioso, Paolo
Roberts, Daniel A.
contents How is knowledge stored in an LLM's weights? We study this via layer pruning: if removing a certain layer does not affect model performance in common question-answering benchmarks, then the weights in that layer are not necessary for storing the knowledge needed to answer those questions. To find these unnecessary parameters, we identify the optimal block of layers to prune by considering similarity across layers; then, to "heal" the damage, we perform a small amount of finetuning. Surprisingly, with this method we find minimal degradation of performance until after a large fraction (up to half) of the layers are removed for some common open-weight models. From a scientific perspective, the robustness of these LLMs to the deletion of layers implies either that current pretraining methods are not properly leveraging the parameters in the deeper layers of the network or that the shallow layers play a critical role in storing knowledge. For our study, we use parameter-efficient finetuning (PEFT) methods, specifically quantization and Low Rank Adapters (QLoRA), such that each of our experiments can be performed on a single 40GB A100 GPU.
format Preprint
id arxiv_https___arxiv_org_abs_2403_17887
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle The Unreasonable Ineffectiveness of the Deeper Layers
Gromov, Andrey
Tirumala, Kushal
Shapourian, Hassan
Glorioso, Paolo
Roberts, Daniel A.
Computation and Language
Machine Learning
How is knowledge stored in an LLM's weights? We study this via layer pruning: if removing a certain layer does not affect model performance in common question-answering benchmarks, then the weights in that layer are not necessary for storing the knowledge needed to answer those questions. To find these unnecessary parameters, we identify the optimal block of layers to prune by considering similarity across layers; then, to "heal" the damage, we perform a small amount of finetuning. Surprisingly, with this method we find minimal degradation of performance until after a large fraction (up to half) of the layers are removed for some common open-weight models. From a scientific perspective, the robustness of these LLMs to the deletion of layers implies either that current pretraining methods are not properly leveraging the parameters in the deeper layers of the network or that the shallow layers play a critical role in storing knowledge. For our study, we use parameter-efficient finetuning (PEFT) methods, specifically quantization and Low Rank Adapters (QLoRA), such that each of our experiments can be performed on a single 40GB A100 GPU.
title The Unreasonable Ineffectiveness of the Deeper Layers
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2403.17887