Machine translation 2026-11-05
Machine translation uses a computational system to produce text in one human language from text in another. It must choose an output sequence that preserves relevant meaning while fitting the target language, rather than merely replacing each word independently. A transformer model is one architecture used for this task.[ref]
A probabilistic formulation assigns conditional probabilities to candidate output sequences for input . A decoder searches for a suitable sequence, often using model probability together with additional search or length rules. For a deliberately simplified finite example, suppose three complete candidates have probabilities , and . Choosing the most probable gives the first candidate, but this is a model decision rather than a proof that its meaning is correct.
Context explains why word-by-word replacement is insufficient. The intended translation of an ambiguous word can depend on the surrounding sentence, and target word order can differ from source word order. A system can therefore produce a fluent sentence that omits or alters information; fluency and preservation of meaning require separate attention.
Training and evaluation also answer different questions. A neural language model can supply probabilities for sequences, while cross-entropy measures how much probability is assigned to observed text. BLEU instead compares output sequences with reference translations through matching n-grams and a length penalty. Reference overlap is useful for repeated comparisons, but alternative valid phrasing and context limit its interpretation as an assessment of any single sentence.[ref]
Natural language processing studies computational methods for analyzing, transforming and generating human language. Tasks include translation, extracting information from text, and predicting a missing or subsequent word. A system must resolve ambiguity from context: “bank” in a sentence about a river and in a sentence about a loan has different meanings.
A neural language model tackles one precise part of the problem by assigning probabilities to word sequences. For example, after “the cat sat on the”, its distribution can rank “mat” above “democracy”, without thereby proving that it understands the scene. Evaluating a specific task and its errors is more informative than treating fluent text as a universal test of language competence.[ref]
Neural language model 2026-11-05
A neural language model uses a neural network to assign a probability distribution to language sequences. An autoregressive model factorizes the probability of words as
Training by maximum likelihood estimation rewards the observed next words; generation repeatedly samples from the conditional distribution. If a two-word sequence has first-word probability and conditional second-word probability , its joint probability is .
Yoshua Bengio and coauthors' 2003 model jointly learned a distributed representation of words and a neural probability predictor. Sharing representation parameters allowed similar contexts to inform one another, rather than treating every observed word sequence as an unrelated event.[ref]
Perplexity 2026-11-05
Perplexity measures how much probability a model assigns to observed outcomes, expressed as the inverse geometric mean of those probabilities. For a sequence evaluated by a neural language model, let be the model's conditional probability of the actually observed token given its allowed context. Then
It is therefore exponentiated mean negative log-likelihood. If cross-entropy is expressed in bits rather than natural-log units, the equivalent expression is .[ref]
A uniform predictor over possible tokens assigns each observed token probability , giving perplexity . For an unequal two-token example with assigned probabilities and ,
The result need not be an integer or an actual vocabulary size. It is an effective branching measure defined by the likelihood calculation.
On a fixed evaluation representation and dataset, lower perplexity means higher geometric mean probability for the realized outcomes. Assigning zero probability to any realized outcome makes the unsmoothed sequence perplexity infinite. Correctness of the most probable token alone does not determine the metric: the probabilities assigned to all realized outcomes matter.
For an empirical example, the 2003 neural-language-model paper reports test perplexity for its MLP1 row, compared with for the five-gram back-off comparison row. These are measurements under the paper's Brown-corpus setup and token-counting conventions.[ref]
Changing tokenization, vocabulary, punctuation or sentence-boundary treatment changes the outcomes and the divisor . Per-word and per-subword scores therefore cannot be compared as if they measured the same event space. Perplexity is also distinct from BLEU, which compares generated text with references rather than directly averaging the probability of observed tokens.
Word embedding 2026-11-05
A word embedding represents a word by a vector, usually learned so that relationships in the data become useful relationships between vectors. A vocabulary of words can be stored as a matrix with rows and columns: selecting a word selects one row. Unlike a separate indicator for each word, a dense representation can share predictive information across words.
For example, training a neural language model can place words occurring in similar contexts near one another, making evidence about “cat” useful when predicting contexts involving “dog”. This is statistical similarity, not a guarantee of synonymy: opposite words can occur in similar contexts too. The 2003 neural probabilistic model learned these vectors jointly with next-word probabilities.[ref]
Yoshua Bengio 2026-11-05
Yoshua Bengio coauthored a 2003 neural language model that learns word embeddings jointly with a probability model for word sequences. The aim is to share statistical information among related contexts rather than assign unrelated parameters to every observed sequence.[ref]
For example, a learned vector for a word can contribute to predictions in many contexts. Updating that vector through one training example can therefore affect predictions elsewhere, providing a mechanism for generalization. This is an explicit computational use of a distributed representation, not a claim that nearby vectors always encode the same linguistic relationship. Bengio also coauthored Deep Learning by Ian Goodfellow and others.