characterizing the impact of geometric properties of word
play

Characterizing the impact of geometric properties of word embeddings - PowerPoint PPT Presentation

. . . . . . . . . . . . . . Characterizing the impact of geometric properties of word embeddings on task performance Brendan Whitaker, Denis Newman-Griffjs, Aparajita Haldar Hakan Ferhatosmanoglu, Eric Fosler-Lussier Ohio State


  1. . . . . . . . . . . . . . . Characterizing the impact of geometric properties of word embeddings on task performance Brendan Whitaker, Denis Newman-Griffjs, Aparajita Haldar Hakan Ferhatosmanoglu, Eric Fosler-Lussier Ohio State University University of Warwick June 4, 2019 Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . . 1 / 16

  2. . . . . . . . . . . . . . . Objective Question What geometric properties of an embedding space are important for performance on a given task? Understand utility of embeddings as input features. Provide direction for future work in training and tuning embeddings. Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . . 2 / 16

  3. . . . . . . . . . . . . . . Objective Question What geometric properties of an embedding space are important for performance on a given task? Understand utility of embeddings as input features. Provide direction for future work in training and tuning embeddings. Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . . 2 / 16

  4. . . . . . . . . . . . . . . . Embedding space? In NLP, the term embedding is often used to denote both a map and (an element of) its image. Defjnition Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . 3 / 16 We defjne an embedding space as a set of word vectors in R d .

  5. . . . . . . . . . . . . . . . Geometric properties? We consider the following attributes of word embedding geometry: position relative to the origin; global pairwise distances; local pairwise distances. Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . 4 / 16 distribution of feature values in R d ;

  6. . . . . . . . . . . . . . . Our approach Ablation Study We transform the embedding space such that we expose only a subset of the stated properties to downstream models. position relative to the origin; global pairwise distances; local pairwise distances. Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . . 5 / 16 distribution of feature values in R d ;

  7. . . . . . . . . . . . . . . . Affjne pos. relative to the origin distribution of features global distances local distances Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . 6 / 16

  8. . . . . . . . . . . . . Cosine distance embedding (CDE) . Specs: Activation function: ReLU; Epochs: 50; frequent words). pos. relative to the origin distribution of features global distances local distances Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 / 16 d = embedding dimension (300); | V | ∗ = distance vector dimension (10 4 most

  9. . . . . . . . . . . . . . . . Nearest neighbor embedding (NNE) pos. relative to the origin distribution of features global distances local distances Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . 8 / 16

  10. . . . . . . . . . . . . . . . Hierarchy of transformations Ordering is with respect to number of properties ablated. We include a random baseline of meaningless vectors. Arrow length does not mean anything. Transformations are applied independently to the original embeddings. Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . 9 / 16

  11. . . . . . . . . . . . . Embeddings and Tasks . Standard benchmark embeddings: Word2Vec on Google news; GloVe on common crawl; FastText on WikiNews. Testing: 10 standard intrinsic tasks. 5 extrinsic tasks (embeddings plugged into a downstream machine learning model). Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 / 16

  12. . BLESS . . Tasks Intrinsic Tasks Word Similarity and Relatedness via cosine distance WordSim353 SimLex-999 RareWords RG65 MEN MTURK Word Categorization AP Battig . reviews June 4, 2019 Characterizing Embedding Geometry Whitaker, Newman-Griffjs, Haldar, et al. SNLI Tomatoes snippets Subj./Obj. classif. on Rotten Sentiment classif. on IMDB ESSLLI reviews polarity classif. on MR movie Sentence-level sentiment SemEval-2010 Task 8 Relation classif. on Extrinsic Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 / 16

  13. . on thresholded-NNE. . . . . . . . . . Results - intrinsic tasks We see the lowest performance Largest drop in performance at . CDE (written as distAE on the graph). Rotations, dilations, and refmections are innocuous. Displacing the origin has a nontrivial efgect. NNE causes a signifjcant drop in performance as well. Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 / 16

  14. . . . . . . . . . . . . . . Results - extrinsic tasks CDE is still the largest drop. NNE recover most of the losses, and are on par with affjnes. Extrinsic tasks are more robust to translations, but not homotheties. Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . . 13 / 16

  15. . . . . . . . . . . . . . . . Discussion Drop due to CDE likely associated with the importance of locality in embedding learning. With thresholded-NNE, high out-degree words are rare words, introducing noise during node2vec’s random walk. Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . 14 / 16

  16. . . . . . . . . . . . . . . Takeaways We fjnd that in general, both intrinsic and extrinsic models rely heavily on local similarity, as opposed to global distance information. We also fjnd that intrinsic models are more sensitive to absolute position than extrinsic ones. Methods for tuning and training should focus on local geometric Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . . . 15 / 16 structure in R d .

  17. . . . . . . . . . . . . . . . . Questions. Questions? github.com/OSU-slatelab/geometric-embedding-properties Whitaker, Newman-Griffjs, Haldar, et al. Characterizing Embedding Geometry June 4, 2019 . . . . . . . . . . . . . . . . . . . . . . . . 16 / 16

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend