22/36
Part 3 of 5 · Ranking and featuresLearn and do

Personalize with the guest's history, and keep it fresh

Two kinds of personal signal feed the ranker, and they differ in how fresh they must be. Airbnb's 2026 sequence model reads a guest's history with a Transformer, a network that reads a sequence and weighs each event against the others.

  • Long-term. Rare but telling events from the past seven years: bookings, reviews, cancellations and other past actions, capped at 80 events.
  • Short-term. Listing views from the past 21 days, capped at 200 events.

The model's encoder first ran as a daily batch job (1 source). At search time the ranker fetched the guest's stored vector and combined it with the live query. Adding the short-term sequence lifted uncancelled bookers 0.55% (1 source).

Then Airbnb moved these vectors to near real time, cutting staleness from roughly two days to less than a minute (1 source). Updates often land 10 to 30 seconds after the activity. Offline NDCG rose 1.67% from freshness alone.

That's the design argument for a streaming path. In Airbnb's words, "freshness itself is a meaningful source of ranking quality."

In the editor, write history(events, today): the guest's long-term and short-term lists, cut by the windows and caps above. Each event is (day, kind, listing), and LONG names the kinds that go in the long-term list.