Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Difan Jiao, Yilun Liu, Zhenwei Tang, Daniel Matter, J\"urgen Pfeffer, Ashton Anderson• 2023

Related benchmarks

TaskDatasetResultRank
Text ClassificationSST-2 (test)
Accuracy95.64
185
Text ClassificationIMDB
Accuracy96.06
107
Text ClassificationEDOS (test)
Macro F1 Score81.48
17
Showing 3 of 3 rows

Other info

Code

Follow for update