Heterogeneous federated collaborative filtering using FAIR: Federated Averaging in Random Subspaces

Aditya Desai, Benjamin Meisburger, Zichang Liu, Anshumali ShrivastavaarXiv 2023 · DOI

Introduction

Recommendation systems (RS) are the silent engines of the internet, powering everything from streaming queues to e-commerce suggestions. However, as privacy regulations like GDPR tighten, the industry is shifting toward Federated Learning (FL)—a paradigm where raw data remains on user devices, and only model updates are shared with a central server.

The primary obstacle for federated recommendation is the massive size of modern models. These systems rely on embedding tables that can reach gigabytes in size, far exceeding the memory (RAM) of typical smartphones. This creates a "heterogeneity gap": if a device cannot fit the model, it cannot participate. This paper introduces FAIR (Federated Averaging in Random Subspaces), a novel approach that allows every device to join the training process regardless of its memory constraints.

The Heterogeneity Gap in Federated Recommendation

In standard Federated Learning, the server sends a global model to clients, who train it on local data and return updates. For recommendation systems, this model is typically a giant embedding table—a mathematical map of users and items.

FAIR bridges the gap between high-memory and low-memory devices, ensuring all data is utilized without sacrificing model capacity.

As illustrated above, device heterogeneity presents a lose-lose choice. One can either exclude low-memory devices (leading to data loss and demographic bias) or shrink the global model to the "lowest common denominator" (leading to model loss and poor recommendations). FAIR enables a "fair" distribution where each client contributes information proportional to its specific memory capacity, effectively utilizing the full spectrum of available data.

FAIR: Federated Averaging in Random Subspaces

FAIR leverages hashing-based random projections to bridge the gap between a large server model and small client models. The core innovation lies in creating "consistent and collapsible" subspaces.

The FAIR workflow: The server projects the full embedding table into a client-specific subspace $\psi_i$. Clients train on this compressed representation, which is then aggregated back into the global model.

The "Secret Sauce": Consistent and Collapsible Subspaces

Think of FAIR's mathematical structure like a set of Russian nesting dolls. An update from a "small" doll (low-memory device) fits perfectly inside a "medium" doll, which in turn fits inside the "large" server model.

  • Consistent: Devices with the same capacity use the same mathematical basis.
  • Collapsible: The subspace of a low-capacity device is a mathematical subset of a higher-capacity device's subspace.

How it Works

  1. Projection: The server takes the full model ($\theta$) and projects it into a smaller vector ($\psi$) sized specifically for the individual client's memory. By using hashing (e.g., ROAST or CMS methods), the projection matrices are computed $O(1)$ on-the-fly, avoiding the "memory tax" of storing large matrices.
  2. Local Training: The client trains this compressed $\psi$ on its local data. The client never needs to realize the full model; it only computes the parts it needs.
  3. Aggregation: The client sends the updated $\psi$ back. The server "unfolds" it back into the full-sized space and averages it with updates from other devices.

Key Results and Insights

The researchers evaluated FAIR on recommendation tasks (Goodreads and Amazon Product datasets) and general benchmarks (MNIST/FEMNIST).

  • Arbitrary Compression: Unlike previous methods like HETEROFL, which hit a wall at $d\times$ compression (where $d$ is the embedding dimension), FAIR allows for arbitrarily small footprints.
  • Performance Synergy: FAIR-HET (the heterogeneous version) actually performs better than training a uniform small model. High-capacity devices "lift" the performance of the whole system, sharing richer representations with the rest of the network.
  • Superior Accuracy: On the Goodreads-100 ranking task, FAIR-HET achieved an NDCG@20 of 0.276, significantly outperforming the "lowest common denominator" approach (0.208).
  • Resilience: When only 1% of devices could host a full model, traditional exclusion methods failed (NDCG of 0.037), while FAIR-HET maintained high performance (0.271).

Conclusion

FAIR provides a robust framework for training large-scale models across heterogeneous device populations. By eliminating the memory bottleneck through random subspaces, it ensures that federated learning can benefit from the data of all users, regardless of their hardware, without sacrificing model quality or privacy.

Summary updated

BibTeX
@misc{desai2023heterogeneous,
  author = {Aditya Desai and Benjamin Meisburger and Zichang Liu and Anshumali Shrivastava},
  title = {{Heterogeneous federated collaborative filtering using FAIR: Federated Averaging in Random Subspaces}},
  year = {2023},
  eprint = {2311.01722},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.01722},
}
Figure