ArticleslgStudy

computer science

Distributional semantics

Distributional semantics is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Distributional semantics rather than just read about it. In short: Distributional semantics is a research area that develops and studies theories and methods for quantifying and categorizing semantic similarities between linguistic items based on their distributional properties in large samples of language data. The basic idea of distributional semantics can be summed up in the distributional hypothesis: linguistic items with similar distributions have similar meanings.

Distributional semantics — main illustration
Distributional semantics — illustration

Key takeaways

  • Distributional semantics belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Distributional semantics to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Distributional semantics from memory before moving on to harder problems.

Reference excerpt

Distributional semantics is a research area that develops and studies theories and methods for quantifying and categorizing semantic similarities between linguistic items based on their distributional properties in large samples of language data. The basic idea of distributional semantics can be summed up in the distributional hypothesis: linguistic items with similar distributions have similar meanings.

Distributional hypothesis The distributional hypothesis in linguistics is derived from the semantic theory of language usage, i.e. words that are used and occur in the same contexts tend to purport similar meanings. The underlying idea that "a word is characterized by the company it keeps" was popularized by Firth in the 1950s. The distributional hypothesis is the basis for statistical semantics. Although the distributional hypothesis originated in linguistics, it is now receiving attention in cognitive science especially regarding the context of word use. In recent years, the distributional hypothesis has provided the basis for the theory of similarity-based generalization in language learning: the idea that children can figure out how to use words they've rarely encountered before by generalizing about their use from distributions of similar words. The distributional hypothesis suggests that the more semantically similar two words are, the more distributionally similar they will be in turn, and thus the more that they will tend to occur in similar linguistic contexts. Whether or not this suggestion holds has significant implications for both the data-sparsity problem in computational modeling, and for the question of how children are able to learn language so rapidly given relatively impoverished input (this is also known as the problem of the poverty of the stimulus) is unclear.

Distributional semantic modeling in vector spaces Distributional semantics favor the use of linear algebra as a computational tool and representational framework. The basic approach is to collect distributional information in high-dimensional vectors, and to define distributional/semantic similarity in terms of vector similarity. Different kinds of similarities can be extracted depending on which type of distributional information is used to collect the vectors: topical similarities can be extracted by populating the vectors with information on which text regions the linguistic items occur in; paradigmatic similarities can be extracted by populating the vectors with information on which other linguistic items the items co-occur with. Note that the latter type of vectors can also be used to extract syntagmatic similarities by looking at the individual vector components. The basic idea of a correlation between distributional and semantic similarity can be operationalized in many different ways. There is a rich variety of computational models implementing distributional semantics, including latent semantic analysis (LSA), Hyperspace Analogue to Language (HAL), syntax- or dependency-based models, random indexing, semantic folding and various variants of the topic model. Distributional semantic models differ primarily with respect to the following parameters:

Context type (text regions vs. linguistic items) Context window (size, extension, etc.) Frequency weighting (e.g. entropy, pointwise mutual information, etc.) Dimension reduction (e.g. random indexing, singular value decomposition, etc.) Similarity measure (e.g. cosine similarity, Minkowski distance, etc.) Distributional semantic models that use linguistic items as context have also been referred to as word space, or vector space models.

Beyond Lexical Semantics While distributional semantics typically has been applied to lexical items—words and multi-word terms—with considerable success, not least due to its applicability as an input layer for neurally inspired deep learning models, lexical semantics, i.e. the meaning of words, will only carry part of the semantics of an entire utterance. The meaning of a clause, e.g. "Tigers love rabbits.", can only partially be understood from examining the meaning of the three lexical items it consists of. Distributional semantics can straightforwardly be extended to cover larger linguistic item such as constructions, with and without non-instantiated items, but some of the base assumptions of the model need to be adjusted somewhat. Construction grammar and its formulation of the lexical-syntactic continuum offers one approach for including more elaborate constructions in a distributional semantic model and some experiments have been implemented using the Random Indexing approach. Compositional distributional semantic models extend distributional semantic models by explicit semantic functions that use syntactically based rules to combine the semantics of participating lexical units into a compositional model to characterize the semantics of entire phrases or sentences. This work was originally proposed by Stephen Clark, Bob Coecke, and Mehrnoosh Sadrzadeh of Oxford University in their 2008 paper, "A Compositional Distributional Model of Meaning". Different approaches to composition have been explored—including neural models—and are under discussion at established workshops such as SemEval.

Applications Distributional semantic models have been applied successfully to the following tasks:

finding semantic similarity between words and multi-word expressions; word clustering based on semantic similarity; automatic creation of thesauri and bilingual dictionaries; word-sense disambiguation; expanding search requests using synonyms and associations; defining the topic of a document; document clustering for information retrieval; data mining and named-entity recognition; creating semantic maps of different subject domains; paraphrasing; sentiment analysis; modeling selectional preferences of words.

Software S-Space SemanticVectors Gensim DISCO Builder Indra

See also Family resemblance – Philosophical idea popularized by Ludwig Wittgenstein Conceptual space Co-occurrence Distributional–relational database Gensim Phraseme Random indexing Sentence embedding Statistical semantics Word2vec Word embedding

People Scott Deerwester Susan Dumais J. R. Firth George Furnas Zellig Harris Thomas Landauer Magnus Sahlgren

References

… excerpt ends here. Continue reading the full article.

Illustrations

Distributional semantics: How words are related in a given language is demonstrated in the "semantic space", which mathematically corresponds to the vector space.
How words are related in a given language is demonstrated in the "semantic space", which mathematically corresponds to the vector space.

Worked examples

Example 1 — a first encounter with Distributional semantics

Start with the simplest possible case. Write down what Distributional semantics claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Distributional semantics before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Distributional semantics ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Distributional semantics

In research
Distributional semantics appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Distributional semantics in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Distributional semantics is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational linguistics, Language acquisition, Semantic relations, so understanding it makes those chapters shorter.
In everyday life
Look for Distributional semantics outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Distributional semantics” →

How to study Distributional semantics in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Distributional semantics means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Distributional semantics out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Distributional semantics in simple terms?

Distributional semantics is a research area that develops and studies theories and methods for quantifying and categorizing semantic similarities between linguistic items based on their distributional properties in large samples of language data. The basic idea of distributional semantics can be su…

Why does Distributional semantics matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Distributional semantics?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Distributional semantics.

Tags

  • Computational linguistics
  • Language acquisition
  • Semantic relations
  • Semantics

Keep exploring