Model Internal Sleuthing: Finding Lexical Identity and Inflectional Features in Modern Language Models

Michael Li, Nishant Subramani
6/2/2025
6 citations
cs.CLcs.LG
transformer-attention

Official code: ml5885/model_internal_sleuthing (1 star, Python, last commit 2026-03-16).

Abstract

Large transformer-based language models dominate modern NLP, yet our understanding of how they encode linguistic information relies primarily on studies of early models like BERT and GPT-2. We systematically probe 25 models from BERT Base to Qwen2.5-7B focusing on two linguistic properties: lexical identity and inflectional features across 6 diverse languages.

Show full abstract

We find a consistent pattern: inflectional features are linearly decodable throughout the model, while lexical identity is prominent early but increasingly weakens with depth. Further analysis of the representation geometry reveals that models with aggressive mid-layer dimensionality compression show reduced steering effectiveness in those layers, despite probe accuracy remaining high. Pretraining analysis shows that inflectional structure stabilizes early while lexical identity representations continue evolving. Taken together, our findings suggest that transformers maintain inflectional features across layers, while trading off lexical identity for compact, predictive representations. Our code is available at https://github.com/ml5885/model_internal_sleuthing

View on arXivView PDF

Code Implementations(1)

Code for the paper - Model Internal Sleuthing: Finding Lexical Identity and Inflectional Morphology in Modern Language Models

10Python, Jupyter NotebookMar 18, 20258 months ago

Similar Papers

Cite this paper

@article{li2025model,
  title  = {Model Internal Sleuthing: Finding Lexical Identity and Inflectional Features in Modern Language Models},
  author = {Michael Li and Nishant Subramani},
  year   = {2025},
  eprint = {2506.02132},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.02132v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.02132.svg)](https://codeofpaper.com/paper/2506.02132)

Discussion