On Model Coding for Distributed Inference and Transmission in Mobile Edge Computing Systems

Jingjing Zhang, Osvaldo SimeoneIEEE Communications Letters 2019 · DOI

TL;DR

This paper tackles the challenge of efficiently performing linear inference tasks in mobile edge computing (MEC) systems where the model itself is distributed across multiple edge nodes (ENs). By introducing "model coding," the authors demonstrate a way to reduce the combined computation and communication latency, offering a novel approach to balance these critical trade-offs in MEC.

What Problem Does This Paper Address?

Mobile edge computing (MEC) promises to bring computation closer to users, enabling faster and more responsive applications. A key scenario involves users wanting to perform linear inference (like recommendation systems or similarity searches) using a large model distributed across multiple edge nodes (ENs). The challenge arises from two main sources: the time it takes for ENs to compute the inference results (computation latency) and the time it takes to send these results back to the users (communication latency). Furthermore, ENs have varying computing speeds and can transmit results cooperatively, adding complexity. Traditional approaches often treat computation and communication separately or assume perfect synchronization, which isn't realistic. This paper addresses the need for a unified approach that jointly optimizes model storage, computation, and communication in a distributed MEC setting, specifically when the model itself is distributed.

Methods

The authors propose and analyze three strategies for handling distributed linear inference in MEC:

  • Uncoded Storage and Computing (UC): This is a baseline approach where each EN stores a portion of the model matrix directly. Computations are performed, and then results are sent back to users. Cooperation is leveraged during downlink transmission.
  • MDS Coded Storage and Computing (MC): Here, the model matrix is encoded using Maximum Distance Separable (MDS) codes. This provides robustness against "straggler" ENs (those that are slower to compute). However, it limits cooperation opportunities during downlink.
  • Hybrid Scheme (HS): This novel approach aims to combine the benefits of both UC and MC. It uses MDS coding for robustness and then applies a repetition code to enable cooperative downlink transmission. By tuning parameters of the MDS and repetition codes, the scheme can trade off computation and communication latency.

The analysis is information-theoretic, focusing on minimizing the total normalized latency, which is a combination of normalized computation and communication delays.

Datasets

Not discussed in the paper. The paper focuses on a theoretical framework and numerical examples rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Model Coding is Key: Distributing the model itself across ENs, rather than just the data, presents unique challenges and opportunities. Coding the model information before storage at ENs can significantly reduce overall latency.
  • The Computation-Communication Trade-off: There's an inherent tension between minimizing computation time and communication time. Strategies that excel at one often suffer in the other.
  • MDS Codes for Robustness, Not Cooperation: MDS codes are excellent for handling unreliable or slow ENs (stragglers) by ensuring that results can still be reconstructed even if some ENs fail to complete their tasks. However, this coding scheme inherently limits the ability of ENs to cooperate in transmitting results.
  • Hybrid Scheme: The Best of Both Worlds? The proposed hybrid scheme cleverly balances the robustness of MDS coding with the cooperative transmission benefits of uncoded strategies. By adjusting coding parameters, it can adapt to different system conditions and latency priorities.
  • Stragglers Matter: The variability in EN computing times (stragglers) significantly impacts performance. Strategies that are robust to stragglers (like MDS coding) can outperform simpler methods when this variability is high.

Key Results

The paper presents theoretical latency expressions for the three schemes (UC, MC, HS) and illustrates their performance through numerical examples.

  • UC vs. MC: In scenarios with high variability in EN computing times (low $\eta$), MDS coding (MC) generally outperforms Uncoded (UC) due to its straggler robustness. However, when ENs are more predictable (high $\eta$) or when communication latency dominates (high $\gamma$), UC can perform better, especially if cooperative transmission is effective.
  • Hybrid Scheme Performance: The hybrid scheme (HS) is shown to be effective in trading off computation and communication latencies. It can outperform both UC and MC across a range of parameters, demonstrating its flexibility. For instance, by increasing parameters that enhance robustness (like $q$ and $p_2$), the scheme can reduce communication latency at the cost of increased computation latency.

Limitations and Future Work

  • Limitations:
    • The analysis assumes a specific type of linear inference operation.
  • The paper focuses on a simplified model where ENs receive all user data simultaneously and the model matrix is static.
  • The current hybrid scheme's design parameters are assumed to be constant for long periods, which might not hold in dynamic environments.
  • Future Work:
    • Investigating hybrid strategies that generalize UC and MC by optimizing the scheduling matrix more dynamically.
  • Exploring coding schemes that can leverage partial computations from ENs.
  • Developing transmission strategies that allow for simultaneous edge computing and downlink communication.
  • Examining the impact of partial uplink connectivity.
  • Accommodating an arbitrary number of computing tasks.

Summary updated

BibTeX
@article{zhang2019model,
  author = {Jingjing Zhang and Osvaldo Simeone},
  title = {{On Model Coding for Distributed Inference and Transmission in Mobile Edge Computing Systems}},
  journal = {IEEE Communications Letters},
  year = {2019},
  doi = {10.1109/lcomm.2019.2911496},
}
Figure