ParClick: A Scalable Algorithm for EM-based Click Models

Pooya Khandel, Ilya Markov, Andrew Yates, Ana Lucia Varbanescu

Introduction

Search engines utilize click models to interpret user behavior, specifically to disentangle actual document relevance from presentation biases such as position bias. The Expectation-Maximization (EM) algorithm is the standard approach for training these models. However, EM-based click models face significant scalability challenges. Existing implementations, such as the PyClick library, are often single-threaded and exhibit high memory consumption, making them impractical for industrial-scale datasets. For instance, training on 8 million sessions can exceed 12 hours, while larger datasets often lead to out-of-memory errors on standard hardware. ParClick addresses this gap by providing a parallelized framework that scales EM-based click models to massive search logs.

Methodology

ParClick is designed using the Partitioning-Communication-Aggregation-Mapping (PCAM) methodology to parallelize the EM process without compromising mathematical exactness.

The PCAM-based partitioning strategy for ParClick, showing the transition from data to functional tasks and hybrid aggregation.

The framework employs several key strategies:

  1. Functional Partitioning: Instead of simple data splitting, ParClick partitions the computational tasks associated with individual model parameters.
  2. Hybrid Aggregation: Click models typically involve billions of query-document "attractiveness" parameters and a small set of global "examination" parameters. ParClick utilizes a hybrid structure where threads manage local chunks of attractiveness parameters while maintaining local copies of global parameters to minimize communication overhead.
  3. Load Balancing: To mitigate idle time caused by power-law distributions in query frequency, a Minimum Utilization (MU) policy is used. This policy dynamically assigns tasks to the least-busy threads.
  4. Synchronization: Thread barriers ensure global parameters are synchronized at the conclusion of each EM iteration.

Experimental Evaluation

The performance of ParClick was evaluated using three subsets of the Yandex relevance prediction dataset: D1 (1M sessions), D10 (10M sessions), and D50 (50M sessions). These datasets provide a realistic benchmark for scaling beyond the capabilities of traditional sequential libraries.

Results

ParClick achieves significant performance gains while maintaining the exact log-likelihood of sequential EM.

Speed-up performance of ParClick across different dataset sizes (D1, D10, D50) and load balancing policies (RR vs MU).

Speedup and Scalability

On the D50 dataset (40M training sessions), ParClick achieved a 24.7x speedup using 40 threads for the Click Chain Model (CCM). This reduces training time from over 24 hours to less than one hour. The algorithm demonstrates near-linear scaling up to 16 threads, with diminishing returns thereafter due to synchronization overhead.

Memory Efficiency

A critical advantage of ParClick is its memory efficiency. By optimizing data structures and avoiding redundant replication, the framework can process 40 million sessions using approximately 32GB of RAM. In contrast, existing sequential tools often fail on systems with 256GB of RAM when faced with similar workloads.

Load Balancing

The Minimum Utilization (MU) policy consistently outperformed basic Round-Robin (RR) scheduling. This is particularly evident in complex models where task workloads are highly non-uniform, ensuring higher CPU utilization across all cores.

Conclusion and Future Work

ParClick successfully bridges the gap between academic click modeling and industrial-scale requirements. While currently optimized for shared-memory multi-core systems, future iterations could extend this framework to distributed environments like Apache Spark to handle billions of sessions. Additionally, exploring hardware acceleration via GPUs and applying the framework to more complex multi-state models remain promising avenues for further research.

Summary updated

BibTeX
@inproceedings{khandel2022parclick,
  author = {Pooya Khandel and Ilya Markov and Andrew Yates and Ana Lucia Varbanescu},
  title = {{ParClick: A Scalable Algorithm for EM-based Click Models}},
  booktitle = {The Web Conference},
  year = {2022},
  doi = {10.1145/3485447.3511967},
}
Figure