Predicting Linear Relational Decodability Without the Relation
Organizations: Center for Information and Language Processing (CIS), LMU Munich · Ubiquitous Knowledge Processing Lab (UKP Lab), TU Darmstadt · Munich Center for Machine Learning (MCML) · relAI – Konrad Zuse School of Excellence in Reliable AI
Abstract
Linear relational embeddings (LREs) approximate a language model's subject-to-object mapping with an affine function. Their faithfulness varies enormously across relations, from near zero for person_father to the ceiling for country_capital_city. We investigate the factors that contribute to this variation and demonstrate that it can be significantly predicted from a readout that is not aware of the underlying relation. To do so, we propose a novel form of the Jacobian lens, the entity lens. Whereas the Jacobian lens is estimated across all tokens and concepts, the entity lens EL_t is trained to predict what the model will output for an entity of type t under the neutral prompt "{} is known for"; e.g., we train ELs for countries and persons. After estimating an entity lens, we measure how highly it ranks the model's answer for a relation without using any relation-specific information in estimation and prediction. Across 28 relations of the LRE dataset on Olmo-3-7B this relation-agnostic score correlates with LRE faithfulness at (p < .01). This suggests that linear decodability is largely a property of what a subject's representation already carries, rather than of the relation being decoded. Moving the unit of analysis from the relation to the individual fact, we conclude that new relation datasets and analysis methods are needed to address several problems in existing datasets, most prominently semantically weak first tokens (e.g., most predicted universities' first token is "University") and reference competition (e.g., the LLM confuses obscure actor names with competing non-actor entities that have the same last name). Our full pipeline is available at https://github.com/jonasrohw/entity-lens
Figures & tables
| relation | prom. | gold lens | |
|---|---|---|---|
| city_in_country | 0.96 | 0.71 | 24 |
| person_plays_pro_sport | 0.69 | 0.36 | 318 |
| landmark_in_country | 0.56 | 0.30 | 836 |
| star_constellation | 0.48 | 0.06 | 361 |
| person_university | 0.32 | 0.00 | 91 |
| country_capital_city | 0.29 | 0.42 | 24 |
| median rank of | median rank of “French” | |||
|---|---|---|---|---|
| reference set | CEL | NEL | CEL | NEL |
| 8 non-French | 1.62 | 1.81 | 47 | 64 |
| 8 from other relations | 1.88 | 1.72 | 102 | 70 |
| 4 French, 4 non-French | 1.93 | 1.79 | 115 | 82 |
| 8 French | 2.72 | 1.71 | 665 | 55 |
| subject term | controls | |||||
|---|---|---|---|---|---|---|
| relation | own | foreign | NEL | anchor alone | wrong donor | |
| country_capital_city | 22 | 12 | 12 | 7 | 0 | 0 |
| country_largest_city | 22 | 12 | 8 | 4 | 0 | 0 |
| person_plays_position | 24 | 19 | 21 | 18 | 7 | 6 |
| person_plays_pro_sport | 24 | 22 | 21 | 21 | 6 | 3 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Contrastive entity lens | Noncontrastive entity lens | Logit lens | Differential logit lens | Attribute rate |
|---|---|---|---|---|---|
| OLMo 3 7B | |||||
| GPT-J 6B ∗ | |||||
| Mistral 7B | |||||
| Gemma 2 9B | |||||
| Qwen3 8B Base ∗ | |||||
| Qwen3.8 27B ∗ |
| Frequency measure | Spearman | -value |
|---|---|---|
| Marginal frequencies | ||
| Subject frequency, | ||
| Object frequency, | ||
| Co-occurrence | ||
| Joint frequency, | ||
| Mean of | ||
| Qwen3 8B Base: prompt wording and prefix | |
|---|---|
| Neutral prompt | |
| {s} is known for | |
| {s} | |
| {s} is | |
| {s} can be described as | |
| Information about {s}: | |
| relation | own | foreign | NEL | currency | anchor alone | wrong donor | |
|---|---|---|---|---|---|---|---|
| country_capital_city | 22 | 12 | 12 | 7 | 6 | 0 | 0 |
| country_largest_city | 22 | 12 | 8 | 4 | 5 | 0 | 0 |
| person_plays_position | 24 | 19 | 21 | 18 | – | 7 | 6 |
| person_plays_pro_sport | 24 | 22 | 21 | 21 | – | 6 | 3 |
| arm | capital (22) | largest (22) | position (24) | sport (24) |
|---|---|---|---|---|
| own | 10.7 (10–14) | 11.3 (10–12) | 18.3 (17–20) | 22.0 (21–23) |
| foreign | 9.7 (9–11) | 9.3 (8–10) | 17.3 (15–21) | 20.4 (16–23) |
| NEL | 5.2 (1–8) | 4.6 (4–5) | 14.7 (7–20) | 21.5 (16–24) |
| anchor alone | 0.0 (0–1) | 0.0 (0–0) | 7.0 (7–7) | 4.5 (1–7) |
| relation | faith. | ||
|---|---|---|---|
| country_language ∗ | 1.7 | 1.00 | |
| name_birthplace | 3.9 | 0.97 | |
| name_religion | 6.2 | 0.97 | |
| person_plays_pro_sport | 63.6 | 0.95 | |
| landmark_on_continent | 189.4 | 0.92 | |
| country_largest_city ∗ | 1.0 | 0.92 |
LLM Interpretability
Large language model (LLM) interpretability studies how internal representations and computations produce outputs, and how they can be explained or controlled.
See all 776 papers