Saved in:
Bibliographic Details
Main Authors: Muniyappa, Chandrashekar, Willets, Kendall, Krishnamoorthy, Sriraman
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2502.14785
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915163457716224
author Muniyappa, Chandrashekar
Willets, Kendall
Krishnamoorthy, Sriraman
author_facet Muniyappa, Chandrashekar
Willets, Kendall
Krishnamoorthy, Sriraman
contents Predicting the right number of TVs (Device Reach) in real-time based on a user-specified targeting attributes is imperative for running multi-million dollar ADs business. The traditional approach of SQL queries to join billions of records across multiple targeting dimensions is extremely slow. As a workaround, many applications will have an offline process to crunch these numbers and present the results after many hours. In our case, the solution was an offline process taking 24 hours to onboard a customer resulting in a potential loss of business. To solve this problem, we have built a new real-time prediction system using MinHash and HyperLogLog (HLL) data sketches to compute the device reach at runtime when a user makes a request. However, existing MinHash implementations do not solve the complex problem of multilevel aggregation and intersection. This work will show how we have solved this problem, in addition, we have improved MinHash algorithm to run 4 times faster using Single Instruction Multiple Data (SIMD) vectorized operations for high speed and accuracy with constant space to process billions of records. Finally, by experiments, we prove that the results are as accurate as traditional offline prediction system with an acceptable error rate of 5%.
format Preprint
id arxiv_https___arxiv_org_abs_2502_14785
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Real-Time Device Reach Forecasting Using HLL and MinHash Data Sketches
Muniyappa, Chandrashekar
Willets, Kendall
Krishnamoorthy, Sriraman
Databases
Artificial Intelligence
Machine Learning
60G25
I.5.3
Predicting the right number of TVs (Device Reach) in real-time based on a user-specified targeting attributes is imperative for running multi-million dollar ADs business. The traditional approach of SQL queries to join billions of records across multiple targeting dimensions is extremely slow. As a workaround, many applications will have an offline process to crunch these numbers and present the results after many hours. In our case, the solution was an offline process taking 24 hours to onboard a customer resulting in a potential loss of business. To solve this problem, we have built a new real-time prediction system using MinHash and HyperLogLog (HLL) data sketches to compute the device reach at runtime when a user makes a request. However, existing MinHash implementations do not solve the complex problem of multilevel aggregation and intersection. This work will show how we have solved this problem, in addition, we have improved MinHash algorithm to run 4 times faster using Single Instruction Multiple Data (SIMD) vectorized operations for high speed and accuracy with constant space to process billions of records. Finally, by experiments, we prove that the results are as accurate as traditional offline prediction system with an acceptable error rate of 5%.
title Real-Time Device Reach Forecasting Using HLL and MinHash Data Sketches
topic Databases
Artificial Intelligence
Machine Learning
60G25
I.5.3
url https://arxiv.org/abs/2502.14785