SDSignal Desk

Meta now searches your long history of clicks the way a chatbot searches documents, all to place one ad

· Updated · Signal Desk newsroom

Analysis of reporting by Meta Engineering. How we work

Image: Meta Engineering

Meta's Long Memory Search borrows retrieval tricks from chatbots to pull old interests back into ad ranking. The efficiency story is strong. The user-control story is missing.

Key takeaways

  • Meta Long Memory Search Modeling treats a person's engagement history as an indexed document set and each ad request as a query, adapting retrieval-augmented generation to ads ranking, Meta Engineering says.
  • Meta says it delivered a 1% click-through lift on Facebook Feed and Reels and a 1.2% conversion-rate lift, at 5-10x better compute efficiency than linearly scaling history length.
  • Retrieval balances relevance and diversity with Maximal Marginal Relevance, so older and recurring interests are not crowded out by repeats of recent activity.
  • Weekly chunking, quantized representations, a vector index and preparation done ahead of each request keep it inside the ads latency budget.
  • The system has been in production for major ads ranking models since 2025; Meta plans longer histories and year-over-year seasonal patterns.

Why it matters

Most ad systems remember people the way a goldfish might. Meta's default, which it calls LastN, keeps only the most recent stretch of activity and throws the rest away, with the same cutoff for everyone. In a new engineering post, six Meta authors describe how the company now reaches much further back, by turning a person's engagement history into a searchable index and pulling out the few pieces that matter for the ad it is about to rank.

Meta's reported gains are 1% more clicks on ads in Facebook Feed and Reels and a 1.2% higher conversion rate. Those sound small. At Meta's scale, and given that the company says it gets them at 5-10x better efficiency than simply feeding models longer histories, they are the kind of result that quietly becomes standard across an industry.

Chatbot retrieval, rebuilt for ads

The design maps neatly onto retrieval-augmented generation, the technique chatbots use to look things up. Each ad request becomes a query, carrying signals such as recency, user cohort, ad category and interest topics. A person's eligible history is cut into units by time and topic, like document chunks. A retrieval model scores those units against the query, and the winners are passed to the ranking model as embeddings, training examples or events for Meta's sequence models and its GEM foundation model.

The clever part is diversity. Recent behavior repeats, so the top matches for any request tend to be near-copies of the same current interest. Meta uses Maximal Marginal Relevance to penalize candidates that duplicate what has already been picked, so a recurring interest or a slow purchase cycle can sit alongside this week's obsession. For advertisers with long consideration windows, that is the whole point.

Efficiency is the real headline

Meta frames three problems with longer histories: finding the useful slice, paying for storage and compute that grow linearly to quadratically with length, and catastrophic forgetting, where models trained on rolling recent data overwrite older patterns. The engineering answers are unglamorous and effective. Days are grouped into weekly units. Learned representations are quantized into compact formats. History lives in a vector index for fast nearest-neighbor search. Indexing happens before a request arrives so it stays off the latency-critical path.

The system also replays older training examples in a second pass to fight forgetting, and Meta says the training and serving uses share infrastructure so gains in one help the other. This fits the pattern in Meta's recent engineering posts. Andromeda scaled ad retrieval through model-system co-design; GEM consolidated ranking into one foundation model. Long Memory is the data-side piece, arguing that selective memory, not just bigger models or longer raw sequences, is another way to scale.

What the post leaves out

This is a write-up for engineers and advertisers, and it reads that way. It says nothing about how long history is retained, which data sources are eligible, or how a person would know that an interest from months ago is shaping today's ad. Those are not hypothetical questions. Meta just gave users editable interest lists in Feed and Reels, which we covered in our look at Your Algorithm. The post does not say whether a Not Interested signal also reaches into the long-memory index, or only reshapes recent activity.

Long-horizon personalization can genuinely serve people: a seasonal hobby or a slow decision about a big purchase is real intent, and ads that respect it are less noisy than ads chasing yesterday's click. But memory cuts both ways. Interests people have moved on from, or would rather forget, are exactly the kind of older signal this system is built to resurface. Meta's future work, which includes capturing patterns that recur year over year, makes that tension sharper. Meta should explain how user controls apply to long memory before the history window gets longer still.

Who it affects

Advertisers
Brands with long sales cycles or seasonal demand stand to benefit most from ranking that can see beyond recent activity.
Facebook and Instagram users
Older interests can now influence ads months later, with no public detail on how existing controls apply.
Recommendation engineers
Meta offers a concrete template for treating history as retrieval rather than paying to process ever-longer sequences.
Privacy regulators
Retrieval over long engagement histories raises fresh questions about retention and purpose that the post does not address.

What to watch

  1. Whether Meta says how Your Algorithm preferences and Not Interested signals interact with long-memory retrieval.
  2. Results from bringing long history directly into user sequence models, which Meta lists as next.
  3. How far the history window extends as Meta targets year-over-year seasonal patterns.
  4. Whether other ad platforms publish similar retrieval-based approaches to user history.

FAQ

What is Meta Long Memory Search Modeling?

A system that indexes a person's past engagement and retrieves a small, relevant and diverse subset for each ad request, adapting retrieval-augmented generation to ads ranking.

What results does Meta report?

A 1% click-through lift for ads on Facebook Feed and Reels, a 1.2% conversion-rate lift, and 5-10x better compute efficiency than scaling history linearly.

How long has it been running?

Meta says it has been in production for major ads ranking models since 2025.

Does the post address user privacy controls?

No. It focuses on modeling and infrastructure and does not discuss retention or how user preferences apply to retrieved history.

Read the original

Continue at the source.

Meta Engineering

Companies: Meta

More on Meta

All Meta coverage →