AMMI – Introduction to Deep Learning 11.3. Word embeddings and translation
Fran¸ cois Fleuret https://fleuret.org/ammi-2018/ November 2, 2018
ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE
AMMI Introduction to Deep Learning 11.3. Word embeddings and - - PowerPoint PPT Presentation
AMMI Introduction to Deep Learning 11.3. Word embeddings and translation Fran cois Fleuret https://fleuret.org/ammi-2018/ November 2, 2018 COLE POLYTECHNIQUE FDRALE DE LAUSANNE Word embeddings and CBOW Fran cois Fleuret AMMI
ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 1 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 2 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 2 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 3 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 4 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 4 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 4 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 5 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 5 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 6 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 6 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 7 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 8 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 9 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 10 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 11 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 12 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 13 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 14 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 15 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 16 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 17 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 18 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 18 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 19 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 20 / 31
w(t-2) w(t+1) w(t-1) w(t+2) w(t) SUM INPUT PROJECTION OUTPUT w(t) INPUT PROJECTION OUTPUT w(t-2) w(t-1) w(t+1) w(t+2)
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 21 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 22 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 22 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 23 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 24 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 25 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 26 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 27 / 31
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 28 / 31
Type Sentence Our model Ulrich UNK , membre du conseil d’ administration du constructeur automobile Audi , affirme qu’ il s’ agit d’ une pratique courante depuis des ann´ ees pour que les t´ el´ ephones portables puissent ˆ etre collect´ es avant les r´ eunions du conseil d’ administration afin qu’ ils ne soient pas utilis´ es comme appareils d’ ´ ecoute ` a distance . Truth Ulrich Hackenberg , membre du conseil d’ administration du constructeur automobile Audi , d´ eclare que la collecte des t´ el´ ephones portables avant les r´ eunions du conseil , afin qu’ ils ne puissent pas ˆ etre utilis´ es comme appareils d’ ´ ecoute ` a distance , est une pratique courante depuis des ann´ ees . Our model “ Les t´ el´ ephones cellulaires , qui sont vraiment une question , non seulement parce qu’ ils pourraient potentiellement causer des interf´ erences avec les appareils de navigation , mais nous savons , selon la FCC , qu’ ils pourraient interf´ erer avec les tours de t´ el´ ephone cellulaire lorsqu’ ils sont dans l’ air ” , dit UNK . Truth “ Les t´ el´ ephones portables sont v´ eritablement un probl` eme , non seulement parce qu’ ils pourraient ´ eventuellement cr´ eer des interf´ erences avec les instruments de navigation , mais parce que nous savons , d’ apr` es la FCC , qu’ ils pourraient perturber les antennes-relais de t´ el´ ephonie mobile s’ ils sont utilis´ es ` a bord ” , a d´ eclar´ e Rosenker . Our model Avec la cr´ emation , il y a un “ sentiment de violence contre le corps d’ un ˆ etre cher ” , qui sera “ r´ eduit ` a une pile de cendres ” en tr` es peu de temps au lieu d’ un processus de d´ ecomposition “ qui accompagnera les ´ etapes du deuil ” . Truth Il y a , avec la cr´ emation , “ une violence faite au corps aim´ e ” , qui va ˆ etre “ r´ eduit ` a un tas de cendres ” en tr` es peu de temps , et non apr` es un processus de d´ ecomposition , qui “ accompagnerait les phases du deuil ” .
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 29 / 31
4 7 8 12 17 22 28 35 79 test sentences sorted by their length 20 25 30 35 40 BLEU score
LSTM (34.8) baseline (33.3)
500 1000 1500 2000 2500 3000 3500 test sentences sorted by average word frequency rank 20 25 30 35 40 BLEU score
LSTM (34.8) baseline (33.3)
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 30 / 31
−8 −6 −4 −2 2 4 6 8 10 −6 −5 −4 −3 −2 −1 1 2 3 4
John respects Mary Mary respects John John admires Mary Mary admires John Mary is in love with John John is in love with Mary
−15 −10 −5 5 10 15 20 −20 −15 −10 −5 5 10 15
I gave her a card in the garden In the garden , I gave her a card She was given a card by me in the garden She gave me a card in the garden In the garden , she gave me a card I was given a card by her in the garden
Fran¸ cois Fleuret AMMI – Introduction to Deep Learning / 11.3. Word embeddings and translation 31 / 31