TL;DR
LEADRE is the first framework to successfully deploy a Large Language Model (LLM) for generative retrieval in an industrial-scale display advertising system. By combining intent-aware prompt engineering, business-aligned fine-tuning, and a latency-aware hybrid deployment strategy, it serves tens of billions of daily requests on Tencent WeChat, delivering significant gains in Gross Merchandise Value (GMV).
What Problem Does This Paper Address?
Traditional display advertising systems rely on a multi-stage funnel: retrieval, coarse ranking, ranking, and re-ranking. The critical first step—retrieval—has long relied on ID-based collaborative filtering (like two-tower models) to filter millions of candidate ads down to a relevant few.
However, these traditional methods suffer from three major flaws:
- The Information Cocoon Effect: Relying strictly on past ID interactions reinforces narrow user preferences, limiting recommendation novelty and diversity.
- Poor Content Awareness: ID-based models struggle to exploit rich textual ad content (titles, descriptions), making it hard to recommend new or long-tail ads (the cold-start problem).
- Implicit Intent: Unlike search ads where users type explicit queries, display ads operate in a "low-intent" environment where user preferences must be inferred from sparse, noisy interaction histories.
While LLMs possess vast world knowledge that could solve these content-awareness and diversity issues, deploying them for ad retrieval introduces massive hurdles: accurately capturing implicit intent, bridging the semantic gap between general text and specific ad inventories, and overcoming the severe latency constraints of real-time bidding systems.
Methods
The authors introduce LEADRE (LLM Empowered Display ADvertisement REcommender system), which tackles these challenges through three core modules:
1. Ads Indexing & Constrained Decoding
To allow an LLM to generate ads directly, ads must be translated into discrete tokens the model can output. LEADRE uses a text embedding model (Hunyuan or E5) to encode ad descriptions, which are then passed through a Residual-Quantized Variational Autoencoder (RQ-VAE) to produce hierarchical Semantic IDs (S-IDs). These S-IDs are organized into a Trie-Tree structure. During inference, the system uses constrained beam search decoding against this tree, ensuring the LLM only generates valid, existing ad identifiers.
2. Intent-Aware Prompt Engineering
To combat data sparsity, the prompt incorporates multi-faceted user data. It blends long-term interests (demographics and historical ad/content category interactions) with short-term interests (recent behavior sequences). Crucially, it integrates user actions from related content domains (like micro-videos and news) to enrich the behavioral context.
3. Advertising-Specific Knowledge Alignment
General LLMs don't understand ad inventories or business goals out of the box. LEADRE fixes this via a two-step alignment process:
- Semantic Alignment: Auxiliary fine-tuning tasks teach the model how text descriptions map to S-IDs (explicit alignment) and how to predict the next ad based on text histories rather than raw IDs (implicit alignment).
- Business Objective Alignment: The authors apply Direct Preference Optimization (DPO) using Expected Cost Per Mille (ECPM) as the reward metric. This trains the LLM to favor ads that generate higher business value without sacrificing user relevance.
4. Latency-Aware Model Deployment
To bypass the high latency of real-time LLM generation, LEADRE uses a hybrid service framework. An asynchronous Latency-Tolerant module computes user recommendations nearline based on recent behaviors and caches them in a database. When a live request hits the Latency-Sensitive online module, it simply fetches these pre-computed lists instantly. The system is further accelerated using TensorRT-LLM optimizations (such as FP8 quantization and custom Softmax kernels).
Datasets
The framework was trained and evaluated using industrial-scale datasets from Tencent WeChat Channels and WeChat Moments. Public recommendation datasets were omitted because they lack the scale, cross-domain behavior context, and specific business metrics (like ECPM) required to validate an industrial display ad system.
Key Insights and Ideas
- Tuning Order Matters: The authors discovered that training the LLM sequentially (Explicit Alignment $\rightarrow$ Implicit Alignment $\rightarrow$ Main Task) significantly outperforms mixing all tasks together. Providing a foundational mathematical/semantic understanding of the ad space first prepares the LLM far better for the actual recommendation task.
- Cross-Domain Data is a Lifesaver: Incorporating user behaviors from non-ad content domains (like watching videos or reading news) was the most powerful lever for mitigating ad data sparsity, yielding a massive performance boost in offline metrics.
- DPO Beats Traditional RLHF: Applying DPO using ECPM metrics successfully injected business logic into the generative process. It outperformed other alignment methods like RRHF, proving that constrained preference optimization can maximize revenue metrics while maintaining retrieval diversity.
Key Results
- Online Production Gains: In live A/B testing on Tencent's platforms, LEADRE achieved a 1.57% increase in Gross Merchandise Value (GMV) on WeChat Channels and a 1.17% increase on WeChat Moments.
- Downstream Synergy: When the retrieved ads were fed into the downstream ranking phase as additional features, they provided an extra 1.43% GMV improvement on WeChat Channels.
- High Exclusive Recall: LEADRE achieved an exclusive consumption ratio of 7.33% on WeChat Channels, meaning it successfully retrieved high-value ads that all other traditional learning-to-rank branches completely missed.
- System Throughput: Optimized with TensorRT-LLM and global load balancing, the cluster handles tens of billions of requests daily, achieving over 90% of its theoretical maximum load capacity.
Limitations and Future Work
Despite its deployment success, the authors note two primary limitations:
- Single-Ad Generation: LEADRE currently only supports generating a single ad at a time due to its reliance on a strict statistical trie-tree and fixed tuning tasks. Future work will focus on expanding this to Next-N ad generation for richer retrieval lists.
- Quantization Imbalance: The RQ-VAE model used for indexing tends to compress most semantic information into the very first codebook layer, leaving subsequent layers underutilized. The team plans to design an information-controllable quantization model to create more balanced and effective Semantic IDs.
Summary updated