A User-Adaptive Layer Selection Framework for Very Deep Sequential Recommender Models

Lei Chen, Fajie Yuan, Jiaxi Yang, Xiang Ao, Chengming Li, Min Yang

Abstract

Sequential Recommender Systems (SRS) have evolved toward very deep architectures to capture complex user behaviors. However, the high computational cost of these models poses significant challenges for real-time inference. We introduce SkipRec, a novel framework that adaptively skips redundant neural network layers on a per-user basis. By utilizing a lightweight policy network to select optimal computational paths, SkipRec achieves up to a 2.3x inference speedup while maintaining or even improving recommendation accuracy through adaptive regularization.

Introduction

Sequential Recommender Systems (SRS) aim to predict a user's next interaction based on their historical behavior. To capture complex, dynamic interests, state-of-the-art models have moved toward "very deep" architectures, often stacking over 100 layers. While these deep models significantly outperform shallower traditional methods, they face a major hurdle in production: latency.

Standard deep learning frameworks treat every user interaction with the same amount of computation. This is inherently inefficient. A user with a clear, repetitive history (an "easy" user) might only need a few layers to generate a high-quality recommendation, while a user with erratic or complex behavior (a "hard" user) requires the full depth of the network. Forcing every request through 100+ layers creates an unnecessary computational bottleneck for real-time online services.

The SkipRec Framework

SkipRec addresses this inefficiency by introducing an adaptive framework consisting of two main components:

  1. The Backbone Network: A deep sequential model. While the framework is model-agnostic, the authors primarily evaluate it using a modified NextItNet (based on dilated CNNs) and SASRec (based on self-attention).
  2. The Policy Network: A lightweight "selector" network that analyzes the user's input sequence to produce a binary decision (retain or skip) for each residual block in the backbone.
The SkipRec architecture featuring a Policy Network and a Backbone Network with skip-able residual blocks.

Overcoming the Discrete Decision Hurdle

The core technical challenge is that a "skip or stay" decision is discrete (0 or 1), which is non-differentiable and breaks standard backpropagation. SkipRec offers two solutions:

  • SkipRec-Gumbel: Employs the Gumbel-Softmax trick to create a continuous, differentiable approximation of the discrete skipping decision.
  • SkipRec-RL: Utilizes Reinforcement Learning (specifically the Self-Critical Sequence Training algorithm) to reward the policy network for balancing recommendation accuracy against the number of layers used.

Key Insights: Personalized Architecture

A striking contribution of this work is the concept that "personalization" should extend beyond content to the model architecture itself. As illustrated below, different users trigger different computational paths based on the complexity of their interaction history.

Conceptual illustration of user-adaptive layer selection where different users trigger different computational paths.

Beyond efficiency, the authors found that skipping acts as a form of adaptive regularization. By bypassing inactive or redundant layers for simpler sequences, SkipRec often achieves higher accuracy than the full "un-skipped" model, effectively preventing over-fitting on easy cases.

Experimental Results

The framework was evaluated on three real-world datasets: Weishi (short-range), ML20 (medium-range), and ML100 (long-range).

  • Efficiency: SkipRec-RL achieved an inference speedup of 2.01x on Weishi and 2.30x on ML20 compared to the full backbone models.
  • Accuracy: On the Weishi dataset, SkipRec-Gumbel improved the Mean Reciprocal Rank (MRR@5) from 0.1091 to 0.1121 while significantly reducing latency.
  • Model Agnostic: When applied to the Transformer-based SASRec+, SkipRec delivered a ~1.5x speedup alongside improved accuracy, demonstrating its broad applicability.

Conclusion and Future Work

SkipRec demonstrates that very deep recommender models do not need to be computationally prohibitive. By adaptively selecting layers, the framework provides a path toward deploying high-capacity models in latency-sensitive environments. Future research may focus on optimizing training convergence—which is currently slower due to fewer parameter updates per round—and further hardware-level optimizations to maximize real-world throughput on GPUs and TPUs.

Summary updated

BibTeX
@inproceedings{chen2021user,
  author = {Lei Chen and Fajie Yuan and Jiaxi Yang and Xiang Ao and Chengming Li and Min Yang},
  title = {{A User-Adaptive Layer Selection Framework for Very Deep Sequential Recommender Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i5.16518},
}
Figure