Large-scale behavioral targeting

Ye Chen, Dmitry Pavlov, John F. CannyKDD 2009

Introduction

Behavioral targeting (BT) is a cornerstone of modern online advertising, utilizing historical user interactions—such as clicks, searches, and page views—to predict future engagement. However, implementing BT at the scale of a major platform like Yahoo! presents significant challenges. In 2008, Yahoo! logged approximately 9 terabytes of display ad data monthly, comprising 500 billion entries. Furthermore, the target events (clicks) are extremely sparse, often occurring in less than 0.05% of instances. Traditional serial algorithms were computationally insufficient to process this volume, leading to high generalization errors and infrequent model updates.

Methodology

To address these scalability issues, the authors transitioned from standard linear regression to a Linear Poisson Regression model. Poisson regression is particularly suited for count data, such as the frequency of user clicks within specific categories.

Efficient Feature Generation

A primary innovation is the $O(n)$ feature generation process. The system employs a "sliding window" algorithm that utilizes three iterators to track feature and target windows simultaneously. This ensures that the massive dataset is scanned only once, regardless of the number of overlapping time windows being modeled.

Sliding window mechanism for efficient feature and target vector generation.

Technical Innovations for Scale

  • Identity Link Function: By using a linear form ($\lambda = w^Tx$) instead of a log-linear one, the system enables incremental scoring. New user actions can be incorporated by simply adding a weight to the existing score, facilitating millisecond-latency ad serving.
  • In-Memory Caching: To bypass I/O bottlenecks associated with reading large weight vectors, input examples are cached in memory. This shifts the complexity from $O(dn)$ to $O(dl)$, where $l$ represents the number of memory-resident caches.
  • Fine-Grained Parallelization: The workload is distributed using composite keys (target category + feature), preventing "hot spots" where specific popular categories might overwhelm individual nodes in the Hadoop cluster.
MapReduce workflow for parallelizing Poisson regression across data and weight matrices.

Datasets and Insights

The study utilized Yahoo!’s industrial logs, processing 20–30 TB of raw data into approximately 3 TB of compressed training examples (500 million instances) with 150,000 features.

Key insights from the implementation include:

  • Data Volume over Complexity: Generalization error decreased consistently as more data was added. Training on the entire user base proved more beneficial than employing complex non-linear models on subsets.
  • Bot Filtering: Features were selected based on the number of unique cookies associated with them. This frequency-based selection effectively filtered out automated bot activity that could otherwise skew the model.
  • Engineering for Production: The choice of a linear model underscores a preference for engineering properties like additivity and real-time update capabilities over marginal mathematical gains in more complex forms.

Results and Performance

The framework demonstrated exceptional throughput and accuracy:

  • Efficiency: The system generated over 450 models within 24 hours, a significant improvement over the previous production system which required a week for 60 models.
  • CTR Lift: The new approach delivered a 20% increase in click-through rate (CTR) compared to the baseline.
  • Scalability: Runtime scaled sub-linearly; a 16x increase in data resulted in only a 4.7x increase in processing time.
  • Freshness: Reducing the latency between user behavior and ad serving (the "gap") resulted in an additional 17% CTR lift.

Conclusion

While highly successful, the authors noted that search query features contributed less to CTR than page view history, suggesting a need for better query representations. Future work aims to transition from the current 6-minute evaluation latency toward a truly real-time data pipeline and further explore the impact of various regularization techniques on these massive, sparse datasets.

Summary updated

BibTeX
@inproceedings{chen2009large,
  author = {Ye Chen and Dmitry Pavlov and John F. Canny},
  title = {{Large-scale behavioral targeting}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2009},
  doi = {10.1145/1557019.1557048},
}
Figure