Rateless Codes for Low-Latency Distributed Inference in Mobile Edge Computing

Anton Frigård, Siddhartha Kumar, Eirik Rosnes, Alexandre Graell i AmatarXiv 2021

Introduction

In the evolving landscape of Mobile Edge Computing (MEC), resource-constrained devices often offload computationally intensive tasks, such as machine learning inference, to servers located at the network edge. While this paradigm promises reduced local energy consumption and faster processing, it introduces two significant bottlenecks: the "straggler" problem, where lagging servers delay the entire computation, and the "coding latency" trap, where the overhead of error-correction codes negates the speed gains of distributed processing.

Researchers from Simula UiB and Chalmers University of Technology have proposed a novel solution to these challenges. Their approach, the Rateless Irregular-Repetition (Rateless-IR) scheme, leverages the properties of rateless codes and spatial diversity to achieve high-performance distributed matrix-vector inference ($Wx$) with minimal latency.

System Architecture

The proposed system model involves a set of users and edge nodes (ENs) collaborating to perform inference tasks. The process is structured into four primary stages, as illustrated in Figure 1.

Overview of the distributed inference system model using erasure-correcting codes across edge nodes (ENs) and users.
  1. Data Transmission: Users send their data vectors $X = [x_1, \dots, x_u]$ to the edge nodes.
  2. Distributed Computation: The edge nodes compute fractions of the product $CX$, where $C$ is an encoded version of the model matrix $W$.
  3. Result Return: Edge nodes send partial results back to the users.
  4. Decoding and Recovery: Users (or the edge nodes themselves) recover the final result $WX$ by decoding the received symbols.

The Rateless-IR Scheme

The core innovation of this work lies in combining Luby-Transform (LT) codes with an irregular repetition strategy.

Rateless (LT) Codes

Traditional distributed computing often relies on fixed-rate Maximum Distance Separable (MDS) codes. While optimal for redundancy, MDS codes require a specific number of subtasks to be completed entirely before decoding can begin. In contrast, LT codes are "rateless," meaning they can generate a continuous stream of encoded symbols. This allows the system to treat computation as a fluid process; as soon as enough symbols are collected from any combination of servers—even partial results from stragglers—the final result can be reconstructed.

Irregular Repetition and Inactivation Decoding

To further optimize the system, the authors employ an irregular repetition pattern for task assignment. This creates spatial diversity, enabling edge nodes to use cooperative zero-forcing precoding to transmit results to multiple users simultaneously, significantly reducing communication overhead.

Furthermore, the scheme utilizes inactivation decoding, a maximum likelihood algorithm that is substantially faster than the standard peeling decoders used for LT codes. This addresses the "coding latency" trap by ensuring that the time spent decoding does not outweigh the time saved during computation.

Performance and Results

The researchers evaluated the Rateless-IR scheme through simulations in a typical MEC environment with 5 edge nodes and 10 users. The results demonstrate a clear advantage over existing methods:

  • Latency Reduction: For a matrix size of $k=7000$, the Rateless-IR scheme achieved a 35% reduction in latency compared to state-of-the-art MDS-Repetition methods. This gain increased to 48% as the matrix size grew to $k=15000$.
  • Efficiency: The performance of the proposed scheme closely tracks the theoretical lower bound, indicating near-optimal resource utilization.
  • Offloading Benefits: The study found that offloading the decoding step to the more powerful edge nodes can provide up to a 50% speedup compared to local computation on user devices for sufficiently large tasks.

Conclusion and Future Directions

The Rateless-IR scheme represents a significant step forward in making distributed inference practical for real-time mobile applications. By treating partial results as valuable and optimizing the decoding process, it effectively mitigates the impact of stragglers and communication bottlenecks.

While currently focused on linear operations ($Wx$), future work could extend these rateless strategies to handle non-linear activation functions in deep neural networks. Additionally, exploring the scheme's performance in dynamic environments with frequent model updates or multi-hop network topologies remains an open area for research.

Summary updated

BibTeX
@misc{frigard2021rateless,
  author = {Anton Frigård and Siddhartha Kumar and Eirik Rosnes and Alexandre Graell i Amat},
  title = {{Rateless Codes for Low-Latency Distributed Inference in Mobile Edge Computing}},
  year = {2021},
  eprint = {2108.07675},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.07675},
}
Figure