Deterministic Document Exchange Protocols and Almost Optimal Binary Codes for Edit Errors

Kuan Cheng, Zhengzhong Jin, Xin Li, Ke WuJ. ACM 2018 · DOI

TL;DR

This paper introduces novel deterministic protocols for document exchange and new binary codes for correcting edit errors (insertions and deletions). The key contribution is achieving near-optimal redundancy for both problems, significantly improving upon previous constructions and bringing them closer to theoretical bounds. This work has implications for efficient data synchronization and reliable data transmission in the presence of errors.

What Problem Does This Paper Address?

The paper tackles two fundamental problems in theoretical computer science related to handling "edit errors" – insertions and deletions – which are common in data transmission, storage, and synchronization.

  1. Document Exchange: Imagine two parties, Alice and Bob, each possessing a version of a document (represented as strings). Their versions differ by a known maximum number of insertions and deletions (edit distance $k$). Alice wants to send a small "sketch" of her document to Bob, such that Bob can reconstruct Alice's document using only his version and Alice's sketch. The goal is to minimize the size of this sketch.
  2. Error Correcting Codes (ECC) for Edit Errors: This is a generalization of classical error correction. Alice wants to send a message to Bob over a noisy channel that can introduce insertions and deletions. The challenge is to design codes that allow Bob to recover the original message even after these errors occur, while minimizing the number of redundant bits added to the message.

For both problems, theoretical optimal bounds exist, suggesting that the required sketch size or redundancy should be around $O(k \log n)$ or $O(k \log^2 n)$ for certain error regimes. However, prior deterministic constructions fell far short of these bounds, especially for binary codes, leaving a significant gap between theory and practice.

Methods

The authors introduce several new techniques, notably:

  • $\epsilon$-Self-Matching Hash Functions: These are hash functions designed to have a specific property: when matching substrings of a string against itself, the number of "bad" matches (where the hash values match but the substrings don't) is limited. This property is crucial for efficiently comparing strings and identifying differences.
  • $\epsilon$-Synchronization Hash Functions: A stronger version of self-matching hash functions, these are designed to ensure that even when comparing different parts of a string, the number of mismatches is controlled. This is achieved by combining hash functions for large intervals with those for smaller intervals, leveraging properties of uniform random strings and expander graphs.
  • Derandomization Techniques: The paper builds upon randomized protocols and uses techniques like almost k-wise independent hash functions and random walks on expander graphs to deterministically construct the required hash functions and protocols.
  • Iterative Refinement: Both the document exchange protocol and the ECC construction employ a multi-stage approach. Information is processed in levels, with each level refining the understanding of the data and reducing the uncertainty about errors.
  • Combining Techniques: The document exchange protocol is used as a building block for constructing the error-correcting codes.

Datasets

Not discussed in the paper. The paper focuses on theoretical constructions and algorithms rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Hash Functions as a Bridge: The core insight is how carefully designed hash functions ($\epsilon$-self-matching and $\epsilon$-synchronization) can effectively "fingerprint" string segments, allowing for efficient comparison and error detection even with insertions and deletions.
  • Deterministic Constructions are Achievable: The paper demonstrates that near-optimal deterministic solutions for document exchange and binary insdel codes are possible, overcoming the limitations of previous randomized or less efficient deterministic approaches.
  • Leveraging Uniform Randomness: The techniques for constructing hash functions and protocols often rely on properties of uniform random strings, which are then "simulated" for arbitrary strings using pseudorandom generators.
  • Iterative Processing for Efficiency: Breaking down the problem into multiple levels or stages allows for managing complexity and achieving better redundancy bounds.

Key Results

The paper presents significant improvements in both theoretical bounds and explicit constructions:

  • Deterministic Document Exchange: An efficient deterministic protocol with communication complexity (sketch size) of $O(k \log^2 n)$, a substantial improvement over the previous $O(k^2 + k \log^2 n)$. This protocol is effective for a wider range of error parameters $k$.
  • Binary Insdel Codes (Fractional Errors): An explicit family of binary codes that can correct an $\epsilon$ fraction of edit errors with a rate of $1 - O(\epsilon \log^2 \frac{1}{\epsilon})$. This is optimal up to an $O(\log \frac{1}{\epsilon})$ factor and significantly improves upon previous rates of $1 - O(\sqrt{\epsilon})$.
  • Binary Insdel Codes (Fixed Errors):
    • An explicit code with redundancy $O(k \log^2 n)$ for correcting $k$ errors, which is optimal for $k \le n/4$.
  • An explicit code with redundancy $O(k \log n)$ for correcting $k$ errors, which is asymptotically optimal for $k \le n^{1-\alpha}$ for any constant $\alpha > 0$. This is the first explicit construction to achieve optimal redundancy for such a wide range of $k$.

All constructions are shown to run in polynomial time.

Limitations and Future Work

  • Alphabet Size: While the paper focuses on binary codes, extensions to larger alphabets are mentioned but not detailed.
  • Constant Factors: The paper achieves near-optimal bounds, but constant factors in the complexity might still be large.
  • Open Problems: The authors suggest that achieving optimal deterministic document exchange protocols and binary insdel codes for all error parameters remains an open challenge. Further research could explore achieving the absolute theoretical optimum for all cases and potentially simplifying the presented techniques.

Summary updated

BibTeX
@article{cheng2018deterministic,
  author = {Kuan Cheng and Zhengzhong Jin and Xin Li and Ke Wu},
  title = {{Deterministic Document Exchange Protocols and Almost Optimal Binary Codes for Edit Errors}},
  journal = {J. ACM},
  year = {2018},
  doi = {10.1145/3561046},
}
Figure