Arxiv:1612.00394V1 [Cs.CL] 1 Dec 2016 Nelgne(W.Aiog.Alrgt Reserved

Arxiv:1612.00394V1 [Cs.CL] 1 Dec 2016 Nelgne(W.Aiog.Alrgt Reserved

Definition Modeling: Learning to define word embeddings in natural language Thanapon Noraset, Chen Liang, Larry Birnbaum, and Doug Downey Department of Electrical Engineering & Computer Science Northwestern University, Evanston IL 60208, USA {nor, chenliang2013}@u.northwestern.edu, {l-birnbaum,d-downey}@northwestern.edu Abstract Word Generateddefinition brawler apersonwhofights Distributed representations of words have been shown to cap- butterfish a marine fish of the atlantic coast ture lexical semantics, as demonstrated by their effectiveness continually ina constantmanner in word similarity and analogical relation tasks. But, these creek anarrowstreamofwater tasks only evaluate lexical semantics indirectly. In this paper, we study whether it is possible to utilize distributed represen- feminine havingthecharacterofawoman tations to generate dictionary definitions of words, as a more juvenility the quality of being childish direct and transparent representation of the embeddings’ se- mathematical of or pertaining to the science of mantics. We introduce definition modeling, the task of gen- mathematics erating a definition for a given word and its embedding. We negotiate tomakeacontractoragreement present several definition model architectures based on recur- prance towalkinaloftymanner rent neural networks, and experiment with the models over resent tohaveafeelingofangerordislike multiple data sets. Our results show that a model that controls similar having the same qualities dependencies between the word being defined and the defini- valueless not useful tion words performs significantly better, and that a character- level convolution layer designed to leverage morphology can complement word-level embeddings. Finally, an error analy- Table 1: Selected examples of generated definitions. The sis suggests that the errors made by a definition model may model has been trained on occurrences of each example provide insight into the shortcomings of word embeddings. word in running text, but not on the definitions. 1 Introduction explicit statements of word meaning. Thus, compared to the Distributed representations of words, or word embeddings, word similarity and analogical relation tasks, definition gen- are a key component in many natural language process- eration can be considered a more transparent view of the ing (NLP) models (Turian,Ratinov,and Bengio 2010; syntax and semantics captured by an embedding. We intro- Huang et al. 2014). Recently, several neural network tech- duce definition modeling: the task of estimating the prob- niques have been introduced to learn high-quality word em- ability of a textual definition, given a word being defined beddings from unlabeled textual data (Mikolov et al. 2013a; and its embedding. Specifically, for a given set of word em- Pennington, Socher, and Manning 2014; beddings, a definition model is trained on a corpus of word Yogatamaet al. 2015). Embeddings have been shown arXiv:1612.00394v1 [cs.CL] 1 Dec 2016 and definition pairs. The models are then tested on how well to capture lexical syntax and semantics. For ex- they model definitions for words not seen during the train- ample, it is well-known that nearby embeddings ing, based on each word’s embedding. are more likely to represent synonymous words The definition models studied in this paper are based (LandauerandDumais1997) or words in the same on recurrent neural network (RNN) models (Elman 1990; class (Downey,Schoenmackers,andEtzioni2007). Hochreiterand Schmidhuber1997). RNN models have More recently, the vector offsets between embed- established a new state-of-the-art performance on many dings have been shown to reflect analogical relations sequence prediction and natural language generation (Mikolov, Yih, and Zweig 2013). However, tasks such as tasks (Cho et al. 2014; Sutskever, Vinyals, and Le 2014; word similarity and analogy only evaluate an embedding’s Karpathy and Fei-Fei 2014; Wen et al. 2015a). An impor- lexical information indirectly. tant characteristic of dictionary definitions is that only a In this work, we study whether word embeddings can be subset of the words in the definition depend strongly on the used to generate natural language definitions of their corre- word being defined. For example, the word “woman” in the sponding words. Dictionary definitions serve as direct and definition of “feminine” in Table 1 depends on the word Copyright c 2017, Association for the Advancement of Artificial being defined than the rest. To capture the varying degree Intelligence (www.aaai.org). All rights reserved. of dependency, we introduce a gated update function that is trained to control information of the word being defined paragraphor document as an embedding,and reconstruct the used for generating each definition word. Furthermore, original text from the encoding. Other recent work such as since the morphemes of the word being defined plays a vital the image caption generation (Karpathy and Fei-Fei 2014) role in the definition, we experiment with a character-level and spoken dialog generation (Wen et al. 2015a) are also re- convolutional neural network (CNN) to test whether it can lated to our work, in that a sequence of words is gener- provide complementary information to the word embed- ated from a single input vector. Our model architectures are dings. Our best model can generate fluent and accurate inspired by sequence-to-sequence models (Cho et al. 2014; definitions as shown in Table 1. We note that none of the Sutskever, Vinyals, and Le 2014), but definition modeling is definitions in the table exactly match any definition seen distinct, as it is a word-to-sequence task. during training. Our contributions are as follows: (1) We introduce the 3 Dictionary Definitions definition modeling task, and present a probabilistic model In this section, we first investigate definition content and for the task based on RNN language models. (2) In experi- structure through a study of existing dictionaries. We then ments with different model architectures and word features, describe our new data set, and define our tasks and metrics. we show that the gate function improves the perplexity of a RNN language model on definition modeling task by ∼10%, 3.1 Definition Content and Structure and the character-level CNN further improves the perplexity by ∼5%. (3) We also show that the definition models can be In existing dictionaries, individual defini- use to perform the reverse dictionary task studied in previ- tions are often comprised of genus and dif- ous work, in which the goal is to match a given definition to ferentiae (Chodorow, Byrd, and Heidorn 1985; its corresponding word. Our model achieves an 11.8% abso- Montemagni and Vanderwende 1992). The genus is a lute gain in accuracy compared to previous state-of-the-art generalized class of the word being defined, and the differ- by Hill et al. (2016). (4) Finally, our error analysis shows entiae is what makes the word distinct from others in the that a well-trained set of word embeddings pays significant same class. For instance, role in the quality of the generated definitions, and some of Phosphorescent: emitting light without appreciable error types suggest shortcomings of the information encoded heat as by slow oxidation of phosphorous in the word embeddings. “emitting light” is a genus, and “without applicable heat ...” is a differntiae. Furthermore, definitions tend to include 2 Previous Work common patterns such as “the act of ...” or “one who has ...” Our goal is to investigate RNN models that learns to de- (Markowitz, Ahlswede, and Evens 1986). However, the pat- fine word embeddings by training on examples of dictionary terns and styles are often unique to each dictionary. definitions. While dictionary corpora have been utilized ex- The genus + differentiae (G+D) structure is not the only tensively in NLP, to the best of our knowledge none of the pattern for definitions. For example, the entry below exhibits previous work has attempted create a generative model of distinct structures. definitions. Early work focused on extracting semantic in- formation from definitions. For example, Chodorow (1985), Eradication:the actof pluckingup bythe roots;a root- and Klavans and Whitman (2001) constructed a taxonomy ing out; extirpation; utter destruction of words from dictionaries. Dolan et al. (1993) and Vander- This set of definitions includes a synonym (“extirpation”), wende et al. (2005) extracting semantic representations from a reverse of the G+D structure (“utter destruction”), and an definitions, to populate a lexical knowledge base. uncategorized structure (“a rooting out”). In distributed semantics, words are represented by a dense vector of real numbers, rather than semantic predicates. 3.2 Corpus: Preprocessing and Analysis Recently, dictionary definitions have been used to learn Dictionary corpora are available in a digital format, but are such embeddings. For example, Wang et al. (2015) used designed for human consumption and require preprocessing words in definition text as a form of “context” words for before they can be utilized for machine learning. Dictionar- the Word2Vec algorithm (Mikolov et al. 2013b). Hill et al. ies contain non-definitional text to aid human readers, e.g. (2016) use dictionary definitions to model compositional- the entry for “gradient” in Wordnik1 contains fields (“Math- ity, and evaluate the models with the reverse dictionary task. ematics”) and example usage (“as, the gradient line of a rail- While these works learn word or phrase embeddings from road.”). Further, many entries contain multiple definitions,

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    9 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us