paper-with-me

홈 › Papers

Neurons in Large Language Models: Dead, N-gram, Positional

2023-09-09 · Elena Voita, Javier Ferrando, Christoforos Nalmpantis

We analyze a family of large language models in such a lightweight manner that can be done on a single GPU. Specifically, we focus on the OPT family of models ranging from 125m to 66b parameters and rely only on whether an FFN neuron is activated or not. First, we find that the early part of the network is sparse and represents many discrete features. Here, many neurons (more than 70% in some layers of the 66b model) are "dead", i.e. they never activate on a large collection of diverse data. At the same time, many of the alive neurons are reserved for discrete features and act as token and n-gram detectors. Interestingly, their corresponding FFN updates not only promote next token candidates as could be expected, but also explicitly focus on removing the information about triggering them tokens, i.e., current input. To the best of our knowledge, this is the first example of mechanisms specialized at removing (rather than adding) information from the residual stream. With scale, models become more sparse in a sense that they have more dead neurons and token detectors. Finally, some neurons are positional: them being activated or not depends largely (or solely) on position and less so (or not at all) on textual data. We find that smaller models have sets of neurons acting as position range indicators while larger models operate in a less explicit manner.

📄 PDF Abstract BibTeX arXiv:2309.04827

Code (0)

등록된 구현이 없습니다.

Tasks

GPUPosition

Methods 이 논문이 사용한 방법론

Focus 설명 없음
OPT OPT is a suite of decoder-only pre-trained transformers ranging from 125M to 175B parameters. The model uses an AdamW optimizer and weight decay of 0.1. It follows a linear…

Similar Papers 제목 키워드 기반

Compositional Explanations of Neurons

2020-06-24 · NeurIPS 2020 12 · Jesse Mu, Jacob Andreas

We describe a procedure for explaining neurons in deep representations by identifying compositional logical concepts that closely approximate neuron behavior. Compared to prior work that uses atomic labels as explanation…

image-classificationImage ClassificationNatural Language Inference

Associative memory and dead neurons

2024-10-02 · Vladimir Fanaskov, Ivan Oseledets

In "Large Associative Memory Problem in Neurobiology and Machine Learning," Dmitry Krotov and John Hopfield introduced a general technique for the systematic construction of neural ordinary differential equations with no…

Superseding Model Scaling by Penalizing Dead Units and Points with Separation Constraints

2019-09-25 · Carles Riera, Camilo Rey-Torres, Eloi Puertas, Oriol Pujol

In this article, we study a proposal that enables to train extremely thin (4 or 8 neurons per layer) and relatively deep (more than 100 layers) feedforward networks without resorting to any architectural modification suc…

Synaptic Stripping: How Pruning Can Bring Dead Neurons Back To Life

2023-02-11 · Tim Whitaker, Darrell Whitley

Rectified Linear Units (ReLU) are the default choice for activation functions in deep neural networks. While they demonstrate excellent empirical performance, ReLU activations can fall victim to the dead neuron problem. …

Beyond Natural Language Perplexity: Detecting Dead Code Poisoning in Code Generation Datasets

2025-02-27 · Chichien Tsai, ChiaMu Yu, Yingdar Lin, Yusung Wu 외

The increasing adoption of large language models (LLMs) for code-related tasks has raised concerns about the security of their training datasets. One critical threat is dead code poisoning, where syntactically valid but …

Code GenerationCode Search