Skip to content

May 10, 2016


Machine Learning and AI @ FaceBook

by Ravi Kalakota

FacebookAIMachine Learning (ML) and AI are at the bleeding edge of data science, deep learning and predictive search today.

Everyone is jumping on this AI powered data-driven engagement (“ambient experience and convenience”) trend.

Salesforce CEO Marc Benioff said at a recent conference: This is a huge shift going forward, which is that everybody wants systems that are smarter, everybody wants systems that are more predictive, everybody wants everything scored, everybody wants to understand what’s the next best offer, next best opportunity, how to make things a little bit more efficient.”

Facebook is a case study of where AI/ML are being used to transform user engagement and experiences. I am starting to see many leading firms investing in ML Accelerators and Platforms as part of their data science strategy.

According to Facebook software engineer Jeffrey Dunn, “Many of the experiences and interactions people have on Facebook today are made possible with AI. When you log in to Facebook, we use the power of machine learning to provide you with unique, personalized experiences. ML models are part of ranking and personalizing News Feed stories, filtering out offensive content, highlighting trending topics, ranking search results, and much more. ”

Take for instance photo display. Collectively, people will take 1 trillion photos this year with their devices. Most of these are on Facebook which has become the album of our everyday life. For its 1.65 billion monthly active users, FB is data mining to surface the right photo at the right moment (birthday, anniversary, vacation anniversary etc.). Talk about a scalable data driven digital engagement platform.

To ensure that other experiences on Facebook that could benefit from ML models, Facebook in late 2014 set out to redefine ML/AI platforms at Facebook from the ground up, and to put state-of-the-art algorithms at the fingertips of every Facebook engineer.  Until then it was a chore for engineers without a strong ML/AI background to take advantage of the data and algorithms.

FBLearner Flow, as the software is known, is filled with algorithms (e.g., sparse matrix, neural networks, deep learning, metric learning, kernel learning, compositional models, non-linear structured prediction) developed by Facebook’s AI/ML experts that can be accessed by more general engineers across the company to build different products.

CoreML group is a dedicated Facebook team established to work on state of the art infrastructure and applied research to bridge the gap between research and product.  CoreML has been working on FBLearner Flow since late 2014 to enable things like improved search ranking, text/sentiment classification, collaborative filtering/recommendation, payment fraud, click-through rate prediction, click-fraud detection, or spam detection.

Today, >25% of Facebook engineers are using APIs to help them leverage artificial intelligence (AI) and machine learning (ML).

“FBLearner Flow [is] capable of easily reusing algorithms in different products, scaling to run thousands of simultaneous custom experiments, and managing experiments with ease,” wrote Facebook software engineer Jeffrey Dunn, in a blog post titled “Introducing FBLearner Flow: Facebook’s AI backbone.”

“FBLearner Flow is used by more than 25% of Facebook’s engineering team,” wrote Dunn. “Since its inception, more than a million models have been trained, and our prediction service has grown to make more than 6 million predictions per second.”

The FBLearner Flow platform is similar to Microsoft’s Azure Machine Learning service and Airbnb’s open source Airflow platform, according to VentureBeat. Google leverage ML extensively already. Take for instance, Google Maps. When you ask about a location, you don’t just want to know how to get from point A to point B. Depending on the context, you may want to know what time is best to avoid the crowds, whether the store you’re looking for is open right now, or what the best things to do are in a destination you’re visiting for the first time.

Contextual AI is the most important technology anyone in the world is working on today, according to Dave Coplin, Microsoft’s chief envisioning officer, so it’s not all that surprising Facebook wants to put the technology into the hands of developers.

Other Relevant References

FB Workflow-Run-List


5 Comments Post a comment
  1. May 12 2016

    Great article


  2. Hello Ravi,

    Nice blog! I am editor at Java Code Geeks ( We have the JCG program (see, that I think you’d be perfect for.

    If you’re interested, send me an email to and we can discuss further.

    Best regards,
    Eleftheria Drosopoulou



Trackbacks & Pingbacks

  1. VKBD – Data Science Cutting Edge – FaceBook
  2. VKBD – Machine Learning and AI @ FaceBook
  3. Machine Learning and AI @ FaceBook | A bunch of data

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments

%d bloggers like this: