Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 5 min read Case study mediumAdept

Improving Instagram notification management with machine learning and causal inference

Instagram replaced click-through-rate filtering for daily digest story notifications with a neural uplift model that estimates the incremental effect of sending versus not sending on user activity. The model was trained on data from a randomized experiment that dropped eligible notifications with 50% probability, and sending was framed as a budget allocation problem that favours high-uplift notifications. Because uplift scores drift online, raw estimates pass through an online quantile service that maps them to a uniform distribution while preserving order, so comparing against a fixed rate r keeps sending volume stable. The result was substantially fewer notifications than CTR-based filtering with no drop in engagement.

Assumes: causal inference basicsuplift modelingA/B testing

Related posts

  • A New Ranking Framework for Better Notification Quality on Instagram

    Meta Engineering mediumAdept

    Instagram adds a diversity layer on top of its engagement-optimized notification ranking models to stop over-sending notifications about the same author or product surface such as Stories. Each candidate's base relevance score is multiplied by a demotion factor D(c) = ∏(1 − w_i·p_i(c)). Here p_i is an MMR-style maximum similarity to recently sent notifications along dimensions like author, content, notification type and product surface, binarized by a threshold, and each w_i is a tunable per-dimension weight. The framework reduced daily notification volume while improving click-through rate. Planned next steps are adaptive penalties that scale with notification volume and timing, and possibly using LLMs to judge semantic similarity.

  • Adapting the Facebook Reels RecSys AI Model Based on User Feedback

    Meta Engineering mediumAdept

    Facebook 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.

  • Engineering stories behind the Medium Daily Digest Algorithm: Part 4

    Medium Engineering mediumAdept

    Medium fixed repetitive Daily Digest recommendations for power users by tracking which digest emails had at least one clicked story ("definitely opened", since Apple Mail Privacy Protection makes open tracking unreliable) and filtering out posts already sent in such digests. Offline simulation of thresholds showed a threshold of 1 removed about 4.6 of 15 stories for complaining users but under 0.2 for free users and about 1.4 for members. An A/B test showed a statistically significant increase in reading time, larger for members. Possible next steps are converting the hard filter to a soft filter and accounting for story position in the email.

  • Journey to 1000 models: Scaling Instagram’s recommendation system

    Meta Engineering mediumAdept

    Instagram scaled to over 1000 production ML ranking models across surfaces and funnel stages (retrieval, early- and late-stage ranking) by building three pieces of infrastructure. A model registry on Configerator records model type and GSI-style criticality tiers and drives automated monitoring and alerting. A launch platform uses offline load tests replaying recorded traffic plus a capacity formula, and enforces per-team quotas through virtual pools, cutting launch time from days to hours. A model stability metric measures prediction accuracy and backs SLOs for every registered model, giving a single view of ML health across product surfaces.

  • Turning Opportunistic AI Inference Capacity Into Better Ads Recommendations

    Meta Engineering mediumAdept

    Meta aggregates locally idle inference capacity, stranded by peak provisioning, delivery timing, resource-ratio and accelerator-type mismatches, into a preemptible opportunistic pool used to improve ads recommendations. Two elasticity levers consume it: Rank More Ads (RMA) raises the number of candidates through the ranking stages and needs both CPU and accelerator surplus, while Serve Better Models (SBM) routes a larger share of requests to a more powerful model and needs only accelerator surplus. Baseline serving is protected by physical isolation for SBM and a logical global budget for RMA. A PID controller driven by tail latency sets RMA candidate volume, and an explore/exploit router picks SBM requests by request value. Because the central loops act on the order of minutes, millisecond-level value-aware load shedding on both servers and clients removes low-value optional work when capacity is suddenly reclaimed.

The quest for software engineering knowledge.

Look:
Layout: