---
title: "Is anisotropy really the cause of BERT embeddings not being"
description: "Fuster Baggetto and Fresno test whether BERT’s vectors crowding into similar directions explains why their distances can misrepresent…"
canonical: "https://research.elamur.ai/free/en/papers/baggetto-2022-is-anisotropy-really-cause-bert/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/baggetto-2022-is-anisotropy-really-cause-bert/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Is anisotropy really the cause of BERT embeddings not being semantic?

# Is anisotropy really the cause of BERT embeddings not being semantic?

Paper · 2022 · Alejandro Fuster Baggetto and Victor Fresno

**Authors:** Alejandro Fuster Baggetto and Victor Fresno · **Year:** 2022 · **Venue:** Findings of the Association for Computational Linguistics: EMNLP 2022 · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **6** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/baggetto-2022-is-anisotropy-really-cause-bert/cited-by/) · Findings of the Association for Computational Linguistics: EMNLP 2022 · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2022.findings-emnlp.314/)
- [PDF](https://aclanthology.org/2022.findings-emnlp.314.pdf)
- [DOI 10.18653/v1/2022.findings-emnlp.314](https://doi.org/10.18653/v1/2022.findings-emnlp.314)

## Summary

A useful sentence embedding puts sentences with similar meanings near each other. This lets a system encode each sentence once and compare the resulting vectors as needed. Yet simply averaging the contextual [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) from [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) gives a weak measure of [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/). One proposed explanation is anisotropy: many vectors point in similar directions, so even unrelated text can yield a high cosine similarity. Fuster Baggetto and Fresno ask whether this crowding actually explains why those similarity scores sometimes disagree with human judgments.

The authors measure the two properties separately. They use text sampled from Wikipedia to ask how strongly embeddings point in similar directions, and the Semantic Textual Similarity Benchmark to ask whether cosine scores put sentence pairs in the same order as human ratings. The measures can disagree. In uncased BERT, using the special classification token as the sentence vector produces a more isotropic representation than averaging token vectors, yet that representation gives a much weaker ranking of sentence pairs. When the two base BERT variants receive lower-case text and use the same averaging procedure, the cased variant is described as around 50% more anisotropic on the geometry measure and still performs better on the similarity benchmark. Supervised [SimCSE](https://md.research.elamur.ai/free/en/papers/gao-2021-simcse-simple-contrastive-learning-sentence/) gives the strongest agreement with human judgments among the encoders compared, although the unsupervised variant has more isotropic embeddings.

The authors also look inside the averages. Stopwords, punctuation, sub-words, and capitalization can distinguish groups of token vectors in ways that extend beyond meaning. The authors test what happens when they leave selected token vectors out of the sentence average after BERT has read the complete text. Excluding stopwords or punctuation helps explain some of the weakness of untuned BERT, while excluding sub-words slightly harms performance. A separate experiment finds that lowercasing the input to cased BERT substantially improves the ranking of sentence pairs while changing the overall directional measure only slightly. The authors propose that nonsemantic structure can cause both directional crowding and errors in semantic comparisons. The experiments demonstrate why average crowding by itself cannot reliably explain the results, while leaving unresolved how much the properties they studied contribute to the remaining error.

## Deep dive: Is anisotropy really the cause of BERT embeddings not being semantic?

Fuster Baggetto and Fresno test whether BERT’s vectors crowding into similar directions explains why their distances can misrepresent sentence meaning. · about 31 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Comparing sentences without encoding each pair

A sentence similarity system has to decide what to compare. It can read both sentences together and produce a score for that pair, or it can turn each sentence into a vector and compare the two vectors afterwards. The choice changes what the system can do efficiently. If the score comes from reading the sentences together, a new pairing requires another pass through the encoder. If the score comes from independently computed vectors, any vector already obtained can be reused. For a collection in which a sentence may be compared with many candidates, the cost of repeatedly analyzing that sentence is the practical reason to care about the difference.

The paper calls the joint approach a cross-encoder. In the BERT setup it describes, the two texts are concatenated and a learned linear layer predicts their similarity from the joint representation. This gives the scoring procedure access to a computation that has already seen both sentences. The independent approach is a bi-encoder. Each sentence goes through the encoder on its own, and its embedding is the object the comparison function sees. The comparison in this paper is cosine similarity, which scores how closely two vectors point in the same direction. For that arrangement to work, the direction of an independently computed vector has to carry information that remains useful across many possible pairings.

A contextual representation seems like a promising starting point. BERT, part of the line of work on [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/) architectures, gives a token a vector that can change with the surrounding text. Thus a vector can reflect something about the way a word is used on a particular occasion. The problem appears when the resulting token vectors are turned into a sentence vector and compared by cosine. The paper recalls that the [Sentence-BERT](https://md.research.elamur.ai/free/en/papers/reimers-2019-sentence-bert-sentence-embeddings-siamese/) study found that averaging off-the-shelf BERT vectors could work worse on semantic tasks than averaging static [GloVe](https://md.research.elamur.ai/free/en/papers/pennington-2014-glove-global-vectors-word-representation/) vectors. Static vectors give a word a fixed representation. That comparison made the readout itself worth investigating: the availability of contextual information gives no automatic guarantee that the angle of a sentence average will be informative.

The authors use *semantic isometry* for correspondence between the arrangement of embeddings and the arrangement implied by meanings. Think of a set of sentence pairs for which people have judged some pairs very similar, some less similar, and some quite different. A representation whose cosine scores reproduce that ordering exhibits better semantic isometry by the paper’s operational test. The term describes the correspondence the authors want to investigate. Their benchmark measures it through relative judgments on the available pairs, so its meaning in the experiments is more specific than a claim that every semantic distance is preserved.

#### Why directional crowding became a suspect

Isotropy concerns how vectors are distributed across directions. In an isotropic space there is no overall preferred direction in the sense the paper is interested in. In an anisotropic space, preferred directions draw a substantial number of vectors toward the same region. The paper uses the image of a cone. Points can vary within the cone, but two chosen directions will often form a smaller angle than they would if the points were broadly spread. Cosine similarity can then have a high background level, even for pairs chosen without reference to what their texts mean.

Earlier work on [representation degeneration](https://md.research.elamur.ai/free/en/papers/gao-2019-representation-degeneration-problem-training-natural/) had connected this kind of concentration to likelihood training in language generation. In the account reviewed by Fuster Baggetto and Fresno, the uneven distribution of token frequencies in natural text interacts with the training objective. Vectors for frequent tokens end up concentrated, while less frequent tokens occupy a sparser region. The account identifies a possible source of preferred directions and suggests that the space could be less effective at representing differences among the tokens that populate it. Other researchers documented directional concentration in contextual embeddings and investigated ways of making the space more isotropic. [Contextual embedding geometry](https://md.research.elamur.ai/free/en/papers/ethayarajh-2019-how-contextual-are-contextualized-word/) and [sentence embeddings from pretrained encoders](https://md.research.elamur.ai/free/en/papers/li-2020-sentence-embeddings-pre-trained-language/) were part of that discussion.

There were reasons to be careful about moving from this diagnosis to a causal explanation. A common direction could lift the cosine scores for many pairs while leaving enough variation to rank those pairs usefully. Another possibility is that several groups have distinct preferred directions. If those groups track properties such as frequency or capitalization, pairs that share a property could systematically receive higher scores than other pairs of comparable meaning. A global average can register common direction in either situation. It says very little about which pairs receive the greatest boost or how their ratings from people are distributed.

The preceding literature also offered different accounts of the geometry at different scales. The paper describes research that attributes a substantial share of BERT’s directional concentration to unusual embedding dimensions associated with position. Work on [BERT’s outlier dimensions](https://md.research.elamur.ai/free/en/papers/kovaleva-2021-bert-busters-outlier-dimensions-that/) is among the examples it discusses. Other work found that clusters can be locally isotropic even when the whole collection is globally anisotropic. If a cluster has its own directional spread, the global summary can obscure the geometry within it. If cluster membership itself reflects a feature such as token frequency, there is a further question about how far that feature affects comparisons across clusters.

Even the level at which vectors were compared varied across studies. Ethayarajh studied vectors for words in context. Jiang and colleagues examined sentence vectors constructed by averaging token embeddings. Those choices matter because an average is a new vector. A direction that is moderately common among individual tokens can be especially prominent in sentence averages if many sentences contain tokens that contribute it. Differences among reported cosine values can therefore reflect the object being measured as well as the encoder. To understand whether the findings agree, one needs to know which unit was compared, from which layer and checkpoint, and after which pooling operation.

#### What contrastive training adds to the question

The paper treats contrastive learning as another source of evidence. In the kinds of methods it describes, training encourages sentence vectors for similar examples to move closer and vectors for dissimilar examples to move farther apart. The way the training procedure obtains those examples matters. One strategy used translation into German and back to obtain another version of an English sentence. [DeCLUTR](https://md.research.elamur.ai/free/en/papers/giorgi-2021-declutr-deep-contrastive-learning-unsupervised/) used nearby spans from a document as positive examples. SimCSE used dropout to produce different views of an input in its unsupervised variant and drew on [natural language inference annotations](https://md.research.elamur.ai/free/en/papers/bowman-2015-large-annotated-corpus-learning-natural/) for its supervised variant.

Such procedures can change several properties of the vectors together. They can alter the directional spread of a set of embeddings, affect how individual pairs are ordered, and change which token properties matter to those pair scores. If a contrastively trained encoder yields both more dispersed vectors and better similarity judgments, the joint movement leaves a question about which change produced the improvement. The authors see the same difficulty in comparing training recipes. A recipe can yield good sentence embeddings while offering little direct information about the source of the original mismatch between vector directions and sentence meaning.

Against that background, the paper uses *bias* in a narrow representational sense. It means information encoded in the vectors that is irrelevant to the meaning being compared. Frequency, sub-word status, punctuation, and case are the candidate sources the authors investigate. Membership in one of these groups is only a starting point for the diagnosis. Some instances can matter to meaning, and different group labels can overlap. An observable difference between the distributions of group members establishes a pattern in the space. Determining whether that pattern interferes with judging sentence similarity requires a further comparison.

### The method, step by step

#### From text to the vectors being compared

The experiments begin with existing BERT encoders and ask what different ways of reading their outputs reveal. The authors use BERT-base-uncased, BERT-base-cased, unsupervised SimCSE-base, and supervised SimCSE-base. All share the BERT architecture. The base variants allow a comparison involving capitalization. The SimCSE variants allow a comparison with BERT encoders adapted for use as independent sentence encoders. The paper evaluates those existing trained systems, without fitting a new similarity scorer in the reported comparisons.

Each input sentence is represented at the token level. Here a token may be a complete word, a piece of a word, a punctuation mark, or a special symbol used by the encoder. The distinction between a written word and its tokens matters to the experiments. With [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/), a word outside the tokenizer’s vocabulary can be represented by pieces that have their own vectors. The output for a piece is still contextualized. Although the piece by itself may convey little, its output vector is computed in the presence of the other pieces and the words around them.

The authors look at representations from different depths. A layer provides one contextual vector for each input token position. Using a later layer means taking the vectors after more of the encoder’s computation has occurred. For the exploratory comparison of token categories, the authors use the final layer. For the broader comparisons of isotropy and semantic isometry, they repeat the evaluations across layers. This allows them to see whether a feature of the final embedding is visible earlier and whether the different encoders diverge gradually or mainly toward the output.

How the paper compares embedding geometry and meaning The steps in order.

#### How the authors look for biases

The exploratory dataset consists of 1000 randomly sampled Wikipedia sentences. The authors use it to collect token vectors and examine distributions of pairwise cosine similarities. Most of these comparisons use BERT-base-uncased and unsupervised SimCSE-base. Capitalization requires a case-sensitive encoder, so the case analysis uses BERT-base-cased. There is no cased SimCSE variant in the experiment. The resulting plots compare cosine scores for pairs from the same category with scores for pairs crossing categories.

To investigate frequency, the authors use stopwords as a proxy for very frequent tokens. They considered using the most frequent tokens directly, but that group would have included punctuation and common nouns. Punctuation receives its own analysis because it might have a distinctive effect. The authors also wanted to avoid a category whose later removal would discard frequent nouns with substantial content. A stopword group gives them a way to examine common tokens while limiting those particular problems. Its comparison group consists of other, less frequent words as characterized in the paper. The procedure probes frequency through that grouping instead of estimating a continuous relationship for every token.

The other exploratory comparisons follow the same logic. For sub-words, within-group scores are examined alongside scores for whole-word pairs and for mixed pairs. For punctuation, the authors compare pairs of punctuation marks with other token pairings. The punctuation category includes marks with different expected frequencies. For case, upper- and lower-case tokens allow the authors to ask whether a distinction visible in the text is also visible in the distribution of angles. An upper-case token can occur because a word starts a sentence or because its spelling includes capitalization, and the same token can meet both conditions.

The distributions retain information a single average would discard. A group may have a higher concentration of very similar pairs even if its overall mean is modest. A pair of distributions can also have nearby means and differ in width. Mixed pairs help put the within-group comparisons in context. If within-group pairs tend to be closer than mixed pairs, that is a clue that sharing the grouped property accompanies directional proximity. It remains possible that the property overlaps with another one or that a small number of commonly occurring tokens account for much of the pattern.

#### How a sentence gets a single vector

In average pooling, all eligible output vectors from a sentence contribute equally to its embedding. The operation is performed within a layer, so each sentence has a separate average at each depth the authors examine. The operation can be written as follows.

```
eₗ(s) = (∑ᵢ∈K(s) hₗ,ᵢ(s)) / |K(s)|
```

Here `s` is the input sentence, `l` is the layer, and `eₗ(s)` is its mean-pooled sentence vector at that layer. The index `i` identifies a token position, `hₗ,ᵢ(s)` is the output vector at that position, and `K(s)` is the set of positions included in the average. The sum `∑ᵢ∈K(s)` adds the vectors at those positions. The vertical bars in `|K(s)|` indicate the number of retained positions, and dividing by that count gives equal weight to each retained vector. In the ordinary average the eligible set contains all the token embeddings being pooled. In a removal condition it excludes the positions belonging to the chosen category.

The alternative sentence pooling strategy takes the vector at the special `CLS` position. This is still a single vector from the selected layer, but it is obtained from a single output position. Its contents can depend on the rest of the sentence through the encoder’s computation. An average and a `CLS` readout consequently take two different views of the same layer. The authors compare both on BERT-base-uncased. They also evaluate token vectors directly, with no pooling, which gives them a word-level geometry comparison. The benchmark ratings apply to sentences, so the unpooled token condition is evaluated only for isotropy.

The checkpoint comparison uses average pooling throughout. For this comparison the authors feed lower-case text to BERT-base-cased so it sees the same input text as the other encoders. This keeps the condition of the input more comparable as the encoder changes. The separate test of casing then reverses what is held fixed. It keeps BERT-base-cased as the encoder and compares the text in its original form with the same text converted to lower-case. The distinction matters because case can enter through what a checkpoint learned and through which forms it receives at evaluation time.

#### How cosine serves two measurements

The similarity function for both parts of the study is cosine. It uses the lengths of the vectors to turn their dot product into a measure of directional alignment.

```
cos(u, v) = (u · v) / (‖u‖ ‖v‖)
```

Here `u` and `v` are non-zero vectors being compared. They can represent tokens or sentences, depending on the experiment. The symbol `·` indicates the dot product. The double bars `‖u‖` and `‖v‖` give the lengths of the corresponding vectors, and the adjacent lengths in the denominator are multiplied. The function `cos(u, v)` gives the similarity of the vectors’ directions. A higher cosine indicates closer alignment.

For isotropy, the authors take the average of cosine scores for embeddings drawn from the Wikipedia sample. In the sentence-level comparisons these are independent sentence representations, and in the unpooled comparison they are individual token representations. The average can be expressed with the following notation.

```
A = (∑₍ᵤ,ᵥ₎∈P cos(u, v)) / |P|
```

Here `A` is the average cosine, `P` is the collection of embedding pairs used in the geometry measurement, and `(u, v)` denotes one such pair. The summation adds the cosine of each pair in `P`. The notation `|P|` is the number of pairs. Higher average cosine indicates greater directional concentration on this measure. The score is an operational indicator of anisotropy. It compresses the pairwise comparisons into a mean, without retaining the distribution across categories or the arrangement of individual vectors.

In the semantic experiment, the authors take the sentences from the [Semantic Textual Similarity Benchmark](https://md.research.elamur.ai/free/en/papers/cer-2017-semeval-2017-task-1-semantic/), abbreviated STSB in the paper. They compute a cosine score for each benchmark pair and use Spearman correlation to compare those scores with the corresponding human annotations. The named operation can be written compactly in terms of ranks.

```
ρ = corr(rank(C), rank(G))
```

Here `ρ` is Spearman’s rank correlation, `C` is the list of cosine scores for the benchmark pairs, and `G` is the list of gold-standard ratings for those same pairs in the same order. The operation `rank` replaces the entries in each list with their ranks within that list. The function `corr` is the Pearson correlation applied to the two resulting rank lists. Higher agreement means the cosine comparison reproduces more of the ordering expressed in the annotations. The figure captions use the word accuracy for the STSB results, while the method identifies the reported statistic as Spearman correlation.

This use of cosine separates two questions that can sound similar. The Wikipedia measure asks where cosine scores tend to sit overall. The semantic measure asks which sentence pair receives a higher score than another. A higher background level can coexist with a better ordering. Conversely, broadly dispersed vectors can give a poor ordering if the variations in their angles systematically follow properties unrelated to the benchmark judgments. For each pooling or encoder comparison, the paper therefore reads both measurements before drawing a conclusion.

#### Where the token exclusion happens

For the bias-removal experiment, the authors send the intact sentence through the encoder. Then they leave selected output vectors out of the average. The tested exclusions are stopwords, sub-words, punctuation, `CLS`, and the separator token `SEP`. They run individual exclusions and a condition combining the categories. The geometry and benchmark measurements are then taken on the resulting pooled vectors, with the procedure repeated at different depths. The paper presents the detailed curves for BERT-base-uncased and unsupervised SimCSE-base.

An exclusion at this point in the pipeline changes directly which vectors contribute to the average. It also changes the divisor in the pooling formula. The retained vectors come from a computation in which the omitted positions were present, so the retained positions may already reflect information carried by them. This design lets the paper ask whether averaging a group’s own output vectors helps or harms the comparison, without requiring the encoder to process sentences that have had parts of their input removed.

Case removal is a different kind of intervention. The casing transformation happens before tokenization and encoding. In that test, the outputs can all respond to the changed input, even when every position the pooler receives is included. The authors keep this comparison separate from post-encoding exclusion. It addresses how sensitive a cased encoder’s sentence representations are to the form of the text it receives, while the token exclusions probe what the pooler does with outputs that have already been computed.

### Experiments and results

#### The data and comparison settings

The Wikipedia sample provides the unlabeled text for the geometry measurements. The benchmark provides pairs with human similarity annotations for the semantic measurements. The paper does not name a particular STSB split for these comparisons. Its baseline for a token exclusion is the ordinary mean-pooled embedding produced before the exclusion. For the pooling experiment, the meaningful sentence-level comparison is `CLS` against averaging within BERT-base-uncased. For the encoder comparison, every checkpoint uses averaging, and the cased BERT checkpoint is fed lower-case text. For the casing experiment, the comparison is between two versions of the input to that same cased checkpoint.

The exploratory plots sit alongside these comparisons. A token-category distribution describes angular relationships among individual outputs. The sentence-level geometry summarizes angular relationships after a pooling rule has been applied. The benchmark asks about a ranking under that pooling rule. Keeping those levels distinct is essential when reading the results. A visible separation between token groups can be worth investigating even if pooling dilutes it. A sentence-level effect likewise need not show up as a large change in the mean of the token-level distribution.

#### Pooling changes the relationship between the metrics

In BERT-base-uncased, the `CLS` sentence representation is more isotropic than the representation obtained by averaging tokens. On STSB, the ordering goes the other way. Average pooling is substantially better at ranking the annotated pairs than `CLS` pooling. This comparison takes place within one checkpoint. It therefore shows that selecting a more isotropic readout from an encoder can give a poorer sentence similarity measure, without any change to the training of the encoder or the text it reads.

The unpooled token vectors offer another comparison of scale. On Wikipedia, the paper describes their average cosines as lower than 0.3 across layers, with the last layer near 0.2. These are approximate or bounded descriptions of the token-level geometry. The last-layer value and the across-layer bound refer to different scopes in the same unpooled setting. They put the size of the reported token-level cosines in context alongside the paper’s observation that the pooled sentence vectors are much more anisotropic.

Layer scopes in unpooled BERT-base-uncased on Wikipedia by average token cosine The last-layer estimate falls below the reported upper bound across layers.

**The numbers**

| System or setting | Average cosine similarity |
| --- | --- |
| Across layers, all means below this bound | 0.3 |
| Last layer, approximate mean (this paper) | 0.2 |

Lower values in this chart indicate less concentration by the paper’s geometry measure. The chart compares reported magnitudes within the token analysis. The across-layer bar is a bound, and the starred entry marks the focal last layer used in the exploratory plots. There is no STSB score for either entry because the token-level vectors in this condition have yet to be turned into representations of the sentences that people rated.

The mean-pooled sentence vectors show a different pattern. They are highly anisotropic in the lower layers, and the average cosine generally decreases with depth. The authors suggest that frequent tokens may have a particularly strong effect early in the encoder. The proposed mechanism is that the same stopword appearing in different sentences has more similar vectors in early layers, where its representation depends less on context. Recurring stopwords can then pull the averages from different sentences in a common direction. The token exclusions test part of that explanation by checking whether leaving out stopword outputs has a larger geometric effect in earlier layers.

#### The encoder comparison reverses the expected ordering

With averaged sentence vectors and lower-case input, BERT-base-cased performs clearly better on STSB than BERT-base-uncased. The paper describes the cased checkpoint as around 50% more anisotropic in the geometry comparison. That figure is the authors’ approximate relative description of the directional concentration of the checkpoints. It is separate from the size of the improvement in benchmark correlation. The significance of the comparison is the direction of the two changes. A checkpoint can have sentence vectors with stronger common alignment on Wikipedia and still produce a better ranking of the rated pairs.

The SimCSE variants strengthen that result. Supervised SimCSE has the best semantic isometry of the systems in the comparison. Its anisotropy is only slightly below that of BERT-base-uncased, which gives the weakest semantic result in this encoder comparison. The supervised variant is also considerably more anisotropic than unsupervised SimCSE. Selecting the encoder with the lowest mean cosine would therefore fail to choose the one whose sentence-pair scores best follow the annotations. This comparison is informative because it includes a strong contrastively trained system among the more directionally concentrated settings.

Looking across layers shows where differences emerge. The lower-layer benchmark scores for SimCSE are quite similar to those for the base BERT variants. Unsupervised SimCSE shows an early decline after the first layer, like the base encoders. Around the 9th layer, its representations shift markedly towards a more useful ordering of the STSB pairs. The authors interpret this as a sign that the separation visible in the sentence-similarity readout is concentrated toward the top of the trained encoder. The plot describes the behavior of the representations at different depths. It leaves open how much the underlying parameters or information available to other readouts changed elsewhere.

#### Frequency and punctuation have different distribution shapes

Among final-layer BERT-base-uncased token vectors, stopword pairs are on average slightly closer in angle than mixed pairs or pairs of other words. The distributions still overlap. Thus the finding is compatible with stopwords responding to their contexts while retaining a tendency to cluster. The same comparisons in unsupervised SimCSE show a smaller gap. That is evidence that the stopword pattern changes with the encoder used for comparison, although the category is a frequency proxy and the experiment does not assign each frequency band its own estimate.

Punctuation is more heterogeneous. In base BERT, punctuation-punctuation scores have a wide distribution, with a concentration of highly similar pairs at the upper end. As a group, punctuation vectors can still be more spread out than word vectors. These observations are consistent because a subset at high cosine can occur inside a broad distribution. Common marks such as commas and periods appear alongside much less common marks such as asterisks and slashes. The authors suggest that frequency could explain part of the width and some of the high-similarity pairs. Unsupervised SimCSE shows a less pronounced punctuation pattern, although some punctuation pairs still have relatively high similarity.

Those findings motivate different questions about a pooled sentence embedding. For stopwords the question is whether widely recurring, comparatively aligned outputs make sentence averages more similar regardless of their content. For punctuation the question is whether particular marks or classes of marks introduce such structure even though the complete category is quite dispersed. The exploratory distributions can point to both possibilities. The later exclusions operate on the categories as wholes and consequently test their aggregate contribution to the average.

#### Subwords and capitalization complicate the pattern

Sub-word status produces clearer separation among the pair distributions in unsupervised SimCSE than in base uncased BERT. In that comparison SimCSE has a lower overall cosine and better semantic performance. The sub-word grouping is therefore a useful exception to the tendency of the trained encoder to bring category distributions closer together. Reduced directional concentration at the level of the whole sample can coexist with clearer separation for a particular token property. The authors later find that excluding sub-word outputs slightly worsens STSB agreement, giving a further reason to distinguish the geometric pattern from its effect on the task.

The casing analysis of token vectors shows a different distribution again. In BERT-base-cased, similarities between uppercase-token vectors have several concentrations, including small peaks at high similarity. Lowercase-token vectors tend to be closer overall. The authors suggest that upper-case tokens may combine different types, including names and words beginning sentences, with widely varying frequencies inside those types. Familiar cases such as weekdays, months, and words that commonly begin a sentence suggest why an upper-case group might include frequent tokens alongside much rarer ones. That account is offered to explain the shape of the plot. The comparison itself does not identify which words or which contexts produce each peak.

#### Changes to the sentence readout and the input

The output exclusions commonly improve STSB performance in the lower layers of the base and unsupervised encoders. The degree of improvement depends on the category. Sub-word exclusion is the exception and has a small adverse effect in both. The patterns are similar for the first 9 layers of the two systems. Near the top of BERT-base-uncased, the semantic benefit of exclusion remains substantial, while the curves for unsupervised SimCSE converge. The corresponding reduction in average cosine is clearest in the lower layers, particularly when stopwords are excluded. Thus the upper layers of base BERT can show a sizable gain on STSB with a comparatively small movement in the geometry measure.

The case intervention yields another separation. Feeding lower-case text to BERT-base-cased substantially improves STSB agreement relative to feeding the original cased text. The lower-case condition is slightly more anisotropic, and the paper describes the geometry as roughly similar across the two inputs. Even on original cased text, the cased checkpoint yields much higher directional concentration than the uncased checkpoint in the comparisons discussed by the authors. Together, the experiments distinguish an input-casing effect within a checkpoint from the larger geometric difference between the checkpoints. The sizes of the changes are described qualitatively in these results, with the around 50% comparison applying to the separate checkpoint comparison under common lower-case input.

### What the ablations show

#### Which effects belong to pooling

The `CLS` comparison is a change in the representation read out from an otherwise fixed BERT encoder. Both `CLS` and a token average could in principle use contextual information, since both are built from contextual outputs. Their benchmark difference shows that the decision about where to read a sentence vector matters to semantic ranking. The average’s stronger anisotropy also gives a clear case in which the result of a geometry diagnostic is insufficient to choose a sentence representation.

The token condition helps locate the effect. Individual token vectors in BERT-base-uncased have lower mean cosines than the sentence averages, so a measurement taken before pooling gives a different picture of the same encoder. Averaging can reinforce directions represented by many common tokens. Sentence-specific components can contribute less consistently to the average. The experiment establishes the difference between the token and sentence measurements, while the stopword removal provides a more specific probe of one proposed source of that difference.

The authors’ interpretation also connects the pooling experiment to disagreements among prior studies. Looking at token outputs from cased BERT and looking at sentence averages from uncased BERT changes both the objects measured and the checkpoint that supplies them. The paper examines these factors separately enough to show why the choice matters. A common label such as BERT embeddings covers several different quantities here, and the anisotropy of one quantity has limited value as a prediction about another.

#### What the stopword and punctuation exclusions isolate

Removing a stopword vector from the average directly reduces that position’s contribution to the sentence representation. The finding that exclusion lowers the early-layer mean cosine, where the geometry effect is most visible, is consistent with the proposed role of frequent, relatively similar token vectors. The associated improvement on STSB shows that those output vectors, when given equal weight in the ordinary average, can also interfere with the semantic ranking. The experiment links the stopword group to both outcomes under a specified pooling rule.

The more informative test of the causal interpretation is what happens when the outcomes separate. In upper-layer base BERT, the scale of the semantic improvement exceeds the small change in average cosine. The exclusion alters individual sentence directions and therefore the ranking of individual pairs. That ranking can improve even if the overall tendency to point in a common direction changes little. The lower-layer joint improvement supports the possibility that a group of tokens contributes to both measures. The upper-layer separation gives less reason to treat the global geometric change as the explanation for the benchmark gain.

Punctuation removal provides evidence that the punctuation outputs also affect the useful content of the average. Its interpretation is less direct if the question is whether punctuation has a mechanism all its own. The group contains marks of very different frequencies. An ablation of the whole group changes those contributions together, so it cannot separate a punctuation-specific effect from the effect of frequent tokens that happen to be punctuation. The authors identify this overlap as a question their comparison leaves unresolved.

The combined exclusion asks how far the removal strategy can take the simple mean readout when several groups are omitted together. Since deleting each category changes the composition and denominator of the mean, the effect of the combined condition reflects how the retained vectors work together. It provides an empirical comparison, not a decomposition into independent numerical shares. It also includes exclusions of sub-word and special-token vectors, whose role differs from that of stopwords and punctuation. Accordingly, an improvement from the combined setting cannot by itself establish that every removed group was harmful.

#### Why subwords are a revealing exception

The sub-word comparison is a case where grouping in the space and harm to the task come apart. The exploratory plots separate the sub-word pair distributions more clearly in unsupervised SimCSE, yet taking out those vectors slightly worsens its STSB result. The corresponding exclusion also slightly harms base BERT. Thus the paper finds a visible association between directions and tokenization status without finding a semantic benefit from suppressing the output vectors for that status.

The authors motivate the result with *tofu*, which their example presents as a word represented by pieces. A tokenizer can break up a specific content word with an important role in the sentence. A piece may be hard to interpret in isolation, while the encoder can use the surrounding pieces to calculate contextual outputs for the word. Omitting those outputs from the pool can remove useful evidence about what the sentence is about. The paper suggests that relative infrequency limits the overall impact of excluding sub-words in its experiments. The result concerns the tradeoff in the sentence average, which can retain both a subword-related geometric signature and useful meaning.

This exception narrows what it is reasonable to infer from the exploratory distributions. A meaningful distinction among token vectors can be correlated with the categories induced by the tokenizer. To call its pooled contribution a source of degraded semantic performance requires the benchmark comparison as well. For sub-words the comparison moves in the opposite direction from the one that would support removal, despite the visible separation. The paper consequently treats the sub-word observation differently from its evidence for harmful contributions associated with stopwords and punctuation.

#### What convergence in SimCSE can tell us

The convergence of the upper-layer removal curves for unsupervised SimCSE shows that the benchmark ordering at those layers is relatively insensitive to several exclusions from the mean. That is of interest because the system had been trained with those tokens present. There is an obvious way for robustness to occur under the actual intervention. An encoder uses self-attention to compute contextual vectors, so information at a stopword or punctuation position can influence vectors at other positions. Taking the original position out of the pool still leaves those other vectors available.

The comparison therefore bears on the direct value of a group’s outputs to the average. It gives much weaker evidence about the value of the group’s input information to the encoder. An unchanged correlation could reflect small direct contributions, contributions already carried elsewhere, or changes to individual scores that leave much of the ranking intact. These possibilities fit the distinction the paper makes between reading a full sentence and pooling a subset of its outputs. The same distinction helps explain why a post-encoding exclusion is a more limited intervention than deleting words from a sentence.

The similarity of the removal effects across the first 9 layers of BERT and unsupervised SimCSE adds to the depth comparison. Lower layers respond similarly when the pool is altered. Higher layers, where their unmodified benchmark performance is also more distinct, behave differently under those exclusions. The observations support the authors’ view that the contrastive adaptation is most visible in the final layers of the tested sentence embedding readout. They leave open exactly how that adaptation redistributes information and which token properties are responsible for the improvement.

#### What changing the input casing adds

Lowercasing the input to BERT-base-cased changes the spelling forms that enter the encoder and can consequently change all the contextual outputs. A checkpoint trained on cased text would seem a natural candidate for keeping capitalization. The experiment nevertheless finds stronger STSB agreement when that checkpoint receives lower-case text. The relatively small accompanying geometry change means that the average cosine gives little indication of the size of the benchmark effect.

The result also bears on the comparison between the two base checkpoints. BERT-base-cased retains its higher directional concentration even when input capitalization is removed in the common-input comparison. The distinctive geometry of the cased checkpoint therefore persists beyond the immediate presence of capitals in the sampled sentences. The authors propose that the training conditions could have encouraged different arrangements of lower-case and upper-case vectors. The study does not directly trace a cluster to its formation during pretraining, so that mechanism remains a hypothesis.

Taken across the interventions, the evidence is asymmetric. Excluding certain vectors can improve both measures, which is consistent with a shared contribution from nuisance information. Other comparisons improve the semantic ranking with little gain in isotropy, or even with higher directional concentration. Those observations weaken the claim that the mean concentration itself explains the weakness of the rankings. They support a narrower account in which the placement of particular sentences and groups, and the way that placement interacts with the scoring rule, matters more than the background level of similarity alone.

### Limitations

#### Limits the authors identify

The authors present the work as an investigation of BERT’s representation space and report no advance over the strongest supervised or unsupervised sentence embeddings of the time. The exclusions are diagnostic interventions on averaging, and their gains leave a substantial gap relative to the contrastive approach. That gap is part of the basis for the authors’ suggestion that additional biases may remain. It gives no inventory of what those biases are or how much each might contribute.

The authors also describe several of their explanations for the token distributions as hypotheses in need of verification. The prominent similarities among some punctuation vectors could be driven by frequent marks. The peaks among some upper-case pairs could arise from frequent names or forms that recur at sentence beginnings. These accounts are consistent with the plots, but the experiments do not separately estimate the influences of frequency, token identity, and position. The authors explicitly leave the question of a frequency explanation for punctuation to future work.

A possible positional bias is another direction they identify. Earlier research on position-related artifacts and outlier dimensions motivates it. No positional removal experiment in this paper establishes how much such a bias contributes to its STSB curves. Likewise, the authors suggest that BERT already has semantic information that contrastive learning makes available to cosine. The ability to obtain good task performance after adaptation is compatible with that interpretation. The layer and pooling comparisons do not identify precisely which information was present beforehand or how adaptation changed it.

#### Limits of the measurements and interventions

The geometry measurement is a mean cosine drawn from a sample of Wikipedia. Different arrangements of vectors can yield similar means, including arrangements with substantially different clusters or with different spreads within clusters. A case can therefore be more or less isotropic by the paper’s measure without a full account of its directional distribution. The exploratory plots offer more detail about selected groups. They still describe pair similarities, so an apparent grouping gives limited information about the dimensions and boundaries of any individual cluster.

The semantic metric has a different scope. Spearman correlation measures the ordering of the annotated pairs. It is informative about that ordering, but score calibration and usefulness on other tasks require other measurements. The geometry and semantic evaluations also use different data. Wikipedia provides sampled text for the former and STSB provides deliberately annotated pairs for the latter. The paper does not report a split-specific benchmark score or numerical uncertainty for the main comparisons described in the prose. The evidence is clearest about the visible direction of the reported effects under these settings.

The stopword test uses a workable but imperfect proxy for frequency. Stopword membership brings syntactic roles into the comparison, while common nouns and punctuation are handled separately. The method is consequently better suited to testing what the stopword category contributes to averaging than to estimating how each increase in frequency changes the representation. A comparison of punctuation groups matched for frequency would be needed to identify a punctuation effect distinct from frequency. Upper-case forms present a similar problem because capitalization, lexical identity, and sentence position can overlap.

Similarly, output exclusion establishes how the pool behaves when some contextual vectors are left out. It gives no direct estimate of what the encoder would understand from a sentence whose corresponding tokens were missing. All surviving positions were computed in the original context, and case removal changes the input instead. These interventions each answer a specific question. Their results should be carried over to another setting only when the same encoding and readout conditions apply.

Finally, the direct comparisons use base BERT checkpoints and BERT-based SimCSE checkpoints. The paper points out that related geometric effects had been observed in other Transformer systems, which motivates a broader question. Generalization of these particular counterexamples across other encoders and tasks remains open. The experiments argue against a simple rule that lower mean cosine predicts better semantic rankings, and against using global anisotropy as a sufficient causal explanation. A causal test that changes directional concentration while holding particular nuisance structure fixed would be needed to establish the independent effect of concentration itself. These comparisons show how easily the measures can come apart under practical changes to the encoder, input, or pooling rule.

### What came after

[NLU-STR at SemEval-2024 Task 1](https://md.research.elamur.ai/free/en/papers/malaysha-2024-nlu-str-semeval-2024-task/) cites the study in work on semantic textual relatedness. Its approach combines generative augmentation with encoder-based scoring. This places the emphasis on constructing and scoring data for a relatedness task, where an encoder’s output has to support judgments about the relationship between texts.

The connection is clearest at the level of evaluation. Fuster Baggetto and Fresno ask how well a particular comparison of independently encoded sentences agrees with human similarity judgments, then examine whether a global property of those embeddings helps explain the agreement. NLU-STR addresses a related judgment with a system whose title identifies augmentation and encoder scoring as its components. The citation establishes that the earlier investigation is part of the later work’s context. The later work’s title and citation leave open whether its scoring procedure adopts the token exclusions, the casing comparison, or the isotropy measurement.

## Cite

Cite as Alejandro Fuster Baggetto and Victor Fresno. 2022. Is anisotropy really the cause of BERT embeddings not being semantic?. Findings of the Association for Computational Linguistics: EMNLP 2022.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2022.findings-emnlp.314](https://doi.org/10.18653/v1/2022.findings-emnlp.314)

```bibtex
@inproceedings{baggetto2022is,
  title = {{Is anisotropy really the cause of BERT embeddings not being semantic?}},
  author = {Alejandro Fuster Baggetto and Victor Fresno},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2022},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.314},
  url = {https://doi.org/10.18653/v1/2022.findings-emnlp.314}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
