TL;DR
Recommender systems get painfully slow and expensive as user histories grow longer, and simply chopping off older interactions throws away valuable context. This paper flips post-hoc explainability (XAI) from a passive debugging tool into an active sequence compressor: by scoring and keeping only the most influential past interactions offline, models run much faster online—often making even better predictions without changing a single model weight.
What Problem Does This Paper Address?
Imagine trying to recommend the next TikTok video or Amazon gadget to someone who has clicked on thousands of items over several years. Modern sequential recommenders use architectures like Transformers (e.g., SASRec, BERT4Rec) to look across that chronological history and spot patterns. The catch? Self-attention scales quadratically—$O(L^2)$—with sequence length $L$. Long histories quickly become a latency bottleneck in live production.
Researchers usually tackle this in one of two ways: building faster model architectures (like linear attention or state-space models such as Mamba), or blindly truncating the input sequence—most commonly by keeping only the $K$ most recent interactions ("recency truncation"). Architectural tweaks still process uninformative clicks uniformly, and recency truncation assumes your latest clicks are always your most telling ones. What if the model itself already knows which past interactions matter, and we just need to ask it?
Methods
The authors introduce explainability-guided sequence distillation, a model-agnostic, retraining-free pipeline that separates the heavy lifting of history pruning from live serving:
- Standard Training (Offline): Train a sequential recommender (SASRec, BERT4Rec, Mamba, or LONGER) on full user histories of length $L$, then freeze its weights.
- Attribution Scoring (Offline): Run a post-hoc explainability method—such as Integrated Gradients (IG), GradientSHAP, Grad-SAM, or Attention Tracing—to assign an importance score to each past interaction based on how much it contributes to the model's top predicted item.
- Sequence Distillation (Offline): Keep only the top-$K$ highest-scoring interactions, sorted chronologically to preserve causal order, and store this compressed history.
- Fast Inference (Online): Feed the short, distilled sequence directly into the frozen model. New live clicks are simply appended online and distilled during the next periodic offline cycle.
To evaluate performance across all possible compression budgets rather than cherry-picking a single $K$, the authors introduce a Normalized AUC metric (where $>1.0$ means the compressed sequence actually beats the full sequence) alongside Pareto frontier analyses of accuracy (NDCG@10) versus compute (GFLOPs).
Datasets
No new datasets are introduced; the authors evaluate on three standard public benchmarks across four sequence-length configurations:
- MovieLens-1M ($L=200$) and MovieLens-10M ($L=500$): Classic movie rating benchmarks known for strong temporal recency bias.
- KuaiRand-1K ($L=500$) and KuaiRand-1K-Long ($L=1000$): Short-video interaction datasets characterized by fragmented, noisy engagement signals and weak temporal locality.
Key Insights and Ideas
- Less history can mean better predictions: Removing low-attribution interactions acts as a natural denoiser. On noisy datasets or corrupted inputs, feeding the frozen model a distilled subset regularly outperforms feeding it the complete, uncompressed history.
- Attention is (still) not explanation: Raw Attention Tracing was the only XAI method to fail, trailing simple recency truncation by 11.8% on average. Gradient-based methods (Integrated Gradients and GradientSHAP) are far more reliable at pinpointing true causal influence.
- Dataset dynamics trump attention mechanics: Testing standard, linear, and sparse attention variants of SASRec yielded nearly identical performance–compute curves, showing that sequence compressibility is governed by how users behave in a domain, not how the attention matrix is approximated.
- Distillation needs model capacity: Compact, under-parameterized models (29K–61K parameters) struggle under heavy compression compared to larger ones (138K–341K), because a model can only distill useful signals if it had enough capacity to learn rich representations in the first place.
Key Results
- Overall Gains: Across all four backbones and four dataset setups, Integrated Gradients and GradientSHAP improve median $\text{AUC}_{\text{NDCG@10}}$ over recency truncation by +11.2% and +9.1% (with IG averaging an 11.5% advantage overall). On short-video data (KuaiRand-1K), IG and GradientSHAP beat recency by 27.6% and 28.4%.
- Efficiency Cutbacks: At validation-selected operating points on SASRec (KuaiRand-1K), IG achieves a higher NDCG@10 than Recency (0.0037 vs. 0.0022) while nearly halving inference compute (0.30 vs. 0.57 GFLOPs). On ML-10M, IG and GradientSHAP beat Recency's peak accuracy while slashing compute from 0.18 GFLOPs down to 0.03–0.07 GFLOPs.
- Noise Resilience: When 10% to 50% of test sequence items are randomly corrupted—simulating accidental clicks or shared accounts—IG and GradientSHAP beat Recency by 37% and 33% in $\text{AUC}_{\text{NDCG@10}}$, and achieve nearly 2x Recency's score when the most recent interactions are corrupted.
Limitations and Future Work
The main catch is the offline compute bill: multi-step gradient methods like Integrated Gradients and GradientSHAP require expensive backward passes over full sequences of length $L$. While this happens strictly offline and never touches live user latency, scaling it to massive, high-throughput industrial catalogs can still be costly. To bridge this, the authors suggest developing lightweight, single-pass explainability estimators that approximate gradient attributions without iterative integration or backward passes, alongside testing the framework in live production deployments and broader sequential domains.
Summary updated