TL;DR
Large language models (LLMs) are great at rewriting messy app-store descriptions into clean, readable profiles—but fluency doesn't guarantee that a downstream search engine will retrieve the right ads. Reinforcement Learning from Ecosystem Feedback (RLEF) solves this by turning a frozen production retriever into a verifiable RL environment, rewarding the LLM whenever its generated profiles rank engaged target apps ahead of competing candidates. Deployed on a major mobile app advertising platform, RLEF boosted offline recall@200 by 10.6% and delivered significant real-world topline and conversion gains.
What Problem Does This Paper Address?
In large-scale industrial ad retrieval, LLMs rarely retrieve or rank ads directly due to strict latency and volume constraints. Instead, they act as an offline semantic layer: they rewrite noisy app-store metadata into compact, three-bullet profiles, which a frozen production encoder embeds into a vector space for nearest-neighbor search.
The catch is a fundamental mismatch between text quality and retrieval quality. Standard LLM training—and even supervised fine-tuning (SFT)—optimizes for token-level fluency, ignoring where the resulting text lands in the encoder's embedding space. A well-written profile can still sit far away from the apps users actually engage with or convert on.
Closing this gap with real-world feedback is tricky in advertising for three reasons:
- Sparse supervision: Attributed ad conversions only capture a tiny fraction of user intent, and only for items the system has already shown.
- Frozen infrastructure: The production encoder and candidate index are shared across systems and must remain fixed, meaning you cannot backpropagate gradients through them.
- Ranking matters: Simply pulling a profile's embedding closer to a target (e.g., via cosine similarity) doesn't guarantee that the target will outrank nearby hard-negative competitors.
Methods
RLEF bridges the gap between generation and retrieval without touching the frozen encoder, candidate index, or downstream ranking stack.
- Ecosystem Feedback: To overcome sparse ad-conversion data, RLEF combines attributed conversions with qualified off-loop engagement (policy-permitted engagement signals outside the ad attribution path). These are aggregated at the app level into a weighted target set for each "seed" app.
- A Verifiable RL Environment: Instead of training a proxy reward model, RLEF scores each generated profile directly using the deployed retriever. The LLM generates a profile, the frozen encoder embeds it, and nearest-neighbor search ranks the serving-time candidate index.
- DR-DCG Reward: RLEF introduces Dense Retrieval Discounted Cumulative Gain (DR-DCG), a rank-based reward that scores how high the weighted feedback targets appear in the candidate ordering. Non-target apps near the profile act as natural hard negatives by pushing targets down the list.
- On-Policy Post-Training: Starting from an SFT checkpoint (initialized via reward-filtered distillation from a larger teacher LLM), the generator is post-trained using Group Relative Policy Optimization (GRPO)—specifically the Dr. GRPO variant with mean-centered advantages—alongside lightweight penalties to keep output length and bullet formatting in check.
Datasets
The experiments use proprietary, internal production data from a major mobile app advertising platform (Meta), including its serving-time candidate index and engagement logs.
- Training & Evaluation Splits: RLEF trains on tens of thousands of seed apps and evaluates on a disjoint held-out pool, with evaluation targets drawn from a later, non-overlapping time window. The 1,000 seed apps used for SFT initialization are disjoint from both.
- Encoders: The primary frozen production encoder is the public DRAMA encoder. To test whether gains generalize beyond the training embedding space, the authors also re-embed profiles using nine public dense encoders (including
e5-large-v2,bge-m3, andembeddinggemma-300m) that never supplied training reward.
Key Insights and Ideas
- Rank-based rewards beat cosine similarity: In component ablations, replacing DR-DCG with weighted cosine similarity wipes out roughly two-thirds of the gain over the SFT baseline. Moving a vector toward a target isn't enough; the reward must explicitly capture whether that target outranks competing neighbors.
- Observed outcomes beat AI judges: When the authors replaced ecosystem feedback with RLAIF rewards from an independent LLM judge (scoring text quality, retrieval relevance, or ad value), the judge-based rewards recovered at most 26% of the ecosystem-feedback gain. Recognizing a good profile after the fact is a different task from supplying the signal needed to learn it.
- The gains transfer across embedding spaces: Even though RLEF only optimizes against the DRAMA encoder, the resulting profiles improve recall across all nine unseen dense encoders, recovering 41% to 80% of DRAMA's absolute gain. The LLM is learning genuinely better semantic representations, not just exploiting quirks of one encoder.
Key Results
- Offline Retrieval: Across five independent runs from a fixed SFT checkpoint, RLEF improves recall@200 by 10.6% relative (from
0.200to0.221). Improvements hold across all evaluated cutoffs (Recall@10 through Recall@200, nDCG@200, and MRR), and recall@200 on attributed conversions alone jumps by 22.5% relative. - Online A/B Tests: Deployed in two 14-day stages on live App Ads traffic:
- Stage 1 (adding the semantic-profile path with a zero-shot generator) lifted the App Ads topline metric by 2.1% and conversion rate by 1.0%.
- Stage 2 (swapping in the RLEF-trained generator with updated candidate ordering) added a further 2.79% topline gain and 0.8% conversion-rate gain on top of Stage 1.
Limitations and Future Work
- Reproducibility Scope: While the paper details the exact objective, reward calibration, and optimization recipe, the serving candidate index and engagement logs are not public.
- Concentration Risk: Learning from historical engagement can risk over-concentrating recommendations on popular items. However, offline diagnostics show that RLEF actually increases unique-candidate coverage (1.00 to 1.05) and reduces retrieval-frequency Gini concentration (0.564 to 0.546).
- Future Directions: The authors note that comparing RLEF against adapted query-rewriting methods or alternative optimizers (such as on-policy rejection sampling followed by SFT or preference optimization) under matched compute budgets remains open for future work.
Summary updated