Capsule Lens: Locating and Tracking Concept Geometry in Model Representations
Organizations: Indian Institute of Technology (ISM) Dhanbad · The Chinese University of Hong Kong · National University of Singapore
Abstract
Understanding how concepts are encoded in the internal representations of machine learning models is a central problem in mechanistic interpretability, essential both for the science of deep learning and for the trustworthy deployment of increasingly capable models. Existing approaches to interpret model representations mainly map representations onto more interpretable spaces and do not directly characterize how concepts occupy representation space; various hypotheses have been proposed, but often lack of rigorous validation and largely focus on static representations. In this work, we introduce Capsule Lens, a framework that matches the region a concept occupies with a simple, trackable geometric form, a capsule, defined by several interpretable parameters, fitted in closed form to each concept's geometry and validated on held-out samples. We apply Capsule Lens in two major settings: static and dynamic representations. On static representations, we demonstrate how to locate concept geometry across various models, and how the span and norm curves uncover important geometric characteristics. On dynamic representations, we present three case studies tracking representation drifts induced by distinct training settings, CLIP pretraining, RL post-training on visual question answering, and RL post-training on mathematical reasoning. These analyses reveal qualitatively different geometric dynamics, ranging from broad network-wide restructuring in CLIP pretraining to localized and concept-specific changes in RL post-training. Our results include findings aligned with existing literature as well as novel observations. We believe Capsule Lens stands as a promising tool for locating, analyzing, and tracking concept geometry in both static and dynamic representations.
Figures & tables
| Metric | Definition | Interpretation |
|---|---|---|
| rotation of the concept axis | ||
| widening ( ) or narrowing ( ) of angular spread | ||
| expansion or contraction of the norm band | ||
| shift of the upper norm bound | ||
| shift of the lower norm bound |
| Model | Component | Type | Layers | Capsules | Cov. | Std. | Dis. | Std. |
|---|---|---|---|---|---|---|---|---|
| CLIP ViT-B/32 | image enc. | visual | 13 | 13,000 | 0.941 | 0.048 | 0.551 | 0.093 |
| CLIP ViT-L/14 | image enc. | visual | 25 | 25,000 | 0.941 | 0.048 | 0.533 | 0.073 |
| Qwen2-VL-2B | ViT | visual | 32 | 32,000 | 0.946 | 0.045 | 0.504 | 0.013 |
| Qwen2-VL-2B | LLM | visual | 28 | 28,000 | 0.947 | 0.044 | 0.507 | 0.016 |
| LLaVA-1.5-7B | ViT (patch) | visual | 24 | 24,000 | 0.934 | 0.051 | 0.506 | 0.015 |
| LLaVA-1.5-7B | ViT (CLS) | visual | 24 | 24,000 | 0.941 | 0.047 | 0.530 | 0.070 |
| Shape | Params | Coverage | Angular | Norm | Separable | |
|---|---|---|---|---|---|---|
| Capsule | 0.943 | 0.583 | ✓ | ✓ | ✓ | |
| Cone | 0.975 | 0.578 | ✓ | |||
| Ball | 0.970 | 0.568 | ✓ | ✓ | ||
| Band | 0.962 | 0.514 | ✓ | |||
| Box | 0.653 | ✓ | ✓ |
Appendix figures & tables22 assets
Supplementary material from the paper’s appendix.
Appendix
| Coverage | ||||||||
|---|---|---|---|---|---|---|---|---|
| Model | Component | |||||||
| CLIP ViT-B/32 | image enc. | 0.879 | 0.942 | 0.972 | 0.146 | 0.175 | 0.0107 | 0.0027 |
| CLIP ViT-L/14 | image enc. | 0.882 | 0.943 | 0.972 | 0.214 | 0.265 | 0.0142 | 0.0036 |
| Qwen2-VL-2B | ViT | 0.884 | 0.943 | 0.971 | 0.412 | 0.530 | 0.0277 | 0.0072 |
| Qwen2-VL-2B | LLM | 0.894 | 0.947 | 0.973 | 0.398 | 0.478 | 0.0176 | 0.0044 |
| LLaVA-1.5-7B | ViT (patch) | 0.852 | 0.932 | 0.968 | 0.646 | 0.745 | 0.0739 | 0.0198 |
| Shape | Cov. | Cov. | Cov. | Cov. | Cov. | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Capsule | 0.943 | 0.583 | 0.855 | 0.620 | 0.769 | 0.641 | 0.686 | 0.658 | 0.609 | 0.673 |
| Cone | 0.975 | 0.578 | 0.918 | 0.614 | 0.862 | 0.635 | 0.805 | 0.651 | 0.750 | 0.665 |
| Ball | 0.977 | 0.568 | 0.922 | 0.601 | 0.865 | 0.620 | 0.811 | 0.635 | 0.757 | 0.649 |
| Band | 0.962 | 0.514 | 0.916 | 0.521 | 0.867 | 0.526 | 0.818 | 0.529 | 0.769 | 0.532 |
| Box | 0.012 | 0.653 | 0.003 | 0.456 | 0.003 | 0.890 | 0.002 | 1.000 | 0.002 | 1.000 |
| Concept | Target mode | Steered generation |
|---|---|---|
| church | institution | “a community of all the members of Christ… authority in the Church” |
| church | building | “a big, old building… red door with a clock on it” |
| plant | factory | “a facility for processing… waste gas emissions for steel production” |
| plant | organism | “long, bushy stems… grow up to 10 inches tall in their garden” |
| state | nation | “located in the United States… population” |
| state | condition | “the state of a system… an evolving and dynamic one” |
| Modality | Direction | Generation |
|---|---|---|
| Text | church home | Base: “a place of worship… pray, sing hymns” |
| Steered: “a place where people can relax and enjoy comfort…” | ||
| Text | cell plant | Base: “a small unit of life… DNA and proteins” |
| Steered: “it has its own life… doesn’t need anything else to grow” | ||
| Vision | dog cat | Base: “two dogs resting on a cushion in a car” |
| Steered: “two cats resting on a fluffy surface…” |
Neural Network Interpretability
Neural network interpretability studies how models represent information and make predictions, and how to explain, test, or control their internal computations.
See all 330 papers