Illustration from Meta's Long Memory Search Modeling post: a cursor selects one card from a long sequence, with two cards lifted out as retrieved context.
Illustration from Engineering at Meta's post on Long Memory Search Modeling for ads ranking., Engineering at Meta

On 4 December 2026, Engineering at Meta published a post by Xiaoyu Chen, Ruichen Wang, Xiao Yang, Pan Chen, Matt Iannone and Min Yun on Meta Long Memory Search Modeling, a retrieval method for long user engagement history in ads ranking, deployed into production for major ads ranking models since 2025. The argument is that the constraint is no longer whether a bigger sequence model can be trained, but whether a small relevant slice of a long history can be retrieved in time. Meta reports a 1 percent click-through rate lift for ads on Facebook Feed and Reels, and, in the post's key takeaways, a 1.2 percent lift in conversion rate.

[1]

Why a longer raw sequence is the expensive default

Meta has already scaled ads models from sequence learning to foundation models such as GEM, trained at large-language-model scale. Larger models can learn more complex relationships, the authors say, but they are limited by how much history they can use. Long-term patterns, such as seasonal shopping habits, carry signals that short windows miss.

The default approach, LastN, keeps only the last N events or days. It is simple and filters noise, but it discards older relevant history and applies the same cutoff to every person. The cost of storing, serving, and processing full histories grows linearly to quadratically with length, which real-time ranking cannot afford. Models trained on rolling windows of recent data also overwrite older patterns, a failure the post calls catastrophic forgetting.

[1]

History as an index, the ad request as a query

Long Memory Search Modeling treats this as a retrieval problem. It adapts retrieval-augmented generation, or RAG, the method that looks up relevant documents and adds them to a model's context, to ads ranking. Engagement history is an indexed set of documents, each ad request is a query, and the system retrieves a compact subset that is both relevant and diverse.

The query encodes recency, user cohort, ad category, and interest topics, and can emphasize topical relevance or recency. The index organizes eligible engagement history into retrievable units across time and topic. Each unit summarizes engagement from one data source over a defined time period.

A retrieval model scores index entries against the query. Recent behavior tends to repeat, so the closest matches are often near-copies of the same recent interest, relevant but adding little, and crowding out older signals. To balance relevance with diversity, the system uses Maximal Marginal Relevance, or MMR, a scoring rule that penalizes a candidate if it closely duplicates something already selected.

The retrieved entries become additional context for the ranking model, as embeddings, meaning compact numeric representations, as training examples, or as events for user sequence models and GEM.

[1]

How the system stays inside a ranking budget

Ads systems, the authors write, have to rank many candidate ads for every request inside a tight latency budget. Consecutive days of history are grouped into coarser weekly units, reducing how much must be stored and searched. Learned representations are quantized, stored in a smaller numeric format, to cut memory and bandwidth. History is placed in a vector index so retrieval can use nearest-neighbor search, finding strong matches quickly instead of scanning a person's full history for every request. Indexing and other preparation run asynchronously, before a request arrives, off the latency-critical path.

[1]

The same pipeline at inference and at training

The method has two applications that share this infrastructure. At inference time, historical embeddings are retrieved and used as added ranking features, so a recurring interest can inform a decision months later while the decision stays grounded in the current request. At training time, older examples are retrieved and replayed in a second pass, to counter forgetting, without reprocessing the entire user history. The post says the two reinforce each other: training teaches when longer-horizon signals are useful, and online retrieval makes those signals available inside a ranking request.

[1]

The lifts Meta reports

The system has been in production for major ads ranking models since 2025. In production, the post says, it delivered a 1 percent click-through rate lift for ads on Facebook Feed and Reels. The 1.2 percent conversion-rate lift is stated in the lede and key takeaways, not restated with further detail in the later results section. Compared with linear history scaling, Meta says the method achieves better Normalized Entropy, or NE, an offline quality metric where lower is better, in both click-through and conversion models. Combined with system improvements, it delivers 5 to 10 times better modeling return on investment, with minimal end-to-end serving overhead. The key takeaways also call the work 5 to 10 times more efficient on compute than linear history scaling. Those two 5-to-10-times figures appear in different places, and are not unpacked as a single measurement.

[1]

Why a careful reader should still hesitate

A fair reading is that if compute grows linearly to quadratically with sequence length, and if rolling windows overwrite older patterns, then retrieving a small, diverse slice of a long history is a rational alternative to stretching the window. The 1 percent click-through lift, at Meta's scale, would be a material production result if it holds.

All of the lifts are Meta's own production metrics, not independently corroborated. The post does not give confidence intervals, or a public replica. A 1 percent click-through lift and a 1.2 percent conversion lift can matter at this scale and still be vendor-only numbers. GEM and sequence-model scaling are not obsolete; the authors themselves present this as an additional axis. Retrieval can still miss rare signals, or signals that are sensitive from a privacy point of view. And the quality claims come from the platform that sells the ads.

[1]

What the next six months will test

Looking ahead, the authors say they will bring long history into user sequence models by condensing it into fixed-length sequences, and will try to capture seasonal patterns that recur year over year. Over the next six months, the tests are whether other ad platforms publish comparable click-through and conversion lifts, whether Meta restates the 1.2 percent conversion figure in a fuller results section, and whether that planned condensation actually ships. If retrieving a compact slice becomes the usual way to use long history in ranking, the scarce resource in ads models shifts from sequence length to index quality. If the lifts stay vendor-only and unreplicated, the post will have described a plausible architecture whose published gains remain Meta's to own.

[1]