Securely Aggregated Coded Matrix Inversion

Neophytos Charalambides, Mert Pilanci, Alfred Hero

TL;DR

This paper introduces the Coded Matrix Inversion Method (CMIM), a distributed framework that approximates the inverse of an aggregated data matrix across a decentralized network. By reframing matrix inversion as a column-by-column optimization problem and applying Balanced Reed-Solomon (BRS) erasure codes, the method successfully mitigates the impact of slow ("straggling") worker nodes. Crucially, it achieves this while keeping the raw data completely hidden from the central coordinator and secure against network eavesdroppers.

What Problem Does This Paper Address?

Inverting a large matrix is a fundamental but computationally grueling operation ($O(N^3)$ via standard Gaussian elimination) underlying many machine learning and signal processing algorithms. To scale up, we often distribute computations across multiple machines. However, distributed environments introduce two major headaches:

  1. Stragglers: In any large network, some worker nodes will be slow or unresponsive due to network congestion or hardware issues, bottlenecking the entire process.
  2. Privacy and Security: In modern paradigms like Federated Learning (FL), local data cannot simply be shipped to a central server due to privacy mandates and eavesdropping risks.

While "coded computing" techniques (using error-correcting codes to inject redundant computations) have successfully tackled linear distributed tasks like matrix multiplication, matrix inversion is notoriously difficult. Because inversion is a non-linear and non-parallelizable operator, standard coding techniques fail. This paper addresses the challenge of performing secure, straggler-resilient matrix inversion when data is inherently distributed across multiple clients.

Methods

The authors overcome the non-linearity of matrix inversion by transforming it into a distributed optimization problem. Instead of directly inverting the matrix $A$, they solve $N$ independent least-squares problems to estimate the columns of $A^{-1}$ one-by-one using iterative solvers like Steepest Descent (SD) or Conjugate Gradient (CG).

To protect against stragglers and secure the data, the framework operates in four distinct phases:

  • Parameter Sharing: The central coordinator shares finite field interpolation points with the clients.
  • Secure Data Exchange: Clients partition and encrypt their local data blocks using a modified Lagrange interpolation polynomial combined with a pseudorandom permutation. They broadcast these encrypted blocks to each other so every client can securely reconstruct the global aggregated matrix $A$. The encryption ensures that outside eavesdroppers and the central coordinator learn absolutely nothing about the raw data.
  • Coded Computation: The clients' servers act as workers, solving their assigned least-squares tasks. Once completed, they linearly encode their results using a Balanced Reed-Solomon (BRS) code generator matrix before sending them back to the coordinator.
  • Decoding: Once a minimum threshold of responsive workers is met, the coordinator efficiently decodes the results to recover the approximate inverse matrix.

Datasets

The authors evaluated their approach using two main data sources:

  • Synthetic Gaussian Matrices: Randomly generated matrices ($A \sim 50 \cdot \mathcal{N}(0,1)$ of size $100 \times 100$) were used to mathematically verify the derived error bounds and convergence rates.
  • MNIST Dataset: The classic handwritten digits dataset was used to test a practical application. Specifically, the authors applied their matrix inversion algorithm within Newton's method to solve a regularized logistic regression problem classifying the digits 4 and 9.

Key Insights and Ideas

  • Inversion as Optimization: The core "aha moment" is realizing that while you cannot linearly encode a matrix before inverting it, you can distribute the optimization process of finding its inverse columns and linearly encode the resulting gradient/optimization steps.
  • Necessary Privacy Relaxation: In standard Federated Learning, workers never share data with each other. However, the authors mathematically demonstrate that full global knowledge of $A$ is unavoidable for accurate matrix inversion. Their clever workaround is to allow client-to-client sharing via secure Lagrange-based encryption, bypassing the coordinator entirely and maintaining strict server-blind privacy.
  • The Power of BRS Codes: By choosing Balanced Reed-Solomon codes, the framework ensures an equal computational load across homogeneous workers, minimizes the communication payload sent back to the master, and keeps the coordinator's decoding step incredibly fast and cheap.

Key Results

The paper provides strict mathematical error bounds for both the Steepest Descent and Conjugate Gradient implementations.

Experimentally, the approximation error drops off exponentially as the termination criteria ($\epsilon$) becomes stricter. As seen in the authors' evaluation of the Steepest Descent approach, the average error scales predictably with $\epsilon$:

Average $A^{-1}$ errors for Steepest Descent

When integrated into Newton's method for MNIST image classification ($N=785$), the Conjugate Gradient variant converged remarkably fast. It required no more than 18 iterations per column estimate to match the exact accuracy of a traditional, non-distributed exact matrix inversion.

Limitations and Future Work

  • Storage Bottleneck: To perform the column-by-column estimation, every single worker node must store the entire aggregated matrix $A$ ($N^2$ symbols). For massive, high-dimensional datasets, this creates a severe storage overhead.
  • Client Trust: The model assumes clients are willing to share encrypted data among themselves. While secure against the coordinator and eavesdroppers, a fully malicious client inside the network remains a threat vector.

To mitigate these limitations, the authors suggest exploring fully homomorphic encryption in future iterations to eliminate the need for clients to reconstruct each other's data entirely. They also plan to investigate alternative, numerically stable generator matrices (like circulant permutation matrices) and look into incorporating sparse Gaussian elimination techniques to further reduce computational complexity.

Summary updated

BibTeX
@article{charalambides2023securely,
  author = {Neophytos Charalambides and Mert Pilanci and Alfred Hero},
  title = {{Securely Aggregated Coded Matrix Inversion}},
  journal = {IEEE J. Sel. Areas Inf. Theory},
  year = {2023},
  doi = {10.1109/jsait.2023.3312233},
}
Figure