Subwords, Seriously?
Ken Church KennethChurch@baidu.com CLSW-2020
Subwords, Seriously? Ken Church KennethChurch@baidu.com CLSW-2020 - - PowerPoint PPT Presentation
Subwords, Seriously? Ken Church KennethChurch@baidu.com CLSW-2020 Tokenization Modern Deep Nets BERT and ERNIE Two modes: Known Words (W): directional directional Unknown Words (OOVs): unidirectional un ##idi
Ken Church KennethChurch@baidu.com CLSW-2020
2 CLSW-2020
ERNIE/BERT (Baseline): 48 Tokens
un ##idi ##re ##ction ##al mixed l ##ym ##ph ##oc ##yte cultures ( ml ##c ) were set up using bo ##vine peripheral blood l ##ym ##ph ##ocytes ( p ##bl ) as respond ##er cells and auto ##log ##ous cell lines transformed in vitro by t .
Proposed (Fewer Tokens): 35 Tokens
UNI- DIRECTIONAL MIXED lymphocyte CULTURES ( M- LC ) WERE SET UP USING BO- VINE PERIPHERAL BLOOD lymphocytes ( pbl ) AS RESPOND -ER CELLS AND autologous CELL LINES TRANSFORMED IN VITRO BY T .
3 CLSW-2020
(known)
4 CLSW-2020
Morphology
WordNet Semantics
5 CLSW-2020
Modern Deep Nets (Black Boxes) un ##idi ##re ##ction ##al
Traditional Linguistics (Gray Boxes) UNI- DIRECTIONAL
(vowel)
(one)
6 CLSW-2020
7 CLSW-2020
Fads come, and fads go
8 CLSW-2020
Grandparents and Grandchildren Grandparents and Grandchildren Grandparents and Grandchildren
https://www.superlectures.com/interspeech2016/
anchovies with less expensive tomatoes and sugar from the West
Big Tent
9 CLSW-2020
techniques from speech to language.
10 CLSW-2020
https://www.superlectures.com/interspeech2016/
11 CLSW-2020
What happened in 1975? The same thing that happened to language in 1988
(and to hedge funds in 1990s, and politics in 2016)?
https://www.superlectures.com/interspeech2016/
12 CLSW-2020
Robert Mercer ACL Lifetime Achievement
http://techtalks.tv/talks/closing-session/60532/
13 CLSW-2020
2014
CLSW-2020 14
https://www.cambridge.org/core/journals/natural-language-engineering/article/emerging-trends- reviewing-the-reviewers-again/10CDC1D71E1AEB21456CFBDA187CBCB6#fndtn-information
rejected with this remark:
a sense of the conventions of the field.β
helpful but probably not
CLSW-2020 15
16 CLSW-2020
like tuh huh ruh oh uu guh huh.
1995
17 CLSW-2020
1937 2012
18
https://www.icsi.berkeley.edu/icsi/news/2012/07/fillmore-lifetime-achievement-award
Modern Deep Nets (Black Boxes) un ##idi ##re ##ction ##al
Traditional Linguistics (Gray Boxes) UNI- DIRECTIONAL
(vowel)
(one)
Seriously?
19 CLSW-2020
Unknown Words (OOVs) Are Often Similar to Known Words
20 CLSW-2020
Connect Dots: Almost Known ~ Known π£πππππ πππ’πππππ ~ πππ πππ’πππππ
Sound (S) and Meaning (M) π(π΅πΏ) ~ π(πΏ); π(π΅πΏ) ~ π(πΏ)
21 CLSW-2020
compositionality assumptions
combine subwords and words
22 CLSW-2020
ERNIE/BERT (Baseline): 48 Tokens
un ##idi ##re ##ction ##al mixed l ##ym ##ph ##oc ##yte cultures ( ml ##c ) were set up using bo ##vine peripheral blood l ##ym ##ph ##ocytes ( p ##bl ) as respond ##er cells and auto ##log ##ous cell lines transformed in vitro by t .
Proposed (Fewer Tokens): 35 Tokens
UNI- DIRECTIONAL MIXED lymphocyte CULTURES ( M- LC ) WERE SET UP USING BO- VINE PERIPHERAL BLOOD lymphocytes ( pbl ) AS RESPOND -ER CELLS AND autologous CELL LINES TRANSFORMED IN VITRO BY T .
23 CLSW-2020
BERT/ERNIE Baseline Proposed Known 188.1 188.1 Prefix 0.0 5.5 Suffix 0.0 3.5 Subwords 54.1 7.3 Totals 242.2 204.4
prefixes and suffixes
training data
a-, h-, ase, c-, -ation, t-, mono-, nucleo-, in-, as-, l-, ing, id, intra-, sub-, r-, -al, g-, i-, hepato-, ory, up-, fr-, ad-, radio-, bio-, na-, immuno-, -in, non-, ity, e-, ization, de-, anti-, histo-, f-, able, ic, glyco-, -pre-, para-, bo-, s- , lympho-, ine, d-, dp, sero-
24 CLSW-2020
Output: Sound
πππ πππ’πππππ
Output: Meaning (vec/translation)
πππ πππ’πππππ
πππ πππ’πππππ
Coker, Church and Liberman (1990) Bilingual Lexicon Induction Word2Vec Analogies & Knowledge Graph Completion
25 CLSW-2020
Coker, Church and Liberman (1990): Mo Morp rphology and Rhymi ming: Tw Two Powerful Alternatives to Letter-to to-So Sound Rule les for Sp Speech Synthesis is
Morphology Γ Sound & Meaning Morphology Γ Sound & Meaning Morphology Γ Sound & Meaning Morphology Γ Sound & Meaning Morphology Γ Sound & Meaning Rhyming Γ Sound, but Meaning
26 CLSW-2020
Coker, Church and Liberman (1990): Mo Morp rphology and Rhymi ming: Tw Two Powerful Alternatives to Letter-to to-So Sound Rule les for Sp Speech Synthesis is
Avoid spelling (when possible)
27 CLSW-2020
Coker, Church and Liberman (1990): Mo Morp rphology and Rhymi ming: Tw Two Powerful Alternatives to Letter-to to-So Sound Rule les for Sp Speech Synthesis is
28 CLSW-2020
en, ex, extra, fort, grand, hyper, hypo, im, in, inter, intra, mis, off, on, out, over, par, per, pre, pro, re, sub, super, sur, trans, tri, un, under, uni, wood, abdul, ab, lipo, i, cyber, meta, hexa, mono, quad, penta, sex, semi, hemi, after, tetra, anti, ante, agri, alta, non, mal, cor, bio, fore, for, micro, macro, multi, pri, tele, mari, smart, west, east, south, north, back, geo, auto, nano, para, power, mid, photo, phono, poly, techno, media, hand, neuro, petro, high, info, down, up, ever, poli, ultra, counter, aero, gene, metro, nova, hydro, radi, chemo,
cardio, pseudo, amino, carbo, nutri, ab, thio, methyl, pheno, immuno, bacterio, baro, methylo, strepto, self
ating, ation, ations, ative, bury, d, e, ed, ee, ence, ent, ents, er, ers, erβs, es, ess, est, et, ey, ful, fully, ia, ial, ian, ians, ic, ical, ically, ier, ies, ied, iment, ility, ine, iness, ing, ingly, ings, ion, ions, ious, is, ise, ism, ist, ists, ite, ities, ity, ive, ized, less, lessly, like, ly, man, manβs, men, ment, ments, ness, or, ous, r, s, βs, sion, sonβs, stone, tion, tions, tive, way, y, yβs, nβt, βd, son, sen, ability, able, nostics, nostic, sky, ski, tuple, owski, owsky, owicz, ewicz, ewski, ewsky, opoulos, berg, ville, land, ick, wood, field, town, ton, ford, burg, erman, stein, ington, itz, berger, ization, izing, meier, isation, ising, istic, ible, ified, ification, ologist, ology, ifying, ography, ance, ient, ience, iance
sh, gr, cr, cl, th, sp, fr, bl, fl, pl, q, wh, dr, sc, sl, str, gl, sw, ph, z, sn, sm, sk, wr, thr, kn, scr, tw, sq, sch, spr, chr, rh, shr, kr, spl, ps, gh, kl, kh, gn, dw, gw, ts, phr, pt, x, tch, ll, vr, chl, sph, schw, schl, phl, dh, thw, sv, cz, bh, hr, vl, kw, schn, dm, psh, dl, bj, zw, tl, sf, schr, mn, dv
29 CLSW-2020
Training (Learn πΌ β ππππ Affixes)
pieces: π₯[0: π] + π₯[π: ], for all π
evidence other piece is a suffix
evidence other piece is a prefix
Inference (Tokenization)
30 CLSW-2020
Output: Sound
ΓΌIf π£πππππ πππ’πππππ is like πππ πππ’πππππ
ΓΌand we have π½ππ΅(πππ πππ’πππππ) ΓΌWhat is π½ππ΅(π£πππππ πππ’πππππ)?
Output: Meaning (vec/translation)
ΓIf π£πππππ πππ’πππππ is like πππ πππ’πππππ
πππ πππ’πππππ
Coker, Church and Liberman (1990) Bilingual Lexicon Induction Word2Vec Analogies & Knowledge Graph Completion
31 CLSW-2020
https://usc-isi-i2.github.io/slides/part-3.pdf
Words: Points in a Vector Space Analogies: Vector Translations
π€ππ(πππ) + π€ππ(π₯ππππ) β π€ππ(ππππ) + π€ππ(ππ£πππ)
Analogies from Word2Vec Paper (2013)
32
Analogies from Word2Vec Paper
33 CLSW-2020
34 CLSW-2020
Translating Vectors Translating Words
35 CLSW-2020
Standard BLI
π from π seeds: < π, π >
π = ππ ππππβ¦ πΉβ‘π β π·[
π)
BLI for almost-known words
π + π; often assume π = 0
π)
36 CLSW-2020
Embedding Multiple Point Clouds into Comparable Coordinates (under appropriate ridged body assumptions)
BLI (Bilingual Lexicon Induction) Language Translation ICP (Iterative Closest Point): Robotics Point Set Registration
By Dllu - Own work, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=27950915
http://ais.informatik.uni-freiburg.de/teaching/ss11/robotics/slides/17-icp.pdf
37 CLSW-2020
Knowledge Graph Completion: WordNet, Cyc, Freebase Matrix Completion (Recommender Systems)
π β πΌπ, where
``An overview of embedding models of entities and relationships for knowledge base completionββ (Nguyen, 2017)
38
39 CLSW-2020
An overview of embedding models of entities and relationships for knowledge base completion (Nguyen, 2017)
https://github.com/Sujit-O/pykg2vec
40 CLSW-2020
Datasets
n/latest/dataset.html#
Algorithms
n/latest/algos.html
and rotations: π~π
TransM, KG2E, RotatE
41 CLSW-2020
An overview of embedding models of entities and relationships for knowledge base completion (Nguyen, 2017)
42 CLSW-2020
WN18RR (train.txt)
Triples Relation
34,796 _hypernym 29,715 _derivationally_related_form 7402 _member_meronym 4816 _has_part 3116 _synset_domain_topic_of 2921 _instance_hypernym 1299 _also_see 1138 _verb_group 923 _member_of_domain_region 629 _member_of_domain_usage 80 _similar_to
WordNet (my own extraction from NLTK)
Triples Relation 329,402 hyponym 329,396 hypernym 157,992 synonym 74,717 derivationally_related_form 49,073 morph 8023 pertainym 7979 antonym
43 CLSW-2020
Source: WordNet extracted from NLTK (except for rhymes)
Sound v. Meaning
44 CLSW-2020
Method
Conclusion: πΊ often better than π΅
CLSW-2020 45
Improvement
methods
leaderboard?
CLSW-2020 46
and contrasted
similarity
dictionaries
translations in other languages
CLSW-2020 47
48 CLSW-2020
Sound Meaning
Morphology
WordNet Semantics
49 CLSW-2020
known word(π¦)
CLSW-2020 50
51 CLSW-2020
52 CLSW-2020
Antonyms Synonyms
53 CLSW-2020
Source: WordNet (except for rhymes)
54 CLSW-2020
55 CLSW-2020
almost known word (unidirectional)
(directional)
63 CLSW-2020
meaning of an almost known word (unidirectional)
nearby known word (directional)
important killer apps
π)
π€ππΛβ°(π·, π€ππ(πΉ, π΅WXY π€ππ πππ πππ’πππππ + πWXY) β π)
64 CLSW-2020
g2p (Grapheme to Phoneme)
π½ππ΅(πππ πππ’πππππ)
performance of following inference procedure:
Word2Vec
π€ππ πππ πππ’πππππ
65 CLSW-2020
Standard BLI (Bilingual Lexicon Induction)
BLI for almost known words
66 CLSW-2020
ΓΌSVAIL:
ΓΌMachine Learning ΓΌSpeech, Language & Systems
ΓΌUnifying Themes:
ΓΌUnderstanding successes
ΓΌ Black Box & Gray Box
ΓΌPrepare for future: months/years/decades
ΓΌSystems
ΓΌDeep Dive: Parallelism Planning
ΓΌBlack Box & Gray Box
ΓΌBlack Box:
ΓΌ End-to-End:
ΓΌ Unit Testing (with no units)
ΓΌGray Box:
ΓΌ Visualizing ERNIE and BERT
ΓΌSpeech & Language
ΓΌDeep Dive:
ΓΌ Dementia Challenge
ΓΌDeep Dive:
ΓΌ Many OOVs are near known words
67 CLSW-2020
# of words Case word1 word2 word3 word4 word5 63 vAd unacceptable unattached unaware unbalanced unbelief 59 vad unable unacknowledged unattractive unauthorized unavailable 11 Vad unarmed unconcerned uncritical unfreeze unintended 10 VaD unafraid unaltered unambiguous unbreakable unbroken 8 VAD unconditional uncover undefeated unfold unlimited 5 vAD uncommon unforgiving unscrew untraceable unveil 4 vaD unchangeable unrepentant untie untouched 1 VAd unpack
68 CLSW-2020
CLSW-2020 69
70 CLSW-2020
Polarity Shock
Antonyms with Very Positive Delta V
Delta V More V Less V
0.97 love hate 0.95 happily sadly 0.94 joyful sorrowful 0.94 truth falsehood 0.93 joy sorrow 0.93 pleasure pain 0.92 respectful disrespectful 0.92 peace war 0.91 happiness sadness 0.91 generous stingy
Antonyms with Very Negative Delta V
Delta V Less V More V
hate love
sadly happily
sorrowful joyful
falsehood truth
sorrow joy
pain pleasure
disrespectful respectful
war peace
sadness happiness
stingy generous
71 CLSW-2020
Polarity Shock
More Delta V (Valence) More Delta A (Arousal) More Delta D (Dominance)
love hate agitation calmness strong weak happily sadly stormy calm success failure joyful sorrowful war peace superior inferior truth falsehood noisy quiet successful unsuccessful joy sorrow supernatural natural rich poor pleasure pain shout whisper effective ineffective respectful disrespectful irritate soothe brave cowardly peace war restless restful brave timid happiness sadness lively dull secure insecure generous stingy paranormal normal strongly weakly
72 CLSW-2020
Polarity Shock
Antonyms More Delta V (Valence) More Delta A (Arousal) More Delta D (Dominance)
love hate agitation calmness strong weak happily sadly stormy calm success failure joyful sorrowful war peace superior inferior truth falsehood noisy quiet successful unsuccessful joy sorrow supernatural natural rich poor pleasure pain shout whisper effective ineffective respectful disrespectful irritate soothe brave cowardly peace war restless restful brave timid happiness sadness lively dull secure insecure generous stingy paranormal normal strongly weakly
Synonyms More Delta V (Valence) More Delta A (Arousal) More Delta D (Dominance)
awesome awful fuck bed blunt dull blessed goddamned quarrel words loud trashy amazing awful betray grass president chair smart hurt violate break founder flop blessed damn firearm piece first low tenderness soreness rescue saving chairwoman chair fantastic grotesque arrest stay flashy trashy terrific terrifying corrupt cloud peaked poorly blessed infernal infuriate incense combat scrap extraordinary sinful mess pot chairman chair
Compelling Contrasts Synonyms should be compared (not contrasted)
73
Polarity
Shock
VAD Lexicon
unbreakable, unbroken, unconcerned, unconditional, uncover, uncritical, undefeated, unequivocal, unfold, unfreeze, unintended, unintentionally, unlimited, unlock, unopposed, unpack, unpredictable, unpretentious, unpunished, unquestionable, unrestrained, unrestricted, unselfish, untroubled, unwind, unwrap
unbroken, unchangeable, uncommon, unconditional, uncover, undefeated, unequivocal, unfold, unforgiving, unlimited, unpredictable, unpunished, unquestionable, unrepentant, unrestrained, unrestricted, unscrew, untie, untouched, untraceable, untroubled, unveil, unwrap
unbelief, unbutton, uncertain, uncertainty, unclean, unclear, uncomfortable, uncommon, unconditional, unconscious, unconstitutional, unconventional, unconvincing, uncover, undefeated, undefined, undignified, undress, undue, uneasy, uneducated, unequal, unethical, unexpected, unfairness, unfaithful, unfamiliar, unfavorable, unfold, unforgiving, unfriendly, ungrateful, unhealthy, unholy, unhook, uninformed, unkind, unlawful, unlike, unlimited, unmanageable, unmask, unnatural, unorganized, unorthodox, unpack, unpleasant, unpredictable, unprotected, unpublished, unreasonable, unregulated, unreliable, unrestrained, unsanitary, unscrew, unscrupulous, unsettled, unstable, unsteady, unsupported, unsure, unsympathetic, untidy, untraceable, untrustworthy, unusual, unveil, unwary, unwillingly, unworthy, unwrap, unwritten
74 CLSW-2020
Polarity Shock
75 CLSW-2020
Improvement
76 CLSW-2020
Improvement