Friend Bubbles: Enhancing Social Discovery on Facebook Reels
Friend bubbles on Facebook Reels surface videos that close friends have reacted to, using two closeness models: a survey-trained model run weekly over trillions of friend pairs, and a context-specific model trained on bubble interactions. Retrieval explicitly sources friend-interacted candidates, and early- and late-stage multi-task ranking models gain closeness features and a P(engagement | bubble impression) objective with tunable weights balancing social and video engagement. On the client, bubble metadata rides the existing prefetch window so bubbles render with the video, and animation is disabled while scrolling and on low-end devices. Expressive reactions and multiple friend interactions drive stronger engagement, and bubble exposure increases longer sessions and topic diversity.
Related posts
- Adapting the Facebook Reels RecSys AI Model Based on User Feedback
Meta Engineering mediumAdeptFacebook Reels added a User True Interest Survey (UTIS) model that learns from in-feed survey responses asking how well a video matches the viewer's interests, instead of relying only on engagement signals like likes and watch time. A lightweight "perception layer" is trained on binarized, bias-weighted survey responses, using the main multi-task ranker's predictions as features. Its output feeds late-stage ranking as a value-formula input and drives retrieval through re-ranked interest profiles and knowledge distillation. Offline, precision rose from 48.3% to 63.2% and recall from 45.4% to 66.1% over heuristics, and A/B tests with over 10M users showed +5.2% engagement and +5.4% high survey ratings.
- Your Algorithm: Giving People More Ways to Personalize Facebook Recommendations
Meta Engineering mediumAdeptFacebook's Your algorithm feature lets people edit, in natural language, the "Interested In" and "Not Interested In" lists that steer Feed and Reels ranking, backed by a single shared preference store. Each positive interest drives four dedicated retrieval sources plus a late-stage promotion, with a reranking control layer that spaces results, caps daily contribution and fetches one interest per request so new interests show up without flooding. Negative interests are enforced in layers: embedding-similarity filtering and demotion in ranking, a small fine-tuned LLM reranker that returns only items to remove, and client-side cache invalidation. Supplementary tail loads make changes take effect quickly, smaller LLMs validate and normalize edits, and an LLM-as-judge setup evaluates prompts and models offline.
- GenRecs Tokenization: Transforming Ads Recommendation at Meta with Stable Model Vocabulary
Meta Engineering hardMasterMeta's ads recommender replaces per-item IDs with GenRecs Tokenization, a stable semantic vocabulary. Each ad, product or page is encoded with pre-trained multimodal models, decomposed into subspaces (e.g. residual decomposition) and quantized against learned codebooks into short token sequences, so similar items share tokens. This lets new and tail items inherit what the model learned about related items, enabling cold-start generalization and cross-campaign transfer. Paired with GEM and the Adaptive Ranking Model it delivered a +0.35% conversion lift. Across eight tokenizer versions, intrinsic metrics (cluster purity, distribution balance, codebook utilization) correlated with downstream CTR accuracy, so the tokenizer can be iterated without full model retraining.
- Inside Facebook’s video delivery system
Meta Engineering mediumAdeptFacebook spent roughly two years unifying its separate Watch and Reels stacks across mobile clients, the server layer and ranking, in a deliberate order. First came a shared client and server data model, then the immersive Reels UI for long-form VOD, then unified ranking (shipped August 2024) once UI signals were consistent, and finally a single video tab mixing Reels, VOD and live. The delivery pipeline runs on five principles: freshness, ranking-decided order, minimal vending, deterministic fetching and signal-driven delivery. Concretely, clients use prefetch, head and tail loads gated on an in-memory pool of three or fewer network stories; the GraphQL server handles caching, throttling, TAO loads and costly privacy checks; and ranking runs a graph-based multi-stage retrieval and ranking workflow with elastic ranking under load.
- Modernizing the Facebook Groups Search to Unlock the Power of Community Knowledge
Meta Engineering mediumAdeptFacebook Groups scoped search moved from keyword-only retrieval to a hybrid design that runs lexical and semantic retrieval in parallel. Queries are rewritten, then sent both to the Unicorn inverted index and to a 12-layer, 200M-parameter semantic retriever whose embeddings drive ANN search over a Faiss index. An L2 multi-task multi-label ranker merges the candidates using BM25/TF-IDF and cosine-similarity features and jointly optimizes for clicks, shares and comments. Llama 3 acts as an automated judge in build verification tests, with a graded "somewhat relevant" label. Meta reports higher search engagement with no increase in error rates, and plans to put LLMs directly into ranking and adaptive retrieval.