Contextual Embedding

Category: NLP / Language Processing

A word representation that changes dynamically based on the surrounding context, capturing different meanings of the same word in different sentences.

Full Explanation

Contextual embeddings represent a major advance over static word embeddings by generating different vectors for the same word depending on its context. A word like "cell" receives different representations in "prison cell," "biological cell," and "cell phone." Models like ELMo, BERT, and GPT produce contextual embeddings as intermediate representations within their layers. These embeddings capture rich syntactic and semantic information that static embeddings cannot. The concept is fundamental to modern NLP: virtually all state-of-the-art models use contextual representations internally. Different layers of transformer models capture different types of information, with lower layers encoding more syntactic features and higher layers encoding more semantic features. Contextual embeddings can be extracted and used as features for downstream tasks.

Related Terms

More in NLP / Language Processing

Explore More