English

SPIN: Sparsifying and Integrating Internal Neurons in Large Language Models for Text Classification

Machine Learning 2024-06-06 v2 Artificial Intelligence Computation and Language

Abstract

Among the many tasks that Large Language Models (LLMs) have revolutionized is text classification. Current text classification paradigms, however, rely solely on the output of the final layer in the LLM, with the rich information contained in internal neurons largely untapped. In this study, we present SPIN: a model-agnostic framework that sparsifies and integrates internal neurons of intermediate layers of LLMs for text classification. Specifically, SPIN sparsifies internal neurons by linear probing-based salient neuron selection layer by layer, avoiding noise from unrelated neurons and ensuring efficiency. The cross-layer salient neurons are then integrated to serve as multi-layered features for the classification head. Extensive experimental results show our proposed SPIN significantly improves text classification accuracy, efficiency, and interpretability.

Keywords

Cite

@article{arxiv.2311.15983,
  title  = {SPIN: Sparsifying and Integrating Internal Neurons in Large Language Models for Text Classification},
  author = {Difan Jiao and Yilun Liu and Zhenwei Tang and Daniel Matter and Jürgen Pfeffer and Ashton Anderson},
  journal= {arXiv preprint arXiv:2311.15983},
  year   = {2024}
}

Comments

17 pages, 7 figures, 12 tables Code available at https://github.com/difanj0713/SPIN

R2 v1 2026-06-28T13:32:55.326Z