Towards Compositionality in Concept Learning

Adam Stein, Aaditya Naik, Yinjun Wu, Mayur Naik, Eric Wong
6/26/2024
cs.CLcs.LG

Official code: adaminsky/compositional_concepts (15 stars, MIT, last commit 2024-06-02).

Abstract

Concept-based interpretability methods offer a lens into the internals of foundation models by decomposing their embeddings into high-level concepts. These concept representations are most useful when they are compositional, meaning that the individual concepts compose to explain the full sample. We show that existing unsupervised concept extraction methods find concepts which are not compositional. To automatically discover compositional concept representations, we identify two salient properties of such representations, and propose Compositional Concept Extraction (CCE) for finding concepts which obey these properties. We evaluate CCE on five different datasets over image and text data. Our evaluation shows that CCE finds more compositional concept representations than baselines and yields better accuracy on four downstream classification tasks. Code and data are available at https://github.com/adaminsky/compositional_concepts .

View on arXivView PDF

Code Implementations(1)

MIT

Code for the CCE algorithm proposed in "Towards Compositionality in Concept Learning" at ICML 2024.

151Shell, PythonJun 2, 20242 years agoMIT
compositionalityconceptsinterpretabilitymachine-learning

Similar Papers

Cite this paper

@article{stein2024towards,
  title  = {Towards Compositionality in Concept Learning},
  author = {Adam Stein and Aaditya Naik and Yinjun Wu and Mayur Naik and Eric Wong},
  year   = {2024},
  eprint = {2406.18534},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.18534v1},
  journal = {ICML 2024 2024}
}

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

Discussion