Learning about Language with Normalizing Flows Graham Neubig Language Technologies Institute, Carnegie Mellon University Chunting Zhou Junxian He Xuezhe Ma Di Wang, Daniel Spokoyny, Xian Li, Taylor Berg-Kirkpatrick, Eduard Hovy
Learning about Language? • Syntactic structure The cat sat on a green wall Parts-of-speech: DT NN VBD IN DT JJ NN Dependency: • Cross-lingual correspondences a green cat sat on the wall 緑 の 猫 が 壁 の 上 に 座った 2
Supervised Approaches X Y 3
Supervised Approaches Supervised Learning X θ X Y Y 4
Supervised Approaches Supervised Learning X θ X Y Y 5
Unsupervised Approaches X • Learning language models P(X) • Learning continuous features from language models (e.g. word2vec, skipthought, BERT) • But how do we turn this into interpretable structure ? • How do we do it while taking advantage of continuous features ? 6
Latent Variable Approaches ? Unsupervised Y θ X Y ? ? ? X 7
Latent Variable Approaches ? Unsupervised Y θ X Y ? ? ? X 8
Density Matching for Bilingual Word Embedding Chunting Zhou, Xuezhe Ma, Di Wang, Graham Neubig (NAACL 2019) 9
⽝犭 猫 バスケット 地球 星 ピアッツ 学校 教授 梨泥 りんご Bilingual Word Embedding pear professor apple school piazza canine dog cat planet earth basketball • Map word embeddings from different languages into a single vector space - Cross-lingual transfer - Cross-lingual NLP tasks 10
Previous Work on Unsupervised BWE •Unsupervised methods of minimization some form of distance between distributions of discrete vector sets: • No direct probabilistic interpretation, not a "typical" unsupervised generative model
� � � Density Mapping for Bilingual Word Embedding (DeMa-BWE) Japanese Space English Space dog canine mapping function bird cat • Mapping function is learned with normalizing flow 12 12
<latexit sha1_base64="x6E2kl/41zLzrUTZRP09f040wUY=">AB8nicbVBNS8NAEJ3Ur1q/qh69LBahXkpSBT0WvXisYGsgDWz3bRLd7NhdyOU0J/hxYMiXv013vw3btsctPXBwO9GWbmRSln2rjut1NaW9/Y3CpvV3Z29/YPqodHXS0zRWiHSC6VH2FNOUtoxzDqZ8qikXE6WM0vp35j09UaSaTBzNJaSjwMGExI9hYKfBRTzOB2nX/vF+tuQ13DrRKvILUoEC7X/3qDSTJBE0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mKBIcTjMHCPS0ZBjDQhVHJ9K6YDIgkFHVlBh2DPvjxPGpWyfVKu3JwWq5dZHm0jw5QCdnoDFXRNaqhOqLoET2jV/RmPBkvxrvxMW3NGdnMLvoD4/MHL4GU7g=</latexit> <latexit sha1_base64="aj1VrWgqSrqkgqJ/bLgtsTmRK/w=">AB6HicbVBNS8NAEJ3Ur1q/qh69LBbBU0mqoMeiF48t2FpoQ9lsJ+3azSbsboQS+gu8eFDEqz/Jm/GbZuDtj4YeLw3w8y8IBFcG9f9dgpr6xubW8Xt0s7u3v5B+fCoreNUMWyxWMSqE1CNgktsGW4EdhKFNAoEPgTj25n/8IRK81jem0mCfkSHkoecUWOlZtgvV9yqOwdZJV5OKpCj0S9/9QYxSyOUhgmqdzE+NnVBnOBE5LvVRjQtmYDrFrqaQRaj+bHzolZ1YZkDBWtqQhc/X3REYjrSdRYDsjakZ62ZuJ/3nd1ITXfsZlkhqUbLEoTAUxMZl9TQZcITNiYglitbCRtRZmx2ZRsCN7y6ukXat6F9Va87JSv8njKMIJnMI5eHAFdbiDBrSAcIzvMKb8+i8O/Ox6K14OQzx/AHzucPzD+M7g=</latexit> Normalizing Flows X = f − 1 ( Z ) θ Z = f θ ( X ) X ∼ P ( X ) Z ∼ N (0 , I ) Change of variable formula: � � � det( ∂ f θ ( x ) � � p θ ( x ) = p Z ( f θ ( x )) ) � � ∂ x � Intuitively, prevents degenerative mapping of everything to zero vector Normalizing Flow: A series of such invertible transformations f 13
� � � DeMa-BWE: Preliminaries Japanese Space English Space dog canine mapping function bird cat Notations: y ∈ R d x ∈ R d , : denote vectors in the src and tgt embedding space : denote an actual word in src and tgt vocabularies x i , y j f xy , f yx : denote src->tgt, and tgt-src mapping functions 14
⽝犭 猫 ⿃鳦 Prior Distribution • Assumption on the monolingual word embedding space: Gaussian mixture model 15
⽝犭 猫 ⿃鳦 DeMa-BWE: Density Matching • Sampling a continuous vector from the GMM x i ∼ π ( x i ) x ∼ ˜ p ( x | x i ) • Apply the mapping function to obtain the transformed dog f xy canine vector in the target space. f xy ( · ) = W xy · cat bird • Computing the density of x in the mapped target space • Objective: 16
Experiments • Dataset and Tasks • Bilingual Lexicon Induction Task: MUSE dataset (Conneau el al., 2017) • Cross-lingual Word Similarity Task: SemEval 2017 • Languages • Baseline languages: en - es, de, fr, ru, zh, ja • Morphologically rich languages: en - et, fi, el, hu, pl, tr 17
Main Results on BLI (close languages) Procrustes(R) MUSE (U+R) SL-unsup-ID DeMa-BWE 85 81.25 77.5 73.75 70 en-de de-en en-es es-en 18
Unsupervised Learning of Syntactic Structure w/ Invertible Neural Projections Junxian He, Graham Neubig, Taylor Berg-Kirkpatrick (EMNLP 2018) 19
Recommend
More recommend