From trees to transformers: adopting deep learning for activity ranking

Mihail Douhaniaris, Theodore Meynard11 Dec 2025

Problem

GetYourGuide ranks more than 150,000 activities from over 35,000 suppliers each time a traveler searches. For years the ranking used XGBoost within a learning-to-rank setup. Over time each A/B test and each new model iteration gave smaller gains. The team wanted custom architectures, custom loss functions and new input types such as text, categorical and image data. A switch to deep learning, though, changes training, serving and CI at once.

Example from the article: in phase 2 a self-attention architecture improved offline ranking scores but raised bounce rates, meaning more users ended sessions without viewing any activity.

Solution in brief

The team split the migration into three production-tested phases: technical parity, business parity, then business wins. The final model passes embedded features through parallel deep and cross networks, then through a two-block ranking transformer that scores all activities of one search together. The migration took more than six months.

Questions this case answers
  • How to replace a production gradient-boosted ranking model with a neural network while keeping latency and business metrics at least at the old level
  • How to prevent a neural ranker from overfitting to high-cardinality item identifiers
  • How to migrate a learning-to-rank system from gradient-boosted trees to deep learning without losing business metrics?
  • How to split a model migration into stages that can each be tested in production?

Tools and methods

  • XGBoost (learning to rank) — the baseline ranker that was replaced
  • PyTorch — framework for the neural ranker, trained on multiple GPUs
  • Deep & Cross Network — parallel deep and cross subnetworks for non-linear patterns and explicit feature crosses
  • Ranking transformer — self-attention over all activities of one search for list-wise decisions
  • Learned embeddings with dropout — dense vectors for locale, activity ID and location ID
  • A/B tests and feature toggle — internal testing, then a 50% visitor test
Continue reading — it's free

Google or a one-time email code. No password.