Loading…

Meta
Meta Platforms is the parent corporation that owns major social and communication platforms including Facebook, Instagram, WhatsApp, and Threads.
- 38 posts summarised
- latest
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
From their blog
Latest articles
How Meta Uses AI Agents to Scale ML Innovations Across Ads Ranking Models
Meta’s ads ranking system comprises many distinct models, each with unique architecture, training data, and serving constraints. Propagating proven ML techniques across this fleet is challenging because techniques rarely transfer directly, and speed matters as innovations have a shelf life. To scale, Meta first standardized models using reusable templates, reducing per-model engineering time by 92% and shipping 5,000+ technique-model combinations. Now, AI agents handle over 60% of technique propagation by automating discovery, generalization, and adoption, achieving 3x engineering productivity, a median 4x reduction in training compute, and an estimated $45M+ in compute savings. The agents use LLM-based reasoning and a shared knowledge base to make judgment calls, with evaluation metrics including precision and recall for discovery, normalized entropy for generalization, and human intervention rate for adoption, as Meta aims to reduce propagation time from over a year to three months.
Design Once, Deploy at Scale: Building a Template-Driven ML Ecosystem
Meta’s ads ranking ecosystem, processing billions of daily requests, faced a bottleneck where propagating new techniques across a large and fragmented model fleet became harder than the innovation itself. To solve this, they introduced Standard Model Templates (SMT), which standardize model design into a small set of reusable building blocks covering architecture, features, training, and serving. This shifts iteration from per-model to template-level, reducing complexity and enabling multi-model optimization that evaluates techniques across representative models. Over two years, SMT reduced per-model engineering time by 92%, shipped over 5000 technique-model combinations, improved offline model quality by 0.63% at neutral serving capacity, and delivered a 0.86% cumulative online lift covering 70% of models. The approach also provides a structured foundation for agentic ML systems, where agents explore and optimize within bounded template spaces, making automation more effective.
Cuttlefish on Mac: Running Android’s Virtual Device Framework Natively on Apple Silicon
Meta’s Reality Labs ported Cuttlefish, the Android Open Source Project’s virtual-device framework, to run natively on macOS with Apple silicon. Cuttlefish boots the same system images as real hardware, providing higher fidelity than lightweight emulators like Goldfish, but was previously Linux-only. The port revived QEMU as the virtual machine monitor, made vhost-user backends portable beyond Linux, and increased memory-region tracking slots in QEMU’s HVF backend. A native Cocoa display with BGRA pixel format and mouse-click-as-touch support was added for direct interaction. The unified platform eliminates the operational burden of maintaining dual emulator platforms and ensures developers run the same virtual devices used across CI.
Intelligent Delivery: Making Every Unit of Compute Serve Better Ads
Ads ranking models are growing toward LLM scale faster than hardware can keep up, and the marginal impact of compute varies across requests, models, and chips. Meta built Intelligent Delivery, an ML-driven system that allocates resources across the serving stack toward the system-wide optimum. It uses a Resource Core Model with 6B sparse parameters to predict per-request marginal utility, a hierarchy of decision engines for region, hardware, and within-host allocation, and agentic AI to continuously detect and respond to system shifts. Since 2017 through the first half of 2026, Intelligent Delivery has contributed an additional ~10% incremental ranking performance on top of model and system advancements. The system shortens the optimization loop from months to weeks, with AI agents now contributing to about 80% of engineering effort on the most automated mechanism.
Your Algorithm: Giving People More Ways to Personalize Facebook Recommendations
Traditional Facebook recommendation systems learn from implicit engagement signals, which adapt slowly and capture little nuance. Your algorithm is a suite of AI-powered tools that lets people state their preferences in natural language to personalize Feed and Reels. The end-to-end system includes profile generation, preference management, ranking, and delivery optimization, with supplementary tail loads and cache invalidation for responsiveness. For interests added to ‘Interested In,’ four dedicated retrieval sources find matching content and a control layer spaces out recommendations and caps daily contribution, while for ‘Not Interested In,’ layered filtering uses embedding comparison, demotion rules, an LLM reranker, and device cache invalidation. LLMs generate the initial profile and Lately Summary, validate each edit for coherence and duplicates, and provide a final reranking check against ‘Not Interested In’ interests, with a separate LLM acting as a judge for evaluation.
How We Built TLX: A Hardware-Native GPU Compiler for Production ML at Scale
Triton Low-Level Extensions (TLX) is an extension to Triton that helps engineers optimize GPU performance while preserving Triton’s productive programming model. TLX introduces explicit warp-group and cluster-level orchestration, letting developers adopt new hardware capabilities without sacrificing velocity. Modern GPU architectures increasingly rely on execution-oriented features such as warp specialization, asynchronous memory movement, tensor memory, and cluster-level execution to optimize their performance. TLX has demonstrated performance improvements in RecSys training, RecSys inference, and large-scale LLM pretraining. Across NVIDIA and AMD GPUs, TLX combines state-of-the-art kernels with explicit execution orchestration and model-aware fusion to deliver end-to-end improvements beyond what standalone libraries can achieve.
Extending LLDB to Debug Applications That Span CPUs and GPUs
Meta developed a vendor-neutral accelerator plugin architecture in lldb-server for debugging applications that span CPUs and GPUs. The design separates shared debugger infrastructure from hardware-specific device control by representing the CPU and GPU as separate LLDB targets. A plugin in lldb-server coordinates host and device debugging, translating a vendor’s device debugging API into concepts LLDB already understands. GPU debugging is activated only when the application uses a supported GPU runtime, leaving CPU-only debugging unaffected. The common framework, including the plugin interface and GDB-remote packets, has been upstreamed to LLVM, with remaining pieces expected soon.
F3 Lightning: How Meta Accelerates Ads ML Features to Production at Scale
Meta’s Facebook Feature Framework (F3) compiles all ads ML features into a single merged graph for efficient execution, but this graph also serves as the release unit, so one failing feature blocks the entire pipeline. F3 Lightning decouples feature releases from shared execution, allowing each feature to be compiled, validated, deployed, and rolled back independently. The main challenge was preserving F3’s computational efficiency, as early per-feature release prototypes increased CPU usage by losing shared computation. F3 Lightning closes this gap through four optimizations: stable computation identifiers, a single shared execution plan, one shared memory buffer across all features, and dense index mapping for direct array access. With F3 Lightning, comparable extraction features reach production ~3.6x faster than traditional F3 with no increase in infrastructure compute cost.
Catching Bugs Before They Land: JiTTesting’s Human-on-the-Loop Approach at Full Scale
Meta has deployed Catching JiTTests, a just-in-time test generation system that uses LLMs to catch bugs before they land in production. The system runs overnight on spare capacity and targets risky diffs, using two workflows: a dodgy diff workflow treating each diff as a mutant, and an intent-aware workflow inferring the change’s intention and risks. False positives are filtered through an LLM-as-Judge ensemble and a rule-based assessor called RubFake, with a human-on-the-loop approach where engineers set criteria rather than reviewing each output. In the first half of 2026, the system caught 74 serious privacy bugs, lowered privacy SEVs by 20 percent, and engaged 589 engineers with a 60 percent true-positive rate. This approach catches classes of bugs that traditional LLM-based code reviews might miss, demonstrating that AI-generated testing can scale to reduce organizational risk.
Meta Andromeda: Powering the Next Generation of Ads Retrieval Through Model-System Co-Design
Meta Andromeda is Meta’s personalized ads retrieval engine, and its next generation uses model-system co-design to achieve near ranking-level performance at retrieval scale. The system scores over one billion ads per second, a 100x throughput increase over the 2024 system, and has delivered a 2.4% increase in conversions on Facebook since 2025. The key innovation is a retrieval mixture-of-experts (MoE) architecture that reduces inference-time FLOPs by ~300x compared to the 2024 model, enabling ranking-level matching quality. The entire retrieval pipeline is fused into a single GPU kernel, eliminating memory bandwidth bottlenecks and achieving over 10 billion ads per second on a single NVIDIA GH200 Grace Hopper Superchip. The co-design approach, developed in collaboration with NVIDIA, positions the architecture to absorb more model complexity without proportional infrastructure growth.
PrivacyLib: Privacy Controls at the Data Access Boundary
PrivacyLib is a common library that runs inside clients of Meta’s data and processing systems at the data access boundary, replacing separate privacy enforcement implementations across systems. Systems integrate with PrivacyLib once, and new privacy capabilities are added as modules that reuse that integration, performing billions of checks per second. PrivacyLib addresses three engineering challenges: coverage by integrating at typed client libraries and network boundaries, scale by compiling requirements at build time and using in-process caches, and reliability by deploying enforcement changes through each service’s own pipeline. For internal AI agents, tool calls carry agent context that PrivacyLib uses to observe data access and block disallowed operations. Meta learned that designing for evolving systems, prioritizing reliability to earn adoption, and ensuring coverage includes deployment are critical for operating PrivacyLib at scale.
Python Typing Survey 2026: AI Tools and the Shifting Checker Landscape
The 2026 Python Typing Survey received 1,794 responses examining Python typing use and tools. Missing library type information remained the most common difficulty at 65.1%. Frequent type hint use held steady at 85.5%, but checker selection shifted sharply, with 49.9% using multiple checkers and speed as top reason at 56.5%, while newer checkers like Pyrefly gained ground. AI tools increasingly intersected with typing: 42.5% used AI to write type hints, and 24.4% reported an AI tool ran their checker, of whom 61.6% also used AI to fix errors. Sources for typing help shifted, with Stack Overflow dropping to 22.9% and LLM chat rising to 41.7%, while checker-specific documentation rose to 60.5%.
Meta Networking at the 2026 OCP Global Summit: Open Innovation for Scale-Up, Scale-Out, and Scale-Across AI Networks
At the 2026 OCP Global Summit, Meta unveiled networking innovations powering its Muse AI models and gigawatt-scale Prometheus cluster, including IcePack/IceCube liquid-cooled switches with 102.4T blades (128x800G) using Broadcom Tomahawk 6C and NVIDIA Spectrum-6 ASICs, all managed by FBOSS. For scale-out, the Flattened Planar Fabric (FPF) replaces 3-tier with 2-tier Clos, giving each GPU eight network planes and enabling NIC-level packet spraying via a combined host-switch control plane. For scale-across, the petabit-scale Backend Aggregation (BAG) super-spine joins buildings and campuses, while SRv6 backbones run on FBOSS with SAI. For scale-up, Tahan, an Ethernet switch for MTIA 300 based on Tomahawk5, and ESUN 1.1 were shown. Meta also proposed OSPA 1.0, a unified switch platform reference design co-led with Microsoft and Alibaba, and open-sourced its MetaRoCE RDMA transport with user-space and DPDK software on GitHub.
GenRecs Tokenization: Transforming Ads Recommendation at Meta with Stable Model Vocabulary
GenRecs Tokenization replaces per-item IDs with a stable semantic vocabulary of tokens that describe what an item is, enabling generative recommender models to reason about ad content and user preferences together. The tokenization pipeline encodes each item into a semantic embedding, decomposes it into independent subspaces, and quantizes each subspace to a codebook entry, producing discrete tokens that similar items share. This approach accelerates learning for new entities with no engagement history, enables cross-campaign transfer, and allows the system to benefit from LLM scaling and world knowledge. In production, paired with Meta’s Generative Ads Model and Adaptive Ranking Model, GenRecs Tokenization delivered a +0.35% lift in conversions across surfaces. The tokenization flywheel improves tail ad predictions, which enriches training data and further improves predictions for all ads, creating a self-reinforcing feedback loop.
The Thin Orchestrator: How We Made Our AI Agents More Reliable by Giving the Router Less to Do
Meta’s thin orchestrator is a 1,300-line deterministic router that handles 20+ workflows across a data column onboarding pipeline spanning three code repositories, three programming languages, and up to six synchronized stages. It delegates all domain reasoning to 14 specialized subagents — each with isolated context loaded from 25+ knowledge files — and follows a fixed 7-step protocol that includes reliability gate checks before any LLM invocation. This architectural separation replaced an earlier monolithic agent that suffered from context interference, achieving only 10-20% success without per-task prompt engineering. The thin orchestrator pattern uses reusable workflow templates so that new use cases, such as pipeline migration, require no new agent code — only a different sequence of existing agents. Configuration preparation dropped from three to four days to under an hour, with roughly two-thirds of changes landing without significant human edits.
Inside Prometheus: Meta’s Journey to a Gigawatt-Scale Supercluster
Meta’s Prometheus supercluster in New Albany, Ohio, is a gigawatt-scale AI infrastructure project designed to train frontier models like Muse Wonder. The first phase is complete, comprising hundreds of thousands of GPUs across multiple interconnected buildings, with a target of roughly 1 million GPUs at full scale. Prometheus deploys multiple NVIDIA GPU platforms, including Catalina (GB200 NVL72) with 13.4 TB of HBM3e and Clemente (GB300 NVL72) with 20.7 TB of HBM3e, with Vera Rubin NVL72 arriving soon. The cluster uses a dedicated Back-End Ethernet network for GPU-to-GPU communication, and employs closed-loop liquid cooling and power management via Dynamo Dimmer to maintain high goodput. By focusing on stability, Meta achieved over 85% goodput for pre-training and over 90% for reinforcement learning runs, with a mean time between interruptions of ~47k GPU hours, later improved to over 54k GPU hours.
How Meta Built Forum With AI-Native Engineering
Meta built Forum using AI-native engineering, treating an AI agent as a development participant rather than a faster typing tool. The team shifted from human-in-the-loop to human-on-the-loop, where the agent autonomously plans, implements, builds, tests, and corrects its work while the engineer sets goals and approves outcomes. Success was measured by verified, production-ready results, not code volume, with automated verification signals like build status and unit tests filtering output before review. Meta adapted the codebase for legibility, gave agents tools to inspect live view hierarchy directly instead of descriptions, and created a separate sandbox build to isolate prototype code from production. This approach helped Forum reach core feature parity with Facebook Groups in eight weeks and caught a memory issue during development that roughly halved memory use and page faults.
2026 World Cup: Breaking Records, Spiky Charts and Reliability at Scale
The 2026 FIFA World Cup produced the largest planned stress test of Meta’s infrastructure, with WhatsApp setting an all-time record of over 30 million messages per second during the final and delivering 8.4 billion messages in its peak five-minute window. Traffic analysis revealed that surges in sharing primarily occurred during breaks and final whistles, not during active gameplay, shaping capacity decisions. Instagram and Facebook saw live video watch time spike 90% and 242% respectively, while recommendation traffic rose 80% week-over-week. To absorb these spikes, Meta layered pre-provisioned capacity buffers, country-level graceful degradation, cascade prevention, and early warning signals across all serving tiers. Notably, the team did not shift load between regions or freeze deployments, relying instead on year-round reliability enhancements and phased runbook execution.
Sapienz Receives ISSTA 2026 Impact Paper Award
Sapienz, a multi-objective automated testing system for Android, received the ISSTA 2026 Most Influential Paper Award for its 2016 research by Ke Mao, Mark Harman, and Yue Jia. The system combines three goals: exploring more of an app, finding more crashes, and reducing the steps needed to trigger them, making failures easier to investigate. In an evaluation of 1,000 popular Google Play apps, Sapienz found 558 previously unknown crashes. Within 17 months of publication, it was deployed at Meta, where it now runs millions of tests daily, surfaces thousands of unique crashes each week, and helps safeguard hundreds of app releases each month. Sapienz also became the app-exploration engine for dynamic taint analysis at WhatsApp using synthetic conversation test accounts.
Meta’s Generative Ads Model (GEM): Scaling the Central Model and Compute Engine for Frontier Ads AI
Meta introduced GEM, the industry’s largest recommendation system foundation model, and its 2026 generation shifts from isolated per-domain optimizations on Facebook, Instagram, and Reels to a single central foundation model. The Kunlun architecture, co-designed with the latest GPU hardware, enables 2.5x model complexity and demonstrates LLM-like scaling laws with block-aligned sparse attention reducing sequence complexity. The LoopFM post-training technique transfers GEM’s internal representations to downstream models, doubling intelligence transfer at no additional compute cost or latency. GEM delivered 18.9% conversion improvement and 12% ad click-through rate improvement across all Meta ad surfaces and funnel stages, including 5.8% conversion uplift on Facebook, 4.1% on Instagram, and 1.6% on off-site conversion. Training efficiency doubled to 20-25% model FLOPS utilization while scaling total training FLOPs by 4x across thousands of GPUs using custom kernels and 5D parallelism.
Topics they write about
All topics →Weekly digest
The best engineering reads, once a week.