Skip to main content
QUICK REVIEW

[Paper Review] FedCL: Federated Contrastive Learning for Privacy-Preserving Recommendation

Chuhan Wu, Fangzhao Wu|arXiv (Cornell University)|Apr 21, 2022
Privacy-Preserving Technologies in DataComputer Science9 citations
TL;DR

FedCL proposes a privacy-preserving federated contrastive learning framework for recommendation that leverages locally inferred and locally differentially private (LDP) user embeddings to identify high-quality semi-hard negative samples on a central server. By clustering perturbed embeddings via Ward clustering and using centroids for negative sampling, FedCL improves model performance while protecting user privacy, consistently boosting various recommendation models across four benchmark datasets with significant gains (p < 0.001).

ABSTRACT

Contrastive learning is widely used for recommendation model learning, where selecting representative and informative negative samples is critical. Existing methods usually focus on centralized data, where abundant and high-quality negative samples are easy to obtain. However, centralized user data storage and exploitation may lead to privacy risks and concerns, while decentralized user data on a single client can be too sparse and biased for accurate contrastive learning. In this paper, we propose a federated contrastive learning method named FedCL for privacy-preserving recommendation, which can exploit high-quality negative samples for effective model training with privacy well protected. We first infer user embeddings from local user data through the local model on each client, and then perturb them with local differential privacy (LDP) before sending them to a central server for hard negative sampling. Since individual user embedding contains heavy noise due to LDP, we propose to cluster user embeddings on the server to mitigate the influence of noise, and the cluster centroids are used to retrieve hard negative samples from the item pool. These hard negative samples are delivered to user clients and mixed with the observed negative samples from local data as well as in-batch negatives constructed from positive samples for federated model training. Extensive experiments on four benchmark datasets show FedCL can empower various recommendation methods in a privacy-preserving way.

Motivation & Objective

  • To address the challenge of obtaining high-quality negative samples in privacy-preserving recommendation systems where local data is sparse and biased.
  • To enable effective contrastive learning in federated settings without centralized user data storage, minimizing privacy risks.
  • To design a method that combines multiple types of negative samples—local, in-batch, and semi-hard negatives—within a unified training framework.
  • To ensure robustness and performance under differential privacy constraints, particularly with noisy, perturbed user embeddings.

Proposed method

  • Local models on client devices infer user embeddings from local user profiles without sharing raw data.
  • User embeddings are perturbed with Laplace noise to satisfy local differential privacy (LDP) before transmission to the central server.
  • The server applies Ward hierarchical clustering to perturbed embeddings to reduce noise and identify representative user interest clusters.
  • Cluster centroids are used to retrieve semi-hard negative samples from the global item pool via a similarity-based sampling method.
  • The central server sends these semi-hard negatives back to clients, where they are combined with local and in-batch negatives for contrastive training.
  • A negative mix-up strategy unifies local, in-batch, and semi-hard negatives within a single contrastive learning objective to enhance model generalization.

Experimental results

Research questions

  • RQ1Can high-quality negative samples be effectively identified in a federated setting without centralized user data storage?
  • RQ2How can local differential privacy be leveraged to protect user embeddings while still enabling accurate negative sampling on the server?
  • RQ3What is the impact of clustering noisy, LDP-perturbed embeddings on the quality of retrieved negative samples?
  • RQ4How do different types of negative samples (local, in-batch, semi-hard) contribute to model performance in federated contrastive learning?
  • RQ5What is the optimal balance between privacy budget and model performance in the proposed framework?

Key findings

  • FedCL significantly improves the performance of various recommendation models across four benchmark datasets, with statistically significant gains (p < 0.001) compared to baselines.
  • Semi-hard negative samples retrieved via the federated sampling method contribute most to performance improvement, outperforming globally hardest negatives, which often include false negatives.
  • Clustering perturbed embeddings—especially with Ward clustering—significantly enhances negative sampling accuracy by reducing noise, with Ward outperforming K-means.
  • The optimal number of clusters is 25, as performance degrades with fewer clusters (inadequate interest distinction) or more clusters (increased noise influence).
  • A privacy budget of ε = 4 achieves a favorable trade-off between privacy protection and model performance, as lower ε values (stronger noise) degrade performance.
  • The method remains effective even when local negative samples are unavailable, demonstrating the robustness of the semi-hard negative sampling component.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.