Communication complexity of document exchange

Graham Cormode, Mike Paterson, Süleyman Cenk Sahinalp, Uzi Vishkin

Introduction

The "Document Exchange" problem is a fundamental challenge in theoretical computer science: how can two parties synchronize similar files while minimizing the number of bits transmitted? This problem, explored by Cormode, Paterson, Sahinalp, and Vishkin, has significant implications for distributed systems, data compression, and bioinformatics.

Problem Definition

Consider two users, Alice and Bob, holding versions $x$ and $y$ of a document, respectively. Alice intends to send her version to Bob. If the documents are entirely distinct, the entire file must be transmitted. However, if they are similar—for instance, if Bob possesses an earlier draft—communication should ideally be restricted to the "differences" between the two versions.

While metrics like Hamming distance (measuring bit-flips) are straightforward, real-world synchronization often involves Edit distance (insertions and deletions) and block moves (rearranging segments of text). Traditional methods for handling these complex edits are often communication-heavy or computationally expensive. This research seeks protocols that minimize bit exchange, communication rounds, and internal processing time.

Methodology

The authors propose a two-stage framework for efficient document exchange:

1. Distance Estimation

Before Alice can determine the necessary volume of information to send, Bob must estimate the distance between their files. The researchers developed randomized "signatures"—small hashes—that allow Bob to estimate the distance between $x$ and $y$ using only $O(\log n)$ bits.

2. The Histogram Transformation

A primary contribution of this work is the "histogram transformation." To address complex edits like block moves, the authors introduce a mapping that converts a string into a high-dimensional integer vector (a histogram of "cores" or substrings). This ensures that the distance between the original strings correlates closely with the $L_1$ (Manhattan) distance between their respective vectors.

3. Error-Correcting Codes and Hypergraph Coloring

Following distance estimation, Alice transmits a deterministic "ID" for her string. Utilizing techniques from hypergraph coloring, the authors demonstrate that Alice can send a remarkably short ID, enabling Bob to uniquely identify $x$ from the set of possible strings within the "neighborhood" of his string $y$.

4. Divide-and-Conquer Protocols

For practical applications, the paper provides simpler protocols using fingerprints (hashes) to recursively identify differences. This approach mirrors the functionality of tools like rsync but provides stronger theoretical guarantees across various distance metrics.

Key Insights

  • The LZ Metric: The authors introduce a metric based on Lempel-Ziv compression. Unlike standard edit distance, this metric accounts for "copy-paste" operations, reflecting human editing patterns and biological sequence evolution more accurately.
  • Metric Embedding: Embedding a difficult metric (like Edit distance) into a simpler one (like $L_1$) allows researchers to apply well-understood vector space tools to complex string problems.
  • Logarithmic Signatures: The study shows that a highly accurate estimate of total errors can be obtained by examining a logarithmic-sized slice of the data's parity.

Results and Performance

The proposed protocols achieve near-optimality across several metrics:

  • Hamming Distance: Communication cost is $O(d \log n)$ bits (where $d$ is the distance), which is asymptotically optimal.
  • Edit/LZ Distance: For these complex metrics, the authors achieve communication costs of $O(d \log^2 n)$ or $O(d \log n \log^* n)$, significantly improving upon previous benchmarks.
  • The "Twice-Optimal" Bound: They prove that for a broad class of metrics, a single-message protocol can be designed with a cost at most twice the theoretical lower bound.

Limitations and Future Directions

Despite the communication efficiency, the most optimal protocols rely on hypergraph coloring and optimal LZ parsings, which are computationally intensive or NP-hard. Reducing the computational overhead while maintaining communication efficiency remains an open challenge. Additionally, while asymptotic bounds are strong, the constant factors in the histogram transformation may impact performance on smaller datasets. Future work may also focus on extending these techniques to larger alphabets beyond binary strings.

Summary updated

BibTeX
@inproceedings{cormode2000communication,
  author = {Graham Cormode and Mike Paterson and Süleyman Cenk Sahinalp and Uzi Vishkin},
  title = {{Communication complexity of document exchange}},
  booktitle = {SODA},
  year = {2000},
}
Figure