paper-with-me

Papers

Analyzing Latent Concepts in Code Language Models

2025-10-01 · Arushi Sharma, Vedant Pungliya, Christopher J. Quinn, Ali Jannesari arxiv

Interpreting the internal behavior of large language models trained on code remains a critical challenge, particularly for applications demanding trust, transparency, and semantic robustness. We propose Code Concept Analysis (CoCoA): a global post-hoc interpretability framework that uncovers emergent lexical, syntactic, and semantic structures in a code language model's representation space by clustering contextualized token embeddings into human-interpretable concept groups. We propose a hybrid annotation pipeline that combines static analysis tool-based syntactic alignment with prompt-engineered large language models (LLMs), enabling scalable labeling of latent concepts across abstraction levels. We analyse the distribution of concepts across layers and across three finetuning tasks. Emergent concept clusters can help identify unexpected latent interactions and be used to identify trends and biases within the model's learned representations. We further integrate LCA with local attribution methods to produce concept-grounded explanations, improving the coherence and interpretability of token-level saliency. Empirical evaluations across multiple models and tasks show that LCA discovers concepts that remain stable under semantic-preserving perturbations (average Cluster Sensitivity Index, CSI = 0.288) and evolve predictably with fine-tuning. In a user study on the programming-language classification task, concept-augmented explanations disambiguated token roles and improved human-centric explainability by 37 percentage points compared with token-level attributions using Integrated Gradients.

📄 PDF Abstract BibTeX arXiv:2510.00476

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Analyzing Encoded Concepts in Transformer Language Models

2022-06-27 · NAACL 2022 7 · Hassan Sajjad, Nadir Durrani, Fahim Dalvi, Firoj Alam 외

We propose a novel framework ConceptX, to analyze how latent concepts are encoded in representations learned within pre-trained language models. It uses clustering to discover the encoded concepts and explains them by al…

Clustering

InterPLM: Discovering Interpretable Features in Protein Language Models via Sparse Autoencoders

2024-11-13 · Elana Simon, James Zou

Protein language models (PLMs) have demonstrated remarkable success in protein modeling and design, yet their internal mechanisms for predicting structure and function remain poorly understood. Here we present a systemat…

Discovering Latent Concepts Learned in BERT

2022-05-15 · ICLR 2022 4 · Fahim Dalvi, Abdul Rafae Khan, Firoj Alam, Nadir Durrani 외

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 …

Novel ConceptsPOS

Mammo-SAE: Interpreting Breast Cancer Concept Learning with Sparse Autoencoders

2025-07-21 · Krishna Kanth Nakka arxiv

Interpretability is critical in high-stakes domains such as medical imaging, where understanding model decisions is essential for clinical adoption. In this work, we introduce Sparse Autoencoder (SAE)-based interpretabil…

Vector Quantized Latent Concepts: A Scalable Alternative to Clustering-Based Concept Discovery

2026-02-02 · Xuemin Yu, Ankur Garg, Samira Ebrahimi Kahou, Hassan Sajjad arxiv

Large language models (LLMs) encode rich semantic information in their hidden states, yet it remains difficult to understand what information these internal representations capture. Latent concepts extracted from hidden …