Abstract
Factoring a matrix into two low rank matrices is at the heart of many problems. The problem of matrix completion especially uses it to decompose a sparse matrix into two non sparse, low rank matrices which can then be used to predict unknown entries of the original matrix. We present a scalable and decentralized approach in which instead of learning two factors for the original input matrix, we decompose the original matrix into a grid blocks, each of whose factors can be individually learned just by communicating (gossiping) with neighboring blocks. This eliminates any need for a central server. We show that our algorithm performs well on both synthetic and real datasets.
Introduction
Matrix completion is a fundamental task in modern recommendation systems, where the goal is to predict missing user-item ratings within a massive, sparse matrix. Traditionally, this is achieved through low-rank matrix factorization, decomposing a matrix $X$ into factors $U$ and $W$. While effective, standard parallel implementations often rely on a central server for synchronization, creating communication bottlenecks and potential privacy risks. Existing decentralized alternatives typically employ one-dimensional decomposition (by rows or columns), which limits parallelization potential as datasets scale.
Methodology: 2D Grid Decomposition and Gossip
This paper proposes a fully decentralized approach using a two-dimensional grid decomposition. The input matrix $X$ is divided into a $p \times q$ grid of blocks. Each block $(i, j)$ maintains its own local low-rank factors, $U_{ij}$ and $W_{ij}$.
The Gossip Protocol
To ensure local factors converge toward a global solution, the algorithm employs a gossip protocol. Blocks communicate with immediate neighbors to reach a consensus:
- Row-wise gossip is used to synchronize $U$ factors.
- Column-wise gossip is used to synchronize $W$ factors.
The optimization process utilizes Stochastic Gradient Descent (SGD) applied to specific "structures" ($S^{upper}$ and $S^{lower}$). As shown in Figure 1, these structures consist of three adjacent blocks that act as independent computational units. By minimizing a cost function that balances local reconstruction accuracy with neighbor consensus, the system achieves global convergence without a master node.
Normalization
Because the grid structure is finite, blocks located in the center participate in more overlapping structures than those on the edges or corners. This leads to an imbalance in the frequency of updates per block.
To address this, the authors introduce a normalization coefficient. This ensures that every block exerts an equal influence on the final global factorization, regardless of its spatial position in the grid.
Experimental Results
The proposed method was evaluated on synthetic data and real-world benchmarks, including MovieLens (1M, 10M, 20M) and the Netflix dataset.
- Convergence: On synthetic datasets, the gossip-based approach successfully reduced the cost function by 7 to 10 orders of magnitude, demonstrating that local peer-to-peer communication can effectively drive global convergence.
- Accuracy and Scalability: On MovieLens 20M, the Root Mean Squared Error (RMSE) remained stable (between 0.93 and 1.05) even as the grid density increased from $2 \times 2$ to $10 \times 10$. This indicates that the algorithm maintains predictive performance while allowing for high-granularity parallelization.
Conclusion and Future Work
By breaking the 1D decomposition barrier, this work enables finer-grained parallelization for matrix completion. The removal of a central server enhances privacy and eliminates a single point of failure. Future research will focus on optimizing the communication overhead inherent in gossip protocols and implementing the system in a truly distributed environment to benchmark real-world network performance.
Summary updated