{"id":340469,"date":"2017-05-10T00:35:25","date_gmt":"2017-05-09T16:35:25","guid":{"rendered":"http:\/\/techcrunch.com\/?p=1487153"},"modified":"2017-05-10T00:35:25","modified_gmt":"2017-05-09T16:35:25","slug":"facebook-posts-its-fast-and-accurate-convnet-models-for-machine-translation-on-github","status":"publish","type":"post","link":"https:\/\/people.utm.my\/asmawisham\/facebook-posts-its-fast-and-accurate-convnet-models-for-machine-translation-on-github\/","title":{"rendered":"Facebook posts its fast and accurate ConvNet models for machine translation on GitHub"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/gettyimages-679714240.jpg?w=738\" class=\"\"\/><\/p>\n<p id=\"speakable-summary\"><a target=\"_blank\" href=\"https:\/\/s3.amazonaws.com\/fairseq\/papers\/convolutional-sequence-to-sequence-learning.pdf\">In its latest paper<\/a>, the Facebook AI Research (FAIR)\u00a0team <a target=\"_blank\" href=\"https:\/\/code.facebook.com\/posts\/1978007565818999\/a-novel-approach-to-neural-machine-translation\/\">dropped some impressive results<\/a> for its\u00a0implementation\u00a0of a modified convolutional neural network for machine translation. Facebook says it has achieved a small bump in\u00a0accuracy at nine times the speed of\u00a0traditional recurrent network models. And to complement its research, the company is <a target=\"_blank\" href=\"https:\/\/github.com\/facebookresearch\/fairseq\">releasing its pre-trained models on GitHub along with all the tools needed to replicate the results on your own.<\/a><\/p>\n<p>When most of us think of machine translation, we think of Google Translate (sorry Facebook and my 8th grade Spanish teacher). But while that is certainly the most well known\u00a0implementation, Facebook relies on the technology extensively for translating posts on News Feed, among other uses.<\/p>\n<p>In these use cases accuracy is important to a deliver competitive\u00a0experience, but arguably speed is even more important to Facebook. With nearly two billion users, every incremental improvement in speed is magnified. And Facebook isn\u2019t just promising an incremental improvement, they\u2019re promising an improvement of 900 percent.\u00a0<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1487265 alignright\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/screen-shot-2017-05-09-at-8-29-59-am.png?w=362&amp;h=442\" alt=\"\" width=\"362\" height=\"442\" srcset=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/screen-shot-2017-05-09-at-8-29-59-am.png?w=362&amp;h=442 362w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/screen-shot-2017-05-09-at-8-29-59-am.png?w=724&amp;h=884 724w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/screen-shot-2017-05-09-at-8-29-59-am.png?w=123&amp;h=150 123w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/screen-shot-2017-05-09-at-8-29-59-am.png?w=246&amp;h=300 246w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/screen-shot-2017-05-09-at-8-29-59-am.png?w=557&amp;h=680 557w\" sizes=\"(max-width: 362px) 100vw, 362px\"\/><\/p>\n<p>In terms of accuracy, the\u00a0gold standard for evaluating the quality of machine translation is BLEU, bilingual evaluation understudy.\u00a0Facebook benchmarked\u00a0its sequence to sequence convolutional approach on three tasks\u00a0\u2014 \u00a0translating English to Romanian, translating English to German and translating English to French.<\/p>\n<div class=\"page\" title=\"Page 1\">\n<div class=\"layoutArea\" readability=\"8.5\">\n<div class=\"column\" readability=\"12\">\n<p>Denis Yarats and Michael Auli, two of the\u00a0authors on the paper, explained to me that these tasks weren\u2019t selected because they are\u00a0the hardest languages to translate, but because they are the most competitive and others have already achieved impressive BLEU scores using alternative methods.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>Based on these numbers, applying ConvNets to machine translation is a worthy pursuit, but it\u2019s worth stepping back a bit to explore why recurrent nets are typically used over ConvNets for translation in the first place. Recurrent networks take into account time series information which makes them ideal for handling sequential tasks \u2014 reading left to right is a great example of this.<\/p>\n<p>ConvNets on the other hand have risen in prominence in recent years because of how useful they are for analyzing visual information. They process information simultaneously rather than sequentially which presents barriers if you want to use them for machine translation. To make it work, Facebook implemented what it calls \u201cmulti-hop attention.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1487160\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/animation-multi-hop.gif?w=640&amp;h=424\" alt=\"\" width=\"640\" height=\"424\"\/><\/p>\n<p>Machine translation is a two step process. As humans we take for granted the process of understanding a\u00a0sentence in our own language, but machines have to first put resources into this before they can output to another language.<\/p>\n<p>Another thing we don\u2019t realize is that everything we do is governed by probabilities.\u00a0\u201cBait\u201d for example can be both a noun and a verb and when we evaluate a sentence we are subconsciously assigning\u00a0likelihoods that help us interpret meaning. This requires us to reference other parts of a sentence\u00a0at different times to develop understanding.<\/p>\n<p>In something of a twist on this process, Facebook\u2019s multi-hop takes advantage of the simultaneous nature of\u00a0CovNets\u00a0to allow machines to reference different parts of text to build understanding during encoding. Once this is done and a vector representation is created, a translation can be outputted one word at a time until its complete.<\/p>\n<p>Yarats and Auli believe that their models can be engineered to do more than simply machine translation. Their ConvNet could be used in any scenario where a computer needs to understand text and express something, so this could include summarizing text or even interpreting a reading and then asking questions.<\/p>\n<p>Both reinforcement learning and adversarial networks have the potential to improve upon the results achieved by Facebook \u2014 each of these could become a standalone paper. Additionally, the team hopes to further experiment with the applications of\u00a0multi-hop attention.<\/p>\n<p><small>Featured Image: mariusz_prusaczyk\/Getty Images<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"517\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/gettyimages-679714240.jpg?w=680\" class=\"attachment-large size-large wp-post-image\" alt=\"\" srcset=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/gettyimages-679714240.jpg?w=680 680w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/gettyimages-679714240.jpg?w=1360 1360w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/gettyimages-679714240.jpg?w=150 150w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/gettyimages-679714240.jpg?w=300 300w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/gettyimages-679714240.jpg?w=768 768w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/>&nbsp;In its latest paper, the Facebook AI Research (FAIR)\u00a0team dropped some impressive results for its\u00a0implementation\u00a0of a modified convolutional neural network for machine translation. Facebook says it has achieved a small bump in\u00a0accuracy at nine times the speed of\u00a0traditional recurrent network models. And to complement its research, the company is releasing its pre-trained models on&hellip; <a href=\"https:\/\/techcrunch.com\/2017\/05\/09\/facebook-posts-its-fast-and-accurate-convnet-models-for-machine-translation-on-github\/?ncid=rss\">Read More<\/a><\/p>\n<div class=\"feedflare\">\n<a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=B_cVrFe1U0I:gu1qnRLRvgI:2mJPEYqXBVI\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=2mJPEYqXBVI\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=B_cVrFe1U0I:gu1qnRLRvgI:7Q72WNTAKBA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=7Q72WNTAKBA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=B_cVrFe1U0I:gu1qnRLRvgI:yIl2AUoC8zA\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=yIl2AUoC8zA\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=B_cVrFe1U0I:gu1qnRLRvgI:-BTjWOF_DHI\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?i=B_cVrFe1U0I:gu1qnRLRvgI:-BTjWOF_DHI\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=B_cVrFe1U0I:gu1qnRLRvgI:D7DqB2pKExk\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?i=B_cVrFe1U0I:gu1qnRLRvgI:D7DqB2pKExk\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=B_cVrFe1U0I:gu1qnRLRvgI:qj6IDK7rITs\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?d=qj6IDK7rITs\" border=\"0\"><\/img><\/a>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~r\/Techcrunch\/~4\/B_cVrFe1U0I\" height=\"1\" width=\"1\" alt=\"\"\/> <\/p>\n","protected":false},"author":5817,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[25],"tags":[59,66,26],"class_list":["post-340469","post","type-post","status-publish","format-standard","hentry","category-technology","tag-media","tag-techcrunch","tag-technology"],"_links":{"self":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts\/340469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/users\/5817"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/comments?post=340469"}],"version-history":[{"count":0,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts\/340469\/revisions"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/media?parent=340469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/categories?post=340469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/tags?post=340469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}