paper-with-me

Papers

Norm of Mean Contextualized Embeddings Determines their Variance

2024-09-17 · Hiroaki Yamagiwa, Hidetoshi Shimodaira

Contextualized embeddings vary by context, even for the same token, and form a distribution in the embedding space. To analyze this distribution, we focus on the norm of the mean embedding and the variance of the embeddings. In this study, we first demonstrate that these values follow the well-known formula for variance in statistics and provide an efficient sequential computation method. Then, by observing embeddings from intermediate layers of several Transformer models, we found a strong trade-off relationship between the norm and the variance: as the mean embedding becomes closer to the origin, the variance increases. This trade-off is likely influenced by the layer normalization mechanism used in Transformer models. Furthermore, when the sets of token embeddings are treated as clusters, we show that the variance of the entire embedding set can theoretically be decomposed into the within-cluster variance and the between-cluster variance. We found experimentally that as the layers of Transformer models deepen, the embeddings move farther from the origin, the between-cluster variance relatively decreases, and the within-cluster variance relatively increases. These results are consistent with existing studies on the anisotropy of the embedding spaces across layers.

📄 PDF Abstract BibTeX arXiv:2409.11253

Code (1)

ymgw55/Norm-and-Variance 공식 구현

Methods 이 논문이 사용한 방법론

Attention 설명 없음
SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Multi-Head Attention 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Word meaning co-determines vowel-inherent spectral change. A corpus-based investigation of conversational Mandarin

2026-07-23 · Xiaoyun Jin, Mirjam Ernestus, R. Harald Baayen arxiv

This study investigates vowel-inherent spectral change (VISC) in spontaneous conversational Mandarin. Using the generalized additive model and word embeddings from distributional semantics, we show that, when controlling…

Word associations and the distance properties of context-aware word embeddings

2020-11-01 · CONLL 2020 · Maria A. Rodriguez, Paola Merlo

What do people know when they know the meaning of words? Word associations have been widely used to tap into lexical repre- sentations and their structure, as a way of probing semantic knowledge in humans. We investigate…

Word Embeddings

What Does This Word Mean? Explaining Contextualized Embeddings with Natural Language Definition

2019-11-01 · IJCNLP 2019 11 · Ting-Yun Chang, Yun-Nung Chen

Contextualized word embeddings have boosted many NLP tasks compared with traditional static word embeddings. However, the word with a specific sense may have different contextualized embeddings due to its various context…

Word Embeddings

Effect of Post-processing on Contextualized Word Representations

2021-04-15 · COLING 2022 10 · Hassan Sajjad, Firoj Alam, Fahim Dalvi, Nadir Durrani

Post-processing of static embedding has beenshown to improve their performance on both lexical and sequence-level tasks. However, post-processing for contextualized embeddings is an under-studied problem. In this work, w…

Word Similarity

Dynamic Contextualized Word Embeddings

2020-10-23 · ACL 2021 5 · Valentin Hofmann, Janet B. Pierrehumbert, Hinrich Schütze

Static word embeddings that represent words by a single vector cannot capture the variability of word meaning in different linguistic and extralinguistic contexts. Building on prior work on contextualized and dynamic wor…

Language ModelingLanguage ModellingWord Embeddings