Brifing

Meta Unveils Generative Ads Model Scaling RecSys Architecture to LLM Dimensions

Unified foundation model drives major conversion lifts across surfaces through Kunlun architecture

Facebook Engineering3 min

1Unifying Fragmented Ads Infrastructure

Meta transitioned from isolated domain optimizations across Facebook, Instagram, and Reels into a centralized recommender foundation model. The 2026 generation of Generative Ads Model, known as GEM, unifies cross-surface signals across 3.6 billion daily users to jointly predict clicks and conversions across all advertiser funnel stages.

2Significant Performance Metric Gains

Deploying the centralized GEM model delivered an 18.9% conversion improvement and a 12% click-through rate boost across Meta ad surfaces. Targeted user segments experienced conversion uplifts of 5.8% on Facebook, 4.1% on Instagram, and 1.6% across off-site conversion objectives over the past year.

3Bending Traditional RecSys Scaling

Recommender systems historically struggled to follow transformer scaling laws due to massive heterogeneous features and shifting data distributions. Meta introduced Kunlun, an LLM-style architecture co-designed with hardware clusters, achieving 2.5x model complexity growth and unlocking predictable performance gains similar to frontier language models.

4Kunlun Core Architecture Redesign

Kunlun replaces previous Interformer architecture to deliver 2x performance gains under identical compute scaling. The framework standardizes long-sequence modeling with recommendation cross-interactions, simplifies summarization components between sequential and non-sequential features, and leverages mixture-of-experts style sub-networks across distributed GPUs.

5Hardware-Aware Operator Optimization

Meta replaced quadratic self-attention with block-aligned sparse attention, restricting window sizes to multiples of hardware block sizes. Engineers also reformulated Per-Example Feed-Forward Networks into Generalized Dot-Product Attention, merging disparate attention operations into a single kernel to achieve up to 2x forward-pass speedup.

6Efficient Ultra-Long Sequence Scaling

Processing user engagement history involves severe tensor fragmentation across heterogeneous events like purchases and video views. Meta implemented OneSeq to chronologically unify sequences after feature aggregation, while Component Skip Connection selectively deactivates sequence modules across layers, reducing total training FLOPs by 43% without quality loss.

7Power Law Context Exploitation

Meta observed that recommendation prediction quality follows a power law relationship with sequence length. In production, user context length doubled, with infrastructure scaling up to 25x. Empirical results confirm larger models benefit disproportionately from longer context, creating reinforcing returns between compute and historical depth.

8Cluster Parallelism and MFU Gains

Training recommendation foundation models across thousands of GPUs typically yields poor hardware utilization because data center stacks favor language models. Meta implemented custom low-precision kernels and 5D parallelism strategies, quadrupling total training FLOPs while doubling end-to-end model FLOPS utilization to 20-25%.

9Structured Post-Training Transfer

Serving giant foundation models during live ad ranking violates strict real-time latency budgets. Meta engineered LoopFM, a structured representation mechanism that precomputes compact internal memories from GEM. This pipeline transfers sequential user intent into vertical downstream models, doubling knowledge transfer effectiveness compared to distillation.

10Speculative Real-Time Serving

To deliver fresh predictions without request timeouts, Meta deployed Solaris for speculative precomputation. Inspired by speculative decoding techniques in language models, Solaris computes candidate user-ad embeddings ahead of runtime requests and injects representations directly into vertical serving paths without consuming real-time latency budgets.

11Cross-Domain Representation Transfer

Centralized training enables data-rich interaction tasks, like ad clicks, to enrich sparse objective tasks, such as downstream off-site purchases. A specialized data-mixing framework combined with domain experts stabilizes heterogeneous multi-task learning, ensuring predictable convergence without degrading performance across distinct surface objectives.

12Paradigm Shift in RecSys Design

GEM proves that recommendation systems can escape legacy heuristic bottlenecks by adopting foundational transformer scaling. Combining custom architectures, hardware co-design, and asynchronous intelligence transfer allows hyperscale platforms to run LLM-tier models efficiently, fundamentally redefining monetization infrastructure across modern digital advertising ecosystems.

Original article: Facebook Engineering — Meta Unveils Generative Ads Model Scaling RecSys Architecture to LLM Dimensions