{"id":5675,"date":"2017-10-27T07:00:45","date_gmt":"2017-10-27T14:00:45","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/translation\/?p=5675"},"modified":"2017-10-27T07:00:45","modified_gmt":"2017-10-27T14:00:45","slug":"bringing-ai-translation-to-edge-devices-with-microsoft-translator","status":"publish","type":"post","link":"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/","title":{"rendered":"Bringing AI translation to edge devices with Microsoft Translator"},"content":{"rendered":"

In November 2016, Microsoft brought the benefit of AI-powered machine translation, aka Neural Machine Translation (NMT), to developers and end users alike. Last week, Microsoft brought NMT capability to the edge of the cloud<\/a> by leveraging the NPU, an AI-dedicated processor integrated into the Mate 10<\/a>, Huawei\u2019s latest flagship phone. The new chip makes AI-powered translations available on the device even in the absence of internet access, enabling the system to produce translations whose quality is on par with the online system.<\/p>\n

To achieve this breakthrough, researchers and engineers from Microsoft and Huawei collaborated in adapting neural translation to this new computing environment.<\/p>\n

The most advanced NMT systems currently in production (i.e., used at scale in the cloud by businesses and apps) are using a neural network architecture combining multiple layers of LSTM networks<\/a>, an attention algorithm, and a translation (decoder) layer.<\/p>\n

The animation below explains, in a simplified way, how this multi-layer neural network functions. For more details, please refer to the \u201cwhat is machine translation page<\/a>\u201d on the Microsoft Translator site.<\/p>\n

 <\/p>\n

\"\"<\/a><\/p>\n

In this cloud NMT implementation, these middle LSTM layers consume a large part of the computing power. To be able to run full NMT on a mobile device, it was necessary to find a mechanism that could reduce these computational costs while preserving, as much as possible, the translation quality.<\/p>\n

This is where Huawei\u2019s Neural Processing Unit (NPU) comes into play. \u00a0Microsoft researchers and engineers took advantage of the NPU, which is specifically engineered to excel at low-latency AI computations, to offload operations that would have been unacceptably slow to process on the main CPU.<\/p>\n

 <\/p>\n

Implementation<\/h2>\n

The implementation now available on the Microsoft Translator app for the Huawei Mate 10 optimizes translation by offloading the most compute-intensive tasks to the NPU.<\/p>\n

Specifically, this implementation replaces these middle LSTM network layers by a deep feed-forward neural network<\/a>. Deep feed-forward neural networks are powerful but require very large amounts of computation due to the high connectivity among neurons.<\/p>\n

Neural networks rely primarily on matrix multiplications, an operation that is not complex from a mathematical standpoint but very expensive when performed at the scale required for such a deep neural network. The Huawei NPU excels in performing these matrix multiplications in a massively parallel fashion. It is also quite efficient from a power utilization standpoint, an important quality on battery powered devices.<\/p>\n

At each layer of this feed-forward network, the NPU computes both the raw neuron output and the subsequent ReLu activation function<\/a> efficiently and with very low latency. By leveraging the ample high-speed memory on the NPU, it performs these computations in parallel without having to pay the cost for data transfer (i.e., slowing down performance) between the CPU and the NPU.<\/p>\n

Once the final layer of this deep feed-forward network is computed, the system has a rich representation of the source language sentence. This representation is then fed through a left-to-right LSTM \u201cdecoder\u201d to produce each target language word, with the same attention algorithm used in the online version of the NMT.<\/p>\n

\"\"<\/a><\/p>\n

 <\/p>\n

As Anthony Aue<\/a>, a Principal Software Development Engineer in the Microsoft Translator team explains: \u201ctaking a system that runs on powerful cloud servers in a data center and running it unchanged on a mobile phone is not a viable option. Mobile devices have limitations in computing power, memory, and power usage that cloud solutions do not have. Having access to the NPU, along with some other architectural tweaks, allowed us to work around many of these limitations and to design a system that can run quickly and efficiently on-device without having to compromise translation quality<\/em>.\u201d<\/p>\n

\"\"<\/a>
Anthony Aue<\/figcaption><\/figure>\n

The implementation of these translation models on the innovative NPU chipset\u00a0allowed Microsoft and Huawei to deliver on-device neural translation at a quality comparable to that of cloud-based systems even when you are off the grid.<\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

In November 2016, Microsoft brought the benefit of AI-powered machine translation, aka Neural Machine Translation (NMT), to developers and end users alike. Last week, Microsoft brought NMT capability to the edge of the cloud by leveraging the NPU, an AI-dedicated processor integrated into the Mate 10, Huawei\u2019s latest flagship phone. The new chip makes AI-powered translations available on the device….<\/span><\/p>\n

CONTINUE READING \"Bringing AI translation to edge devices with Microsoft Translator\"<\/span><\/a><\/p>","protected":false},"author":54,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"acf":[],"yoast_head":"Bringing AI translation to edge devices with Microsoft Translator - Microsoft Translator Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bringing AI translation to edge devices with Microsoft Translator - Microsoft Translator Blog\" \/>\n<meta property=\"og:description\" content=\"In November 2016, Microsoft brought the benefit of AI-powered machine translation, aka Neural Machine Translation (NMT), to developers and end users alike. Last week, Microsoft brought NMT capability to the edge of the cloud by leveraging the NPU, an AI-dedicated processor integrated into the Mate 10, Huawei\u2019s latest flagship phone. The new chip makes AI-powered translations available on the device....\" \/>\n<meta property=\"og:url\" content=\"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Translator Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/microsofttranslator\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-27T14:00:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https://www.microsoft.com\/en-us\/translator/blog\/wp-content\/uploads\/sites\/13\/2017\/10\/DNN-explained-gif-111416.gif\" \/>\n<meta name=\"author\" content=\"Microsoft Translator\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mstranslator\" \/>\n<meta name=\"twitter:site\" content=\"@mstranslator\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Microsoft Translator\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/#article\",\"isPartOf\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/\"},\"author\":{\"name\":\"Microsoft Translator\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/0a163e1bf796b3bb651085032849cf37\"},\"headline\":\"Bringing AI translation to edge devices with Microsoft Translator\",\"datePublished\":\"2017-10-27T14:00:45+00:00\",\"dateModified\":\"2017-10-27T14:00:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/\"},\"wordCount\":658,\"publisher\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/\",\"url\":\"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/\",\"name\":\"Bringing AI translation to edge devices with Microsoft Translator - Microsoft Translator Blog\",\"isPartOf\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#website\"},\"datePublished\":\"2017-10-27T14:00:45+00:00\",\"dateModified\":\"2017-10-27T14:00:45+00:00\",\"breadcrumb\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https://www.microsoft.com\/en-us\/translator/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bringing AI translation to edge devices with Microsoft Translator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#website\",\"url\":\"https://www.microsoft.com\/en-us\/translator/blog\/\",\"name\":\"Microsoft Translator Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https://www.microsoft.com\/en-us\/translator/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#organization\",\"name\":\"Microsoft Corporation\",\"url\":\"https://www.microsoft.com\/en-us\/translator/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/logo\/image\/\",\"url\":\"https://www.microsoft.com\/en-us\/translator/blog\/wp-content\/uploads\/sites\/13\/2021\/05\/microsoft_logo_element-300x300-1.png\",\"contentUrl\":\"https://www.microsoft.com\/en-us\/translator/blog\/wp-content\/uploads\/sites\/13\/2021\/05\/microsoft_logo_element-300x300-1.png\",\"width\":300,\"height\":300,\"caption\":\"Microsoft Corporation\"},\"image\":{\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.youtube.com\/playlist?list=PLD7HFcN7LXRd4kd2XgZjIbQ8TwTC32Zc9\",\"https:\/\/www.facebook.com\/microsofttranslator\",\"https:\/\/twitter.com\/mstranslator\"]},{\"@type\":\"Person\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/0a163e1bf796b3bb651085032849cf37\",\"name\":\"Microsoft Translator\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/978e1fd70e1a6177e5cb285daa5ad026?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/978e1fd70e1a6177e5cb285daa5ad026?s=96&d=mm&r=g\",\"caption\":\"Microsoft Translator\"},\"url\":\"https://www.microsoft.com\/en-us\/translator/blog\/author\/mtteam\/\"}]}<\/script>","yoast_head_json":{"title":"Bringing AI translation to edge devices with Microsoft Translator - Microsoft Translator Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/","og_locale":"en_US","og_type":"article","og_title":"Bringing AI translation to edge devices with Microsoft Translator - Microsoft Translator Blog","og_description":"In November 2016, Microsoft brought the benefit of AI-powered machine translation, aka Neural Machine Translation (NMT), to developers and end users alike. Last week, Microsoft brought NMT capability to the edge of the cloud by leveraging the NPU, an AI-dedicated processor integrated into the Mate 10, Huawei\u2019s latest flagship phone. The new chip makes AI-powered translations available on the device....","og_url":"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/","og_site_name":"Microsoft Translator Blog","article_publisher":"https:\/\/www.facebook.com\/microsofttranslator","article_published_time":"2017-10-27T14:00:45+00:00","og_image":[{"url":"https://www.microsoft.com\/en-us\/translator/blog\/wp-content\/uploads\/sites\/13\/2017\/10\/DNN-explained-gif-111416.gif"}],"author":"Microsoft Translator","twitter_card":"summary_large_image","twitter_creator":"@mstranslator","twitter_site":"@mstranslator","twitter_misc":{"Written by":"Microsoft Translator","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/#article","isPartOf":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/"},"author":{"name":"Microsoft Translator","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/0a163e1bf796b3bb651085032849cf37"},"headline":"Bringing AI translation to edge devices with Microsoft Translator","datePublished":"2017-10-27T14:00:45+00:00","dateModified":"2017-10-27T14:00:45+00:00","mainEntityOfPage":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/"},"wordCount":658,"publisher":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/#organization"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/","url":"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/","name":"Bringing AI translation to edge devices with Microsoft Translator - Microsoft Translator Blog","isPartOf":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/#website"},"datePublished":"2017-10-27T14:00:45+00:00","dateModified":"2017-10-27T14:00:45+00:00","breadcrumb":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/"]}]},{"@type":"BreadcrumbList","@id":"https://www.microsoft.com\/en-us\/translator/blog\/2017\/10\/27\/bringing-ai-translation-to-edge-devices-with-microsoft-translator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.microsoft.com\/en-us\/translator/blog\/"},{"@type":"ListItem","position":2,"name":"Bringing AI translation to edge devices with Microsoft Translator"}]},{"@type":"WebSite","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#website","url":"https://www.microsoft.com\/en-us\/translator/blog\/","name":"Microsoft Translator Blog","description":"","publisher":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://www.microsoft.com\/en-us\/translator/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#organization","name":"Microsoft Corporation","url":"https://www.microsoft.com\/en-us\/translator/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/logo\/image\/","url":"https://www.microsoft.com\/en-us\/translator/blog\/wp-content\/uploads\/sites\/13\/2021\/05\/microsoft_logo_element-300x300-1.png","contentUrl":"https://www.microsoft.com\/en-us\/translator/blog\/wp-content\/uploads\/sites\/13\/2021\/05\/microsoft_logo_element-300x300-1.png","width":300,"height":300,"caption":"Microsoft Corporation"},"image":{"@id":"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.youtube.com\/playlist?list=PLD7HFcN7LXRd4kd2XgZjIbQ8TwTC32Zc9","https:\/\/www.facebook.com\/microsofttranslator","https:\/\/twitter.com\/mstranslator"]},{"@type":"Person","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/0a163e1bf796b3bb651085032849cf37","name":"Microsoft Translator","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.microsoft.com\/en-us\/translator/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/978e1fd70e1a6177e5cb285daa5ad026?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/978e1fd70e1a6177e5cb285daa5ad026?s=96&d=mm&r=g","caption":"Microsoft Translator"},"url":"https://www.microsoft.com\/en-us\/translator/blog\/author\/mtteam\/"}]}},"_links":{"self":[{"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/posts\/5675"}],"collection":[{"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/comments?post=5675"}],"version-history":[{"count":0,"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/posts\/5675\/revisions"}],"wp:attachment":[{"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/media?parent=5675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/categories?post=5675"},{"taxonomy":"post_tag","embeddable":true,"href":"https://www.microsoft.com\/en-us\/translator/blog\/wp-json\/wp\/v2\/tags?post=5675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}