Graded hyponymy for compositional distributional semantics
Paper · 2019 · Dea Bankova, Bob Coecke, Martha Lewis et al.
Summary
A dog is an animal, but calling something a dog gives only partial grounds for calling it a pet. Both inferences run from a more specific description to a broader one, yet they have different strengths. Bankova and colleagues ask how to express that difference in distributional semantics, where word meanings come from patterns of use. They also ask what happens to the strength of an inference when the words occur inside a phrase or sentence. The aim is to preserve the direction of entailment while giving partial cases a meaningful score.
The authors represent meanings as positive matrices. A matrix can describe a single exemplar or a mixture of exemplars, so a general word can contain contributions from several more specific meanings. To compare a source meaning with a target meaning, the authors subtract a scaled copy of the source from the target. The largest scale that leaves a positive matrix gives the strength of the relation, which they call k-hyponymy. A comparison in the reverse direction asks a different question. The same operation applies to phrases of different lengths once their grammatical reductions give them meanings in a common space.
The main theoretical result concerns positive phrases with matching grammatical structure. If the words in each corresponding position have known entailment strengths, the product of those strengths gives a lower bound for the phrase-level score. The actual score can be higher because composition changes which parts of the lexical meanings contribute to the whole. The paper also connects its matrix ordering to quantum logic and shows why the way matrices are scaled matters for interpreting their order.
In a small experiment on human-rated noun–verb and verb–noun sentence pairs, the authors build lexical matrices using WordNet and GloVe and test several ways to combine nouns and verbs. With 50-dimensional vectors, the additive combination reaches a Spearman rank correlation of 0.643 with the mean human ratings. The verb-only baseline reaches 0.268, and the paper lists inter-annotator agreement of 0.66. This experiment tests a simplified implementation on short constructions. The formal result explains when a lexical guarantee carries over through grammatical composition, while the experiment shows how well particular choices of lexical representation and composition rank the pairs in this task.
Deep dive: Graded hyponymy for compositional distributional semantics
Graded hyponymy uses positive matrices to score how strongly one meaning entails another and to track that relation from words to sentences. · about 38 minutes to read
The problem and its context
From related words to directed inferences
Knowing that two words are related does little by itself to establish which substitution supports an inference. Dog and animal are close in meaning for the purpose at hand, but learning that an animal was present leaves open whether it was a dog. Learning that a dog was present settles the broader description. Hyponymy names this more-specific-to-more-general relationship. The specific term is the hyponym, and the general term is its hypernym. The paper uses entailment for the inference associated with that direction. It also allows partial support, as with dog and pet, where the broader description fits some instances of the source concept.
This distinction matters when meanings are expressed geometrically. The paper describes a distributional representation in which word use is encoded in vectors, frequently starting from functions of co-occurrence frequencies. Nearby vectors can provide a useful account of semantic similarity. An ordinary symmetric comparison, however, gives the same value whichever word comes first. Hyponymy calls for an ordered comparison whose answer depends on what is being inferred from what. If a representation of dog provides only partial grounds for pet, the reverse comparison still needs to be evaluated on its own terms.
The paper also distinguishes the kind of knowledge involved in examples such as dog and pet from entailments licensed by the construction itself. The relation between dogs and pets depends on how those categories apply in the world. An adjective can contribute a different kind of restriction. In an ordinary reading of blond men, the noun phrase still refers to men, with the adjective narrowing the description. The paper wants both a way to compare lexical meanings and a common semantic space in which an entire phrase can be compared with a word. Its treatment of grammatical effects concentrates on constructions where broadening a constituent is compatible with broadening the full expression.
What lexical methods offered
The authors situate their proposal alongside work on directed distributional similarity. A central idea in that literature is that a more general term can occur with the kinds of features typical of its more specific terms. The paper presents Geffet and Dagan's hypotheses in both directions. If a word entails another, the source's typical features should occur with the target. Conversely, observing that inclusion provides evidence for entailment. The two directions give a reason to look for coverage of the source's features inside the target's representation. The Distributional Inclusion Hypotheses and Lexical Entailment
The earlier approaches discussed in the paper make different choices about what evidence to compare. Work by Lenci and Benotto belongs to the line of research on identifying hypernyms through directional distributional measures. Clarke's proposal equips word vectors with a lattice structure and defines a graded relation with conditional-probability properties. Rimell examines features that the words fail to share, putting some of the emphasis on the missing evidence. Kiela and colleagues bring in another source of information and consider dispersion alongside similarity. These approaches give the authors several precedents for treating lexical entailment as directional and graded. Their discussion places the question of how such measures behave inside composed expressions in a separate line of work. Identifying hypernyms in distributional semantic spaces
Word vectors also leave open how to assign a meaning to the construction containing them. A representation of a noun tells us little about which argument of a transitive verb it fills. A symbolic grammar specifies which items combine, but it gives no general procedure for obtaining the lexical meanings to put into the calculation. The categorical approach the paper starts from connects these problems. It interprets grammatical reductions as operations on lexical representations, so a grammatical expression arrives in a meaning space determined by its final type. Earlier studies cited by the authors had used this framework for sentence similarity. The present question is whether its semantic operations can also carry an order that represents entailment.
What changes above the word level
The paper describes earlier attempts to make entailment compositional. Baroni and colleagues use entailment relations involving adjective–noun phrases and nouns to train a classifier for similar pairs. Their work also develops an account of quantifiers. The categorical proposal seeks a common operation for comparing additional kinds of phrases and sentences. Its starting point is the final grammatical type of each expression, which can be shared even when the expressions have different numbers of words. Entailment above the word level in distributional semantics
The authors also discuss neural approaches that learn to represent logical relations. Their concern is that a successful prediction leaves the compositional mechanism difficult to inspect. In the categorical setting, the grammatical reduction determines a specific mathematical operation on the constituents. This makes it possible to ask which property of that operation would let a lexical entailment survive composition. The argument for the proposed method rests on that property. Recursive Neural Networks Can Learn Logical Semantics
The closest precedent is earlier work by Balkır and colleagues on entailment with density matrices. Their measure, called representativeness, compares matrices asymmetrically using quantum relative entropy. That line of work relates lexical hyponymy to entailment for positive transitive sentences. Bankova and colleagues focus on a further quantitative question. Given the strengths of the lexical relations, can one say how strong the sentence relation must be? A guarantee based on the lexical grades would explain more than the observation that an entailment survives. It would say how much of the source sentence the target sentence must contain in the chosen representation.
The paper's answer changes the space in which meanings are represented while retaining the grammatical account of composition. The earlier vector treatment and the positive-matrix treatment share the categorical structure needed for grammatical reduction. This gives the authors room to choose a semantic representation with a suitable order. The order then does double duty. It supplies a comparison for lexical meanings, and its behavior under the operations used for composition makes the sentence-level bound possible.
The method, step by step
Let grammar specify the combination
A useful way to follow the method is to start with a transitive sentence. The verb needs a subject and an object. Each noun fills a different position, and the result has sentence type. The grammar says which positions connect. The semantic spaces determine what numerical information passes through those connections. Once a phrase has been composed, its final type identifies the space in which another phrase can be compared with it.
From lexical meanings to a graded entailment score
The steps in order.
The grammatical formalism is a pregroup. Its types can be concatenated, and an order on the types indicates when a composite type reduces. The identity type disappears in concatenation. Every type has a left and a right adjoint, which mark positions where a neighboring expression can satisfy a grammatical requirement. The side matters. An argument expected on the left has to connect to the left-hand position in the grammatical reduction.
pˡ · p ≤ 1 ≤ p · pˡ
Here p is a grammatical type, pˡ is its left adjoint, · concatenates types, and 1 is the identity type. The sign ≤ is the type order. The left inequality lets the adjoint cancel a matching type to its right. The right inequality is the corresponding expansion.
p · pʳ ≤ 1 ≤ pʳ · p
Here pʳ is the right adjoint of p. The other symbols have the same roles as before. The left inequality now contracts a type with an adjoint to its right. In the sentence example, this is how the subject connects to the verb.
The paper builds its examples from an atomic noun type n and a declarative sentence type s. A transitive verb takes a noun on either side and leaves a sentence, so its type is written nʳsnˡ. For John kicks cats, the two nouns connect to the outer parts of the verb type.
n (nʳsnˡ) n ≤ 1 · snˡn ≤ 1 · s · 1 ≤ s
In this expression, nʳ and nˡ are the right and left adjoints of the noun type n. Juxtaposition and · both indicate concatenation, parentheses group the verb type, 1 is the identity, and ≤ gives each stage of the reduction. The outer nouns cancel the verb's noun requirements. The sentence type s remains.
The paper draws each such cancellation as a cup connecting wires. A wire denotes a type, and the cup makes explicit which positions are paired. A straight wire carries the type that survives. The diagrams track order and connectivity, so in the transitive example they show where the subject enters, where the object enters, and why the middle part is the sentence output. In the semantic interpretation these wires represent spaces, and their connections become operations on those spaces.
Interpret the grammar in vector spaces
The structural correspondence rests on compact closed categories. An object in such a category has duals, with maps that introduce or remove a matched pair. The introducing maps are units and the removing maps are counits. Composing an introduction with the matching removal on adjacent wires leaves the surviving wire unchanged. The paper calls these identities the snake equations because the diagrams for the composite maps look like bends that straighten. The grammar and the vector-space semantics both support those same connections.
(1ₐ ⊗ εˡ) ∘ (ηˡ ⊗ 1ₐ) = 1ₐ
Here the subscript ₐ denotes the object called A, and 1ₐ is its identity map. The symbol ⊗ puts maps side by side, ∘ composes them with the rightmost map acting first, and = denotes equality of maps. The unit ηˡ introduces A alongside its left dual. The counit εˡ removes the left dual alongside A. The equation describes one straightening. The other snake identities straighten the corresponding bends with the dual or the right-hand pairing on the surviving wire.
The authors start with finite-dimensional real Hilbert spaces and linear maps, denoted by FHilb. A real Hilbert space here is a vector space with an inner product. The noun type receives a space N, and the sentence type receives a space S. In this setting a space serves as its own dual. A grammatical contraction between two noun positions is interpreted by pairing vectors from N with the inner product. This makes the grammatical instruction to connect two wires into an operation that keeps track of how strongly the two vectors agree along their dimensions.
η(1) = ∑ᵢ |vᵢ〉 ⊗ |vᵢ〉
The unit map η takes the real scalar 1 to the displayed vector in the tensor product of the space with itself. The symbol |vᵢ〉 denotes the basis vector indexed by i, ∑ᵢ sums over the basis, and ⊗ is the tensor product. The paired basis vectors express the matching performed by the unit.
ε(∑ᵢ ⅀ⱼ cᵢⱼ |vᵢ〉 ⊗ |vⱼ〉) = ∑ᵢ cᵢᵢ
Here ε is the counit, i and j range over the basis, and the summation signs collect the terms over those indices. The cᵢⱼ are coefficients in the paired basis, and ⊗ combines the individual basis vectors. The output is scalar. It sums the diagonal coefficients cᵢᵢ, which are the entries where the paired basis indices agree.
A strong monoidal functor is the translation from grammatical types and reductions to spaces and maps. Here strong monoidal means that the translation respects how types are combined, so the grammatical product is interpreted by the semantic tensor product. It also preserves the compact structure used for reducing types. The paper denotes the translation into vector spaces by Q.
|w₁ … wₙ〉 = Q(α)(|w₁〉 ⊗ … ⊗ |wₙ〉)
Here w₁ through wₙ are the words in order, and n used as a subscript bound is the number of words in this expression. The notation |wᵢ〉 denotes the vector for word wᵢ, and |w₁ … wₙ〉 denotes the composed vector. The dots continue the word sequence or tensor product through all positions. The grammatical reduction is α, and Q(α) is its linear interpretation, applied to the combined input.
In a transitive verb, the tensor has a noun space for the subject, a sentence space for the result, and a noun space for the object. A coefficient in this tensor is indexed by a basis direction in each of these spaces. To compose John kicks cats, the grammatical map contracts the subject side against the vector for John and the object side against the vector for cats. The sentence coefficients collect the resulting contributions.
|John kicks cats〉 = ∑ⱼ (∑ᵢ,ₖ cᵢⱼₖ 〈John|eᵢ〉 〈eₖ|cats〉) |sⱼ〉
Here |John kicks cats〉 is the sentence vector. The indices i and k run over noun basis vectors |eᵢ〉 and |eₖ〉, and j runs over sentence basis vectors |sⱼ〉. The coefficient cᵢⱼₖ belongs to the verb tensor. The angle-bracket expressions are the subject and object inner products, adjacent factors are multiplied, and the summations collect the contributions over the indicated indices. The two noun positions are consumed by the inner products. The j index determines the output dimension in sentence space.
The vector-space category also has a dagger, written †. It leaves objects in place and sends a linear map to its adjoint. In the wire diagrams, applying the dagger reverses the direction of a map. This structure accounts for operations such as inner products and is part of what the authors preserve when changing semantic representations. The grammar can therefore keep its reductions even when the meanings operated on by those reductions become matrices.
Represent meanings as positive matrices
A single vector can be turned into a matrix by taking its outer product with itself. If the vector has unit length, that matrix projects onto the line it spans and represents what the paper calls a pure state. Its information is concentrated in a single direction. When an expression is described by several exemplars, the authors add their outer products with weights. The result can retain contributions from several directions at once. For pet, the paper imagines contributions from vectors for dog, cat and tarantula.
⟦w⟧ = ∑ᵢ pᵢ |wᵢ〉〈wᵢ|
The double brackets denote the matrix meaning of w. The index i ranges over exemplars, |wᵢ〉 is the unit vector for exemplar i, and 〈wᵢ| is its adjoint. Writing them together in that order gives the outer product. The scalar pᵢ is a non-negative weight, the weights sum to 1, and ∑ᵢ adds the weighted matrices. The paper suggests that co-occurrence frequencies could inform these weights. The experiment uses its own lexical resource and aggregation procedure.
A positive operator is self-adjoint and has a non-negative quadratic form in every direction. In the real-valued setting, self-adjointness means that the matrix equals its transpose in an orthonormal basis. Its quadratic form measures the amount the matrix assigns to a direction selected by a vector. Positivity makes the matrix suitable both for combining pieces of evidence and for checking whether the remainder of a comparison is admissible.
〈v|ρ|v〉 ≥ 0
Here ρ is the operator, |v〉 is any vector in its space, and 〈v| is the adjoint of that vector. The expression between the brackets is the quadratic form, a real scalar, and ≥ 0 requires it to be non-negative for every v. A density matrix also has trace 1, where the trace is the sum of diagonal entries. Positive operators with other traces remain available when a different scale is needed.
The move to matrices changes what can be encoded by a lexical item. If an input comes from just one vector, the outer product retains a direct link to that vector representation. When an input is mixed, the separate outer products encode different contributions to the same lexical meaning. The resulting expression can itself be mixed. There is no need to choose an exemplar for each word before applying the grammar. The composition can operate on the mixtures and determine how their components contribute to the result.
Lift grammatical reductions to matrix meanings
The categorical construction used for the change is Selinger's CPM construction, named for completely positive maps. A completely positive map preserves positivity even when tensored with an identity map on an additional space. This is stronger than checking an isolated input. It addresses composition in which one operation is applied to part of a larger tensor product. The authors use a category with those maps as its morphisms, the structure-preserving arrows between objects.
In the general construction, the paper writes 𝒞 for a dagger compact closed category. An arrow of the new category from A to B is represented in 𝒞 by a map from the doubled input to the doubled output, using each object and its dual. Complete positivity is expressed through a factorization with an auxiliary object.
φ = (k* ⊗ k) ∘ (1ₐ* ⊗ η꜀ ⊗ 1ₐ)
Here φ is the completely positive map in its doubled representation. The letters A and C, indicated by the subscripts on the identities and the unit, are the input object and an auxiliary object, respectively. The map k takes the tensor product of C and A to the output object B. The star denotes the paired dual-side operation on the map or the input object. The identity maps 1ₐ* and 1ₐ leave the two input sides alone, η꜀ introduces the auxiliary pair, ⊗ places maps alongside one another, and ∘ applies the maps on its right first.
The new category CPM(𝒞) has the same objects as 𝒞 and completely positive morphisms. It retains the dagger compact structure, so the diagrams still support the grammatical contractions. The paper uses thicker wires to depict operations in the matrix setting. The thick wire represents the doubled structure as one semantic wire. At the level underneath, a lifted grammatical cup contracts both components of that structure.
E(k) = k* ⊗ k
The map E is the functor from 𝒞 into CPM(𝒞). Here k is an original morphism, k* is its dual-side counterpart, and ⊗ combines the two. The result interprets an original map in the doubled representation while preserving its grammatical connections. This is how the authors can apply the previously defined contractions after changing the objects used as lexical states.
For language, a strong monoidal functor again turns a grammatical reduction into a semantic map. The authors write this functor as S, distinct from the use of S for the sentence space. An input word now supplies a positive matrix regarded as a state for its grammatical type. Juxtaposing the states gives the input to the semantic map, which produces a state for the final type.
⟦w₁ … wₙ⟧ = S(r)(⟦w₁⟧ ⊗ … ⊗ ⟦wₙ⟧)
Here w₁ … wₙ is the expression in word order and ⟦wᵢ⟧ is the matrix meaning of its word in position i. The reduction r maps the sequence of grammatical types to a final type, and S(r) interprets that reduction as a completely positive map. The ⊗ signs form the joint input and the dots continue it through all n words. The brackets on the left enclose the resulting meaning in the space for the final type.
The paper illustrates the link with the vector construction using Clara likes beer. Clara and beer are chosen as noun basis vectors and then represented by their pure matrices. The verb is also represented by a pure matrix, obtained from its transitive tensor. The noun arguments select the verb coefficients for those basis positions. Composition yields the outer product of the sentence vector one would have obtained in the vector-space account.
⟦Clara likes beer⟧ = ∑q,u Cᵢqⱼ Cᵢuⱼ |s_q〉〈s_u|
Here i and j are the fixed noun basis indices for Clara and beer. The symbols q and u index the sentence basis, and Cᵢqⱼ and Cᵢuⱼ are selected coefficients of the verb tensor. The sum runs over the two sentence indices. The term |s_q〉〈s_u| is the outer product of the basis vector indexed by q with the adjoint of the one indexed by u. The coefficients multiply because the result retains both sides of the sentence vector's outer product.
A mixed example in the paper takes the sisters as a mixture involving Annie, Betty and Clara, enjoy as a mixture of liking and appreciating, and drinks as a mixture involving beer and wine. The subject and object still enter the verb at their usual positions. The calculation now combines the lexical alternatives through the same grammatical map. Because the map is linear, one can understand the output by distributing the tensor product over the mixtures and composing each resulting contribution. This behavior is also the mechanism behind the entailment proof.
Define a directional strength
To motivate an order on meanings, the authors start from predicates understood as sets. A state satisfies a predicate when the state is contained in the predicate's set. One predicate entails another if every state satisfying the first also satisfies the second. Set inclusion expresses that requirement. The positive-matrix counterpart compares how strongly every test state satisfies each predicate. In that setting, matrix positivity takes the role that inclusion played for sets.
A ⊑ B ⇔ B − A is positive
Here A and B are positive operators on the same space. The sign ⊑ denotes the Löwner order. The double arrow ⇔ indicates equivalence. The difference B − A must satisfy the positivity condition in every direction. The direction of the comparison is from the matrix being subtracted, A, to the matrix that must cover it, B.
ρ ⊩ A = tr(ρA)
Here ρ is a density matrix used to test the predicate A, ⊩ indicates satisfaction, tr takes the trace, and ρA is the matrix product. The right-hand side is the degree of satisfaction. The paper explains that A ⊑ B is equivalent to every density operator assigning at least as much satisfaction to B as to A. In linguistic terms, the same test meaning must satisfy the target at least as strongly as it satisfies the source.
The authors develop a more general route to approximate entailment using a commutative monoid. This is a collection with an associative, commutative combination operation and an identity. For sets, the operation can be union with the empty set as identity. For positive operators, it can be addition with the zero operator as identity. In either case, a basic form of entailment says that the target can be obtained by combining the source with some further element. To allow an approximate relation, the authors also permit a correction on the target side.
A + D = B + E
Here A and B are the source and target propositions, + is the monoid operation, D supplements the source, and E is an error term supplementing the target. The equality expresses that the supplemented target contains the source in the monoid sense. The choice of allowed errors is essential. If any error is permitted, taking E to be A and D to be B always gives an equality by commutativity.
The general proposal restricts errors to an ordered family and takes the lower bound of the errors that work. A complete meet semilattice supplies such a lower bound. To compare errors across pairs, the paper proposes monotone maps from the allowed error families into a common order of sizes. In its finite-set example, the admissible error terms are subsets of the source. The natural correction adds the part of the source that the target is missing.
error size = |E| / |A|
Here E is the added subset of the source set A, the vertical bars denote cardinality, and / divides the number of added elements by the source cardinality. This expression measures the correction relative to the source, when the source is nonempty. It gives the reader an intuition for what the matrix construction is trying to measure. The matrix method uses a different error family, based on scaling the entire source operator.
E = (1 − k)A
Here E is the correction to the target, A is the source operator, and k is a scalar in [0, 1]. The notation 1 − k gives the fraction of the source supplied as a correction, and juxtaposition with A denotes scalar multiplication. Once that correction is allowed, the question is whether the target contains the portion of A left over after the correction.
A ≼ₖ B ⇔ 0 ⊑ B − kA
Here ≼ₖ is the relation of being a k-hyponym, written with a directional symbol to distinguish it from ⊑, the Löwner order. The operators A and B occupy the same space, k lies in (0, 1], and 0 is the zero operator. The right-hand side requires B − kA to be positive. A larger admissible k certifies that more of the source is present in the target. The largest admissible value in the specified interval is the reported strength kₘₐₓ.
This test depends on all directions of the representation. If A has a component in a direction that B leaves unsupported, subtracting any positive multiple of A exposes that absence. A weak match along an otherwise supported direction can also cap the grade. The score therefore captures a kind of inclusion that is more demanding than finding a strong overall overlap. Its directionality comes from asking how much of A fits in B, with B providing the capacity against which the source is tested.
Compute the strength and understand its scale
The paper gives an exact criterion for the existence of a positive grade. The support of a positive operator is the subspace spanned by its eigenvectors with positive eigenvalues. Equivalently, the support retains the directions on which the operator acts nontrivially. If the source support extends beyond the target support, some direction orthogonal to the latter has a positive source quadratic form and a vanishing target quadratic form. This rules out any positive multiple of the source in the target.
supp(A) ⊆ supp(B) ⇔ ∃ k > 0 such that B − kA ≥ 0
Here supp is the support, ⊆ is subspace inclusion, and ∃ means that at least one such scalar exists. The symbols A, B and k again denote the source, target and scale. The inequality B − kA ≥ 0 says that the difference is positive. When the support test fails, the paper uses a strength of 0 to express the absence of any admissible positive grade.
When support is included, an eigenvalue determines the positive threshold. The notation B⁺ in the paper denotes the Moore–Penrose pseudoinverse of the target. On the support of B, this operation inverts its positive eigenvalues. On the kernel, where B vanishes, the pseudoinverse acts as zero. This gives a comparison that accounts for target directions with different amounts of available support.
k = 1/λ
In this equation, k is the largest admissible scale for the uncapped positivity test when the threshold is finite, 1/λ is the reciprocal, and λ is the largest eigenvalue of B⁺A. The matrix product multiplies the target pseudoinverse by the source. The grade itself is capped at 1 by its definition. If the target already covers the source at full scale, the grade is 1. A zero source also satisfies the comparison at full scale directly.
The eigenvalue rule has a useful geometric interpretation. On its support, the target provides a different scale for each direction. Expressing the source relative to those scales reveals the direction that makes the strongest demand on the target. At the threshold the residual matrix has no room left in a limiting direction. Past that threshold the residual becomes negative there. The largest eigenvalue finds the limiting demand, and its reciprocal is the scaling factor that just meets it. This logic applies when source and target have different preferred basis directions as well as when both are diagonal in the same basis.
A lexical comparison can also be part of a chain. If the intermediate matrix contains a given fraction of the source and the final matrix contains a given fraction of the intermediate one, the final matrix contains at least the product of those fractions of the source.
mₘₐₓ ≥ kₘₐₓ lₘₐₓ
Here kₘₐₓ is the best grade from A to B, lₘₐₓ is the best grade from B to C, and mₘₐₓ is the best grade from A to C. The adjacent factors on the right are multiplied, and ≥ expresses a lower bound. In the direction set by the definition, B contains kₘₐₓ A and C contains lₘₐₓ B. The intermediate step provides a guarantee even if the direct comparison turns out to be stronger. At grade 1, comparing an operator with itself always succeeds. Generally, comparing distinct operators in either direction can give different grades, and mutual positive grades can occur.
The paper also proves a restricted continuity result. Adding a small positive perturbation to the source can yield a correspondingly small change in the grade, provided the perturbation lies in the target's support. The perturbation can alter off-diagonal entries. Its direction is the essential condition, since even a tiny added component outside the support can make a positive grade impossible.
A′ = A + δρ
Here A′ is the perturbed source, A is the original source, δ is a positive scalar controlling the perturbation, ρ is a density operator with support included in that of B, and + is matrix addition. The target B stays fixed in the comparison. The theorem states that for any positive tolerance on the change in strength, a sufficiently small positive δ gives a grade within that tolerance. A positive addition increases what the target is being asked to cover.
The normalization chosen for the operators affects how much can be contained. If both matrices have trace 1, their difference has zero trace. A positive matrix with zero trace is the zero matrix, so distinct trace-normalized meanings cannot be ordered crisply under the Löwner order. The graded comparison still permits partial relations. To recover a useful crisp order, the authors discuss scaling positive operators so that their maximum eigenvalue is 1. Projection operators then retain their ordinary order, which is the basis of the connection to quantum logic. In that special case, the relevant inclusion is inclusion of the subspaces onto which the operators project.
The paper also gives a transformation that brings the Bayesian partial order into the same framework. It starts with a diagonalization of the operator, arranges the diagonal values in descending order, transforms those values cumulatively, and then changes back to the original basis.
d′₀ = d₀
Here d₀ is the first diagonal value after ordering, and d′₀ is the first value of the transformed diagonal. The equality initializes the transformation. The index starts at 0 in the paper's notation.
d′ᵢ₊₁ = d′ᵢ × dᵢ₊₁
Here i indexes a diagonal position, i + 1 is the following position, dᵢ₊₁ is the original value there, and d′ᵢ is the already transformed value at the preceding position. The sign × multiplies them to give d′ᵢ₊₁. The example shows that the same order framework can accommodate a different comparison after a transformation of the operators. The paper leaves the linguistic choice of scale to empirical work.
Carry the bound through composition
A phrase can be compared with any other expression whose grammatical reduction leads to the same semantic space. The paper illustrates this with blond men and men. The adjective is represented as an operation on a noun meaning, and the result of applying it still belongs to the noun space. The two expressions can therefore be compared after composition. Their word counts play no role in the comparison between the two output matrices.
For a guarantee based on the lexical grades, the paper makes stronger assumptions. The phrases must have the same length and grammatical structure and use the same corresponding spaces. Definite and indefinite articles are left out of the length convention. The phrases must also be positive, meaning that their lexical positions are upward monotone. In such a position, replacing a description by a broader one supports inference in the same direction. Negation gives the reader a reason for the restriction, since broadening an expression inside a negative construction can reverse the direction of the inference.
⟦Bᵢ⟧ = kᵢ⟦Aᵢ⟧ + ρᵢ
Here i is a position in the aligned phrases, Aᵢ is the source word at that position, and Bᵢ is the target word. The brackets denote their positive matrix meanings. The scalar kᵢ is a certified grade between them, and ρᵢ is the positive remainder. The right-hand side adds the scaled source matrix to that remainder. This equality simply writes the lexical positivity test in a form that can be substituted into the composition.
Taking the tensor product of the target meanings gives a product of sums. When expanded, it contains a term that chooses the scaled source matrix at every position. All the other terms choose a positive remainder in at least one position. Each such term is a tensor product of positive matrices and is itself positive. Their sum is therefore positive. Applying the shared grammatical map sends that sum to a positive output, because the map preserves positivity. This produces a decomposition at phrase level that has the same shape as the lexical decomposition.
φ(Ψ) − (k₁ · … · kₙ)φ(Φ) = φ(P) ≥ 0
Here Φ is the source phrase, Ψ is the target phrase, and φ denotes their shared grammatical meaning map. Its application to a phrase denotes the result of applying the map to the tensor product of that phrase's word meanings. The symbols k₁ through kₙ are the grades in word order, · multiplies them, and the dots continue the multiplication through the last position. The matrix P is the sum of the remaining terms in the target's tensor expansion. The final inequality means that φ(P) is positive.
The result gives a lower bound because the proof singles out a term that is guaranteed to be there. The remainder can also contribute in directions occupied by the source phrase. The grammatical map may even send quite different input contributions to the same part of the output space. The direct phrase comparison can therefore allow more subtraction than the lexical product certifies. On the other hand, if every lexical comparison is crisp, all the grades can be taken to be 1, and the phrase comparison is crisp too.
The paper works through John scoffs cake and John eats sweets to make the expansion concrete. The general verb is an equal mixture of the two verb exemplars for nibbling and scoffing. The general object is an equal mixture of cake and chocolate. The two changed positions have grades of 1/2 in the chosen construction, and John stays fixed. In the composed target, one term is exactly the source sentence with coefficient 1/4. The other terms pair the available verbs and objects in the remaining combinations. They are positive contributions after composition, so removing the source term at that scale leaves a positive matrix. The example demonstrates the guaranteed grade 1/4 for this constructed sentence pair.
Experiments and results
The sentence pairs and the lexical input
The empirical test uses the dataset introduced by Balkır and colleagues for distributional sentence entailment. It contains short pairs whose first member was judged by people for the extent to which it entails the second member. The members of a pair have the same construction. Both are noun–verb or both are verb–noun. A pair built from recommend development and suggest improvement receives a high entailment rating in the paper's examples. The pair progress reduce and development replace receives a lower rating. The task is to score each ordered pair so that the ranking across pairs agrees with the ranking implied by the human ratings.
To build input matrices, the authors start with the words appearing in the sentence pairs. They use WordNet through the Natural Language ToolKit and traverse the hyponym graph below each word to depth 8. At the nodes they reach, they collect lemma names, the lexical forms used to look up the entries. The resulting collection provides candidate exemplars for a word before the authors consult a distributional representation. This is an explicit use of a lexical hierarchy in building the input. Lemma
The authors then look for each candidate among the available GloVe vectors. They find approximately 47,000 hyponyms across the words in the sentence pairs and report that approximately 10,000 occur in the GloVe data used for the test. These counts describe the retrieval and coverage of lexical exemplars across the task, independent of the number of rated sentence pairs. GloVe supplies numerical directions for the matched exemplars. WordNet supplies the decision to include each exemplar in the collection for a word. GloVe: Global Vectors for Word Representation
For each word, the procedure converts each available exemplar vector to its corresponding outer-product matrix, adds those matrices, and normalizes the result. It then adds small random diagonal entries drawn uniformly from [0, 10⁻³) and normalizes again. The goal of this diagonal addition is to allow some minimal entailment between word matrices by giving weight to otherwise unsupported directions. This step is particularly relevant to a measure whose positive grades depend on support inclusion. The paper describes this as a construction from lexical resources and existing distributional vectors. The reported procedure does not fit composition weights to the human pair scores.
How the sentence representations are compared
The verb-only baseline compares the verbs in the two sentence fragments. It asks how much of the ranking can be recovered by ignoring the noun. The other settings combine a noun matrix and a verb matrix before scoring the pair. To do this with compact lexical inputs, the authors draw on Frobenius algebras, which in this setting provide operations for lifting lower-order lexical representations into forms that can interact with their arguments. This lets the experiment start with a verb matrix and avoid storing a separate full transitive tensor for every verb.
One Frobenius operation amounts to pointwise multiplication. At each matrix position, it combines the corresponding noun and verb entries by multiplying them. A second, noncommutative operation uses the square root of the noun matrix on both sides of the verb matrix.
ρ(s) = ρ(n)¹ᐟ² ρ(v)ρ(n)¹ᐟ²
Here ρ(s) is the sentence representation, ρ(n) is the noun matrix, and ρ(v) is the verb matrix. The superscript ¹ᐟ² indicates the positive matrix square root of the noun matrix. Juxtaposition is ordered matrix multiplication. The noun matrix surrounds the verb matrix, so the two grammatical roles take different parts in the operation even though the lexical inputs start as matrices of compatible size.
The additive setting combines the two input matrices by addition. The authors distinguish ordinary addition of operators from an operation implemented as a morphism in the completely positive category. For density-matrix inputs, they give a diagram implementing the additive combination. The experiment can consequently test a composition that retains contributions from both words with no pointwise multiplication and no noun square root. Addition is commutative, so the resulting representation is insensitive to the order of the same two inputs.
The pair score in each setting comes from the eigenvalue rule for k-hyponymy. The comparison with human judgments uses Spearman's rank correlation, denoted by ρ in the results. Here ρ names the correlation statistic instead of a density matrix. It compares the ranking induced by the algorithm with the ranking induced by the mean human judgment for each pair. A higher value means closer ranking agreement. It gives no calibration guarantee for the size of the predicted entailment score on an individual pair.
The authors run the comparison with vectors of 50, 100, 200, and 300 dimensions. They say the strongest results are obtained with 50-dimensional vectors and report the figures for that dimension. The reported comparison is against the mean judgments on the sentence-entailment dataset. The article does not identify a separate development or held-out split for the choice of dimensionality.
Spearman rank correlation on the Balkır sentence-entailment dataset with 50-dimensional vectors
Additive composition ranks closest to the human judgments among the tested systems, and every noun–verb combination improves on using the verb alone.
The numbers
| System or setting | Spearman ρ |
|---|---|
| Verb only | 0.268 |
| Pointwise Frobenius combination | 0.508 |
| Noncommutative Frobenius combination | 0.436 |
| Additive combination (this paper) | 0.643 |
| Inter-annotator agreement | 0.66 |
In the 50-dimensional comparison, using the verb alone gives Spearman's ρ of 0.268. Including the noun through the noncommutative Frobenius operation gives 0.436, while the pointwise operation gives 0.508. The additive setting gives 0.643, the strongest correlation among the tested settings. The reported inter-annotator figure is 0.66. It is a human-agreement reference in the table and represents a different comparison from a system's correlation with the mean human judgments.
The paper also prints a p column. It gives > 0.25 for verb only, > 0.05 for the pointwise Frobenius setting, > 0.05 for the noncommutative Frobenius setting, and > 0.001 for addition. These are the inequalities as reported. They do not supply an exact probability for any setting or a pairwise significance comparison between the correlations. The supported ordering of the settings is the ordering of the reported correlation values.
The authors compare their additive result with the best vector-based result reported by Balkır and colleagues, Spearman's ρ of 0.66 on the same entailment task. This is numerically the same as the inter-annotator figure listed in the table, but it refers to a separate comparison. The earlier vector-based approach used part-of-speech information in its representations, whereas the matrices in the new experiment were built without it. The authors describe the results as comparable and identify that information as a possible source of improvement. Part-of-speech tagging
What the ablations show
What changes when the noun is included
The main controlled comparison is between using the verb by itself and including the noun through one of the composition operations. With the same task and comparison measure, every noun–verb combination gives a ranking closer to the human ratings than the verb-only baseline. The noun supplies evidence that survives very different combination rules. This supports the practical decision to include the argument's meaning for these pairs. Because there is no noun-only comparison in the reported results, the experiment leaves the relative predictive strength of the individual words unresolved.
The comparison between the two Frobenius operations goes a step further. Each uses both lexical matrices, but their ways of letting the noun affect the result differ. The pointwise operation compares favorably with the noun-sandwiched operation on the sentence pairs. This is evidence about those particular combinations under the lexical construction used in the experiment. It does not isolate a broad advantage of pointwise multiplication across representations, since a change of representation can also change what information corresponding matrix positions carry.
Addition performs best in this setup. Its ability to preserve contributions from both inputs gives it a different behavior from either multiplicative setting. The comparison is especially informative because addition does not encode constituent order, and the experiment compares only pairs that already match in their noun–verb or verb–noun construction. The highest correlation can therefore be obtained without demonstrating sensitivity to order. A test that required distinguishing role changes or different constituent orders would ask for evidence beyond what these pairs supply.
Dimensionality was varied, but the paper gives the individual results only for the strongest dimension. That identifies the best reported setting among the choices the authors tried. The experiment supplies no detailed curve showing how the ranking changes as dimensions increase, and the table cannot establish whether the ordering of the composition operations is stable across dimensions. The effect of dimensionality is therefore less well isolated than the comparison among the reported composition rules.
What the constructed examples isolate
The phrase and sentence examples analyze parts of the method that the empirical comparison does not address directly. In the blond men example, the dimensions are stipulated to represent blond, brunette, male and female. The representation for men includes both hair directions and the male direction. Applying the adjective shifts the hair contribution towards the blond direction while retaining the male direction. The output is in the same noun space as the original noun. This makes the comparison possible in spite of the different lengths of the expressions.
The example then contrasts the constructed states for Carlos and Janette. Carlos has blond and male components, both within the support of the composed phrase. Janette has blond and female components, with the female direction outside its support. The first comparison can have a positive grade. The second has grade 0, even though the blond contribution is shared. This isolates the role of support inclusion. Shared evidence can coexist with an unsupported direction that rules out every positive grade. The example uses a deliberately constructed lexical space and an adjective operation chosen for it.
The paper's diagram of the Bloch disc offers a different analysis of the order. The display represents real states in a planar disc. Pure states lie on its boundary, while mixed states lie in its interior. With the maximum-eigenvalue normalization, the authors plot contours of entailment strength involving a selected interior state. A contour combines states with the same score for an ordered comparison. The plot illustrates how the grade changes across a continuous family of positive operators. Its values arise from the order and the normalization, independent of corpus-derived meanings or human judgments of sentences.
The example with scoffing and eating isolates the effect of expansion through a fixed grammatical map. Because the general verb and noun are constructed from known components, one can identify the contribution shared by the two sentences before doing an eigenvalue comparison on their outputs. This checks the algebraic reason for the lower bound: the target contains an entire composed source term, and every extra term produced by distribution remains positive. The empirical correlations answer a different question, since they evaluate rankings after constructing lexical meanings from broad collections of exemplars.
Limitations
Limits the authors identify
The authors restrict their account to positive contexts for the entailments they analyze. In a downward-monotone context, replacing a narrower expression with a broader one changes the direction in which an inference is licensed. The paper discusses how an implicit quantifier can create this problem even without a visible negative word. A universal reading of a statement about dogs need not license the corresponding universal claim about pets. The noun position in a universal restriction is downward monotone. An existential reading gives the familiar upward direction when the relevant category inclusion holds. Handling the polarity of such positions would require additional structure beyond the composition used for the main theorem.
The authors also distinguish adjectives that narrow a noun's meaning from cases such as former president. The example with blond men can be constructed to behave like a restriction of the noun. A former president need not be a president now, so the same inference to the head noun fails. The paper mentions possible additional structure, such as an involution, in discussing negative or downward-monotone phenomena. It identifies quantification and verb-phrase ellipsis as areas in which extensions of the semantic or grammatical machinery could matter. These are open parts of the linguistic account given in the paper.
The authors call the empirical experiment a toy test and emphasize the simplicity of its sentences. In particular, they want to know how the commutative additive operation would fare with more complex sentences. They also leave open how to construct operators like the hand-built adjective from data. They suggest extending regression procedures previously used for adjective–noun representations. Finally, they leave the choice of normalization open. Trace normalization and maximum-eigenvalue normalization serve different purposes in the paper, and the authors call for empirical evidence about which scaling is appropriate for linguistic comparisons.
Limits of the guarantees and the evidence
Comparability and the compositional guarantee have different scope. Meanings can be compared directly after reduction to a common grammatical type even when the source and target have different structures. For instance, an adjective–noun phrase and a noun produce meanings in the noun space. The product bound requires aligned lexical inputs and a shared compositional map. With a different grammatical reduction on each side, the proof no longer has a single tensor expansion in which the composed source appears as a designated positive term. A grade found by direct comparison of the outputs can still be valid within the representation.
The product is a lower bound even for aligned phrases. A weak lexical pair may constrain the guarantee more than it constrains the finished sentence. Composition can discard or combine aspects of the input, so the phrase meanings may agree more closely than the lexical arguments would suggest. The paper explicitly observes that a zero grade between components does not entail a zero grade between the full sentences. This leaves an important difference between using lexical grades to certify a minimum and using sentence matrices to estimate the best grade directly.
Robustness likewise has a condition with practical consequences. The proof of continuity applies to additions in the support of the target. The lexical experiment fills in diagonal directions with small random values to keep a lack of support from dominating all comparisons. The published results give no separate no-noise comparison and no variation across draws. They therefore leave open how much of the observed ranking depends on that smoothing. The formal continuity result alone cannot supply this evidence, since it assumes a fixed target and an admissible perturbation within its support.
The empirical word matrices also depend on which hyponyms are found in WordNet and which have GloVe vectors. The large difference in the reported coverage counts means that many proposed exemplars do not enter the lexical sums. Moreover, WordNet provides an explicit hyponymy signal at the input stage. The experiment tests a way to combine that signal with distributional directions and sentence composition. It leaves open whether the same behavior could be obtained if the lexical meanings were built solely from corpus co-occurrence. A comparison that removed WordNet or changed the exemplar construction would be needed to measure its contribution.
Finally, the observed correlations depend jointly on lexical construction, smoothing, normalization, the composition rule and the directed score. The verb-only comparison varies the composition input, and the other comparisons vary the composition rule. They do not separately test the proposed score against another score on otherwise identical matrices. The earlier result cited by the authors uses a different representation and different lexical information. The evidence thus supports the rankings reported for the short rated pairs and the algebraic guarantees proved under the stated assumptions. Claims about which entailment measure works best on more varied sentences remain open.
What came after
The paper points toward several extensions for subsequent research. A treatment of quantification would have to determine which positions license upward or downward inference before carrying lexical grades through them. A treatment of verb-phrase ellipsis would have to recover the omitted meaning through an appropriate grammatical reduction before comparing the resulting phrases. On the empirical side, the authors propose testing alternative normalizations and examining cases where a direct entailment is stronger than the bound obtained by following an intermediate concept. These are extensions proposed by the authors. Subsequent work adopting them is undocumented here.
Cite
Cite as Dea Bankova, Bob Coecke, Martha Lewis and Dan Marsden. 2019. Graded hyponymy for compositional distributional semantics. Journal of Language Modelling.
@article{bankova2019graded,
title = {{Graded hyponymy for compositional distributional semantics}},
author = {Dea Bankova, Bob Coecke, Martha Lewis and Dan Marsden},
journal = {Journal of Language Modelling},
year = {2019},
doi = {10.15398/jlm.v6i2.230},
url = {https://doi.org/10.15398/jlm.v6i2.230}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bankova-2019-graded-hyponymy-compositional-distributional-semantics/