Invariant Features in Language Models: Geometric Characterization and Model Attribution
Agnibh Dasgupta, Abdullah All Tanvir, Xin Zhong
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Interpretability & Model Adaptation › Transformer Interpretability · Type: new method · Keywords: invariant features, language models, geometric characterization, model attribution, semantic invariance, contrastive subspace
Areas: Interpretability › Mechanistic Interpretability › Mechanistic Interpretability
Summary
We propose a contrastive subspace discovery method that characterizes invariant latent features in language models and enables zero-shot model attribution.
Explained to a 5-year-old
Language models are computer programs that understand words. They keep the meaning of words in special hidden spots that don’t change much. We found a way to look at those hidden spots and tell which changes are just noise and which change the meaning. Using those special spots, we can guess which model wrote a particular answer without seeing the model. This helps us understand how computers think about language.
Explained to a 5-year-old, longer
Language models are like smart assistants that read and write text. They have secret places inside them where they store what words mean. Sometimes the same meaning can be written in many different ways, like synonyms. The model is good at handling these different ways without changing the meaning. We wanted to understand why this happens and how the model does it. We looked at the secret places and saw that similar meanings form little groups. Inside these groups, some directions are just noise, like background chatter. Other directions keep the real meaning safe, even when the words change. We created a way to separate the noise from the meaning using a special technique. This technique helps us see which parts of the model are important for meaning. With this knowledge, we can tell which model wrote a particular piece of text. This makes it easier to understand how computers understand language.
For a technical reader
Language models store meaning in internal representations that remain stable even when the input wording changes. By viewing these representations as points in a geometric space, we can identify subspaces that preserve semantic content and others that capture irrelevant variations. The proposed technique uses contrastive learning to separate these subspaces, allowing us to isolate the parts of the model that truly affect meaning. This separation enables zero-shot attribution, letting us determine which model produced a given output based on its unique geometric patterns. The findings provide both a theoretical understanding of model invariance and a practical tool for model debugging and provenance.
Problem
Understanding how semantic invariance is represented in language models and how to separate semantic-preserving from semantic-changing variations in model representations.
Method
The approach introduces a local geometric framework where semantically equivalent inputs occupy structured regions in latent space, identifies invariant subspaces that preserve semantic identity, and uses contrastive learning to separate nuisance variations from semantic changes.
Results
The approach finds invariant structure in specific depth regions, shows that semantic displacement lies outside the nuisance subspace, and demonstrates that invariant components causally influence outputs, while also achieving accurate zero-shot model attribution.
Contributions
The paper provides a geometric characterization of invariant latent features, a contrastive method to separate semantic-preserving from semantic-changing variations, and applies invariant representations to zero-shot model attribution.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction