NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Locally Decodable Codes with Randomized Encoding

Kuan Cheng, Xin Li, Yu ZhengarXiv 2020

Abstract

Standard Locally Decodable Codes (LDCs) suffer from a rigid trade-off between code rate and query complexity: achieving a constant rate typically requires a polynomial number of queries, while constant query complexity necessitates super-polynomial codeword length. This paper introduces a novel paradigm that breaks this bottleneck by incorporating randomization into the encoding process. By utilizing shared randomness or oblivious channels, the authors demonstrate that it is possible to achieve constant-rate codes with logarithmic or even constant query complexity, even in the presence of adversarial edit errors.

Introduction

Locally Decodable Codes (LDCs) are a fundamental primitive in coding theory, allowing a decoder to recover any specific bit of a message by querying only a small, randomly chosen subset of the received codeword. This property is essential for applications involving massive datasets, distributed storage, and private information retrieval, where reading an entire corrupted codeword is computationally or communicatively prohibitive.

Despite their utility, LDCs face a significant theoretical hurdle known as the "rate-query tradeoff." In the deterministic setting, if one desires a constant rate (where the codeword length $n$ is a constant multiple of the message length $k$), the number of queries required to recover a bit is usually $k^\epsilon$ for some constant $\epsilon > 0$. Conversely, to achieve a constant number of queries, the codeword size must grow exponentially or super-polynomially relative to the message. This paper investigates whether relaxing the requirement for deterministic encoding can circumvent these lower bounds.

Models of Randomized Encoding

The authors propose two primary models to explore the power of randomized encoding:

  1. Shared Randomness: The encoder and decoder share a private random string unknown to the adversary. This allows the two parties to coordinate their strategies to "hide" the structure of the code.
  2. Oblivious Channel: No shared secret exists. However, the adversary is "oblivious," meaning they must decide which bits to corrupt or delete before observing the specific randomized codeword produced by the encoder.

An essential theoretical contribution of the paper is the "equivalence theorem," which proves that if an adversary possesses full knowledge of the encoding randomness, randomized LDCs offer no advantage over deterministic ones. This result formally justifies the focus on shared secrets and oblivious channels as the necessary frontiers for efficiency gains.

Technical Framework

The Permutation Trick and Masking

For Hamming errors (bit flips), the core technique involves a random permutation. The encoder applies a secret permutation to the codeword bits, effectively transforming a worst-case adversarial error pattern into a random error pattern. Because random errors are significantly easier to correct than strategic adversarial ones, the decoder can succeed with far fewer queries. To ensure the adversary cannot deduce the permutation by inspecting the codeword, the encoder XORs the permuted bits with a random mask derived from the shared randomness.

Pseudorandomness for Oblivious Channels

In the absence of shared randomness, the encoder utilizes a pseudorandom permutation (PRP). The short seed required for this PRP is encoded using a small, standard LDC and embedded within the main codeword. This allows the decoder to first recover the seed and then reconstruct the permutation used during encoding.

Addressing Edit Errors

Handling insertions and deletions (edit errors) is significantly more complex than handling bit flips, as these errors shift the indices of all subsequent bits, destroying the alignment required for local decoding. The authors adapt "synchronization strings" and employ a weighted searching algorithm. This framework allows the decoder to locate the correct data blocks even when the physical "address" of a bit has been shifted by the adversary, albeit with a polylogarithmic query overhead compared to the Hamming case.

Key Results

The proposed randomized LDCs offer a dramatic improvement over the state-of-the-art for deterministic codes. The primary achievements include:

  • Constant Rate Achievement: The authors construct codes where $n = O(k)$, maintaining high storage efficiency.
  • Query Efficiency:
    • Under the Shared Randomness model with Hamming errors, the codes achieve a constant rate with only $O(\log 1/\epsilon)$ queries (where $\epsilon$ is the failure probability).
  • In the Oblivious Channel model, they achieve a constant rate with $O(\log k \log 1/\epsilon)$ queries.

Compared to the $k^\epsilon$ queries required by standard deterministic LDCs to maintain a constant rate, the transition to logarithmic or constant query complexity represents a significant theoretical leap.

Discussion and Future Work

While this work provides a new path for LDC construction, several challenges remain. The current constructions for oblivious channels do not yet account for adaptive adversaries who can observe the codeword before acting. Additionally, while the algorithms are polynomial-time, the constants involved in synchronization for edit errors are currently high, suggesting a need for more practical, streamlined constructions. Finally, the gap between codes that satisfy the authors' "homogenous property" and those that might circumvent the known-randomness lower bound remains an open area for exploration.

Summary updated

BibTeX
@misc{cheng2020locally,
  author = {Kuan Cheng and Xin Li and Yu Zheng},
  title = {{Locally Decodable Codes with Randomized Encoding}},
  year = {2020},
  eprint = {2001.03692},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.03692},
}
Figure