Meta published details on December 4 of Long Memory Search Modeling, the approach it uses to let ads recommendation models draw on much longer user engagement histories. According to Meta's engineering blog, the system has been deployed in production for major ads ranking models since 2025.
The method borrows the structure of retrieval-augmented generation from large language models. A user's engagement history is treated as an indexed set of documents, and each ad request acts as a query that retrieves a small set of relevant past signals. Retrieval uses Maximal Marginal Relevance to balance relevance with diversity, so that many near-duplicate recent events do not crowd out older but relevant ones.
Meta says the work replaces the default "LastN" approach, which keeps only the most recent events or days and applies one cutoff to every user. Simply feeding models full histories runs into three problems the post identifies: finding the relevant interactions, compute costs that grow "linearly to quadratically" with history length, and catastrophic forgetting caused by rolling training windows. To keep costs down, Meta groups consecutive days into weekly chunks, quantizes learned representations, stores history in a vector index for nearest-neighbor search, and builds the index asynchronously before requests arrive. Older training examples are also replayed in a second training pass to counter forgetting.
Meta reports a 1% click-through rate lift for ads on Facebook Feed and Reels, and the post's summary cites a 1.2% conversion rate lift. It describes the approach as 5-10x more efficient on compute than scaling history linearly, with better normalized entropy in click-through and conversion models and minimal end-to-end serving overhead.
For engineers working on recommendation systems, the post is a concrete production example of using LLM-style retrieval to give sequence models long-term memory at a fixed compute budget. Meta says next steps include bringing long history directly into user sequence models and capturing year-over-year seasonal patterns.