Fisher-Weighted Merge of Contrastive Learning Models in Sequential Recommendation

Jung Hyun Ryu, Jaeheyoung Jeon, Jewoong Cho, Myungjoo Kang · DOI

Sequential recommendation systems aim to predict a user's next interaction based on their historical behavior. A primary challenge in this field is data sparsity, as most users interact with only a small subset of available items. To mitigate this, researchers often employ Contrastive Learning (CL) techniques, which generate auxiliary supervision signals by perturbing input sequences. While various CL methods like CL4SRec and DuoRec exist, combining their strengths typically requires computationally expensive ensembles or retraining.

Fisher-Weighted Parameter Merging

This paper introduces Fisher-Merging, a technique to intelligently combine multiple pre-trained models into a single, high-performing model without additional training. Unlike simple weight averaging (often called "Model Soup"), which treats all parameters equally, Fisher-Merging uses the Fisher Information Matrix (FIM) to weigh parameters based on their importance.

Overview of the parameter merging process where multiple contrastive learning models are combined into a single Fisher-weighted model.

The FIM serves as a proxy for parameter "certainty." If a parameter has high Fisher information, it indicates that the model's performance is sensitive to changes in that parameter. During the merge, models that are more "certain" about specific weights are given higher priority, effectively stitching together the specialized knowledge of different CL objectives.

Overcoming Computational Barriers

Calculating the FIM for recommendation tasks is traditionally difficult due to the large item catalogs. To address this "recommendation tax," the authors proposed several efficiency-focused sampling strategies to estimate parameter importance without iterating through every item:

  • Top-k Sampling: Calculating importance based only on the most likely items.
  • Random Sampling: Using a subset of items to estimate the FIM.
  • Target Item Calculation: Focusing solely on the ground-truth target item.

Experiments showed that Top-k sampling (using 10-50 items) provides an optimal balance between computational speed and recommendation accuracy, scaling linearly with sample size.

Experimental Results

The method was evaluated on the MovieLens-1M dataset using the BERT4Rec architecture. The results demonstrate that Fisher-Merging consistently outperforms individual models and simple uniform averaging.

Performance comparison (NDCG@10 and NDCG@20) of various sampling strategies and baseline models on the MovieLens-1M dataset.

As shown in the table above, the Fisher-merged models (using various sampling strategies) achieved superior NDCG scores compared to the baselines. Notably, even when merging a high-performing model with a weaker one, the Fisher-weighting mechanism was robust enough to ignore the uncertain parameters of the under-trained model, maintaining high overall performance.

Key Insights

  • Uncertainty as a Guide: Accounting for the posterior distribution of parameters allows the merged model to be more robust than its individual components.
  • Diversity is Beneficial: Merging models with diverse error patterns (e.g., different contrastive losses) yields greater performance gains than merging similar models. This confirms that Fisher-merging is excellent at "stitching together" different types of learned knowledge.
  • Efficiency: The proposed sampling techniques reduce the FIM calculation time from a prohibitive computational burden to a manageable task.

Conclusion and Future Work

Fisher-Merging offers a powerful, training-free way to ensemble contrastive learning models in sequential recommendation. While currently validated on BERT4Rec and MovieLens-1M, future research could explore its applicability to larger-scale industrial datasets and more diverse model architectures to see if performance gains continue to stack.

Reference: Ryu, J. H., et al. (2023). Fisher-Weighted Merge of Contrastive Learning Models in Sequential Recommendation. Proceedings of the 40th International Conference on Machine Learning (ICML).

Summary updated

BibTeX
@inproceedings{ryu2023fisher,
  author = {Jung Hyun Ryu and Jaeheyoung Jeon and Jewoong Cho and Myungjoo Kang},
  title = {{Fisher-Weighted Merge of Contrastive Learning Models in Sequential Recommendation}},
  booktitle = {MFPL @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=3dsjDJEVHp},
}
Figure