On the Transferability of Deep Neural Networks for Recommender System

Duc Nguyen, Hao Niu, Kei Yonekawa, Mori Kurokawa, Chihiro Ono, Daichi Amagata, Takuya Maekawa, Takahiro Hara

Abstract

Recommender systems (RS) frequently suffer from data sparsity, particularly in niche or emerging domains. While transfer learning offers a potential solution, traditional methods often require sharing sensitive user data. This paper investigates network-based transfer learning—transferring model weights rather than raw data—within the Neural Matrix Factorization framework. Surprisingly, the study finds that unlike computer vision, where early layers are most transferable, recommendation models benefit most from transferring layers closest to the output. Performance gains of up to 20% were observed across 18 real-world datasets.

Introduction

Modern web services rely heavily on recommender systems, yet these systems are chronically plagued by the "data sparsity" problem. In new or small domains, the lack of sufficient user-item interaction data prevents deep learning models from training effectively. While transfer learning from data-rich source domains is a common remedy, privacy regulations like GDPR make the transfer of raw user data increasingly problematic.

This research explores network-based transfer learning as a privacy-preserving alternative. By transferring only the learned weights and parameters of a model, researchers aim to leverage knowledge from source domains (e.g., Books) to improve performance in target domains (e.g., Sports) without compromising user privacy.

Methods and Model Architecture

The researchers utilize a Multi-layer Perceptron (MLP) based on the Neural Matrix Factorization (NeuMF) framework. As shown in Figure 1, the architecture consists of three primary components:

  1. Embedding Layers: These map users ($u$) and items ($i$) into latent vector spaces ($p_u$ and $q_i$).
  2. Aggregator: This component concatenates the latent vectors into a single representation $X_{ui}$.
  3. Interaction Function: A series of four fully connected (FC) layers that learn the complex, non-linear relationships between users and items to predict an interaction probability ($R^e_{ui}$).
The MLP-based recommendation architecture featuring embedding layers, an aggregator, and a multi-layer interaction function.

The core of the experiment involves training the model on a "Source" domain and then transferring specific combinations of the four FC layers to a "Target" domain. The researchers tested seven distinct configurations (Config-1 through Config-7) to determine which parts of the network hold the most transferable "interaction logic."

The seven experimental configurations defining which fully connected layers are transferred from the source to the target domain.

In these experiments, transferred weights are "frozen" during training on the target domain, while the user and item embeddings—which are inherently domain-specific—are learned from scratch.

Experimental Setup

The study utilized 18 real-world datasets from the Amazon Review database. Three domains with high baseline performance—Books, Movies, and Kindle—served as source domains. The remaining 15 categories, including Sport, Clothing, and Food, served as target domains. To ensure data quality, the authors filtered the datasets to include only users and items with at least 20 interactions.

Key Insights: "Inverted" Transferability

The most striking finding of this research is the "inverted" transferability of recommendation networks compared to other fields. In Computer Vision, early layers (which detect general features like edges) are highly transferable, while later layers are task-specific. In contrast, this study found that in recommendation models, layers closer to the output are significantly more transferable than those near the input.

This suggests that "interaction logic"—the high-level abstract reasoning of how a user decides to interact with an item—is universal across domains. While the specific items (represented by embeddings) change, the underlying logic of the interaction remains consistent at the deeper layers of the network.

Furthermore, the success of the transfer is highly dependent on the similarity between source and target data distributions, measured via KL-Divergence. Interestingly, the degree of sparsity in the target domain did not significantly hinder the transfer process, indicating that network-based transfer is a robust tool for even the most data-poor environments.

Results and Performance

The experimental results demonstrate the efficacy of this approach:

  • Widespread Improvement: Transferring weights improved performance (measured by Hit Ratio @ 10) in 14 out of 15 target domains.
  • Significant Gains: The most effective configurations yielded performance boosts of up to 20% (e.g., transferring from Books to Clothing).
  • Risk of Negative Transfer: Transferring only the early layers (Configs 2, 3, and 4) often resulted in "negative transfer," where the model performed worse than the baseline. This reinforces the conclusion that the most valuable transferable knowledge resides in the later stages of the interaction function.

Conclusion and Future Work

This research highlights the potential of network-based transfer learning to solve the data sparsity problem in recommender systems while maintaining data privacy. The discovery of "inverted" transferability provides a new heuristic for designing cross-domain recommendation models.

Future research will look beyond the MLP architecture to more complex structures like Graph Neural Networks (GNNs) or Transformers. Additionally, the authors plan to investigate "fine-tuning" methods rather than hard freezing of weights and aim to develop automated techniques for dynamically selecting the optimal layers for transfer based on domain relatedness.

Summary updated

BibTeX
@inproceedings{nguyen2020transferability,
  author = {Duc Nguyen and Hao Niu and Kei Yonekawa and Mori Kurokawa and Chihiro Ono and Daichi Amagata and Takuya Maekawa and Takahiro Hara},
  title = {{On the Transferability of Deep Neural Networks for Recommender System}},
  booktitle = {IAL@PKDD/ECML},
  year = {2020},
}
Figure