SlideShare a Scribd company logo
Encoding Generalized Quantifiers in 
Dependency-based Compositional Semantics 
Yubing Dong – University of Southern California 
Ran Tian – Tohoku University 
Yusuke Miyao – National Institute of Informatics, Japan
Background 
Generalized Quantifiers (GQ)
Generalized Quantifiers (GQ) 
Most students like noodles. 
Generalized 
Quantifier
Generalized Quantifiers (GQ) 
Most students like noodles. 
Property-denoting 
noun phrase 
Generalized 
Quantifier
Generalized Quantifiers (GQ) 
Most students like noodles. 
Property-denoting 
noun phrase 
Predicate 
Generalized 
Quantifier
Generalized Quantifiers (GQ) 
Most (Student) (LikeNoodles) ∈ {0,1} 
Denotations 
Student ⊆ 푊 
LikeNoodles ⊆ 푊 
Binary Relation over 푊
Generalized Quantifiers (GQ) 
The relation imposed by a GQ is usually based on the notion ⋅ of set cardinalities 
Most (Student) (LikeNoodles) 
iff 
퐒퐭퐮퐝퐞퐧퐭 ∩ 퐋퐢퐤퐞퐍퐨퐨퐝퐥퐞퐬 
퐒퐭퐮퐝퐞퐧퐭 
> 80%
Generalized Quantifiers (GQ) 
Most (Student) (LikeNoodles) 
Many 
ALotOf 
Few 
AFew 
AtMost[n] 
AtLeast[n]
Background 
Recognizing Textual Entailment (RTE)
Recognizing Textual Entailment (RTE) 
Example: 
• 푇1: Mary loves every dog. 
• 푇2: Tom has a dog. 
• 퐻: Tom has an animal that Mary loves. 
• 푇1, 푇2 ⇒ 퐻 i.e. 푇1 and 푇2 entails 퐻 
Definition: “푇 entails 퐻" (푇 ⇒ 퐻) if, typically, a human 
reading 푇 would infer that 퐻 is most likely true 
• Relatively loose, compared to logical entailment
GQ in RTE 
At most 5 students like noodles. 
At most 5 Japanese students like udon noodles.
GQ in RTE 
At least 5 students like noodles. 
At least 5 Japanese students like udon noodles.
GQ in RTE 
Most students like noodles. 
Most Japanese students like udon noodles.
GQ in RTE 
The FraCaS Corpus: 
• Built in mid-1990s 
• A set of hand-crafted entailment problems covering 
wide range of semantic phenomena 
Section 1 - Generalized Quantifiers: 
• 74 problems: 
• 44 have single premise sentence 
• 30 have multiple premise sentence
GQ in RTE 
Accuracies of previous systems on Section 1 of FraCaS corpus 
System 
Accuracy 
Single Multi Overall 
NatLog 
MacCartney07 84.1% 
N/A 
MacCartney08 97.7% 
CCG-Dist 
Parser Syntax 70.5% 50.0% 62.2% 
Gold Syntax 88.6% 80.0% 85.1%
GQ in RTE 
Accuracies of previous systems on Section 1 of FraCaS corpus 
System 
Accuracy 
Single Multi Overall 
NatLog 
MacCartney07 84.1% 
N/A 
MacCartney08 97.7% 
CCG-Dist 
Parser Syntax 70.5% 50.0% 62.2% 
Gold Syntax 88.6% 80.0% 85.1% 
TIFMO 
Baseline 79.5% 86.7% 82.4% 
Selection 90.9% 93.3% 91.9% 
Relation 88.6% 93.3% 90.5% 
Selection+Relation 93.2% 96.7% 94.6%
But I’m getting ahead of myself…
Background 
Properties of GQs
Properties of GQs 
Problem with encoding the “perfect semantics” 
Most (Student) (LikeNoodles) 
iff 
퐒퐭퐮퐝퐞퐧퐭 ∩ 퐋퐢퐤퐞퐍퐨퐨퐝퐥퐞퐬 
퐒퐭퐮퐝퐞퐧퐭 
> 80% 
Challenge: set cardinalities are difficult to perfectly encode
Properties of GQs 
Compromise: only encode major GQ properties 
• Interaction with universal and existential quantifications 
• Conservativity 
• Monotonicity
Properties of GQs 
Interaction with universal and existential quantifications 
Case 1: 
퐴 ⊆ 퐵 ⇒ 퐹 퐴 퐵 ⇒ 퐴 ∩ 퐵 ≠ ∅ 
Example: “most” 
All students like noodles. 
Most students like noodles. 
There are students who like noodles.
Properties of GQs 
Interaction with universal and existential quantifications 
Case 2: 
퐴 ⊆ 퐵 ⇒ 퐹 퐴 퐵 ⇒ 퐴 ∩ 퐵 ≠ ∅ 
Example: “a lot of” 
All students like noodles. 
A lot of students like noodles. 
There are students who like noodles.
Properties of GQs 
Interaction with universal and existential quantifications 
Case 3: 
퐴 ⊆ 퐵 ⇒ 퐹 퐴 퐵 ⇒ 퐴 ∩ 퐵 ≠ ∅ 
Example: “at most n” 
All students like noodles. 
At most 5 students like noodles. 
There are students who like noodles.
Properties of GQs 
Conservativity 
The “domain restraining” role of the noun argument 
• Eliminates objects that do not have the noun property 
• Only need to consider which of the rest has the predicate property 
퐹 퐴 퐵 ⟺ 퐹(퐴)(퐴 ∩ 퐵) 
Example: 
• “Few apples are toxic.”⟺“Few apples are toxic apples.” 
• We don’t care non-apples toxicants, e.g. toxic oranges
Properties of GQs 
Monotonicity 
A GQ 퐹 ⋅ ⋅ is upward entailing in the noun argument if: 
퐹 퐴′ 퐵 ⇒ 퐹 퐴 퐵 ∀퐴′ ⊆ 퐴 
Similarly, a GQ can also be 
• downward entailing in the noun argument, and 
• upward/downward entailing in the predicate argument
Properties of GQs 
Monotonicity 
Example: “at most 푛” is downward entailing in each argument 
At most 5 students like noodles. 
At most 5 Japanese students like udon noodles.
Properties of GQs 
Monotonicity 
Example: “at least 푛” is upward entailing in each argument 
At least 5 students like noodles. 
At least 5 Japanese students like udon noodles.
Properties of GQs 
Monotonicity 
Example: “most” is neither upward nor downward entailing in 
the noun argument 
Most students like noodles. 
Most Japanese students like noodles.
Properties of GQs 
Monotonicity 
Example: but is upward entailing in the predicate argument 
Most students like noodles. 
Most students like udon noodles.
Background 
Dependency-based Compositional Semantics (DCS) for RTE 
• Proposed by Tian et al. (2014)
DCS for RTE 
DCS tree for “All students like udon noodles”
DCS for RTE 
DCS tree for “All students like udon noodles” 
Abstract Denotations: 
퐧퐨퐨퐝퐥퐞 ⊆ 푊 
퐮퐝퐨퐧 ⊆ 푊 
퐬퐭퐮퐝퐞퐧퐭 ⊆ 푊 
퐥퐢퐤퐞 ⊆ 푊 × 푊
DCS for RTE 
퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 
DCS tree for “All students like udon noodles” 
“udon noodles”
DCS for RTE 
퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 
퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 
DCS tree for “All students like udon noodles” 
“like udon noodles”
DCS for RTE 
퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 
퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 
퐷3 = 휋푆퐵퐽 퐷2 
DCS tree for “All students like udon noodles” 
“subjects who like 
udon noodles”
DCS for RTE 
r R,C ≡ x ∅≠R∩ x ×Wr ⊆ x ×Cr 
If 푅 and 퐶 have the same dimension, 
• 푞⊆ 푟 
퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 
퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 
퐷3 = 휋푆퐵퐽 퐷2 
퐷4 = 푞푆퐵퐽 ⊆ 
퐷3, 퐬퐭퐮퐝퐞퐧퐭 
q⊆ 
DCS tree for “All students like udon noodles” 
푅, 퐶 = ∗ (0-dimension point set) when 퐶 ⊆ 푅, 
• 푞⊆ 푟 
푅, 퐶 = ∅ otherwise 
wide reading of “⊆”
DCS for RTE 
r R,C ≡ x ∅≠R∩ x ×Wr ⊆ x ×Cr 
If 푅 and 퐶 have the same dimension, 
• 푞⊆ 푟 
퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 
퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 
퐷3 = 휋푆퐵퐽 퐷2 
퐷4 = 푞푆퐵퐽 ⊆ 
퐷3, 퐬퐭퐮퐝퐞퐧퐭 
푆퐵퐽 퐷2, 퐬퐭퐮퐝퐞퐧퐭 
퐷5 = 푞⊆ 
q⊆ 
DCS tree for “All students like udon noodles” 
푅, 퐶 = ∗ (0-dimension point set) when 퐶 ⊆ 푅, 
• 푞⊆ 푟 
푅, 퐶 = ∅ otherwise 
narrow reading of “⊆” 
(“the set of udon noodles that all student like”)
DCS for RTE 
퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 
퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 
퐷3 = 휋푆퐵퐽 퐷2 
퐷4 = 푞푆퐵퐽 ⊆ 
퐷3, 퐬퐭퐮퐝퐞퐧퐭 
푆퐵퐽 퐷2, 퐬퐭퐮퐝퐞퐧퐭 
퐷5 = 푞⊆ 
DCS tree for “All students like udon noodles” 
Prove statement 
• 퐷4 ≠ ∅ (wide reading) or 
• 퐷5 ≠ ∅ (narrow reading) 
using forward chaining
DCS for RTE 
⊆ Basic operators 푟 
/ functions: 
• × - Cartesian product of sets 
• ∩ - Set intersection 
• 휋푟 - Projection onto domain of semantic role 푟 
• 푙푟 - Relabeling 
• 푞- Division 
Basic types of statements: 
• Non-emptiness: 퐴 ≠ ∅ 
• Subsumption: 퐴 ⊆ 퐵
Background 
DCS for RTE: the selection operator 
• Also introduced in Tian et al. (2014)
DCS for RTE: the selection operator 
• Introduced as an extension to represent the generalized 
selection operation in relational algebra 
• Marked on a DCS tree node 
• Wrap the abstract denotation 퐷 to form a new abstract 
denotation 푠푓 퐷 
• The properties of 푠푓 퐷 can be user defined 
Example: 
the set of highest mountains: 푠ℎ푖푔ℎ푒푠푡 (퐦퐨퐮퐧퐭퐚퐢퐧)
Encoding Generalized Quantifiers 
as selections
Encoding GQs as Selections 
We encode a GQ 퐹 using selection 푠퐹 as: 
퐹 퐴 퐵 ≡ 푠퐹 퐴 ⊆ 퐵 
Basic requirement: 
• 퐹 should be upward-entailing in the predicate 
argument 퐵 
• A major limitation
Encoding GQs as Selections 
퐹 퐴 퐵 ≡ 푠퐹 퐴 ⊆ 퐵 
• Entailment from universal quantification now written as: 
퐴 ⊆ 퐵 ⇒ 푠퐹 퐴 ⊆ 퐵 
• Conservativity as: 
푠퐹 퐴 ⊆ 퐴 ∩ 퐵 ⇔ 푠퐹 퐴 ⊆ 퐵 
• Both hold if we add axiom: 
푠퐹 퐴 ⊆ 퐴
Encoding GQs as Selections 
퐹 퐴 퐵 ≡ 푠퐹 퐴 ⊆ 퐵 
• Entailment to existence quantification now written as: 
푠퐹 퐴 ⊆ 퐵 ⇒ 퐴 ∩ 퐵 ≠ ∅ 
• Holds if we add axiom: 
푠퐹 퐴 ∩ 퐴 ≠ ∅
Encoding GQs as Selections 
퐹 퐴 퐵 ≡ 푠퐹 퐴 ⊆ 퐵 
• Monotonicity in the noun argument 퐴 (e.g. upward) now 
written as: 
A ⊆ A′ ∧ 푠퐹 퐴 ⊆ 퐵 ⇒ 푠퐹 퐴′ ⊆ 퐵 
• Holds if we add axiom: 
A ⊆ A′ ⇒ 푠퐹 퐴 ⊇ 푠퐹 퐴′
Encoding GQs as Selections 
DCS tree for “At least 5 students like udon noodles.” 
where the GQ “at least 5” is encoded as selection 푠퐴푡퐿푒푎푠푡 5 
Example: at least 푛 
• Satisfied: upward-entailing in 
predicate argument 
• Entails existential quantification: 
∀퐴 푠퐴푡퐿푒푎푠푡 5 퐴 ∩ 퐴 ≠ ∅ 
• Upward-entailing in noun argument: 
∀퐴, 퐴′ 푠. t. A ⊆ A′ 
푠퐴푡퐿푒푎푠푡 5 퐴 ⊇ 푠퐴푡퐿푒푎푠푡 5 퐴′
Encoding GQs as Selections 
Example: 
“At least 5 Japanese students like udon noodles.” 
⇒ “ At least 5 students like noodles.” 
퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 
퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 
퐷3 = 휋푆퐵퐽 퐷2 
퐷3 ′ 
= 휋푆퐵퐽 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐧퐨퐨퐝퐥퐞푂퐵퐽
Encoding Generalized Quantifiers 
as relations
Encoding GQs as Relations 
Intro to Relations 
• Review: GQ can be seen as binary relation over 2푊 
• Therefore, we introduce a new extension: relation 
• A new type of statement 
• A relation 푟퐹 퐴, 퐵 can represent arbitrary custom 
relation between abstract denotations 퐴 and 퐵
Encoding GQs as Relations 
Intro to Relations 
Relation 푟퐹 퐴, 퐵 
• The inference engine keeps track of which term pairs 
are labeled with which relations 
• Does 퐴 and 퐵 have relation 푟퐹? 
• What terms have relation 푟퐹 to 퐴? 
• Supports custom axioms for a relation 
• What entails 푟퐹 퐴, 퐵 ? 
• What does 푟퐹 퐴, 퐵 entail?
Encoding GQs as Relations 
We intuitively encode a GQ 퐹 using relation 푟퐹 as: 
퐹 퐴 퐵 ≡ r퐹 퐴, 퐵 
퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 
퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 
퐷3 = 휋푆퐵퐽 퐷2 
Statement: 
푟퐴푡푀표푠푡 5 퐬퐭퐮퐝퐞퐧퐭, 퐷3
Encoding GQs as Relations 
퐹 퐴 퐵 ≡ r퐹 퐴, 퐵 
• Entailment from universal quantification: 
퐴 ⊆ 퐵 ⇒ 푟퐹 퐴, 퐵 
• Entailment to existential quantification: 
푟퐹 퐴, 퐵 ⇒ 퐴 ∩ 퐵 ≠ ∅ 
• Monotonicity (e.g. downward in both arguments): 
푟퐹 퐴, 퐵 ∧ 퐴 ⊇ 퐴′ ∧ 퐵 ⊇ 퐵′ ⇒ 푟퐹 퐴′, 퐵′
Encoding GQs as Relations 
퐹 퐴 퐵 ≡ r퐹 퐴, 퐵 
• Conservativity: 
푟퐹 퐴, 퐵 ⇒ 푟퐹 퐴, 퐴 ∩ 퐵 
• How about the other direction? 
푟퐹 퐴, 퐴 ∩ 퐵 ⇒ 푟퐹 퐴, 퐵
Encoding GQs as Relations 
푟퐹 퐴, 퐴 ∩ 퐵 ⇒ 푟퐹 퐴, 퐵 
Challenge: 
• The inference engine is based on forward chaining: 
• Always try to deduce all possible implications from given 
premises 
• Efficient 
• Opens the possibility of adapting DCS for entailment 
generation
Encoding GQs as Relations 
푟퐹 퐴, 퐴 ∩ 퐵 ⇒ 푟퐹 퐴, 퐵 
Challenge: 
• The inference engine is based on forward chaining 
• Therefore it’s infeasible to enumerate all forms 푋 = 퐴 ∩ 퐵 
when 푟퐹 퐴, 푋 is claimed 
• Number of possibilities explodes exponentially 
• e.g. 푋 = 푋 ∩ 퐶 ∀퐶, 푋 = 퐴 ∩ 퐵 ∩ 퐶 = 퐴 ∩ 퐵 ∩ 퐶
Encoding GQs as Relations 
푟퐹 퐴, 퐴 ∩ 퐵 ⇒ 푟퐹 퐴, 퐵 
Implementation: limit search using conditions 푋 ⊆ 퐴 ∧ 푋 ⊆ 퐵 
If 푟퐹 퐴, 푋 and 푋 ⊆ 퐴: 
• For each 퐵 ⊇ 푋: 
• Check if 푋 = 퐴 ∩ 퐵 
We emphasize this detail because formal semantic researchers 
are often not aware of these difficulties.
Encoding GQs as Relations 
Limitations 
퐹 퐴 퐵 ≡ r퐹 퐴, 퐵 
Limitation: 
Relations in DCS trees are always explained as having the 
widest scope, hence cannot deal with multiple relations in a 
sentence.
Encoding GQs as Relations 
Limitations 
Example: 
푃: At most 10 commissioners spend a lot of time at home. 
We want to state 
푟퐴푡푀표푠푡 10 퐜퐨퐦퐢퐬퐬퐢퐨퐧퐞퐫퐬, 퐷 
where 
퐷 = “people who spend a lot of time at home” 
But this is impossible if “a lot of” is also encoded as a relation
Encoding GQs as Relations 
Limitations 
Example: 
푟퐴푡푀표푠푡 10 퐜퐨퐦퐢퐬퐬퐢퐨퐧퐞퐫퐬, 퐷 
퐷 = "people who spend a lot of time at home" 
Workaround: 
Since “a lot of” is upward-entailing in predicate argument, we 
can encode it using selection 푠퐴퐿표푡푂푓 , while still encode “at 
most 10” using 푟퐴푡푀표푠푡 10
Encoding GQs as Relations 
Limitations 
Example: 
푟퐴푡푀표푠푡 10 퐜퐨퐦퐢퐬퐬퐢퐨퐧퐞퐫퐬, 퐷 
퐷 = 푞푂퐵퐽 ⊆ 
퐷′, 푠퐴퐿표푡푂푓 퐭퐢퐦퐞 
where 
퐷′ = 퐬퐩퐞퐧퐝 ∩ 푊푆퐵퐽 × 푊푂퐵퐽 × 퐡퐨퐦퐞푀푂퐷 
(“spend at home”)
Evaluation
Evaluation 
Set-up 
The FraCaS Corpus: 
• Built in mid-1990s 
• A set of hand-crafted entailment problems covering 
wide range of semantic phenomena 
Section 1 - Generalized Quantifiers: 
• 74 problems: 
• 44 have single premise sentence 
• 30 have multiple premise sentence
Evaluation 
Set-up 
Settings: 
• Baseline 
• Selection 
• Relation 
• Selection+Relation
Evaluation 
Set-up 
Settings: 
• Baseline 
• Simply drop GQs 
• Same tree structure as follows 
• Selection 
• Relation 
• Selection+Relation
Evaluation 
Set-up 
Settings: 
• Baseline 
• Selection 
• Implement all GQs as selections, even for those 
that are downward-entailing in predicate 
argument 
• Relation 
• Selection+Relation
Evaluation 
Set-up 
Settings: 
• Baseline 
• Selection 
• Relation 
• Implement all GQs as relations 
• Selection+Relation
Evaluation 
Set-up 
Settings: 
• Baseline 
• Selection 
• Relation 
• Selection+Relation 
• Use relations to encode GQs that are 
downward-entailing in predicate argument 
• Encode the rest with selections
Evaluation 
Accuracies of previous systems on Section 1 of FraCaS corpus 
System 
Accuracy 
Single Multi Overall 
NatLog 
MacCartney07 84.1% 
N/A 
MacCartney08 97.7% 
CCG-Dist 
Parser Syntax 70.5% 50.0% 62.2% 
Gold Syntax 88.6% 80.0% 85.1% 
TIFMO 
Baseline 79.5% 86.7% 82.4% 
Selection 90.9% 93.3% 91.9% 
Relation 88.6% 93.3% 90.5% 
Selection+Relation 93.2% 96.7% 94.6%
Conclusion
Conclusion 
• Generalized Quantifiers are important (for RTE) 
• We explored ways of encoding GQs in DCS for RTE 
• via selection extension 
• via relation extension (newly proposed) 
• Significant improvement in performance, but not perfect 
• which suggests towards more powerful logical systems

More Related Content

DOC
BE-4 Lesson Plan on Density
PPT
Quantifiers
DOC
Articles
PPTX
Containers and quantifiers
PPTX
Unit 8 grammar presentation
PPTX
Unit 8 grammar notes
PPT
Quantifiers
PPT
Quantifiers
BE-4 Lesson Plan on Density
Quantifiers
Articles
Containers and quantifiers
Unit 8 grammar presentation
Unit 8 grammar notes
Quantifiers
Quantifiers

Viewers also liked (6)

PPTX
Noun and Quantifiers
PPT
QUANTIFIERS
PPSX
Applying for a job e-mail
PPTX
Quantifiers
ODP
Quantifiers
PPT
Quantifiers
Noun and Quantifiers
QUANTIFIERS
Applying for a job e-mail
Quantifiers
Quantifiers
Quantifiers
Ad

Similar to Encoding Generalized Quantifiers in Dependency-based Compositional Semantics (20)

PPTX
Slides for "Do Deep Generative Models Know What They Don't know?"
PPTX
Causality detection
PPTX
Biological sequences analysis
PDF
SSC20160524
PDF
02 Predicates and Quantifiers is about predicates
PPT
Natural Language Processing: N-Gram Language Models
PPT
N GRAM FOR NATURAL LANGUGAE PROCESSINGG
PPT
Natural Language Processing: N-Gram Language Models
PPTX
Crv
PDF
Sergey Nikolenko and Elena Tutubalina - Constructing Aspect-Based Sentiment ...
PPTX
NLP_KASHK:N-Grams
PPTX
PDF
Paper Study: Melding the data decision pipeline
PPTX
update -2022 Lec 4 - Knowledge Representation.pptx
PPTX
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
PPTX
Logic in Predicate and Propositional Logic
PDF
NIPS KANSAI Reading Group #5: State Aware Imitation Learning
PDF
Expected tensor decomposition with stochastic gradient descent
PPTX
Math in the modern world math as a language.pptx
PDF
[GAN by Hung-yi Lee]Part 1: General introduction of GAN
Slides for "Do Deep Generative Models Know What They Don't know?"
Causality detection
Biological sequences analysis
SSC20160524
02 Predicates and Quantifiers is about predicates
Natural Language Processing: N-Gram Language Models
N GRAM FOR NATURAL LANGUGAE PROCESSINGG
Natural Language Processing: N-Gram Language Models
Crv
Sergey Nikolenko and Elena Tutubalina - Constructing Aspect-Based Sentiment ...
NLP_KASHK:N-Grams
Paper Study: Melding the data decision pipeline
update -2022 Lec 4 - Knowledge Representation.pptx
Chapter 1.4.pptx Chapter 1.4.pptx DISCREATE MATH
Logic in Predicate and Propositional Logic
NIPS KANSAI Reading Group #5: State Aware Imitation Learning
Expected tensor decomposition with stochastic gradient descent
Math in the modern world math as a language.pptx
[GAN by Hung-yi Lee]Part 1: General introduction of GAN
Ad

Recently uploaded (20)

PPTX
Effective_Handling_Information_Presentation.pptx
PPTX
lesson6-211001025531lesson plan ppt.pptx
DOCX
ENGLISH PROJECT FOR BINOD BIHARI MAHTO KOYLANCHAL UNIVERSITY
DOCX
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
PPTX
_ISO_Presentation_ISO 9001 and 45001.pptx
PPTX
Project and change Managment: short video sequences for IBA
PDF
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf
PPTX
Lesson-7-Gas. -Exchange_074636.pptx
PPTX
NORMAN_RESEARCH_PRESENTATION.in education
PPTX
Research Process - Research Methods course
PPTX
Presentation for DGJV QMS (PQP)_12.03.2025.pptx
DOC
学位双硕士UTAS毕业证,墨尔本理工学院毕业证留学硕士毕业证
PPTX
water for all cao bang - a charity project
PPTX
Hydrogel Based delivery Cancer Treatment
PPTX
BIOLOGY TISSUE PPT CLASS 9 PROJECT PUBLIC
PPTX
Tablets And Capsule Preformulation Of Paracetamol
PPT
The Effect of Human Resource Management Practice on Organizational Performanc...
PPTX
The Effect of Human Resource Management Practice on Organizational Performanc...
PPTX
Intro to ISO 9001 2015.pptx wareness raising
PPTX
PHIL.-ASTRONOMY-AND-NAVIGATION of ..pptx
Effective_Handling_Information_Presentation.pptx
lesson6-211001025531lesson plan ppt.pptx
ENGLISH PROJECT FOR BINOD BIHARI MAHTO KOYLANCHAL UNIVERSITY
"Project Management: Ultimate Guide to Tools, Techniques, and Strategies (2025)"
_ISO_Presentation_ISO 9001 and 45001.pptx
Project and change Managment: short video sequences for IBA
Tunisia's Founding Father(s) Pitch-Deck 2022.pdf
Lesson-7-Gas. -Exchange_074636.pptx
NORMAN_RESEARCH_PRESENTATION.in education
Research Process - Research Methods course
Presentation for DGJV QMS (PQP)_12.03.2025.pptx
学位双硕士UTAS毕业证,墨尔本理工学院毕业证留学硕士毕业证
water for all cao bang - a charity project
Hydrogel Based delivery Cancer Treatment
BIOLOGY TISSUE PPT CLASS 9 PROJECT PUBLIC
Tablets And Capsule Preformulation Of Paracetamol
The Effect of Human Resource Management Practice on Organizational Performanc...
The Effect of Human Resource Management Practice on Organizational Performanc...
Intro to ISO 9001 2015.pptx wareness raising
PHIL.-ASTRONOMY-AND-NAVIGATION of ..pptx

Encoding Generalized Quantifiers in Dependency-based Compositional Semantics

  • 1. Encoding Generalized Quantifiers in Dependency-based Compositional Semantics Yubing Dong – University of Southern California Ran Tian – Tohoku University Yusuke Miyao – National Institute of Informatics, Japan
  • 3. Generalized Quantifiers (GQ) Most students like noodles. Generalized Quantifier
  • 4. Generalized Quantifiers (GQ) Most students like noodles. Property-denoting noun phrase Generalized Quantifier
  • 5. Generalized Quantifiers (GQ) Most students like noodles. Property-denoting noun phrase Predicate Generalized Quantifier
  • 6. Generalized Quantifiers (GQ) Most (Student) (LikeNoodles) ∈ {0,1} Denotations Student ⊆ 푊 LikeNoodles ⊆ 푊 Binary Relation over 푊
  • 7. Generalized Quantifiers (GQ) The relation imposed by a GQ is usually based on the notion ⋅ of set cardinalities Most (Student) (LikeNoodles) iff 퐒퐭퐮퐝퐞퐧퐭 ∩ 퐋퐢퐤퐞퐍퐨퐨퐝퐥퐞퐬 퐒퐭퐮퐝퐞퐧퐭 > 80%
  • 8. Generalized Quantifiers (GQ) Most (Student) (LikeNoodles) Many ALotOf Few AFew AtMost[n] AtLeast[n]
  • 10. Recognizing Textual Entailment (RTE) Example: • 푇1: Mary loves every dog. • 푇2: Tom has a dog. • 퐻: Tom has an animal that Mary loves. • 푇1, 푇2 ⇒ 퐻 i.e. 푇1 and 푇2 entails 퐻 Definition: “푇 entails 퐻" (푇 ⇒ 퐻) if, typically, a human reading 푇 would infer that 퐻 is most likely true • Relatively loose, compared to logical entailment
  • 11. GQ in RTE At most 5 students like noodles. At most 5 Japanese students like udon noodles.
  • 12. GQ in RTE At least 5 students like noodles. At least 5 Japanese students like udon noodles.
  • 13. GQ in RTE Most students like noodles. Most Japanese students like udon noodles.
  • 14. GQ in RTE The FraCaS Corpus: • Built in mid-1990s • A set of hand-crafted entailment problems covering wide range of semantic phenomena Section 1 - Generalized Quantifiers: • 74 problems: • 44 have single premise sentence • 30 have multiple premise sentence
  • 15. GQ in RTE Accuracies of previous systems on Section 1 of FraCaS corpus System Accuracy Single Multi Overall NatLog MacCartney07 84.1% N/A MacCartney08 97.7% CCG-Dist Parser Syntax 70.5% 50.0% 62.2% Gold Syntax 88.6% 80.0% 85.1%
  • 16. GQ in RTE Accuracies of previous systems on Section 1 of FraCaS corpus System Accuracy Single Multi Overall NatLog MacCartney07 84.1% N/A MacCartney08 97.7% CCG-Dist Parser Syntax 70.5% 50.0% 62.2% Gold Syntax 88.6% 80.0% 85.1% TIFMO Baseline 79.5% 86.7% 82.4% Selection 90.9% 93.3% 91.9% Relation 88.6% 93.3% 90.5% Selection+Relation 93.2% 96.7% 94.6%
  • 17. But I’m getting ahead of myself…
  • 19. Properties of GQs Problem with encoding the “perfect semantics” Most (Student) (LikeNoodles) iff 퐒퐭퐮퐝퐞퐧퐭 ∩ 퐋퐢퐤퐞퐍퐨퐨퐝퐥퐞퐬 퐒퐭퐮퐝퐞퐧퐭 > 80% Challenge: set cardinalities are difficult to perfectly encode
  • 20. Properties of GQs Compromise: only encode major GQ properties • Interaction with universal and existential quantifications • Conservativity • Monotonicity
  • 21. Properties of GQs Interaction with universal and existential quantifications Case 1: 퐴 ⊆ 퐵 ⇒ 퐹 퐴 퐵 ⇒ 퐴 ∩ 퐵 ≠ ∅ Example: “most” All students like noodles. Most students like noodles. There are students who like noodles.
  • 22. Properties of GQs Interaction with universal and existential quantifications Case 2: 퐴 ⊆ 퐵 ⇒ 퐹 퐴 퐵 ⇒ 퐴 ∩ 퐵 ≠ ∅ Example: “a lot of” All students like noodles. A lot of students like noodles. There are students who like noodles.
  • 23. Properties of GQs Interaction with universal and existential quantifications Case 3: 퐴 ⊆ 퐵 ⇒ 퐹 퐴 퐵 ⇒ 퐴 ∩ 퐵 ≠ ∅ Example: “at most n” All students like noodles. At most 5 students like noodles. There are students who like noodles.
  • 24. Properties of GQs Conservativity The “domain restraining” role of the noun argument • Eliminates objects that do not have the noun property • Only need to consider which of the rest has the predicate property 퐹 퐴 퐵 ⟺ 퐹(퐴)(퐴 ∩ 퐵) Example: • “Few apples are toxic.”⟺“Few apples are toxic apples.” • We don’t care non-apples toxicants, e.g. toxic oranges
  • 25. Properties of GQs Monotonicity A GQ 퐹 ⋅ ⋅ is upward entailing in the noun argument if: 퐹 퐴′ 퐵 ⇒ 퐹 퐴 퐵 ∀퐴′ ⊆ 퐴 Similarly, a GQ can also be • downward entailing in the noun argument, and • upward/downward entailing in the predicate argument
  • 26. Properties of GQs Monotonicity Example: “at most 푛” is downward entailing in each argument At most 5 students like noodles. At most 5 Japanese students like udon noodles.
  • 27. Properties of GQs Monotonicity Example: “at least 푛” is upward entailing in each argument At least 5 students like noodles. At least 5 Japanese students like udon noodles.
  • 28. Properties of GQs Monotonicity Example: “most” is neither upward nor downward entailing in the noun argument Most students like noodles. Most Japanese students like noodles.
  • 29. Properties of GQs Monotonicity Example: but is upward entailing in the predicate argument Most students like noodles. Most students like udon noodles.
  • 30. Background Dependency-based Compositional Semantics (DCS) for RTE • Proposed by Tian et al. (2014)
  • 31. DCS for RTE DCS tree for “All students like udon noodles”
  • 32. DCS for RTE DCS tree for “All students like udon noodles” Abstract Denotations: 퐧퐨퐨퐝퐥퐞 ⊆ 푊 퐮퐝퐨퐧 ⊆ 푊 퐬퐭퐮퐝퐞퐧퐭 ⊆ 푊 퐥퐢퐤퐞 ⊆ 푊 × 푊
  • 33. DCS for RTE 퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 DCS tree for “All students like udon noodles” “udon noodles”
  • 34. DCS for RTE 퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 DCS tree for “All students like udon noodles” “like udon noodles”
  • 35. DCS for RTE 퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 퐷3 = 휋푆퐵퐽 퐷2 DCS tree for “All students like udon noodles” “subjects who like udon noodles”
  • 36. DCS for RTE r R,C ≡ x ∅≠R∩ x ×Wr ⊆ x ×Cr If 푅 and 퐶 have the same dimension, • 푞⊆ 푟 퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 퐷3 = 휋푆퐵퐽 퐷2 퐷4 = 푞푆퐵퐽 ⊆ 퐷3, 퐬퐭퐮퐝퐞퐧퐭 q⊆ DCS tree for “All students like udon noodles” 푅, 퐶 = ∗ (0-dimension point set) when 퐶 ⊆ 푅, • 푞⊆ 푟 푅, 퐶 = ∅ otherwise wide reading of “⊆”
  • 37. DCS for RTE r R,C ≡ x ∅≠R∩ x ×Wr ⊆ x ×Cr If 푅 and 퐶 have the same dimension, • 푞⊆ 푟 퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 퐷3 = 휋푆퐵퐽 퐷2 퐷4 = 푞푆퐵퐽 ⊆ 퐷3, 퐬퐭퐮퐝퐞퐧퐭 푆퐵퐽 퐷2, 퐬퐭퐮퐝퐞퐧퐭 퐷5 = 푞⊆ q⊆ DCS tree for “All students like udon noodles” 푅, 퐶 = ∗ (0-dimension point set) when 퐶 ⊆ 푅, • 푞⊆ 푟 푅, 퐶 = ∅ otherwise narrow reading of “⊆” (“the set of udon noodles that all student like”)
  • 38. DCS for RTE 퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 퐷3 = 휋푆퐵퐽 퐷2 퐷4 = 푞푆퐵퐽 ⊆ 퐷3, 퐬퐭퐮퐝퐞퐧퐭 푆퐵퐽 퐷2, 퐬퐭퐮퐝퐞퐧퐭 퐷5 = 푞⊆ DCS tree for “All students like udon noodles” Prove statement • 퐷4 ≠ ∅ (wide reading) or • 퐷5 ≠ ∅ (narrow reading) using forward chaining
  • 39. DCS for RTE ⊆ Basic operators 푟 / functions: • × - Cartesian product of sets • ∩ - Set intersection • 휋푟 - Projection onto domain of semantic role 푟 • 푙푟 - Relabeling • 푞- Division Basic types of statements: • Non-emptiness: 퐴 ≠ ∅ • Subsumption: 퐴 ⊆ 퐵
  • 40. Background DCS for RTE: the selection operator • Also introduced in Tian et al. (2014)
  • 41. DCS for RTE: the selection operator • Introduced as an extension to represent the generalized selection operation in relational algebra • Marked on a DCS tree node • Wrap the abstract denotation 퐷 to form a new abstract denotation 푠푓 퐷 • The properties of 푠푓 퐷 can be user defined Example: the set of highest mountains: 푠ℎ푖푔ℎ푒푠푡 (퐦퐨퐮퐧퐭퐚퐢퐧)
  • 43. Encoding GQs as Selections We encode a GQ 퐹 using selection 푠퐹 as: 퐹 퐴 퐵 ≡ 푠퐹 퐴 ⊆ 퐵 Basic requirement: • 퐹 should be upward-entailing in the predicate argument 퐵 • A major limitation
  • 44. Encoding GQs as Selections 퐹 퐴 퐵 ≡ 푠퐹 퐴 ⊆ 퐵 • Entailment from universal quantification now written as: 퐴 ⊆ 퐵 ⇒ 푠퐹 퐴 ⊆ 퐵 • Conservativity as: 푠퐹 퐴 ⊆ 퐴 ∩ 퐵 ⇔ 푠퐹 퐴 ⊆ 퐵 • Both hold if we add axiom: 푠퐹 퐴 ⊆ 퐴
  • 45. Encoding GQs as Selections 퐹 퐴 퐵 ≡ 푠퐹 퐴 ⊆ 퐵 • Entailment to existence quantification now written as: 푠퐹 퐴 ⊆ 퐵 ⇒ 퐴 ∩ 퐵 ≠ ∅ • Holds if we add axiom: 푠퐹 퐴 ∩ 퐴 ≠ ∅
  • 46. Encoding GQs as Selections 퐹 퐴 퐵 ≡ 푠퐹 퐴 ⊆ 퐵 • Monotonicity in the noun argument 퐴 (e.g. upward) now written as: A ⊆ A′ ∧ 푠퐹 퐴 ⊆ 퐵 ⇒ 푠퐹 퐴′ ⊆ 퐵 • Holds if we add axiom: A ⊆ A′ ⇒ 푠퐹 퐴 ⊇ 푠퐹 퐴′
  • 47. Encoding GQs as Selections DCS tree for “At least 5 students like udon noodles.” where the GQ “at least 5” is encoded as selection 푠퐴푡퐿푒푎푠푡 5 Example: at least 푛 • Satisfied: upward-entailing in predicate argument • Entails existential quantification: ∀퐴 푠퐴푡퐿푒푎푠푡 5 퐴 ∩ 퐴 ≠ ∅ • Upward-entailing in noun argument: ∀퐴, 퐴′ 푠. t. A ⊆ A′ 푠퐴푡퐿푒푎푠푡 5 퐴 ⊇ 푠퐴푡퐿푒푎푠푡 5 퐴′
  • 48. Encoding GQs as Selections Example: “At least 5 Japanese students like udon noodles.” ⇒ “ At least 5 students like noodles.” 퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 퐷3 = 휋푆퐵퐽 퐷2 퐷3 ′ = 휋푆퐵퐽 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐧퐨퐨퐝퐥퐞푂퐵퐽
  • 50. Encoding GQs as Relations Intro to Relations • Review: GQ can be seen as binary relation over 2푊 • Therefore, we introduce a new extension: relation • A new type of statement • A relation 푟퐹 퐴, 퐵 can represent arbitrary custom relation between abstract denotations 퐴 and 퐵
  • 51. Encoding GQs as Relations Intro to Relations Relation 푟퐹 퐴, 퐵 • The inference engine keeps track of which term pairs are labeled with which relations • Does 퐴 and 퐵 have relation 푟퐹? • What terms have relation 푟퐹 to 퐴? • Supports custom axioms for a relation • What entails 푟퐹 퐴, 퐵 ? • What does 푟퐹 퐴, 퐵 entail?
  • 52. Encoding GQs as Relations We intuitively encode a GQ 퐹 using relation 푟퐹 as: 퐹 퐴 퐵 ≡ r퐹 퐴, 퐵 퐷1 = 퐧퐨퐨퐝퐥퐞 ∩ 퐮퐝퐨퐧 퐷2 = 퐥퐢퐤퐞 ∩ 푊푆퐵퐽 × 퐷1 푂퐵퐽 퐷3 = 휋푆퐵퐽 퐷2 Statement: 푟퐴푡푀표푠푡 5 퐬퐭퐮퐝퐞퐧퐭, 퐷3
  • 53. Encoding GQs as Relations 퐹 퐴 퐵 ≡ r퐹 퐴, 퐵 • Entailment from universal quantification: 퐴 ⊆ 퐵 ⇒ 푟퐹 퐴, 퐵 • Entailment to existential quantification: 푟퐹 퐴, 퐵 ⇒ 퐴 ∩ 퐵 ≠ ∅ • Monotonicity (e.g. downward in both arguments): 푟퐹 퐴, 퐵 ∧ 퐴 ⊇ 퐴′ ∧ 퐵 ⊇ 퐵′ ⇒ 푟퐹 퐴′, 퐵′
  • 54. Encoding GQs as Relations 퐹 퐴 퐵 ≡ r퐹 퐴, 퐵 • Conservativity: 푟퐹 퐴, 퐵 ⇒ 푟퐹 퐴, 퐴 ∩ 퐵 • How about the other direction? 푟퐹 퐴, 퐴 ∩ 퐵 ⇒ 푟퐹 퐴, 퐵
  • 55. Encoding GQs as Relations 푟퐹 퐴, 퐴 ∩ 퐵 ⇒ 푟퐹 퐴, 퐵 Challenge: • The inference engine is based on forward chaining: • Always try to deduce all possible implications from given premises • Efficient • Opens the possibility of adapting DCS for entailment generation
  • 56. Encoding GQs as Relations 푟퐹 퐴, 퐴 ∩ 퐵 ⇒ 푟퐹 퐴, 퐵 Challenge: • The inference engine is based on forward chaining • Therefore it’s infeasible to enumerate all forms 푋 = 퐴 ∩ 퐵 when 푟퐹 퐴, 푋 is claimed • Number of possibilities explodes exponentially • e.g. 푋 = 푋 ∩ 퐶 ∀퐶, 푋 = 퐴 ∩ 퐵 ∩ 퐶 = 퐴 ∩ 퐵 ∩ 퐶
  • 57. Encoding GQs as Relations 푟퐹 퐴, 퐴 ∩ 퐵 ⇒ 푟퐹 퐴, 퐵 Implementation: limit search using conditions 푋 ⊆ 퐴 ∧ 푋 ⊆ 퐵 If 푟퐹 퐴, 푋 and 푋 ⊆ 퐴: • For each 퐵 ⊇ 푋: • Check if 푋 = 퐴 ∩ 퐵 We emphasize this detail because formal semantic researchers are often not aware of these difficulties.
  • 58. Encoding GQs as Relations Limitations 퐹 퐴 퐵 ≡ r퐹 퐴, 퐵 Limitation: Relations in DCS trees are always explained as having the widest scope, hence cannot deal with multiple relations in a sentence.
  • 59. Encoding GQs as Relations Limitations Example: 푃: At most 10 commissioners spend a lot of time at home. We want to state 푟퐴푡푀표푠푡 10 퐜퐨퐦퐢퐬퐬퐢퐨퐧퐞퐫퐬, 퐷 where 퐷 = “people who spend a lot of time at home” But this is impossible if “a lot of” is also encoded as a relation
  • 60. Encoding GQs as Relations Limitations Example: 푟퐴푡푀표푠푡 10 퐜퐨퐦퐢퐬퐬퐢퐨퐧퐞퐫퐬, 퐷 퐷 = "people who spend a lot of time at home" Workaround: Since “a lot of” is upward-entailing in predicate argument, we can encode it using selection 푠퐴퐿표푡푂푓 , while still encode “at most 10” using 푟퐴푡푀표푠푡 10
  • 61. Encoding GQs as Relations Limitations Example: 푟퐴푡푀표푠푡 10 퐜퐨퐦퐢퐬퐬퐢퐨퐧퐞퐫퐬, 퐷 퐷 = 푞푂퐵퐽 ⊆ 퐷′, 푠퐴퐿표푡푂푓 퐭퐢퐦퐞 where 퐷′ = 퐬퐩퐞퐧퐝 ∩ 푊푆퐵퐽 × 푊푂퐵퐽 × 퐡퐨퐦퐞푀푂퐷 (“spend at home”)
  • 63. Evaluation Set-up The FraCaS Corpus: • Built in mid-1990s • A set of hand-crafted entailment problems covering wide range of semantic phenomena Section 1 - Generalized Quantifiers: • 74 problems: • 44 have single premise sentence • 30 have multiple premise sentence
  • 64. Evaluation Set-up Settings: • Baseline • Selection • Relation • Selection+Relation
  • 65. Evaluation Set-up Settings: • Baseline • Simply drop GQs • Same tree structure as follows • Selection • Relation • Selection+Relation
  • 66. Evaluation Set-up Settings: • Baseline • Selection • Implement all GQs as selections, even for those that are downward-entailing in predicate argument • Relation • Selection+Relation
  • 67. Evaluation Set-up Settings: • Baseline • Selection • Relation • Implement all GQs as relations • Selection+Relation
  • 68. Evaluation Set-up Settings: • Baseline • Selection • Relation • Selection+Relation • Use relations to encode GQs that are downward-entailing in predicate argument • Encode the rest with selections
  • 69. Evaluation Accuracies of previous systems on Section 1 of FraCaS corpus System Accuracy Single Multi Overall NatLog MacCartney07 84.1% N/A MacCartney08 97.7% CCG-Dist Parser Syntax 70.5% 50.0% 62.2% Gold Syntax 88.6% 80.0% 85.1% TIFMO Baseline 79.5% 86.7% 82.4% Selection 90.9% 93.3% 91.9% Relation 88.6% 93.3% 90.5% Selection+Relation 93.2% 96.7% 94.6%
  • 71. Conclusion • Generalized Quantifiers are important (for RTE) • We explored ways of encoding GQs in DCS for RTE • via selection extension • via relation extension (newly proposed) • Significant improvement in performance, but not perfect • which suggests towards more powerful logical systems