Learning Based Distributed Tracking

Hao Wu, Junhao Gan, Rui Zhang · DOI

Abstract

Distributed Tracking (DT) is a fundamental problem in large-scale monitoring where a coordinator tracks the aggregate sum of counters across $k$ remote players to detect when a threshold $N$ is reached. Traditional "data-independent" approaches suffer from a "pessimism tax," assuming worst-case data distributions. This paper introduces a learning-based framework that exploits the underlying data distribution to optimize communication. By assigning customized "slacks" based on learned arrival probabilities, the proposed algorithms achieve a theoretical communication cost of $O(k \log \log N)$, a significant improvement over the $O(k \log N/k)$ state-of-the-art. Empirical results on real-world datasets like World Cup logs and Uber pickup data show communication savings of up to 80%.

Introduction

In distributed systems, monitoring global properties while minimizing communication is critical. The Distributed Tracking (DT) problem involves $k$ players, each observing a stream of local events. The goal is to notify a central coordinator at the exact moment the total number of events across all players hits a threshold $N$.

The primary challenge is the "communication tax." A naive approach where every event is reported costs $O(N)$. Existing state-of-the-art algorithms, such as the CMY algorithm, use a "slack" mechanism to reduce this to $O(k \log N/k)$. However, these methods are pessimistic and do not account for the often predictable nature of real-world data distributions. This research explores whether learning these distributions can further drive down communication overhead.

The $\ell$-Notifications-to-End Framework

The authors propose a unified framework where the coordinator manages communication through "slacks" ($s_i$) assigned to each player $i$. A player only communicates with the coordinator after receiving $s_i$ local increments. A "round" in this framework concludes after the coordinator receives $\ell$ notifications.

The coordinator-player architecture and round-based tracking mechanism.

This architecture allows for flexible slack allocation. Instead of uniform slacks, the coordinator can give larger buffers to high-traffic players, significantly reducing the frequency of their reports without risking a threshold violation.

Learning-Based Algorithms

The paper introduces several algorithms tailored to different levels of distribution knowledge:

  1. StcSlk-KwnDst & DynSlk-KwnDst: These assume the arrival probabilities ($\mu_i$) are known. They use Bernstein concentration inequalities to set slacks that maximize the interval between communications while maintaining high probability that the threshold isn't exceeded prematurely.
  2. StcSlk-LrnDst & DynSlk-LrnDst: These are practical variants that learn the distribution on the fly. The first round of tracking serves as a sampling phase to estimate $\mu_i$.

To ensure robustness, the system includes a backup heuristic. If the observed data deviates significantly from the learned model (indicating an unstable distribution), the algorithm reverts to the robust, data-independent CMY method.

Experimental Results

The algorithms were tested on diverse datasets, including 1998 World Cup HTTP logs, Dartmouth SNMP traces, and NYC Uber pickup data.

Performance comparison of different tracking algorithms on the World Cup Day 90 dataset.

As shown in the experimental results, the learning-based approaches consistently outperform uniform slack strategies. In many scenarios, the communication cost was reduced to just 20% of the previous state-of-the-art. The theoretical bound of $O(k \log \log N)$ was also empirically supported, showing that as the threshold $N$ increases, the efficiency gains of the learning-based approach become even more pronounced relative to older methods.

Conclusion

By moving from worst-case assumptions to a learning-based paradigm, this work significantly advances the efficiency of distributed tracking. The $O(k \log \log N)$ bound represents a major theoretical milestone. Future work may extend this philosophy to more complex distributed monitoring tasks, such as tracking frequency moments or functional queries over data streams.

Summary updated

BibTeX
@inproceedings{wu2020learning,
  author = {Hao Wu and Junhao Gan and Rui Zhang},
  title = {{Learning Based Distributed Tracking}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2020},
  doi = {10.1145/3394486.3403255},
}
Figure