FuXi-Linear: Unleashing the Power of Linear Attention in Long-term Time-aware Sequential Recommendation

TL;DR

FuXi-Linear model leverages linear attention for efficient long-sequence recommendation, achieving up to 21x decoding speedup.

cs.IR 🔴 Advanced 2026-02-27 24 views
Yufei Ye Wei Guo Hao Wang Luankang Zhang Heng Chang Hong Zhu Yuyang Ye Yong Liu Defu Lian Enhong Chen
Linear Attention Long-sequence Modeling Time-aware Recommendation Scalability Deep Learning

Key Findings

Methodology

FuXi-Linear introduces a Temporal Retention Channel and a Linear Positional Channel to address efficiency in long-sequence recommendation. The Temporal Retention Channel independently computes periodic attention weights using temporal data, preventing interference between temporal and semantic signals. The Linear Positional Channel integrates positional information through learnable kernels within linear complexity.

Key Results

  • On sequences of several thousand tokens, FuXi-Linear outperforms state-of-the-art models in recommendation quality, achieving up to 10x speedup in the prefill stage and 21x speedup in the decode stage.
  • Compared to competitive baselines, FuXi-Linear excels in long-sequence scenarios, especially when handling sequences exceeding 1000 in length.
  • Ablation studies show that the Temporal Retention Channel and Linear Positional Channel are crucial for performance improvement.

Significance

FuXi-Linear demonstrates significant performance improvements in long-sequence recommendation, addressing the computational bottlenecks of traditional attention mechanisms. Its linear complexity design holds substantial potential for industrial applications, especially in scenarios requiring extensive user history data processing.

Technical Contribution

FuXi-Linear breaks through the limitations of existing linear recommendation models with its innovative Temporal Retention Channel and Linear Positional Channel, providing new theoretical guarantees and engineering possibilities. Its linear complexity design enhances efficiency in handling long sequences.

Novelty

FuXi-Linear is the first to successfully apply linear attention in long-sequence recommendation, effectively capturing periodic user behavior features through the Temporal Retention Channel, significantly improving recommendation quality.

Limitations

  • In extremely long sequences or sparse data conditions, the model may underperform as the effectiveness of the Temporal Retention Channel relies on sufficient temporal data.
  • The model may require tuning to adapt to specific application scenarios.

Future Work

Future research could explore FuXi-Linear's applications in more domains, such as real-time recommendation systems, and further optimize its performance in extreme long-sequence scenarios.

AI Executive Summary

Modern recommendation systems primarily rely on attention mechanisms with quadratic complexity, limiting their ability to handle long user sequences. FuXi-Linear addresses this issue by introducing a Temporal Retention Channel and a Linear Positional Channel with linear complexity. The Temporal Retention Channel independently computes periodic attention weights, preventing interference between temporal and semantic signals, while the Linear Positional Channel integrates positional information through learnable kernels.

In experiments, FuXi-Linear excels in handling sequences of several thousand tokens, outperforming state-of-the-art models in recommendation quality and achieving up to 10x speedup in the prefill stage and 21x speedup in the decode stage. This achievement highlights FuXi-Linear's significant advantages in long-sequence recommendation.

However, FuXi-Linear may underperform in extremely long sequences or sparse data conditions. Future research could explore its applications in more domains and further optimize its performance in extreme long-sequence scenarios.

Deep Analysis

Background

Recommendation systems have become indispensable in the age of information overload, with sequence modeling as their core. Traditional attention mechanisms are limited by their quadratic complexity in handling long sequences. Recently, linear attention has shown potential in NLP, but its application in recommendation systems still faces challenges.

Core Problem

Existing linear attention models in recommendation systems often overlook temporal signals or naively couple them with semantic signals, causing interference. Moreover, they lack sufficient positional information and are primarily focused on short sequences and shallow architectures.

Innovation

FuXi-Linear addresses interference between temporal and semantic signals by introducing a Temporal Retention Channel and a Linear Positional Channel. The Temporal Retention Channel independently computes periodic attention weights, while the Linear Positional Channel integrates positional information through learnable kernels.

Methodology

  • �� Temporal Retention Channel: Independently computes attention weights using temporal data to avoid signal interference.
  • �� Linear Positional Channel: Integrates positional information through learnable kernels, maintaining linear complexity.
  • �� FuXi-Linear Block: Combines multi-channel attention and multi-stage feed-forward network to enhance model performance.

Experiments

Experiments were conducted on three real-world datasets, comparing FuXi-Linear's performance with state-of-the-art baselines. Metrics included recommendation quality and computational efficiency, showing FuXi-Linear's excellent performance in long-sequence scenarios.

Results

FuXi-Linear outperforms state-of-the-art models in recommendation quality, achieving up to 10x speedup in the prefill stage and 21x speedup in the decode stage. Ablation studies show the importance of the Temporal Retention Channel and Linear Positional Channel.

Applications

FuXi-Linear is suitable for recommendation systems that need to process extensive user history data, such as e-commerce platforms and streaming services. Its linear complexity design holds significant potential for industrial applications.

Limitations & Outlook

FuXi-Linear may underperform in extremely long sequences or sparse data conditions. Future research could explore its applications in more domains and further optimize its performance in extreme long-sequence scenarios.

Plain Language Accessible to non-experts

Imagine a library where a librarian needs to recommend new books based on a reader's borrowing history. Traditional methods are like the librarian checking each record one by one, which is inefficient. FuXi-Linear is like the librarian having a smart book that quickly identifies the reader's reading patterns and preferences, recommending more suitable books. This smart book analyzes the borrowing times and sequences, avoiding information interference and improving recommendation efficiency.

ELI14 Explained like you're 14

Imagine you're playing a game where you need to predict the enemy's next move based on past battle records. Traditional methods are like replaying each battle video one by one, which is slow. FuXi-Linear is like having a super assistant that quickly analyzes your battle patterns and the enemy's actions, helping you make better predictions. This assistant uses time and sequence information to avoid interference, giving you an edge in the game!

Glossary

Linear Attention

An attention mechanism with linear computational complexity, suitable for long-sequence processing.

FuXi-Linear uses linear attention to enhance efficiency in long-sequence recommendation.

Temporal Retention Channel

Independently computes attention weights using temporal data to avoid interference between temporal and semantic signals.

This channel is a core innovation of FuXi-Linear.

Linear Positional Channel

Integrates positional information through learnable kernels, maintaining linear complexity.

This channel enhances FuXi-Linear's positional information expression capability.

Ablation Study

Evaluates the impact of removing or modifying model components on overall performance.

Used to verify the importance of each component in FuXi-Linear.

Multi-stage Feed-forward Network

Combines multi-channel outputs and residual connections to facilitate feature interactions.

A key component in the FuXi-Linear block.

Open Questions Unanswered questions from this research

  • 1 How to enhance FuXi-Linear's performance in extremely long sequences or sparse data conditions remains to be further studied.
  • 2 The performance and optimization strategies of existing models when handling real-time data are still unclear.

Applications

Immediate Applications

E-commerce Recommendation Systems

FuXi-Linear can be used for personalized recommendations on e-commerce platforms, enhancing user experience and sales.

Long-term Vision

Real-time Recommendation Systems

FuXi-Linear has great potential in real-time recommendation systems, requiring solutions for real-time data processing and updates.

Abstract

Modern recommendation systems primarily rely on attention mechanisms with quadratic complexity, which limits their ability to handle long user sequences and slows down inference. While linear attention is a promising alternative, existing research faces three critical challenges: (1) temporal signals are often overlooked or integrated via naive coupling that causes mutual interference between temporal and semantic signals while neglecting behavioral periodicity; (2) insufficient positional information provided by existing linear frameworks; and (3) a primary focus on short sequences and shallow architectures. To address these issues, we propose FuXi-Linear, a linear-complexity model designed for efficient long-sequence recommendation. Our approach introduces two key components: (1) a Temporal Retention Channel that independently computes periodic attention weights using temporal data, preventing crosstalk between temporal and semantic signals; (2) a Linear Positional Channel that integrates positional information through learnable kernels within linear complexity. Moreover, we demonstrate that FuXi-Linear exhibits a robust power-law scaling property at a thousand-length scale, a characteristic largely unexplored in prior linear recommendation studies. Extensive experiments on sequences of several thousand tokens demonstrate that FuXi-Linear outperforms state-of-the-art models in recommendation quality, while achieving up to 10$\times$ speedup in the prefill stage and up to 21$\times$ speedup in the decode stage compared to competitive baselines. Our code has been released in a public repository https://github.com/USTC-StarTeam/fuxi-linear.

cs.IR