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

RECIPE: Rateless Erasure Codes Induced by Protocol-Based Encoding

Jingfan Meng, Ziheng Liu, Yiwei Wang, Jun Xu · DOI

TL;DR

Researchers from Georgia Tech and the University of Utah have introduced RECIPE, a framework for designing distributed Luby Transform (LT) codes. By identifying the mathematical constraints that make a code "feasible" for stateless network switches, they developed new encoding protocols and search algorithms that outperform the current state-of-the-art in network path tracing by up to 66%.

What Problem Does This Paper Address?

Rateless Erasure Codes (RECs), specifically LT codes, are a staple of modern data transmission. Usually, a single centralized encoder has all the data and mixes it into "codewords" that a receiver can eventually decode. However, in modern data centers, we often need distributed encoding.

Imagine a packet traveling through a network. Each switch it passes wants to "stamp" its ID onto the packet so that the destination can reconstruct the entire path. This is called path tracing. The challenge? Switches are "stateless" and "weightless"—they don't know how long the total path is, they don't know what the other switches did, and they have only a few microseconds to make a decision.

Previous attempts (like the PINT protocol) were functional but inefficient. This paper asks: What are the fundamental limits of LT codes in this distributed setting, and how can we find the most efficient ones?

Methods

The authors break their solution into three parts:

  1. The Feasibility Condition: They prove that not every LT code can be generated in a distributed, hop-by-hop manner. They provide a necessary and sufficient linear constraint (Theorem 4.1) that a sequence of XOR degree distributions must satisfy to be "realizable" by stateless encoders.
  2. The RECIPE Protocols:
    • RECIPE-d (Degree-Based): A protocol where each switch looks at the current "XOR degree" (how many IDs are already mixed in) and chooses to Add its ID, Skip, or Replace the current value based on a precomputed Action Probability Array (APA).
  3. RECIPE-t (Table-Based): A streamlined version that uses a small precomputed table (~1MB) and global hashing to simulate the encoding process without needing to carry the XOR degree in the packet header, saving precious bandwidth.
  4. Heuristic Search Algorithms: Since the space of feasible codes is massive, they proposed two algorithms to find the "good" ones:
  5. HRS (Heuristic Reversed Search): A greedy backward search that works well for shorter paths.
  6. QPS (Quadratic Programming Search): A more sophisticated method that searches for "invariant" codes, making it much faster and more effective for long network paths (over 100 hops).

Datasets

The authors evaluated their codes using path lengths ($K$) derived from real-world network topologies:

  • US Carrier dataset: $K = 36$.
  • Kentucky Datalink dataset: $K = 59$.
  • Fragmented IDs: They also tested $K = 118$ and $K = 236$ to simulate scenarios where switch IDs are split into multiple message blocks.

Key Insights and Ideas

  • Statelessness as a Filter: The requirement that a switch must perform the same logic regardless of the total path length acts as a mathematical filter, restricting the family of usable LT codes to a specific "polytope" of possibilities.
  • The "Shifted Soliton": During their research, the authors "accidentally" discovered that a cyclic shift of the classic Ideal Soliton distribution is both feasible and highly efficient in distributed settings. This insight led to the development of their more rigorous QPS algorithm.
  • Concatenation is Key: A distributed code isn't just one distribution; it’s a sequence. For a code to be good, it must be efficient at every possible path length, because a switch doesn't know if it is the 5th hop or the 50th hop.

Key Results

  • Massive Efficiency Gains: RECIPE codes (specifically those found via QPS and HRS) consistently outperformed the state-of-the-art PINT protocol. In some scenarios, RECIPE required 32% to 66% fewer packets to successfully decode the path.
  • Scalability: While previous methods struggled as path lengths grew, the QPS-discovered codes remained highly efficient even at 236 hops.
  • Low Overhead: The RECIPE-t protocol achieves nearly identical performance to the theoretical ideal while requiring less than 1MB of storage on the switch, making it highly practical for real-world hardware implementation.

Limitations and Future Work

  • Inherited Inefficiency: The HRS algorithm searches backward from the last hop. If the last hop's distribution is slightly inefficient, that "error" propagates backward, making it less effective for very long paths compared to QPS.
  • Worst-Case vs. Average-Case: Most of the optimization in this paper focuses on the average number of packets needed for decoding. The authors note that optimizing for the "worst-case" (e.g., the 99th percentile) remains an open challenge.
  • First-Order Approximation: The QPS algorithm currently uses a first-order approximation for decoding probability. While adding second-order terms improves efficiency by about 5%, it more than doubles the computational time for the search.

Reference: Meng, J., Liu, Z., Wang, Y., & Xu, J. (2023). RECIPE: Rateless Erasure Codes Induced by Protocol-Based Encoding. arXiv:2305.03795v2 [cs.IT].

Summary updated

BibTeX
@misc{meng2023recipe,
  author = {Jingfan Meng and Ziheng Liu and Yiwei Wang and Jun Xu},
  title = {{RECIPE: Rateless Erasure Codes Induced by Protocol-Based Encoding}},
  year = {2023},
  eprint = {2305.03795},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.03795},
}

Loading related content...

Figure