Arxiv:1905.05677V3 [Cs.CL] 27 Aug 2019 Various Approaches Have Been Proposed to Antonymy, Etc

Total Page:16

File Type:pdf, Size:1020Kb

Arxiv:1905.05677V3 [Cs.CL] 27 Aug 2019 Various Approaches Have Been Proposed to Antonymy, Etc Sense Vocabulary Compression through the Semantic Knowledge of WordNet for Neural Word Sense Disambiguation Loïc Vial Benjamin Lecouteux Didier Schwab Univ. Grenoble Alpes, CNRS, Grenoble INP, LIG, 38000 Grenoble, France {loic.vial, benjamin.lecouteux, didier.schwab}@univ-grenoble-alpes.fr Abstract tify the different senses of words from unanno- tated or parallel corpora (e.g. Ide et al. (2002)). In this article, we tackle the issue of the Supervised methods are by far the most pre- limited quantity of manually sense anno- dominant as they generally offer the best results tated corpora for the task of word sense in evaluation campaigns (for instance (Navigli et disambiguation, by exploiting the seman- al., 2007)). State of the art classifiers used to com- tic relationships between senses such as bine specific features such as the parts of speech synonymy, hypernymy and hyponymy, in and the lemmas of surrounding words (Zhong and order to compress the sense vocabulary of Ng, 2010), but they are now replaced by neural Princeton WordNet, and thus reduce the networks which learn their own representation of number of different sense tags that must words (Raganato et al., 2017b; Le et al., 2018). be observed to disambiguate all words of One major bottleneck of supervised systems is the lexical database. We propose two dif- the restricted quantity of manually sense anno- ferent methods that greatly reduce the size tated corpora: In the annotated corpus SemCor of neural WSD models, with the benefit (Miller et al., 1993), the largest manually sense of improving their coverage without addi- annotated corpus available, words are annotated tional training data, and without impacting with 33 760 different sense keys, which corre- their precision. In addition to our meth- sponds to only approximately 16% of the sense ods, we present a WSD system which re- inventory of WordNet (Miller, 1995), the lexical lies on pre-trained BERT word vectors in database of reference widely used in WSD. Many order to achieve results that significantly works try to leverage this problem by creating outperforms the state of the art on all WSD new sense annotated corpora, either automatically evaluation tasks. (Pasini and Navigli, 2017), semi-automatically (Taghipour and Ng, 2015), or through crowdsourc- 1 Introduction ing (Yuan et al., 2016). Word Sense Disambiguation (WSD) is a task In this work, the idea is to solve this issue by which aims to clarify a text by assigning to each taking advantage of the semantic relationships be- of its words the most suitable sense labels, given a tween senses included in WordNet, such as the predefined sense inventory. hypernymy, the hyponymy, the meronymy, the arXiv:1905.05677v3 [cs.CL] 27 Aug 2019 Various approaches have been proposed to antonymy, etc. Our method is based on the ob- achieve WSD: Knowledge-based methods rely on servation that a sense and its closest related senses dictionaries, lexical databases, thesauri or knowl- (its hypernym or its hyponyms for instance) all edge graphs as primary resources, and use algo- share a common idea or concept, and so a word rithms such as lexical similarity measures (Lesk, can sometimes be disambiguated using only re- 1986) or graph-based measures (Moro et al., lated concepts. Consequently, we do not need to 2014). Supervised methods, on the other hand, ex- know every sense of WordNet to disambiguate all ploit sense annotated corpora as training instances words of WordNet. for a classifier such as SVM (Chan et al., 2007; For instance, let us consider the word “mouse” Zhong and Ng, 2010), or more recently by a neu- and two of its senses which are the computer ral network (Kågebäck and Salomonsson, 2016). mouse and the animal mouse. We only need to Finally, unsupervised methods automatically iden- know the notions of “animal” and “electronic de- vice” to distinguish them, and all notions that are and the sense closest to the predicted vector is as- more specialized such as “rodent” or “mammal” signed to each word. are therefore superfluous. By grouping them, we These systems have the advantage of bypassing can benefit from all other instances of electronic the problem of the lack of sense annotated data by devices or animals in a training corpus, even if concentrating the power of abstraction offered by they do not mention the word “mouse”. recurrent neural networks on a good quality lan- Contributions: In this paper, we hypothesize that guage model trained in an unsupervised manner. only a subset of WordNet senses could be con- However, sense annotated corpora are still indis- sidered to disambiguate all words of the lexical pensable to contruct the sense vectors. database. Therefore, we propose two different methods for building this subset and we call them 2.2 WSD Based on a Softmax Classifier sense vocabulary compression methods. By us- In these systems, the main neural network directly ing these techniques, we are able to greatly im- classifies and attributes a sense to each input word prove the coverage of supervised WSD systems, through a probability distribution computed by a nearly eliminating the need for a backoff strategy softmax function. Sense annotations are simply that is currently used in most systems when deal- seen as tags put on every word, like a POS-tagging ing with a word which has never been observed task for instance. in the training data. We evaluate our method on We can distinguish two separate branches of a state of the art WSD neural network, based on these types of neural networks: pretrained contextualized word vector representa- 1. Those in which we have several distinct and tions, and we present results that significantly out- token-specific neural networks (or classifiers) perform the state of the art on every standard WSD for every different word in the dictionary (Ia- evaluation task. Finally, we provide a documented cobacci et al., 2016; Kågebäck and Salomons- tool for training and evaluating neural WSD mod- son, 2016), each of them being able to manage els, as well as our best pretrained model in a dedi- a particular word and its particular senses. For cated GitHub repository1. instance, one of the classifiers is specialized in 2 Related Work choosing between the four possible senses of the noun “mouse”. This type of approach is In WSD, several recent advances have been made particularly fitted for the lexical sample tasks, in the creation of new neural architectures for su- where a small and finite set of very ambigu- pervised models and the integration of knowledge ous words have to be sense annotated in several into these systems. Multiple works also exploit the contexts, but it can also be used in all-words idea of grouping together related senses. In this word sense disambiguation tasks. section, we give an overview of these works. 2. Those in which we have a larger and general 2.1 WSD Based on a Language Model neural network that is able to manage all dif- ferent words and assign a sense in the set of all In this type of approach, that has been initiated by existing sense in the dictionary used (Raganato Yuan et al. (2016) and reimplemented by Le et al. et al., 2017b). (2018), the central component is a neural language The advantage of the first branch of approaches model able to predict a word with consideration is that in order to disambiguate a word, limiting for the words surrounding it, thanks to a recurrent our choice to one of its possible senses is compu- neural network trained on a massive quantity of tationally much easier than searching through all unannotated data. the senses of all words. To put things in perspec- Once the language model is trained, it is used to tive, the average number of senses of polysemous produce sense vectors that result from averaging words in WordNet is approximately 3, whereas the word vectors predicted by the language model the total number of senses considering all words at all positions of words annotated with the given is 206 941. sense. The second approach, however, has an interest- At test time, the language model is used to pre- ing property: all senses reside in the same vector dict a vector according to the surrounding context, space and hence share features in the hidden layers 1https://github.com/getalp/disambiguate of the network. This allows the model to predict an identical sense for two different words (i.e. syn- tag, by simply keeping track of which sense key of onyms), but it also offers the possibility to predict its lemma belongs to the predicted group. a sense for a word not present in the dictionary (e.g. neologism, spelling mistake...). 3 Sense Vocabulary Compression Finally, in two recent articles, Luo et al. (2018a) Current state of the art supervised WSD systems and Luo et al. (2018b) have proposed an improve- such as Yuan et al. (2016), Raganato et al. (2017b), ment of these type of architectures, by computing Luo et al. (2018a) and Le et al. (2018) are all con- an attention between the context of a target word fronted to the following issues: and the gloss of its different senses. Thus, their 1. Due to the small number of manually sense an- work is one of the first to incorporate knowledge notated corpora available, a target word may from WordNet into a WSD neural network. never be observed during the training, and 2.3 Sense Clustering Methods therefore the system is not able to annotate it. Several works exploit the idea of grouping to- 2. For the same reason, a word may have been ob- gether mutiple WordNet sense tags in order to cre- served, but not all of its senses.
Recommended publications
  • Malware Classification with BERT
    San Jose State University SJSU ScholarWorks Master's Projects Master's Theses and Graduate Research Spring 5-25-2021 Malware Classification with BERT Joel Lawrence Alvares Follow this and additional works at: https://scholarworks.sjsu.edu/etd_projects Part of the Artificial Intelligence and Robotics Commons, and the Information Security Commons Malware Classification with Word Embeddings Generated by BERT and Word2Vec Malware Classification with BERT Presented to Department of Computer Science San José State University In Partial Fulfillment of the Requirements for the Degree By Joel Alvares May 2021 Malware Classification with Word Embeddings Generated by BERT and Word2Vec The Designated Project Committee Approves the Project Titled Malware Classification with BERT by Joel Lawrence Alvares APPROVED FOR THE DEPARTMENT OF COMPUTER SCIENCE San Jose State University May 2021 Prof. Fabio Di Troia Department of Computer Science Prof. William Andreopoulos Department of Computer Science Prof. Katerina Potika Department of Computer Science 1 Malware Classification with Word Embeddings Generated by BERT and Word2Vec ABSTRACT Malware Classification is used to distinguish unique types of malware from each other. This project aims to carry out malware classification using word embeddings which are used in Natural Language Processing (NLP) to identify and evaluate the relationship between words of a sentence. Word embeddings generated by BERT and Word2Vec for malware samples to carry out multi-class classification. BERT is a transformer based pre- trained natural language processing (NLP) model which can be used for a wide range of tasks such as question answering, paraphrase generation and next sentence prediction. However, the attention mechanism of a pre-trained BERT model can also be used in malware classification by capturing information about relation between each opcode and every other opcode belonging to a malware family.
    [Show full text]
  • Bros:Apre-Trained Language Model for Understanding Textsin Document
    Under review as a conference paper at ICLR 2021 BROS: A PRE-TRAINED LANGUAGE MODEL FOR UNDERSTANDING TEXTS IN DOCUMENT Anonymous authors Paper under double-blind review ABSTRACT Understanding document from their visual snapshots is an emerging and chal- lenging problem that requires both advanced computer vision and NLP methods. Although the recent advance in OCR enables the accurate extraction of text seg- ments, it is still challenging to extract key information from documents due to the diversity of layouts. To compensate for the difficulties, this paper introduces a pre-trained language model, BERT Relying On Spatiality (BROS), that represents and understands the semantics of spatially distributed texts. Different from pre- vious pre-training methods on 1D text, BROS is pre-trained on large-scale semi- structured documents with a novel area-masking strategy while efficiently includ- ing the spatial layout information of input documents. Also, to generate structured outputs in various document understanding tasks, BROS utilizes a powerful graph- based decoder that can capture the relation between text segments. BROS achieves state-of-the-art results on four benchmark tasks: FUNSD, SROIE*, CORD, and SciTSR. Our experimental settings and implementation codes will be publicly available. 1 INTRODUCTION Document intelligence (DI)1, which understands industrial documents from their visual appearance, is a critical application of AI in business. One of the important challenges of DI is a key information extraction task (KIE) (Huang et al., 2019; Jaume et al., 2019; Park et al., 2019) that extracts struc- tured information from documents such as financial reports, invoices, business emails, insurance quotes, and many others.
    [Show full text]
  • Information Extraction Based on Named Entity for Tourism Corpus
    Information Extraction based on Named Entity for Tourism Corpus Chantana Chantrapornchai Aphisit Tunsakul Dept. of Computer Engineering Dept. of Computer Engineering Faculty of Engineering Faculty of Engineering Kasetsart University Kasetsart University Bangkok, Thailand Bangkok, Thailand [email protected] [email protected] Abstract— Tourism information is scattered around nowa- The ontology is extracted based on HTML web structure, days. To search for the information, it is usually time consuming and the corpus is based on WordNet. For these approaches, to browse through the results from search engine, select and the time consuming process is the annotation which is to view the details of each accommodation. In this paper, we present a methodology to extract particular information from annotate the type of name entity. In this paper, we target at full text returned from the search engine to facilitate the users. the tourism domain, and aim to extract particular information Then, the users can specifically look to the desired relevant helping for ontology data acquisition. information. The approach can be used for the same task in We present the framework for the given named entity ex- other domains. The main steps are 1) building training data traction. Starting from the web information scraping process, and 2) building recognition model. First, the tourism data is gathered and the vocabularies are built. The raw corpus is used the data are selected based on the HTML tag for corpus to train for creating vocabulary embedding. Also, it is used building. The data is used for model creation for automatic for creating annotated data.
    [Show full text]
  • NLP with BERT: Sentiment Analysis Using SAS® Deep Learning and Dlpy Doug Cairns and Xiangxiang Meng, SAS Institute Inc
    Paper SAS4429-2020 NLP with BERT: Sentiment Analysis Using SAS® Deep Learning and DLPy Doug Cairns and Xiangxiang Meng, SAS Institute Inc. ABSTRACT A revolution is taking place in natural language processing (NLP) as a result of two ideas. The first idea is that pretraining a deep neural network as a language model is a good starting point for a range of NLP tasks. These networks can be augmented (layers can be added or dropped) and then fine-tuned with transfer learning for specific NLP tasks. The second idea involves a paradigm shift away from traditional recurrent neural networks (RNNs) and toward deep neural networks based on Transformer building blocks. One architecture that embodies these ideas is Bidirectional Encoder Representations from Transformers (BERT). BERT and its variants have been at or near the top of the leaderboard for many traditional NLP tasks, such as the general language understanding evaluation (GLUE) benchmarks. This paper provides an overview of BERT and shows how you can create your own BERT model by using SAS® Deep Learning and the SAS DLPy Python package. It illustrates the effectiveness of BERT by performing sentiment analysis on unstructured product reviews submitted to Amazon. INTRODUCTION Providing a computer-based analog for the conceptual and syntactic processing that occurs in the human brain for spoken or written communication has proven extremely challenging. As a simple example, consider the abstract for this (or any) technical paper. If well written, it should be a concise summary of what you will learn from reading the paper. As a reader, you expect to see some or all of the following: • Technical context and/or problem • Key contribution(s) • Salient result(s) If you were tasked to create a computer-based tool for summarizing papers, how would you translate your expectations as a reader into an implementable algorithm? This is the type of problem that the field of natural language processing (NLP) addresses.
    [Show full text]
  • Unified Language Model Pre-Training for Natural
    Unified Language Model Pre-training for Natural Language Understanding and Generation Li Dong∗ Nan Yang∗ Wenhui Wang∗ Furu Wei∗† Xiaodong Liu Yu Wang Jianfeng Gao Ming Zhou Hsiao-Wuen Hon Microsoft Research {lidong1,nanya,wenwan,fuwei}@microsoft.com {xiaodl,yuwan,jfgao,mingzhou,hon}@microsoft.com Abstract This paper presents a new UNIfied pre-trained Language Model (UNILM) that can be fine-tuned for both natural language understanding and generation tasks. The model is pre-trained using three types of language modeling tasks: unidirec- tional, bidirectional, and sequence-to-sequence prediction. The unified modeling is achieved by employing a shared Transformer network and utilizing specific self-attention masks to control what context the prediction conditions on. UNILM compares favorably with BERT on the GLUE benchmark, and the SQuAD 2.0 and CoQA question answering tasks. Moreover, UNILM achieves new state-of- the-art results on five natural language generation datasets, including improving the CNN/DailyMail abstractive summarization ROUGE-L to 40.51 (2.04 absolute improvement), the Gigaword abstractive summarization ROUGE-L to 35.75 (0.86 absolute improvement), the CoQA generative question answering F1 score to 82.5 (37.1 absolute improvement), the SQuAD question generation BLEU-4 to 22.12 (3.75 absolute improvement), and the DSTC7 document-grounded dialog response generation NIST-4 to 2.67 (human performance is 2.65). The code and pre-trained models are available at https://github.com/microsoft/unilm. 1 Introduction Language model (LM) pre-training has substantially advanced the state of the art across a variety of natural language processing tasks [8, 29, 19, 31, 9, 1].
    [Show full text]
  • Question Answering by Bert
    Running head: QUESTION AND ANSWERING USING BERT 1 Question and Answering Using BERT Suman Karanjit, Computer SCience Major Minnesota State University Moorhead Link to GitHub https://github.com/skaranjit/BertQA QUESTION AND ANSWERING USING BERT 2 Table of Contents ABSTRACT .................................................................................................................................................... 3 INTRODUCTION .......................................................................................................................................... 4 SQUAD ............................................................................................................................................................ 5 BERT EXPLAINED ...................................................................................................................................... 5 WHAT IS BERT? .......................................................................................................................................... 5 ARCHITECTURE ............................................................................................................................................ 5 INPUT PROCESSING ...................................................................................................................................... 6 GETTING ANSWER ........................................................................................................................................ 8 SETTING UP THE ENVIRONMENT. ....................................................................................................
    [Show full text]
  • The Case for Word Sense Induction and Disambiguation
    Unsupervised Does Not Mean Uninterpretable: The Case for Word Sense Induction and Disambiguation Alexander Panchenko‡, Eugen Ruppert‡, Stefano Faralli†, Simone Paolo Ponzetto† and Chris Biemann‡ ‡Language Technology Group, Computer Science Dept., University of Hamburg, Germany †Web and Data Science Group, Computer Science Dept., University of Mannheim, Germany panchenko,ruppert,biemann @informatik.uni-hamburg.de { faralli,simone @informatik.uni-mannheim.de} { } Abstract Word sense induction from domain-specific cor- pora is a supposed to solve this problem. How- The current trend in NLP is the use of ever, most approaches to word sense induction and highly opaque models, e.g. neural net- disambiguation, e.g. (Schutze,¨ 1998; Li and Juraf- works and word embeddings. While sky, 2015; Bartunov et al., 2016), rely on cluster- these models yield state-of-the-art results ing methods and dense vector representations that on a range of tasks, their drawback is make a WSD model uninterpretable as compared poor interpretability. On the example to knowledge-based WSD methods. of word sense induction and disambigua- Interpretability of a statistical model is impor- tion (WSID), we show that it is possi- tant as it lets us understand the reasons behind its ble to develop an interpretable model that predictions (Vellido et al., 2011; Freitas, 2014; Li matches the state-of-the-art models in ac- et al., 2016). Interpretability of WSD models (1) curacy. Namely, we present an unsuper- lets a user understand why in the given context one vised, knowledge-free WSID approach, observed a given sense (e.g., for educational appli- which is interpretable at three levels: word cations); (2) performs a comprehensive analysis of sense inventory, sense feature representa- correct and erroneous predictions, giving rise to tions, and disambiguation procedure.
    [Show full text]
  • Lexical Sense Labeling and Sentiment Potential Analysis Using Corpus-Based Dependency Graph
    mathematics Article Lexical Sense Labeling and Sentiment Potential Analysis Using Corpus-Based Dependency Graph Tajana Ban Kirigin 1,* , Sanda Bujaˇci´cBabi´c 1 and Benedikt Perak 2 1 Department of Mathematics, University of Rijeka, R. Matejˇci´c2, 51000 Rijeka, Croatia; [email protected] 2 Faculty of Humanities and Social Sciences, University of Rijeka, SveuˇcilišnaAvenija 4, 51000 Rijeka, Croatia; [email protected] * Correspondence: [email protected] Abstract: This paper describes a graph method for labeling word senses and identifying lexical sentiment potential by integrating the corpus-based syntactic-semantic dependency graph layer, lexical semantic and sentiment dictionaries. The method, implemented as ConGraCNet application on different languages and corpora, projects a semantic function onto a particular syntactical de- pendency layer and constructs a seed lexeme graph with collocates of high conceptual similarity. The seed lexeme graph is clustered into subgraphs that reveal the polysemous semantic nature of a lexeme in a corpus. The construction of the WordNet hypernym graph provides a set of synset labels that generalize the senses for each lexical cluster. By integrating sentiment dictionaries, we introduce graph propagation methods for sentiment analysis. Original dictionary sentiment values are integrated into ConGraCNet lexical graph to compute sentiment values of node lexemes and lexical clusters, and identify the sentiment potential of lexemes with respect to a corpus. The method can be used to resolve sparseness of sentiment dictionaries and enrich the sentiment evaluation of Citation: Ban Kirigin, T.; lexical structures in sentiment dictionaries by revealing the relative sentiment potential of polysemous Bujaˇci´cBabi´c,S.; Perak, B. Lexical Sense Labeling and Sentiment lexemes with respect to a specific corpus.
    [Show full text]
  • Distilling BERT for Natural Language Understanding
    TinyBERT: Distilling BERT for Natural Language Understanding Xiaoqi Jiao1∗,y Yichun Yin2∗z, Lifeng Shang2z, Xin Jiang2 Xiao Chen2, Linlin Li3, Fang Wang1z and Qun Liu2 1Key Laboratory of Information Storage System, Huazhong University of Science and Technology, Wuhan National Laboratory for Optoelectronics 2Huawei Noah’s Ark Lab 3Huawei Technologies Co., Ltd. fjiaoxiaoqi,[email protected] fyinyichun,shang.lifeng,[email protected] fchen.xiao2,lynn.lilinlin,[email protected] Abstract natural language processing (NLP). Pre-trained lan- guage models (PLMs), such as BERT (Devlin et al., Language model pre-training, such as BERT, has significantly improved the performances 2019), XLNet (Yang et al., 2019), RoBERTa (Liu of many natural language processing tasks. et al., 2019), ALBERT (Lan et al., 2020), T5 (Raf- However, pre-trained language models are usu- fel et al., 2019) and ELECTRA (Clark et al., 2020), ally computationally expensive, so it is diffi- have achieved great success in many NLP tasks cult to efficiently execute them on resource- (e.g., the GLUE benchmark (Wang et al., 2018) restricted devices. To accelerate inference and the challenging multi-hop reasoning task (Ding and reduce model size while maintaining et al., 2019)). However, PLMs usually have a accuracy, we first propose a novel Trans- former distillation method that is specially de- large number of parameters and take long infer- signed for knowledge distillation (KD) of the ence time, which are difficult to be deployed on Transformer-based models. By leveraging this edge devices such as mobile phones. Recent stud- new KD method, the plenty of knowledge en- ies (Kovaleva et al., 2019; Michel et al., 2019; Voita coded in a large “teacher” BERT can be ef- et al., 2019) demonstrate that there is redundancy fectively transferred to a small “student” Tiny- in PLMs.
    [Show full text]
  • Arxiv:2104.05274V2 [Cs.CL] 27 Aug 2021 NLP field Due to Its Excellent Performance in Various Tasks
    Learning to Remove: Towards Isotropic Pre-trained BERT Embedding Yuxin Liang1, Rui Cao1, Jie Zheng?1, Jie Ren2, and Ling Gao1 1 Northwest University, Xi'an, China fliangyuxin,[email protected], fjzheng,[email protected] 2 Shannxi Normal University, Xi'an, China [email protected] Abstract. Research in word representation shows that isotropic em- beddings can significantly improve performance on downstream tasks. However, we measure and analyze the geometry of pre-trained BERT embedding and find that it is far from isotropic. We find that the word vectors are not centered around the origin, and the average cosine similar- ity between two random words is much higher than zero, which indicates that the word vectors are distributed in a narrow cone and deteriorate the representation capacity of word embedding. We propose a simple, and yet effective method to fix this problem: remove several dominant directions of BERT embedding with a set of learnable weights. We train the weights on word similarity tasks and show that processed embed- ding is more isotropic. Our method is evaluated on three standardized tasks: word similarity, word analogy, and semantic textual similarity. In all tasks, the word embedding processed by our method consistently out- performs the original embedding (with average improvement of 13% on word analogy and 16% on semantic textual similarity) and two baseline methods. Our method is also proven to be more robust to changes of hyperparameter. Keywords: Natural language processing · Pre-trained embedding · Word representation · Anisotropic. 1 Introduction With the rise of Transformers [12], its derivative model BERT [1] stormed the arXiv:2104.05274v2 [cs.CL] 27 Aug 2021 NLP field due to its excellent performance in various tasks.
    [Show full text]
  • Efficient Training of BERT by Progressively Stacking
    Efficient Training of BERT by Progressively Stacking Linyuan Gong 1 Di He 1 Zhuohan Li 1 Tao Qin 2 Liwei Wang 1 3 Tie-Yan Liu 2 Abstract especially in domains that require particular expertise. Unsupervised pre-training is commonly used in In natural language processing, using unsupervised pre- natural language processing: a deep neural net- trained models is one of the most effective ways to help work trained with proper unsupervised prediction train tasks in which labeled information is not rich enough. tasks are shown to be effective in many down- For example, word embedding learned from Wikipedia cor- stream tasks. Because it is easy to create a large pus (Mikolov et al., 2013; Pennington et al., 2014) can monolingual dataset by collecting data from the substantially improve the performance of sentence classifi- Web, we can train high-capacity models. There- cation and textual similarity systems (Socher et al., 2011; fore, training efficiency becomes a critical issue Tai et al., 2015; Kalchbrenner et al., 2014). Recently, pre- even when using high-performance hardware. In trained contextual representation approaches (Devlin et al., this paper, we explore an efficient training method 2018; Radford et al., 2018; Peters et al., 2018) have been for the state-of-the-art bidirectional Transformer developed and shown to be more effective than conven- (BERT) model. By visualizing the self-attention tional word embedding. Different from word embedding distributions of different layers at different po- that only extracts local semantic information of individual sitions in a well-trained BERT model, we find words, pre-trained contextual representations further learn that in most layers, the self-attention distribution sentence-level information by sentence-level encoders.
    [Show full text]
  • Word Sense Disambiguation with Transformer Models
    Word Sense Disambiguation with Transformer Models Pierre-Yves Vandenbussche Tony Scerri Ron Daniel Jr. Elsevier Labs Elsevier Labs Elsevier Labs Radarweg 29, 1 Appold Street, 230 Park Avenue, Amsterdam 1043 NX, London EC2A 2UT, UK New York, NY, 10169, Netherlands [email protected] USA [email protected] [email protected] Abstract given hypernym. In Subtask 3 the system can use both the sentence and the hypernym in making the In this paper, we tackle the task of Word decision. Sense Disambiguation (WSD). We present our system submitted to the Word-in-Context Tar- The dataset provided with the WiC-TSV chal- get Sense Verification challenge, part of the lenge has relatively few sense annotated examples SemDeep workshop at IJCAI 2020 (Breit et al., (< 4; 000) and with a single target sense per word. 2020). That challenge asks participants to pre- This makes pre-trained Transformer models well dict if a specific mention of a word in a text suited for the task since the small amount of data matches a pre-defined sense. Our approach would limit the learning ability of a typical super- uses pre-trained transformer models such as vised model trained from scratch. BERT that are fine-tuned on the task using different architecture strategies. Our model Thanks to the recent advances made in language achieves the best accuracy and precision on models such as BERT (Devlin et al., 2018) or XL- Subtask 1 – make use of definitions for decid- Net (Yang et al., 2019) trained on large corpora, ing whether the target word in context corre- neural language models have established the state- sponds to the given sense or not.
    [Show full text]