ConvFormer: Revisiting Transformer for Sequential User Modeling

Hao Wang, Jianxun Lian, Mingqi Wu, Haoxuan Li, Jiajun Fan, Wanyue Xu, Chaozhuo Li, Xing Xie · DOI

Introduction

Sequential user modeling is a cornerstone of modern personalized recommendation systems, aiming to predict future user actions based on historical behavior. While the Transformer architecture, powered by self-attention, has become the de facto standard, its application to user sequences often overlooks domain-specific requirements. Standard self-attention is inherently permutation-invariant, requiring manual position embeddings, and its $O(L^2)$ complexity poses significant challenges for long-sequence modeling.

Methodology: From Attention to Convolution

ConvFormer addresses these limitations by replacing the self-attention "token mixer" with a novel LighTCN (Light temporal convolution neural) layer. This architecture is built upon three core design criteria: order sensitivity, large receptive fields, and a lightweight parameter footprint.

LighTCN and Depth-wise Convolution

Instead of standard convolutions, ConvFormer utilizes Depth-wise Convolution (DWC). DWC processes each dimension of the embedding independently, preventing over-parameterization and making the model more robust to the sparsity typically found in recommendation data. To match the global reach of self-attention, ConvFormer employs large kernels—often as long as the input sequence—ensuring a large receptive field.

Efficiency via FFT

For extremely long sequences, the authors introduce ConvFormer-F. By leveraging the Fast Fourier Transform (FFT), the model performs convolutions as point-wise products in the frequency domain. This reduces computational complexity from $O(L^2)$ to $O(L \log L)$, enabling a 3x to 5x speedup over standard Transformers like SASRec without sacrificing accuracy.

Architectural variants of the proposed SAR model, illustrating the transition from standard attention to order-sensitive structures.

Key Insights: The Importance of Order

A pivotal finding of this research is the "Random Weights" surprise. The authors compared a standard Transformer (SAR) against a variant using random, fixed, but order-sensitive weights (SAR-R). Surprisingly, SAR-R performed competitively with fully trained attention mechanisms. This suggests that for sequential recommendation, the inherent order sensitivity of the architecture is often more critical than the specific learned attention scores between items.

Experimental Results

ConvFormer was evaluated across five diverse datasets, including Amazon (Beauty, Sports, Toys), Yelp, and a large-scale industrial Xbox dataset.

Performance and Robustness

The model consistently achieved state-of-the-art results, outperforming strong baselines such as SASRec, BERT4Rec, and FMLP-Rec. As shown in the performance comparison below, ConvFormer (SAR) maintains a significant lead over variants like SAR-N (non-order sensitive) across multiple metrics.

Performance comparison on Yelp and Beauty datasets, highlighting the superiority of the order-sensitive SAR model.

Efficiency Gains

On the Xbox dataset, which contains over 19 million actions, ConvFormer demonstrated superior scalability. The FFT-accelerated version proved particularly effective for long-sequence modeling, offering a substantial throughput increase while maintaining high Hit Ratio (HIT@10) and NDCG scores.

Conclusion

ConvFormer challenges the necessity of self-attention in sequential user modeling. By prioritizing order sensitivity and architectural efficiency through large-kernel depth-wise convolutions, it provides a faster, more robust alternative to Transformers. Future work will explore these design principles in "one-tower" ranking scenarios and investigate adaptive receptive fields to further minimize noise in early user behaviors.

Summary updated

BibTeX
@misc{wang2023convformer,
  author = {Hao Wang and Jianxun Lian and Mingqi Wu and Haoxuan Li and Jiajun Fan and Wanyue Xu and Chaozhuo Li and Xing Xie},
  title = {{ConvFormer: Revisiting Transformer for Sequential User Modeling}},
  year = {2023},
  eprint = {2308.02925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.02925},
}
Figure