Facebook has built an AI called Rosetta to analyze 1B+ user images a day
Facebook Inc.’s more than 2.2 billion users share a staggering number of images on the platform each day that the social giant needs to catalog, add to search results and scan for harmful content. A big portion of those images contain text that must be analyzed as well.
To handle this monumental task, the company has built a sophisticated artificial intelligence called Rosetta. It revealed the existence of the system in a blog post published today.
Every day, Rosetta extracts text in a variety of languages from more than a billion publicly shared images on Facebook and Instagram. The system can analyze the contents of not only standalone files, but also individual frames within videos. It scans all the images using a technique that differs from those employed by traditional text recognition software.
Normally, systems in this category only identify individual characters in a piece of text without understanding the meaning or other higher-level details. Facebook’s needs were more advanced. The company sought to build a system that can put writing in the context of the image on which it’s overlaid, which led its engineers to equip Rosetta with predictive capabilities.
The system approaches text analysis as a so-called sequence prediction problem. It analyzes images and uses historical data, rather than just the visual profile of the individual characters, to understand the writing. Facebook said this approach enables Rosetta to recognize words of any length, even ones it wasn’t exposed to during the training phase of development.
“Once we obtain the bounding boxes for word locations on an image, they are cropped and resized to a height of 32 pixels with the aspect ratio maintained,” detailed the Facebook engineers who worked on Rosetta. “All such crops for an image are batched into a single tensor with zero padding as needed and then processed at once by the text recognition model.”
Facebook is using Rosetta to power several different features. The system makes images explorable via Facebook and Instagram’s respective search functions, helps determine how they should show up in the News Feed and looks for offensive content. The company plans to extend it to yet more areas over time.
“As we look beyond images, one of the biggest challenges is extracting text efficiently from videos,” Facebook’s engineers wrote. “The naive approach of applying image-based text extraction to every single video frame is not scalable, because of the massive growth of videos on the platform, and would only lead to wasted computational resources.”
They also said they’re starting to explore ways to apply 3-D convolutions to improve the selection of video frames for text extraction.
Photo: Facebook
A message from John Furrier, co-founder of SiliconANGLE:
Your vote of support is important to us and it helps us keep the content FREE.
One click below supports our mission to provide free, deep, and relevant content.
Join our community on YouTube
Join the community that includes more than 15,000 #CubeAlumni experts, including Amazon.com CEO Andy Jassy, Dell Technologies founder and CEO Michael Dell, Intel CEO Pat Gelsinger, and many more luminaries and experts.
THANK YOU