Skip to main content
QUICK REVIEW

[Paper Review] Improving Contrastive Learning with Model Augmentation

Zhiwei Liu, Yongjun Chen|arXiv (Cornell University)|Mar 25, 2022
Recommender Systems and TechniquesComputer Science12 citations
TL;DR

This paper proposes a novel contrastive self-supervised learning framework for sequential recommendation by introducing model augmentation—neuron masking, layer dropping, and encoder complementing—to generate view pairs, complementing traditional data augmentation. Experiments show SRMA with model augmentation significantly improves recommendation performance over baseline models, especially under data-sparse conditions.

ABSTRACT

The sequential recommendation aims at predicting the next items in user behaviors, which can be solved by characterizing item relationships in sequences. Due to the data sparsity and noise issues in sequences, a new self-supervised learning (SSL) paradigm is proposed to improve the performance, which employs contrastive learning between positive and negative views of sequences. However, existing methods all construct views by adopting augmentation from data perspectives, while we argue that 1) optimal data augmentation methods are hard to devise, 2) data augmentation methods destroy sequential correlations, and 3) data augmentation fails to incorporate comprehensive self-supervised signals. Therefore, we investigate the possibility of model augmentation to construct view pairs. We propose three levels of model augmentation methods: neuron masking, layer dropping, and encoder complementing. This work opens up a novel direction in constructing views for contrastive SSL. Experiments verify the efficacy of model augmentation for the SSL in the sequential recommendation. Code is available\footnote{\url{https://github.com/salesforce/SRMA}}.

Motivation & Objective

  • To address data sparsity and noise in sequential recommendation by enhancing self-supervised learning.
  • To overcome limitations of existing data augmentation methods, which are heuristic, destructive to sequential correlations, and fail to capture comprehensive self-supervised signals.
  • To explore model augmentation as a complementary approach to data augmentation for constructing more robust and informative view pairs in contrastive learning.
  • To develop and validate three levels of model augmentation: neuron masking, layer dropping, and encoder complementing, for improved sequential representation learning.

Proposed method

  • Proposes neuron masking as model augmentation by applying dropout twice to the same sequence to generate two distinct views from the same encoder layer.
  • Introduces layer dropping by randomly removing entire layers from the encoder during training to create perturbed views, emphasizing contrast between deep and shallow features.
  • Employs encoder complementing by fusing embeddings from the main model’s encoder with those from a pre-trained complementary encoder (e.g., GRU or Transformer) to capture diverse sequential patterns.
  • Combines model augmentation with standard data augmentation (e.g., crop, mask, reorder) to form a hybrid contrastive learning framework in the SRMA model.
  • Uses contrastive loss to align positive views (from same sequence via model/data augmentation) and push apart negative views (from different sequences).
  • Trains the model end-to-end with joint optimization of encoder and augmentation mechanisms, enabling adaptive view generation.

Experimental results

Research questions

  • RQ1Can model augmentation outperform or complement data augmentation in constructing informative view pairs for contrastive self-supervised learning in sequential recommendation?
  • RQ2How do different levels of model augmentation—neuron masking, layer dropping, and encoder complementing—affect representation learning and recommendation performance?
  • RQ3Does injecting model-based perturbations preserve sequential correlations better than data-based perturbations?
  • RQ4What is the optimal configuration of model augmentation components (e.g., dropout probability, number of layers dropped, choice of complementary encoder) for performance gain?

Key findings

  • SRMA with neuron masking outperforms SASRec across all metrics on Sports and Toys datasets when the dropout probability is between 0.1 and 0.6, demonstrating the effectiveness of model-based augmentation.
  • Layer dropping with K=2 additional FFN layers and M=1 layer dropped achieves the best performance, while K=4 leads to worse results due to increased model complexity.
  • On the Sports dataset, using a GRU-based complementary encoder yields the highest performance, while on the Toys dataset, a 1-layer Transformer-based encoder performs best, indicating dataset-dependent optimal complementarity.
  • Both GRU-based and Transformer-based complementary encoders consistently outperform SRMA without encoder complementing, proving the necessity of diverse encoder fusion in contrastive learning.
  • The ablation study confirms that all three model augmentation methods—neuron masking, layer dropping, and encoder complementing—contribute independently and significantly to performance gains.
  • The hybrid approach of combining data augmentation and model augmentation leads to superior performance compared to using data augmentation alone, validating the complementary role of model-based view construction.

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.