Cross-lingual transfer learning for multilingual voice agents

迁移学习
海外精选
海外精选的内容汇集了全球优质的亚马逊云科技相关技术内容。同时,内容中提到的“AWS” 是 “Amazon Web Services” 的缩写,在此网站不作为商标展示。
0
0
{"value":"For voice agents like Alexa, expanding into a new language has traditionally meant training a new natural-language-understanding model from scratch, an approach that doesn’t scale well.\n\nAn alternative is to train a multilingual model — a single model that can handle multiple languages simultaneously: it requires less effort to support a single large model than to support a swarm of smaller ones, and a multilingual model lets users make requests in a mix of different languages, which is closer to what we would expect from artificial intelligence in the 21st century. \n\nIn a ++[paper](https://www.amazon.science/publications/evaluating-cross-lingual-transfer-learning-approaches-in-multilingual-conversational-agent-models)++ we presented last month at the International Conference on Computational Linguistics (COLING), we investigate the use of transfer learning and data mixing to train a multilingual model. We show that the resulting model’s performance is similar to or better than that of the monolingual models currently used in production.\n\n\n#### **Multilingual-model architecture**\n\n\nMultilingual modeling has become a popular topic in the last few years, with a particular focus on transferring knowledge from models trained on large corpora in one language to models trained on a small amount of data in other languages. This problem is known as low-resource cross-lingual transfer learning. In our paper, we also experiment with high-resource to high-resource transfer, to mimic real-world situations.\n\nSingle-language models are trained with data in different languages, but otherwise, they generally have the same architecture. It follows that by using the same model architecture, we should be able to train a generalized multilingual model that is fed by data from multiple languages. \n\n![image.png](https://dev-media.amazoncloud.cn/08774e0eadf64b1dbb6f90355903a1f4_image.png)\n\nThe architecture of our slot-filling and intent classification model.\n\nA voice agent’s natural-language-understanding (NLU) model is first trained to recognize the utterance domain, such as music, weather, etc. Then separate models are trained to perform domain-specific intent-classification and slot-filling tasks. \n\nFor example, if the request is “play ‘Bad Romance’ by Lady Gaga”, the intent will be “play music”, while in order to fulfill this request, the system needs to capture the slots and slot values {song name = Bad Romance} and {artist name = Lady Gaga}. \n\nIn our experiments, the domain classification model is a max-entropy logistic regression model.\n\nFor intent classification and slot filling, we build a multitask deep-neural-network model. We first map input tokens into shared-space word embeddings and then feed them into a bidirectional long-short-term-memory (LSTM) encoder to obtain context information. This content then propagates to the downstream tasks, with a conditional random field used for slot filling and a multilayer perceptron used for intent classification. \n\n#### **Knowledge transfer and results**\n\nWe trained our models using data in four languages, including three relatively closely related languages, UK English, Spanish, and Italian. The fourth language is Hindi, a low-resource language that is lexically and grammatically different from the other three.\n\nIn our transfer learning experiments, we transferred different blocks of information — embeddings and encoder and decoder weights — from a model trained in English to multilingual models that combined English with each of the other three languages. We also experimented with data mixing, training one model on English and Spanish and another on English and Italian and transferring them to multilingual models that included Italian and Spanish, respectively.\n\nAfter transfer, we then fine-tuned each of our models on data from all four languages in our data set. \n\nWe evaluate our models according to four metrics: domain accuracy for the domain classification task; intent accuracy for the intent classification task; micro-averaged slot F1 for slot filling; and frame accuracy, which is the relative number of utterances for which the domain, intent, and all slots are correctly identified. \n\nFor each of our multilingual models, we compared its performance on each of its languages to that of a state-of-the-art single-language model for the same language. The baseline models use maximum-entropy models rather than deep neural nets as encoders.\n\nAll performance metrics show a similar pattern: multilingual deep-neural-net models usually perform better than monolingual models. The best results come from transfer of the encoder weights from source models to target models, with an average improvement in frame accuracy of about 1%. The additional transfer of the decoder weights slightly degrades performance, although the resulting model still beats the baseline.\n\nData mixing during training of the source model does improve performance, but only slightly. \n\nInterestingly, the greatest improvement in frame accuracy — around 1.2% — comes from transferring models into Hindi. This may be because the baseline model for Hindi was trained on a low-resource data set. The multilingual models may learn general linguistic information from other languages that the monolingual model can’t extract from the Hindi data set alone.\n\nABOUT THE AUTHOR\n\n#### **[Olga Golovneva](https://www.amazon.science/author/olga-golovneva)**\n\nOlga Golovneva is a research scientist in Alexa AI's Natural Understanding group.","render":"<p>For voice agents like Alexa, expanding into a new language has traditionally meant training a new natural-language-understanding model from scratch, an approach that doesn’t scale well.</p>\n<p>An alternative is to train a multilingual model — a single model that can handle multiple languages simultaneously: it requires less effort to support a single large model than to support a swarm of smaller ones, and a multilingual model lets users make requests in a mix of different languages, which is closer to what we would expect from artificial intelligence in the 21st century.</p>\n<p>In a <ins><a href=\\"https://www.amazon.science/publications/evaluating-cross-lingual-transfer-learning-approaches-in-multilingual-conversational-agent-models\\" target=\\"_blank\\">paper</a></ins> we presented last month at the International Conference on Computational Linguistics (COLING), we investigate the use of transfer learning and data mixing to train a multilingual model. We show that the resulting model’s performance is similar to or better than that of the monolingual models currently used in production.</p>\n<h4><a id=\\"Multilingualmodel_architecture_7\\"></a><strong>Multilingual-model architecture</strong></h4>\\n<p>Multilingual modeling has become a popular topic in the last few years, with a particular focus on transferring knowledge from models trained on large corpora in one language to models trained on a small amount of data in other languages. This problem is known as low-resource cross-lingual transfer learning. In our paper, we also experiment with high-resource to high-resource transfer, to mimic real-world situations.</p>\n<p>Single-language models are trained with data in different languages, but otherwise, they generally have the same architecture. It follows that by using the same model architecture, we should be able to train a generalized multilingual model that is fed by data from multiple languages.</p>\n<p><img src=\\"https://dev-media.amazoncloud.cn/08774e0eadf64b1dbb6f90355903a1f4_image.png\\" alt=\\"image.png\\" /></p>\n<p>The architecture of our slot-filling and intent classification model.</p>\n<p>A voice agent’s natural-language-understanding (NLU) model is first trained to recognize the utterance domain, such as music, weather, etc. Then separate models are trained to perform domain-specific intent-classification and slot-filling tasks.</p>\n<p>For example, if the request is “play ‘Bad Romance’ by Lady Gaga”, the intent will be “play music”, while in order to fulfill this request, the system needs to capture the slots and slot values {song name = Bad Romance} and {artist name = Lady Gaga}.</p>\n<p>In our experiments, the domain classification model is a max-entropy logistic regression model.</p>\n<p>For intent classification and slot filling, we build a multitask deep-neural-network model. We first map input tokens into shared-space word embeddings and then feed them into a bidirectional long-short-term-memory (LSTM) encoder to obtain context information. This content then propagates to the downstream tasks, with a conditional random field used for slot filling and a multilayer perceptron used for intent classification.</p>\n<h4><a id=\\"Knowledge_transfer_and_results_26\\"></a><strong>Knowledge transfer and results</strong></h4>\\n<p>We trained our models using data in four languages, including three relatively closely related languages, UK English, Spanish, and Italian. The fourth language is Hindi, a low-resource language that is lexically and grammatically different from the other three.</p>\n<p>In our transfer learning experiments, we transferred different blocks of information — embeddings and encoder and decoder weights — from a model trained in English to multilingual models that combined English with each of the other three languages. We also experimented with data mixing, training one model on English and Spanish and another on English and Italian and transferring them to multilingual models that included Italian and Spanish, respectively.</p>\n<p>After transfer, we then fine-tuned each of our models on data from all four languages in our data set.</p>\n<p>We evaluate our models according to four metrics: domain accuracy for the domain classification task; intent accuracy for the intent classification task; micro-averaged slot F1 for slot filling; and frame accuracy, which is the relative number of utterances for which the domain, intent, and all slots are correctly identified.</p>\n<p>For each of our multilingual models, we compared its performance on each of its languages to that of a state-of-the-art single-language model for the same language. The baseline models use maximum-entropy models rather than deep neural nets as encoders.</p>\n<p>All performance metrics show a similar pattern: multilingual deep-neural-net models usually perform better than monolingual models. The best results come from transfer of the encoder weights from source models to target models, with an average improvement in frame accuracy of about 1%. The additional transfer of the decoder weights slightly degrades performance, although the resulting model still beats the baseline.</p>\n<p>Data mixing during training of the source model does improve performance, but only slightly.</p>\n<p>Interestingly, the greatest improvement in frame accuracy — around 1.2% — comes from transferring models into Hindi. This may be because the baseline model for Hindi was trained on a low-resource data set. The multilingual models may learn general linguistic information from other languages that the monolingual model can’t extract from the Hindi data set alone.</p>\n<p>ABOUT THE AUTHOR</p>\n<h4><a id=\\"Olga_Golovnevahttpswwwamazonscienceauthorolgagolovneva_46\\"></a><strong><a href=\\"https://www.amazon.science/author/olga-golovneva\\" target=\\"_blank\\">Olga Golovneva</a></strong></h4>\n<p>Olga Golovneva is a research scientist in Alexa AI’s Natural Understanding group.</p>\n"}
目录
亚马逊云科技解决方案 基于行业客户应用场景及技术领域的解决方案
联系亚马逊云科技专家
亚马逊云科技解决方案
基于行业客户应用场景及技术领域的解决方案
联系专家
0
目录
关闭