Coloring in Graph Streams via Deterministic and Adversarially Robust Algorithms

Sepehr Assadi, Amit Chakrabarti, Prantar Ghosh, Manuel Stoeckl

TL;DR

This paper makes significant strides in graph coloring for the streaming model, where memory is limited and edges arrive one by one. The authors present the first deterministic semi-streaming algorithm to achieve the combinatorially optimal $(\Delta + 1)$-coloring using only a small number of passes, and they provide a new "adversarially robust" algorithm that significantly reduces the number of colors needed when the input stream is adaptively generated by an opponent.

What Problem Does This Paper Address?

Graph coloring—assigning colors to vertices so no two neighbors share the same color—is a cornerstone of computer science with applications ranging from register allocation in compilers to scheduling. In the "streaming" model, we deal with massive graphs that don't fit in memory. We can only store a "semi-streaming" amount of data (roughly proportional to the number of vertices $n$, but much less than the number of edges $m$).

While randomized algorithms for $(\Delta + 1)$-coloring (where $\Delta$ is the maximum degree) are well-understood, they often fail if the input stream is "adversarial"—meaning the next edges to arrive are chosen based on the algorithm's previous outputs. Furthermore, deterministic algorithms (which don't use randomness) were previously thought to be much weaker in this setting. This paper aims to close the gap between what is possible with simple randomization and what can be achieved deterministically or robustly.

Methods

The paper introduces two distinct algorithmic frameworks:

  1. Deterministic Multi-pass Algorithm: Inspired by distributed computing (specifically the CONGEST model), the authors organize their algorithm into epochs and stages.
  2. They define a "potential function" based on slack—a lower bound on the number of available colors for a vertex.
  3. In each stage, they use space-efficient derandomization via 2-independent hash functions to "whittle down" the set of candidate colors for each vertex without creating too many conflicts.
  4. By the end of an epoch, they find a large independent set of vertices that can be safely colored, shrinking the set of uncolored vertices by a constant fraction.
  5. Adversarially Robust Single-pass Algorithm: To handle an adaptive adversary in a single pass, the authors use a sketching technique.
  6. They maintain multiple parallel "sketches" that store edges only if they are monochromatic under a specific random coloring function.
  7. Vertices are categorized into levels (based on total degree) and zones (fast or slow, based on how quickly their degree grows in a local buffer).
  8. By carefully managing which edges are stored in which sketch, they ensure that even if an adversary tries to "trick" the algorithm based on past colors, the algorithm has stored enough of the graph's structure to produce a valid coloring.

Datasets

As a theoretical computer science paper, this work does not use empirical datasets or training benchmarks. Instead, the results are established through rigorous mathematical proofs of time and space complexity bounds.

Key Insights and Ideas

  • The Power of "Slack": The authors show that you don't need to know exactly which colors your neighbors have used. Storing a linear "slack" value (an upper bound on used colors) is enough to guide a deterministic algorithm, and it's much cheaper to store in a stream.
  • Distributed to Streaming Pipeline: A major "aha moment" is the adaptation of the Ghaffari-Kuhn distributed coloring algorithm to the streaming setting. The authors successfully translated "rounds of communication" into "streaming passes" by carefully tuning parameters to fit memory constraints.
  • Independence from Randomness: For the robust algorithm, the key insight is ensuring that the edges stored in a particular "sketch" are independent of the random bits used to color the vertices incident to those edges up to that point. This prevents the adversary from using the algorithm's output to "hide" edges from the sketches.

Key Results

  • Deterministic Coloring: Achieves a $(\Delta + 1)$-coloring in $O(\log \Delta \log \log \Delta)$ passes using $O(n \log^2 n)$ bits of space. This is a significant improvement over the previous best, which could only achieve $O(\Delta)$-coloring in similar passes.
  • Robust Coloring: Provides an $O(\Delta^{5/2})$-coloring algorithm that is robust against adaptive adversaries. This improves upon the previous state-of-the-art $O(\Delta^3)$ bound.
  • Space/Color Tradeoff: The authors demonstrate a smooth tradeoff for robust algorithms: for example, they can achieve $O(\Delta^2)$ colors using $O(n \Delta^{1/3})$ space, or $O(\Delta^{7/4})$ colors using $O(n \Delta^{1/2})$ space.
  • Randomness Efficiency: They present an $O(\Delta^3)$ robust algorithm that remains effective even if the adversary knows the random bits used by the algorithm (Theorem 4).

Limitations and Future Work

  • Pass Complexity: While $O(\log \Delta \log \log \Delta)$ passes is small, the "holy grail" remains a deterministic $(\Delta + 1)$-coloring in a constant or even smaller number of passes.
  • The Robust Gap: There is still a gap between the lower bound for robust coloring ($\Omega(\Delta^2)$ colors) and the authors' upper bound ($O(\Delta^{5/2})$). Closing this gap—determining if $O(\Delta^2)$ is achievable in semi-streaming space—is a primary open question.
  • Random Bit Usage: The $O(\Delta^{5/2})$ algorithm requires a large number of random bits ($O(n\Delta)$). While the authors provide a more "randomness-efficient" version, it comes at the cost of using more colors ($O(\Delta^3)$). Finding an algorithm that is both color-efficient and randomness-efficient is a clear next step.

Summary updated

BibTeX
@inproceedings{assadi2023coloring,
  author = {Sepehr Assadi and Amit Chakrabarti and Prantar Ghosh and Manuel Stoeckl},
  title = {{Coloring in Graph Streams via Deterministic and Adversarially Robust Algorithms}},
  booktitle = {PODS},
  year = {2023},
  doi = {10.1145/3584372.3588681},
}
Figure