Stable Anisotropic Regularization

William Rudman, Carsten Eickhoff
5/30/2023
20 citations
cs.CLcs.AIcs.LG

Official code: bcbi-edu/p_eickhoff_isoscore (43 stars, Jupyter Notebook, MIT, last commit 2025-08-14).

Abstract

Given the success of Large Language Models (LLMs), there has been considerable interest in studying the properties of model activations. The literature overwhelmingly agrees that LLM representations are dominated by a few "outlier dimensions" with exceedingly high variance and magnitude.

Show full abstract

Several studies in Natural Language Processing (NLP) have sought to mitigate the impact of such outlier dimensions and force LLMs to be isotropic (i.e., have uniform variance across all dimensions in embedding space). Isotropy is thought to be a desirable property for LLMs that improves model performance and more closely aligns textual representations with human intuition. However, many of the claims regarding isotropy in NLP have been based on the average cosine similarity of embeddings, which has recently been shown to be a flawed measure of isotropy. In this paper, we propose I-STAR: IsoScore*-based STable Anisotropic Regularization, a novel regularization method that can be used to increase or decrease levels of isotropy in embedding space during training. I-STAR uses IsoScore*, the first accurate measure of isotropy that is both differentiable and stable on mini-batch computations. In contrast to several previous works, we find that decreasing isotropy in contextualized embeddings improves performance on the majority of tasks and models considered in this paper.

View on arXivView PDF

Code Implementations(1)

MIT
433Jupyter Notebook, PythonJul 30, 20211 years agoMIT

Similar Papers

Cite this paper

@article{rudman2023stable,
  title  = {Stable Anisotropic Regularization},
  author = {William Rudman and Carsten Eickhoff},
  year   = {2023},
  eprint = {2305.19358},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.19358v3},
  journal = {ICLR 2023 2023}
}

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/2305.19358.svg)](https://codeofpaper.com/paper/2305.19358)

Discussion