NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Behavior-Dependent Linear Recurrent Units for Efficient Sequential Recommendation

Chengkai Liu, Jianghao Lin, Hanzhou Liu, Jianling Wang, James Caverlee

TL;DR

RecBLR is a new sequential recommendation model that successfully navigates the "impossible triangle" of model design: achieving strong performance, high training efficiency, and low-cost inference all at once. By introducing behavior-dependent gating into Linear Recurrent Units (LRUs) and utilizing a custom hardware-aware parallel scan algorithm, the authors outperform state-of-the-art Transformers like SASRec while remaining significantly faster and more memory-efficient, especially on long interaction sequences.

What Problem Does This Paper Address?

Sequential recommendation aims to predict a user’s next interaction based on their history. Historically, researchers have had to pick their poison among three trade-offs:

  1. RNNs (like GRU4Rec): Great for low-cost inference but slow to train because they process sequences one step at a time.
  2. Transformers (like SASRec): Excellent performance and parallel training, but inference costs and memory usage explode quadratically as sequences get longer.
  3. MLPs (like FMLP-Rec): Fast, but often suffer from "catastrophic forgetting" of earlier user behaviors.

The authors identify a gap: no existing model handles the "impossible triangle" of being fast to train, cheap to run, and highly accurate. Recent attempts using Linear Recurrent Units (LRUs) showed promise but were often "behavior-independent"—meaning the model's internal parameters didn't adapt to the specific nuances of different user actions—and they relied on complex-valued math that didn't always suit discrete recommendation data.

Methods

The authors propose RecBLR, which stands for Recommendation with Behavior-dependent Linear Recurrent Units. Its architecture relies on three main innovations:

  • Behavior-Dependent LRU (BD-LRU): Standard LRUs use static parameters. RecBLR introduces input and recurrence gates that are functions of the current item. This allows the model to "filter" the user's history dynamically—for example, ignoring a casual click on a random category to focus on behaviors relevant to a final purchase.
  • Real-Valued Modeling: While many LRU papers use complex numbers (useful for continuous signals like audio), RecBLR sticks to real-valued parameters. This reduces the parameter count and prevents overfitting on discrete user-item interaction data.
  • Hardware-Aware Parallel Scan: Recurrence is usually sequential. However, because these units are linear, the authors can use an associative "parallel scan" algorithm (similar to a prefix sum). They implemented a custom CUDA kernel using OpenAI’s Triton to parallelize the training process across GPU cores, effectively giving RNN-style units the training speed of a Transformer.

Datasets

The model was evaluated on six diverse real-world datasets:

  • MovieLens-1M: A classic dense dataset of movie ratings.
  • Gowalla: Location check-ins.
  • Steam: Video game reviews.
  • Amazon-Beauty & Amazon-Sports: E-commerce interactions.
  • XLong: A dataset from Alibaba featuring very long user behavior sequences (sampled at 5,000 users for efficiency testing), used specifically to test how the model scales.

Key Insights and Ideas

  • Breaking the Linearity Bottleneck: The "aha moment" is that while a single linear layer is limited, stacking gated linear layers with non-linearities (like SiLU) between them allows the model to capture complex, non-linear dependencies over time without losing the ability to parallelize training.
  • Gating as a Filter: The behavior-dependent gates act as a sophisticated attention mechanism. Instead of looking at everything at once (like Transformers), the model decides at each step how much of the "past" to keep and how much of the "present" to incorporate.
  • Efficiency via "Embedding Padding": Rather than padding entire sequences to a power of two (which wastes computation in CNN/MLP layers), the authors only pad the hidden representations right before the BD-LRU scan. This surgical approach to padding saves significant time on long sequences.

Key Results

  • Superior Accuracy: RecBLR outperformed all baselines (including SASRec and BERT4Rec) across all datasets. On MovieLens-1M, it achieved a 7.46% improvement in HR@10 and a 7.28% improvement in NDCG@10 over the best baseline.
  • Rank-Aware Strength: The gains were most prominent in NDCG and MRR, suggesting RecBLR is particularly good at "ranking"—placing the most relevant items at the very top of the list.
  • Scalability: On the XLong dataset (sequence length ~800), RecBLR maintained much lower GPU memory usage than SASRec. While SASRec’s training time grew quadratically, RecBLR’s growth remained nearly linear, making it a much better candidate for "lifelong" user modeling.

Limitations and Future Work

  • Layer Depth vs. Sequence Length: While the model is efficient over long sequences, its "non-linear depth" is tied to the number of stacked layers. Finding the optimal balance between the number of layers and computational overhead remains a manual tuning process.
  • Hyperparameter Sensitivity: The performance is somewhat sensitive to the "expansion factor" (how much the hidden dimension is blown up inside the gated layer) and dropout rates, which vary significantly depending on how sparse the dataset is.
  • Future Directions: The authors suggest exploring even more sophisticated hardware-aware optimizations and potentially adapting the BD-LRU structure for other domains beyond recommendation, such as large-scale time-series analysis.

Summary updated

BibTeX
@inproceedings{liu2024behavior,
  author = {Chengkai Liu and Jianghao Lin and Hanzhou Liu and Jianling Wang and James Caverlee},
  title = {{Behavior-Dependent Linear Recurrent Units for Efficient Sequential Recommendation}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3679717},
}

Loading related content...

Figure