NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Can LLMs facilitate interpretation of pre-trained language models?

Basel Mousi, Nadir Durrani, Fahim Dalvi · OpenReview

Abstract

Work done to uncover the knowledge encoded within pre-trained language models relies on annotated corpora or human-in-the-loop methods. However, these approaches are limited in terms of scalability and the scope of interpretation. We propose using a large language model, ChatGPT, as an annotator to enable fine-grained interpretation analysis of pre-trained language models. We discover latent concepts within pre-trained language models by applying hierarchical clustering over contextualized representations and then annotate these concepts using GPT annotations. Our findings demonstrate that ChatGPT produces accurate and semantically richer annotations compared to human-annotated concepts. Additionally, we showcase how GPT-based annotations empower interpretation analysis methodologies of which we demonstrate two: probing framework and neuron interpretation. To facilitate further exploration and experimentation in this field, we have made available a substantial ConceptNet dataset comprising 39,000 annotated latent concepts.

Introduction

Despite the ubiquity of models like BERT and RoBERTa, understanding the specific linguistic features and knowledge structures they prioritize remains a significant challenge. Traditionally, researchers have relied on "probing"—a technique that tests whether a model's internal representations contain specific information, such as parts of speech or syntactic dependencies. However, this approach is fundamentally limited by human imagination and the availability of pre-labeled datasets. If a model discovers a highly specific category—such as "Spanish male names" or "adverbs of frequency"—it may go unnoticed simply because researchers are not looking for it.

Previous attempts to discover these "latent" concepts relied on human-in-the-loop methods, which are notoriously slow, expensive, and difficult to scale. This paper addresses the "interpretability bottleneck" by proposing a pipeline that replaces human annotators with a Large Language Model (LLM), specifically ChatGPT, to automatically label the latent concepts learned by pre-trained language models (pLMs).

Methodology

The researchers developed a three-step pipeline to automate the interpretation of pLMs:

  1. Concept Discovery: Text from the WMT News 2018 dataset is passed through a pLM to extract contextualized word representations (embeddings). These embeddings are then grouped using Agglomerative Hierarchical Clustering. Each resulting cluster represents a "latent concept" that the model has internally organized.
  2. Concept Labeling: Instead of manual inspection, the word clusters are provided to ChatGPT with a zero-shot prompt: "Give a short and concise label that best describes the following list of words." For ambiguous clusters, such as lists of numbers, the researchers found that providing a small sample of context sentences (e.g., 10 examples) allowed the LLM to identify specific concepts like "Cricket Scores" rather than generic "Numerical Data."
  3. Validation: To ensure the labels are not hallucinations, the authors employ Probing Classifiers to determine if the labels can be predicted from the embeddings. They also use Neuron Analysis to identify specific neurons within the model that activate for a given concept.

The Transformers Concept-Net (TCN) Dataset

A major output of this research is the Transformers Concept-Net (TCN), a massive benchmark dataset containing 39,000 annotated concepts. This dataset spans five major architectures: BERT, RoBERTa, XLNet, ALBERT, and XLM-RoBERTa. This scale represents a significant leap over previous human-annotated datasets like the BERT Concept Net (BCN), which served as the baseline for this study.

Key Insights and Results

Superiority to Human Annotation

One of the most striking findings was that ChatGPT could provide meaningful labels for clusters that human annotators had previously dismissed as "uninterpretable." In a direct comparison with the human-annotated BCN, ChatGPT’s labels were judged to be superior or equivalent in 75.5% of cases. Furthermore, manual evaluation showed that 90.7% of ChatGPT’s labels were considered "Acceptable," with 75.1% rated as "Precise."

Granularity and Semantic Richness

LLMs proved to be more adept at identifying sub-hierarchies. While a human might label a group broadly as "Adverbs," ChatGPT could distinguish between "Adverbs of manner" and "Adverbs of frequency." This allows for a much higher resolution of model analysis. Additionally, the labels generated by the LLM were found to be more semantically descriptive than the rigid "Category:Subcategory" format typically used in human-labeled datasets.

Probing and Scalability

The validity of these automated labels was confirmed through probing classifiers, which achieved high accuracy (often >0.90). This confirms that the clusters identified and labeled by the LLM correspond to actual, distinct mathematical patterns within the pLM's internal representations. The ability to scale this analysis to 39,000 concepts across five different models demonstrates a level of throughput that is practically impossible with human labor alone.

Discussion and Limitations

While the use of LLMs as annotators offers a breakthrough in scalability, the authors identified several limitations:

  • Safety Filters: ChatGPT’s built-in content filters occasionally refused to label clusters containing sensitive content (e.g., slurs or crime-related terms). This presents a challenge for researchers attempting to use this method to study biases or toxic associations within models.
  • Static Knowledge: Because LLMs are frozen in time, they may lack the updated context required to label emerging concepts in newer models or evolving datasets.
  • Operational Costs: While more efficient than human labor, the cost and latency of API calls for tens of thousands of clusters remain a factor, though the authors suggest this is a worthwhile "one-time cost" for deep model interpretation.

Conclusion

This research demonstrates that LLMs can effectively "crack open" the black box of pre-trained language models. By automating the discovery and labeling of latent concepts, the authors have provided a scalable framework for fine-grained interpretability. The release of the Transformers Concept-Net (TCN) dataset provides a rich resource for the community to further explore the internal knowledge of modern NLP architectures.

Summary updated

BibTeX
@inproceedings{mousi2023can,
  author = {Basel Mousi and Nadir Durrani and Fahim Dalvi},
  title = {{Can LLMs facilitate interpretation of pre-trained language models?}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=nIuJXuSdhn},
}
Figure