{"id":339857,"date":"2017-05-03T00:14:42","date_gmt":"2017-05-02T16:14:42","guid":{"rendered":"http:\/\/techcrunch.com\/?p=1483919"},"modified":"2017-05-03T00:14:42","modified_gmt":"2017-05-02T16:14:42","slug":"facebooks-fasttext-library-is-now-optimized-for-mobile","status":"publish","type":"post","link":"https:\/\/people.utm.my\/asmawisham\/facebooks-fasttext-library-is-now-optimized-for-mobile\/","title":{"rendered":"Facebook\u2019s fastText library is now optimized for mobile"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/fasttext.jpg?w=738\" class=\"\"\/><\/p>\n<p id=\"speakable-summary\">This morning Facebook\u2019s AI Research (FAIR) lab <a target=\"_blank\" href=\"https:\/\/code.facebook.com\/posts\/162370720961195\" rel=\"noopener noreferrer\">released an update to fastText<\/a>, its super speedy open source text classification\u00a0library. When it was initially released, fastText shipped with pre-trained word vectors for 90 languages, but today it\u2019s getting a boost to\u00a0294 languages. The release also brings enhancements to reduce model size and ultimately memory demand.<\/p>\n<p>Text classifiers like fastText make it easy for developers to ship tools\u00a0that depend on underlying language analysis. Flagging clickbait headlines or\u00a0filtering spam\u00a0both require an underlying model that can interpret and categorize language.<\/p>\n<p>From the start, fastText was designed to be implemented on a wide variety of hardware. Unfortunately, in its original state, it still required a few gigabytes of memory to run. This isn\u2019t a problem if you\u2019re working in a state of the art lab, but it\u2019s a deal killer\u00a0if you\u2019re trying to make things work\u00a0on mobile.<\/p>\n<p>By collaborating with the team that produced\u00a0<a target=\"_blank\" href=\"https:\/\/techcrunch.com\/2017\/03\/29\/similarity-search\/\" rel=\"noopener noreferrer\">another Facebook open source project, similarity search (FAISS)<\/a>, the company was able to reduce down the memory requirement to just a few hundred kilobytes. FAISS addresses some of the inherent bottlenecks that developers face when\u00a0dealing with huge amounts of data.<\/p>\n<p>A massive corpus\u00a0of\u00a0information\u00a0is often best\u00a0represented in\u00a0a multi-dimensional vector space. For Facebook and many other companies, optimizing the comparison\u00a0of these vectors for\u00a0comparing content with user preferences and comparing content with other content is critical. The approach of the FAISS team ended up playing a big role in reducing the memory\u00a0demands of fastText.<\/p>\n<p>\u201cA few key ingredients, namely feature pruning, quantization, hashing, and re-training, allow us to produce text classification models with tiny size, often less than 100kB when trained on several popular datasets, without noticeably sacrificing accuracy or speed,\u201d said\u00a0the Facebook authors of a December 2016 paper entitled fastText.zip: Compressing Text Classification Models.<\/p>\n<p>The authors went on to hypothesize that additional model size reduction might\u00a0be possible in the future. The challenge isn\u2019t so much shrinking the models as it is maintaining accuracy. But until then, engineers can <a target=\"_blank\" href=\"https:\/\/github.com\/facebookresearch\/fastText\" rel=\"noopener noreferrer\">access the updated library on GitHub<\/a> and begin tinkering today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"389\" src=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/fasttext.jpg?w=680\" class=\"attachment-large size-large wp-post-image\" alt=\"\" srcset=\"https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/fasttext.jpg?w=680 680w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/fasttext.jpg?w=1360 1360w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/fasttext.jpg?w=150 150w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/fasttext.jpg?w=300 300w, https:\/\/tctechcrunch2011.files.wordpress.com\/2017\/05\/fasttext.jpg?w=768 768w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/>&nbsp;This morning Facebook&#8217;s AI Research (FAIR) lab released an update to fastText, its super speedy open source text classification\u00a0library. When it was initially released, fastText shipped with pre-trained word vectors for 90 languages, but today it&#8217;s getting a boost to\u00a0294 languages. The release also brings enhancements to reduce model size and ultimately memory demand.<br \/>\nText&#8230; <a href=\"https:\/\/techcrunch.com\/2017\/05\/02\/facebooks-fasttext-library-is-now-optimized-for-mobile\/?ncid=rss\">Read More<\/a><\/p>\n<div class=\"feedflare\">\n<a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=V7zmrec-iXk:kLIK2xKdpjw: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=V7zmrec-iXk:kLIK2xKdpjw: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=V7zmrec-iXk:kLIK2xKdpjw: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=V7zmrec-iXk:kLIK2xKdpjw:-BTjWOF_DHI\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?i=V7zmrec-iXk:kLIK2xKdpjw:-BTjWOF_DHI\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=V7zmrec-iXk:kLIK2xKdpjw:D7DqB2pKExk\"><img decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?i=V7zmrec-iXk:kLIK2xKdpjw:D7DqB2pKExk\" border=\"0\"><\/img><\/a> <a href=\"http:\/\/feeds.feedburner.com\/~ff\/Techcrunch?a=V7zmrec-iXk:kLIK2xKdpjw: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\/V7zmrec-iXk\" 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-339857","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\/339857","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=339857"}],"version-history":[{"count":0,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/posts\/339857\/revisions"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/media?parent=339857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/categories?post=339857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/asmawisham\/wp-json\/wp\/v2\/tags?post=339857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}