AI NewsInfrastructureAnnouncement
Meta applied RAG to user history, lifting ad clicks 1 percent
Meta pulls a small slice of a user's long history into each ad ranking call using a RAG design. It lifted click-through by 1 percent on Feed and Reels.

Image: Engineering at Meta
Why it mattersMost RAG work indexes documents. Meta indexes behavior over months. It reads only a few chunks per request. The pattern fits any product with a long user history.
Meta's ads team has taken the design pattern from retrieval-augmented generation and applied it to user history. Its usual home is question-answering over documents. Meta now uses it on the long record of each user's engagements. The lift is 1 percent on click-through and 1.2 percent on conversion. The baseline is a system that feeds the model the user's whole history.
The system is called Meta Long Memory Search Modeling, or LMSM. The authors are Xiaoyu Chen, Ruichen Wang, Xiao Yang, Pan Chen, Matt Iannone and Min Yun. Meta says LMSM "has been deployed into production for major ads ranking models since 2025 across Facebook Feed and Reels."
The problem a recommender has with long history
A recommender with a user's whole history has two bad options. It can feed the lot to the model. That is expensive and drowns the signal in noise. Or it can take a rolling window of recent events. That is cheap but forgets patterns like seasonal shopping. Meta's answer is to treat the history as "an indexed set of documents". The system then pulls a few relevant chunks per request. That is RAG, applied to behavior rather than to a document store.
The four parts
LMSM uses the four parts of a RAG pipeline, each tuned for ad ranking. The query vector encodes recency, the user's cohort, the ad category and the topics of interest. The index organises the user's history into retrievable units across time and topic. Retrieval uses Maximal Marginal Relevance. The top results are both relevant and varied. Augmentation adds the retrieved context to the ranking model. It joins the pipeline as embeddings or as training examples.
Meta adds three infrastructure tricks under that design. Daily history is chunked into weekly buckets. A long tail does not blow up the index. The learned representations are quantized so each one is smaller. The vector database uses nearest-neighbor search. Retrieval is prepared asynchronously before the ranking request lands. Meta says the end-to-end serving overhead is "minimal".
The numbers
Meta reports a 1 percent click-through rate lift from LMSM. It reports a 1.2 percent conversion rate lift. Both are measured on Feed and Reels. Compared with linear history scaling, LMSM is 5 to 10 times more efficient on compute. Meta says the combination with its system improvements "delivers 5-10x better modeling ROI". These are Meta's own figures against its own baseline.
The pattern is portable. Any product that keeps a long per-user history can use it. The work searches inside the user's own behavior. It is limited to a few chunks per call. The ranking model sees recent signal and old signal, without carrying either in full. The weekly chunking and the async retrieval are the parts that keep the cost flat.
Source
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.


