Cross-Layer Discrete Concept Discovery for Interpreting Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Garg, Ankur, Yu, Xuemin, Sajjad, Hassan, Kahou, Samira Ebrahimi
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912487473938432
author Garg, Ankur
Yu, Xuemin
Sajjad, Hassan
Kahou, Samira Ebrahimi
author_facet Garg, Ankur
Yu, Xuemin
Sajjad, Hassan
Kahou, Samira Ebrahimi
contents Uncovering emergent concepts across transformer layers remains a significant challenge because the residual stream linearly mixes and duplicates information, obscuring how features evolve within large language models. Current research efforts primarily inspect neural representations at single layers, thereby overlooking this cross-layer superposition and the redundancy it introduces. These representations are typically either analyzed directly for activation patterns or passed to probing classifiers that map them to a limited set of predefined concepts. To address these limitations, we propose cross-layer VQ-VAE (CLVQ-VAE), a framework that uses vector quantization to map representations across layers and in the process collapse duplicated residual-stream features into compact, interpretable concept vectors. Our approach uniquely combines top-k temperature-based sampling during quantization with EMA codebook updates, providing controlled exploration of the discrete latent space while maintaining code-book diversity. We further enhance the framework with scaled-spherical k-means++ for codebook initialization, which clusters by directional similarity rather than magnitude, better aligning with semantic structure in word embedding space.
format Preprint
id arxiv_https___arxiv_org_abs_2506_20040
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Cross-Layer Discrete Concept Discovery for Interpreting Language Models
Garg, Ankur
Yu, Xuemin
Sajjad, Hassan
Kahou, Samira Ebrahimi
Machine Learning
Artificial Intelligence
Computation and Language
Uncovering emergent concepts across transformer layers remains a significant challenge because the residual stream linearly mixes and duplicates information, obscuring how features evolve within large language models. Current research efforts primarily inspect neural representations at single layers, thereby overlooking this cross-layer superposition and the redundancy it introduces. These representations are typically either analyzed directly for activation patterns or passed to probing classifiers that map them to a limited set of predefined concepts. To address these limitations, we propose cross-layer VQ-VAE (CLVQ-VAE), a framework that uses vector quantization to map representations across layers and in the process collapse duplicated residual-stream features into compact, interpretable concept vectors. Our approach uniquely combines top-k temperature-based sampling during quantization with EMA codebook updates, providing controlled exploration of the discrete latent space while maintaining code-book diversity. We further enhance the framework with scaled-spherical k-means++ for codebook initialization, which clusters by directional similarity rather than magnitude, better aligning with semantic structure in word embedding space.
title Cross-Layer Discrete Concept Discovery for Interpreting Language Models
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2506.20040