A Context-aware Time Model for Web Search

Alexey Borisov, Ilya Markov, Maarten de Rijke, Pavel Serdyukov

TL;DR

Researchers from the University of Amsterdam and Yandex have developed the Context-aware Time Model (CATM), demonstrating that the duration a user spends on a search result is heavily influenced by their preceding actions within a session. By employing Recurrent Neural Networks (RNNs) to account for this "context bias," the model significantly enhances user behavior prediction and search engine ranking accuracy.

In web search, time serves as a critical signal of user satisfaction. A long dwell time often suggests a relevant result, while a quick "bounce" back to the search page indicates dissatisfaction. Traditionally, search engines have modeled these intervals using static probability distributions, assuming "context-independence"—the idea that time spent on a result depends solely on the result itself.

This paper challenges this assumption, identifying a significant context bias where the sequence of events leading to a click fundamentally alters the expected duration of that click. For example, a user's fifth click after several failed attempts may have a different temporal profile than their very first click in a session.

Methods: The Context-aware Time Model (CATM)

The authors propose CATM to capture these nuances by focusing on four primary temporal metrics that define a search session.

Figure 1: Definition of temporal metrics in a search session, including time-to-first-click and time-between-clicks.

Unlike standard models, CATM utilizes a Recurrent Neural Network (RNN) with Long Short-Term Memory (LSTM) cells to "encode" the session history. This architecture allows the model to remember previous queries, clicks, and the time elapsed between them. The model decomposes predictions into an action-specific baseline (the intrinsic time for a result) and a context-specific coefficient that adjusts that baseline based on the current session state.

Evidence of Context Bias

The study leveraged three months of log data from Yandex, a large commercial search engine, comprising tens of millions of observations. Using Kolmogorov-Smirnov (KS) tests, the researchers confirmed that context bias is pervasive.

Figure 2: Percentage of action IDs exhibiting significant context bias (p < 0.05) as the number of observations increases.

As shown in the data, for 37% to 80% of query-result pairs, the time distribution shifted significantly based on the user's prior actions. By treating the search session as a sequence of numerical attributes, the RNN effectively captures user states such as frustration or persistence. A key innovation is the use of a "neutral" context for ranking; by predicting dwell time in a standardized environment, the model provides a cleaner relevance signal than raw, noisy log data.

Key Results

  • Superior Prediction: CATM outperformed baseline models across all temporal tasks in terms of log-likelihood and Root Mean Squared Error (RMSE), particularly for shorter time intervals.
  • Improved Ranking: When applied to ranking, the CATM-based approach achieved a higher NDCG (Normalized Discounted Cumulative Gain) than traditional models. Specifically, NDCG@1 improved from 0.651 to 0.675, a substantial gain in search optimization.
  • Robustness: The model showed consistent improvements regardless of the underlying probability density function used (Exponential, Gamma, or Weibull).

Limitations and Future Work

While CATM marks a significant advancement, it currently relies on interaction logs rather than page content (e.g., text complexity or HTML structure). Future work could integrate these content features and additional behavioral signals like scrolling or mouse movements. Additionally, optimizing the computational cost of RNN training for real-time, large-scale deployment remains a priority for production environments.

Summary updated

BibTeX
@inproceedings{borisov2016context,
  author = {Alexey Borisov and Ilya Markov and Maarten de Rijke and Pavel Serdyukov},
  title = {{A Context-aware Time Model for Web Search}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2016},
  doi = {10.1145/2911451.2911504},
}
Figure