Federated Learning and Unlearning for Recommendation with Personalized Data Sharing

Liang Qu, Jianxin Li, Wei Yuan, Shangfei Zheng, Lu Chen, Chengfei Liu, Hongzhi YinarXiv 2026

TL;DR

FedShare is a novel federated learn-unlearn framework for recommender systems that breaks the rigid "one-size-fits-all" privacy constraint of traditional federated learning. It allows users to dynamically control how much data they share with a central server to boost recommendation quality, while providing a memory-efficient "unlearning" mechanism to completely erase a user's data footprint and model influence upon request.

What Problem Does This Paper Address?

Federated Recommender Systems (FedRSs) protect user privacy by keeping interaction data (like watch or purchase histories) on local devices, only sending model updates to a central server. However, traditional FedRSs operate under a strict, blanket assumption: all users want absolute privacy all the time. This ignores users who are perfectly willing to share some data in exchange for highly accurate, personalized recommendations.

While recent work has introduced personalized data sharing, these systems assume user preferences are completely static. They fail to account for real-world dynamics where a user might share data by mistake or simply change their mind later. Under regulations like GDPR, users have a "Right to be Forgotten."

Existing federated unlearning methods try to solve this by tracking and reversing historical gradients, but this introduces massive storage overhead—making it impractical for resource-constrained edge devices. FedShare tackles this dual challenge: enabling flexible, personalized data sharing while supporting lightweight, memory-efficient data unsharing.

Fig. 1. Comparison of three federated recommendation architectures: (a) traditional model-sharing, (b) personalized data-sharing without unlearning, and (c) personalized data-sharing with unlearning support.

Methods

FedShare splits its operations into two distinct pipelines: a Federated Learning Phase and a Federated Unlearning Phase.

1. Federated Learning Phase

Users can choose to fully share, partially share, or withhold their interaction data. The server aggregates all shared data to construct a server-side high-order user-item bipartite graph.

To maximize the utility of this graph, FedShare uses a dual-view framework with LightGCN as its backbone:

  • Local View: Derived from standard local training and federated aggregation (FedAvg).
  • Global View: Derived from message-passing on the server-side high-order graph.

A contrastive learning loss function aligns these two views, allowing the system to capture both low-order local signals and high-order global collaborative patterns simultaneously.

Fig. 2. The learning phase of FedShare, where users share interaction data according to personalized preferences to construct a server-side high-order user–item graph, and contrastive learning is applied to align local and global item representations.

2. Federated Unlearning Phase

When a user requests to "unshare" data, the server removes those edges from the global graph. However, the model parameters still retain the historical influence of that data.

Instead of costly full retraining or storing massive gradient histories, FedShare introduces Contrastive Unlearning:

  • The server retains a tiny history of recent global item embedding tables (snapshots).
  • It creates a forgotten graph from the unshared data and uses the snapshots to isolate the exact representation space induced by the forgotten interactions (the Forgotten View).
  • It runs a specialized contrastive unlearning loss that forces the updated local and global views to align (preserving performance on remaining data) while actively pushing them away from the forgotten view.

Datasets

The authors evaluated FedShare on three widely used public datasets, converted into implicit feedback formats:

  1. MovieLens-1M: A classic movie rating dataset containing ~1 million interactions.
  2. Amazon Fashion: User reviews on fashion products.
  3. Amazon Video Games: User reviews on video game products.

Key Insights and Ideas

  • Privacy is a Spectrum, Not a Binary: Moving away from "all-or-nothing" privacy allows federated systems to tap into rich collaborative signals that are normally lost on isolated local devices.
  • Embeddings Over Gradients: The core breakthrough for unlearning is realizing that you don't need to save the entire optimization trajectory (gradients) to forget data. Storing a few historical embedding snapshots is sufficient to map out and subtract the influence of the forgotten data, drastically reducing storage overhead.
  • Graph Augmentation via Sharing: In typical FedRS, graph neural networks are crippled because they can only perform first-order message passing on a single user's device. FedShare elegantly bypasses this by using shared data to build a high-order global graph on the server side.

Key Results

The framework was evaluated using Hit Ratio (HR@20) and Normalized Discounted Cumulative Gain (NDCG@20).

  • Recommendation Performance: In the learning phase, FedShare consistently outperformed state-of-the-art baselines (like CDCGNNFed and PDC-FRS) across all datasets. For instance, on MovieLens-1M, FedShare achieved an HR@20 of 0.4773 compared to CDCGNNFed's 0.4685.
  • Unlearning Accuracy: In the unlearning phase, FedShare retained higher recommendation accuracy on remaining data than existing unlearning baselines (FRU, CUFRU), closely matching the gold standard of retraining the entire model from scratch.
  • Efficiency and Storage: FedShare demonstrated a massive reduction in storage overhead because it completely avoids gradient tracking. It achieved competitive unlearning speeds while remaining vastly faster than full retraining.

Limitations and Future Work

Despite its strong performance, the authors note two primary limitations:

  1. Client Overhead During Unlearning: The unlearning phase still requires active participation from the remaining clients to perform local updates, which consumes client-side compute and communication bandwidth. Future work will explore purely server-side unlearning mechanisms.
  2. Scope of Unlearning: The current framework only supports unlearning for users who previously shared raw data with the server. It does not yet support unlearning requests for users who only participated via standard, local federated model updates without sharing data.

Summary updated

BibTeX
@misc{qu2026federated,
  author = {Liang Qu and Jianxin Li and Wei Yuan and Shangfei Zheng and Lu Chen and Chengfei Liu and Hongzhi Yin},
  title = {{Federated Learning and Unlearning for Recommendation with Personalized Data Sharing}},
  year = {2026},
  eprint = {2603.11610},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.11610},
}
Figure