Overview
Direct Answer
A word embedding is a learned, low-dimensional vector representation that encodes semantic and syntactic properties of words, positioning semantically similar terms near one another in continuous vector space. Modern embeddings are typically derived through neural language models trained on large text corpora.
How It Works
Embeddings are learned by training neural networks on prediction tasks such as predicting context words from a target word or vice versa. Algorithms like Word2Vec, GloVe, and FastText optimise weights across a shallow or shallow-to-moderate architecture such that words appearing in similar linguistic contexts receive proximate vector representations. The resulting vectors capture relationships: analogies emerge naturally, where vector arithmetic (e.g., 'king' minus 'man' plus 'woman') approximates 'queen'.
Why It Matters
Word embeddings reduce the dimensionality of text data dramatically, enabling downstream models to process language efficiently whilst capturing latent semantic structure. This foundation accelerates training of NLP systems, reduces memory requirements, and improves accuracy on tasks from sentiment analysis to machine translation, making sophisticated language processing accessible to organisations with constrained computational budgets.
Common Applications
Embeddings are used as input layers in sentiment classification, question-answering systems, and named entity recognition pipelines. Search engines leverage them for semantic matching; recommendation systems use contextual embeddings to rank content. They serve as feature representations in chatbots, document clustering, and toxicity detection systems.
Key Considerations
Embeddings encode statistical patterns present in training data, including societal biases and cultural assumptions reflected in source texts. Quality and dimensionality trade-offs arise—higher dimensions capture finer distinctions but increase computational cost and risk overfitting on smaller corpora. Domain-specific corpora may yield superior embeddings for specialist vocabulary.
More in Deep Learning
Residual Network
Training & OptimisationA deep neural network architecture using skip connections that allow gradients to flow directly through layers, enabling very deep networks.
Model Parallelism
ArchitecturesA distributed training approach that partitions a model across multiple devices, enabling training of models too large to fit in a single accelerator's memory.
Generative Adversarial Network
Generative ModelsA framework where two neural networks compete — a generator creates synthetic data while a discriminator evaluates its authenticity.
Mixed Precision Training
Training & OptimisationTraining neural networks using both 16-bit and 32-bit floating-point arithmetic to speed up computation while maintaining accuracy.
Weight Initialisation
ArchitecturesThe strategy for setting initial parameter values in a neural network before training begins.
Layer Normalisation
Training & OptimisationA normalisation technique that normalises across the features of each individual sample rather than across the batch.
Vision Transformer
ArchitecturesA transformer architecture adapted for image recognition that divides images into patches and processes them as sequences, rivalling convolutional networks in visual tasks.
Attention Head
Training & OptimisationAn individual attention computation within a multi-head attention layer that learns to focus on different aspects of the input, with outputs concatenated for richer representations.