arXiv:2610.30715cs.CLOct 2026

Manuscript Offprint

arXiv:2610.30715

Meaning Contracts: Local Semantic Geometry in Large Language Models

Andrés Daniel Godoy Ortiz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

This paper studies the local geometry of semantic meaning in large language models. Current representation analyses ask whether meanings are close in embedding space, or whether linear probes separate semantic classes, but they do not characterize the within-concept local geometry: what is invariant across realizations of a single semantic factor, what varies, and what changes when meaning is refined. This paper characterizes that geometry through two controlled probes evaluated on four architecturally diverse decoder-only LLMs (Gemma 4, Llama 3.2, Qwen 2.5, Pythia). A cross-lingual probe uses language as a perturbation to separate exact meaning matches, same-factor realizations, nearby concepts, and out-of-domain contrasts. A refinement probe separates specificity-bearing semantic narrowing from high-probability attributive elaboration and adversarial controls; both probes are validated by blind human judgments. Four findings recur across all models: once dominant variance directions are removed, sentence pairs order by semantic relatedness (same factor, then same domain, then different domain) without overlap over a band of layers; semantic factors organize around an invariant core surrounded by structured realization-specific variation; refinement produces directed displacement into tighter neighborhoods, including against controls built on the same base noun; and sentence-level versus token-local readouts expose complementary geometry—volume contraction at the sentence level, sharper anisotropic endpoints at token-local readout. We interpret these results as evidence that LLM semantics are organized as local anisotropic neighborhoods in which meaning contracts under refinement.

1 Introduction

A growing body of work has established that LLM hidden states encode semantically meaningful structure. Linear probes recover syntactic relations [Hewitt and Manning, 2019], spatial and temporal coordinates [Gurnee and Tegmark, 2024], truth values [Marks and Tegmark, 2024, Li et al., 2023], and factual associations [Hernandez et al., 2024]. The linear representation hypothesis formalizes the intuition behind these results: high-level concepts are represented as directions in activation space [Park et al., 2024, Mikolov et al., 2013, Elhage et al., 2022]. This hypothesis now underpins practical methods—representation steering [Zou et al., 2023, Turner et al., 2023], latent-space reward shaping, and safety-relevant anomaly detection—that all intervene on the geometric structure of hidden states.

Yet there is a gap between knowing that concepts have a direction and knowing what the local neighborhood around that direction looks like. Existing analyses treat semantic geometry globally: they ask whether two meanings are close, whether a probe separates classes, or whether a steering vector moves output in the intended direction. They do not characterize the local shape of the region that a semantic factor occupies: whether the factor has an invariant core or only a diffuse cloud, whether different realizations of the same meaning spread along structured directions or scatter isotropically, or what geometric signature distinguishes genuine semantic narrowing from superficial

Preprint.

lexical elaboration. Without answers to these questions, cross-lingual alignment [Cao et al., 2020, Peng and Søgaard, 2024, Wu et al., 2024, Conneau et al., 2020] tells us that representations coincide but not how semantic neighborhoods are shaped; representational change under refinement could reflect stronger meaning, lexical accumulation, or nuisance geometry; and steering interventions operate on directions whose local structure remains uncharacterized.

This paper addresses the gap with two controlled sentence-level probes evaluated on four decoder-only LLM families that differ materially in tokenizer, depth, width, attention configuration, and pretraining mixture: Pythia 2.8B [Biderman et al., 2023], Llama 3.2 3B [Grattafori et al., 2024], Qwen 2.5 3B [Yang et al., 2024], and Gemma 4 E4B [Gemma Team, 2026]. A cross-lingual semantic-neighborhood probe uses language as a controlled perturbation to separate exact meaning matches from same-factor realizations, nearby concepts, and out-of-domain contrasts. A semantic refinement probe distinguishes genuine semantic narrowing (e.g., report → audit report → environmental audit report) from matched controls that add compatible description to the same noun (report → written report → written dated report), stack near-synonyms, or hedge scope. Cross-family replication is central to the claims.

The findings in plain terms. Stated without technical vocabulary, the paper reports four observations. (1) Inside a model, sentences that mean the same thing are closer to each other than to sentences about related or unrelated topics, but this only becomes visible after removing a few dominant directions that mostly encode things like language identity. (2) Two literal translations of one sentence sit very close together, while different ways of expressing the same idea spread out around them along consistent directions. (3) When a phrase is made more specific (report → environmental audit report), its representation moves farther from the starting point and its different wordings cluster more tightly than when the phrase is merely spelled out (report → written dated report). (4) Averaging over a sentence and reading only its final token show two different aspects of this tightening.

The contributions are four empirical findings that hold across all four model families, together with the two probe datasets 1^{1}:

• Depth-local semantic order. Over a band of layers in each network, hidden states contain a semantic ordering that becomes visible once dominant high-variance directions are removed via PCA deflation [Mu and Viswanath, 2018], with behavioral consequences for cross-lingual retrieval. “Depth” refers throughout to layer depth in the network, not to the number of removed components.

• Invariant core with structured variation. Exact meaning matches are always the nearest category under covariance-weighted distance—relative to the ambient variance of the layer—surrounded by structured, realization-specific local variation.

• Refinement as directed contraction. Semantic refinement is expressed as directed displacement into tighter local neighborhoods, producing more geometric change than matched controls, including controls built on the same base noun.

• Layered readout geometry. Sentence-level and token-local readouts expose complementary aspects: neighborhood contraction at the sentence level, sharper anisotropic endpoints at token-local readout.

These findings support a view of LLM semantics as local anisotropic neighborhoods. We call the C1 region a factor's invariant core, and the refinement-specific decrease in log-volume contraction. This complements the linear representation hypothesis: where that hypothesis identifies directions, the present work describes the neighborhoods around them. A possible downstream implication, untested here, is that methods such as steering vectors [Turner et al., 2023, Zou et al., 2023], latent-space interventions [Li et al., 2023], and representation monitoring [Burns et al., 2023] could exploit not just direction but also local spread, anisotropy, and contraction as diagnostic or control signals.

1^{1}Probe datasets, analysis code and the outputs behind every figure and table: https://github.com/adgodoyo/Meaning_Contracts.

References (49)