Skip to main content
QUICK REVIEW

[Paper Review] Discovering Latent Concepts Learned in BERT

Fahim Dalvi, Abdul Rafae Khan|arXiv (Cornell University)|May 15, 2022
Natural Language Processing TechniquesComputer Science18 citations
TL;DR

This paper proposes an unsupervised method to discover latent concepts in BERT by clustering contextualized representations, revealing novel, non-predefined concepts such as animal hierarchies and demographic groups. The key contribution is the release of BCN, a new BERT ConceptNet dataset with 174 concept labels and 1 million annotated instances, enabling model-centric interpretation and benchmarking of learned representations across layers.

ABSTRACT

A large number of studies that analyze deep neural network models and their ability to encode various linguistic and non-linguistic concepts provide an interpretation of the inner mechanics of these models. The scope of the analyses is limited to pre-defined concepts that reinforce the traditional linguistic knowledge and do not reflect on how novel concepts are learned by the model. We address this limitation by discovering and analyzing latent concepts learned in neural network models in an unsupervised fashion and provide interpretations from the model's perspective. In this work, we study: i) what latent concepts exist in the pre-trained BERT model, ii) how the discovered latent concepts align or diverge from classical linguistic hierarchy and iii) how the latent concepts evolve across layers. Our findings show: i) a model learns novel concepts (e.g. animal categories and demographic groups), which do not strictly adhere to any pre-defined categorization (e.g. POS, semantic tags), ii) several latent concepts are based on multiple properties which may include semantics, syntax, and morphology, iii) the lower layers in the model dominate in learning shallow lexical concepts while the higher layers learn semantic relations and iv) the discovered latent concepts highlight potential biases learned in the model. We also release a novel BERT ConceptNet dataset (BCN) consisting of 174 concept labels and 1M annotated instances.

Motivation & Objective

  • To identify latent concepts in BERT that are not constrained by pre-defined linguistic categories such as POS or semantic tags.
  • To analyze how these discovered concepts align with or diverge from classical linguistic hierarchies.
  • To study the evolution of latent concepts across BERT’s layers, particularly in terms of lexical vs. semantic learning.
  • To uncover potential biases embedded in the model through the structure and content of discovered concepts.
  • To provide a new benchmark dataset (BCN) for model interpretation and future research in interpretability of NLP models.

Proposed method

  • Apply hierarchical clustering to contextualized BERT token representations to group semantically and syntactically related words into concept clusters.
  • Manually annotate each cluster with descriptive labels based on linguistic and semantic relations, forming a multi-facet concept taxonomy.
  • Use a combination of linguistic features (POS, semantic tags, morphology) and distributional similarity to guide and validate cluster interpretation.
  • Analyze concept distribution across BERT’s layers to assess the progression from shallow lexical to deeper semantic representations.
  • Construct the BERT ConceptNet (BCN) dataset by aggregating 1 million annotated instances across 174 fine-grained concept labels.
  • Leverage existing NLP tools (e.g., spaCy, LIWC, SemEval tags) to enrich feature space and improve cluster interpretability.

Experimental results

Research questions

  • RQ1What types of latent concepts are learned by BERT beyond pre-defined linguistic categories?
  • RQ2How do the discovered latent concepts compare to established linguistic hierarchies such as parts-of-speech or semantic role labels?
  • RQ3How do the representations of latent concepts evolve across the layers of BERT, particularly in terms of lexical vs. semantic complexity?
  • RQ4To what extent do the discovered concepts reflect societal biases or non-linguistic knowledge such as demographic or animal groupings?
  • RQ5How can the discovered latent concepts be used to improve model interpretability and serve as a benchmark for future research?

Key findings

  • BERT learns novel, non-predefined concepts such as hierarchical groupings in the animal kingdom and demographic categories, which do not strictly align with traditional linguistic tags.
  • Lower layers of BERT primarily encode shallow lexical and morphological concepts, such as word forms and case patterns, while higher layers capture complex semantic relations.
  • Higher-layer representations show stronger alignment with linguistically motivated concepts, indicating a progression from form to meaning across the network depth.
  • The discovered latent concepts reveal potential biases, such as stereotypical associations in demographic or named entity clusters, highlighting ethical concerns in model behavior.
  • The BCN dataset contains 174 fine-grained concept labels and 1 million annotated instances, forming a comprehensive benchmark for model interpretation.
  • Clusters often reflect multiple linguistic properties—semantics, syntax, and morphology—demonstrating that latent concepts are multi-faceted and not reducible to single-dimensional features.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.