Scaling up Discovery of Latent Concepts in Deep NLP Models

Majd Hawasly, Fahim Dalvi, Nadir Durrani
8/20/2023
11 citations
cs.CL

Official code: qcri/Latent_Concept_Analysis (0 stars, Python, MIT, last commit 2024-01-30).

Abstract

Despite the revolution caused by deep NLP models, they remain black boxes, necessitating research to understand their decision-making processes. A recent work by Dalvi et al. (2022) carried out representation analysis through the lens of clustering latent spaces within pre-trained models (PLMs), but that approach is limited to small scale due to the high cost of running Agglomerative hierarchical clustering.

Show full abstract

This paper studies clustering algorithms in order to scale the discovery of encoded concepts in PLM representations to larger datasets and models. We propose metrics for assessing the quality of discovered latent concepts and use them to compare the studied clustering algorithms. We found that K-Means-based concept discovery significantly enhances efficiency while maintaining the quality of the obtained concepts. Furthermore, we demonstrate the practicality of this newfound efficiency by scaling latent concept discovery to LLMs and phrasal concepts.

View on arXivView PDF

Code Implementations(1)

MIT

The code repository of "Scaling up Discovery of Latent Concepts in Deep NLP Models", Majd Hawasly, Fahim Dalvi and Nadir Durrani, EACL 2024

00Python, ShellJan 29, 20242 years agoMIT

Similar Papers

Cite this paper

@article{hawasly2023scaling,
  title  = {Scaling up Discovery of Latent Concepts in Deep NLP Models},
  author = {Majd Hawasly and Fahim Dalvi and Nadir Durrani},
  year   = {2023},
  eprint = {2308.10263},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.10263v2}
}

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

Discussion