TV-Rec: Time-Variant Convolutional Filter for Sequential Recommendation

Yehjin Shin, Jeongwhan Choi, Seojin Kim, Noseong Park

Introduction

Sequential Recommendation (SR) is a cornerstone of modern personalized systems, aiming to predict a user’s future preferences by analyzing their historical interactions. Currently, the field is dominated by two primary architectural paradigms: Transformers and Convolutional Neural Networks (CNNs). While Transformers, utilizing self-attention mechanisms, excel at capturing long-term dependencies, they suffer from quadratic computational complexity ($O(n^2)$) and a lack of inherent locality. Conversely, CNNs are computationally efficient and naturally capture local patterns, but they typically rely on fixed convolutional filters that apply the same weights regardless of an interaction's temporal position.

This paper introduces TV-Rec, a novel architecture that bridges the gap between these two approaches. By reinterpreting user behavior through the lens of Graph Signal Processing (GSP), TV-Rec replaces the heavy self-attention mechanism with Time-Variant Convolutional Filters. This approach allows the model to achieve state-of-the-art accuracy while maintaining high inference efficiency.

Methodology: Rethinking Convolution with GSP

TV-Rec treats a user's interaction history not just as a sequence, but as a signal residing on a "line graph," where each node represents a specific time step.

Time-Variant Filtering

Traditional CNNs use a static kernel across the entire sequence. TV-Rec, however, employs position-specific filters. To prevent a massive increase in parameters, these filters are generated from a learned basis matrix ($H = CB$). This allows the model to adapt its filtering behavior based on where an item sits in the sequence—for instance, applying broader filters to early interactions to capture general tastes and sharper, more localized filters to recent items to capture immediate intent.

Spectral Domain Operations and the DCG Trick

The model performs its filtering operations in the frequency domain using the Graph Fourier Transform (GFT). To ensure the mathematical operations remain spectrally tractable (diagonalizable) while strictly preventing "information leakage" from the future to the past, the authors model the sequence as a Directed Cyclic Graph (DCG). By applying specific zero-padding and utilizing the properties of the DCG, TV-Rec maintains causality without sacrificing the efficiency of spectral filtering.

Linear Efficiency

Because the time-variant filter acts as a linear operator, the filter weights can be precomputed after the training phase. This results in an $O(n^2d)$ complexity that, in practical applications, allows for significantly faster inference than the data-dependent routing required by self-attention mechanisms.

Key Insights

  1. Redundancy of Positional Encoding: A significant finding of the research is that the Graph Fourier Basis—the sines and cosines used in the GFT—is functionally equivalent to the sinusoidal positional encodings used in Transformers. Consequently, TV-Rec inherently understands the temporal order of items without requiring additional embedding layers.
  2. Dynamic Focus: Analysis of the learned filters reveals a natural progression: the model learns to shift from broad, global filters at the start of a sequence to highly localized filters as the sequence matures, effectively mimicking the way human preferences evolve from general interests to specific, current needs.
  3. Linear Replacement for Attention: The paper demonstrates that the complex, non-linear routing of self-attention can often be replaced by sophisticated, position-dependent linear filters without a loss in expressive power.

Experimental Results

The authors evaluated TV-Rec against state-of-the-art baselines (including SASRec, BERT4Rec, and BSARec) across six diverse datasets: Amazon (Beauty & Sports), Yelp, LastFM, MovieLens-1M, Foursquare, and XLong.

  • Accuracy Gains: TV-Rec achieved an average performance boost of 7.49% over the strongest baselines. The most significant improvements were observed in datasets with medium-to-long sequences, such as LastFM (19.13%) and Foursquare (22.17%).
  • Inference Speed: TV-Rec demonstrated a superior balance between recommendation quality (NDCG@20) and speed. It outperformed Transformer-based models in latency and even surpassed some simpler CNN models due to its optimized linear structure.
  • Long-Sequence Scalability: On the ML-1M and XLong datasets (with sequences up to 200 and 958 items respectively), TV-Rec maintained a performance lead, proving its ability to handle long-range dependencies more effectively than models specifically designed for long sequences, such as LRURec.

Limitations and Future Work

While TV-Rec offers significant advantages in inference speed and accuracy, the authors note that the training process is more complex due to the repeated GFT and inverse GFT operations. Additionally, the current filters are "data-independent," meaning they adapt based on the position of an item but not the content of the item itself. Future research may explore making these filters content-aware or investigating the theoretical connections between TV-Rec and emerging State Space Models (SSMs) like Mamba.

Summary updated

BibTeX
@inproceedings{shin2025tv,
  author = {Yehjin Shin and Jeongwhan Choi and Seojin Kim and Noseong Park},
  title = {{TV-Rec: Time-Variant Convolutional Filter for Sequential Recommendation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=cWEssTIwG5},
}
Figure