mlsanityData to 7 Oct 2026

SpecFormer: Mitigating Embedding and Attention Collapse via Spectral-Aware Transformer for Recommendation

arXiv 2607.24025 ↗First posted 27 Jul 2026cs.IR cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformer architectures have achieved remarkable success across diverse domains; however, directly applying their standard self-attention mechanism to recommendation often yields suboptimal performance, sometimes even trailing behind well-designed simple recommendation models. In this paper, we reveal that this performance bottleneck stems from severe embedding and attention collapse unique to recommendation scenarios. The heterogeneity and long-tail nature of recommendation data lead to a severe spectral collapse dominated by a few principal singular values. We further theoretically demonstrate that this triggers a vicious cycle in recommendation model's forward and backward propagation, which accelerates embedding and attention collapse and limits the model's scaling capability with increased depth. To address these issues, we propose SpecFormer, a novel Spectral-Aware Transformer designed for mitigating embedding and attention collapse in recommendation. Specifically, SpecFormer introduces 1) a Learnable Spectral Softening module to dynamically smooth the singular values distribution of the input token embeddings; 2) a Spectrum-softened Attention mechanism to model feature interaction under a more uniform spectral distribution space; 3) a Spectral Residual Position Encoding via Taylor expansion of singular values, explicitly providing a spectral inductive bias for feature interactions. Extensive experiments on one industrial and two public datasets demonstrate that SpecFormer significantly outperforms state-of-the-art baselines. Notably, SpecFormer has been successfully deployed in a real-world commercial recommender system and exhibits exceptional scaling capabilities: stacking SpecFormer layers actively improves the attention effective rank and recommendation performance.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 50 of its 58 references that are in the map. First posted on arXiv 27 Jul 2026.

Builds on

50 of 58 references.

References · 50

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2025Qwen3 Technical Reportcited by 8,195
  7. 2016Layer Normalizationcited by 5,579
  8. 2018Self-Attentive Sequential Recommendationcited by 1,169
  9. 2019BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformercited by 952
  10. 2016Wide & Deep Learning for Recommender Systemscited by 745
  11. 2017DeepFM: A Factorization-Machine based Neural Network for CTR Predictioncited by 673
  12. 2017Deep Interest Network for Click-Through Rate Predictioncited by 541
38 more
  1. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
  2. 2021Understanding Dimensional Collapse in Contrastive Self-supervised Learningcited by 374
  3. 2023TALLRec: An Effective and Efficient Tuning Framework to Align Large Language Model with Recommendationcited by 336
  4. 2020DCN V2: Improved Deep & Cross Network and Practical Lessons for Web-scale Learning to Rank Systemscited by 326
  5. 2018AutoInt: Automatic Feature Interaction Learning via Self-Attentive Neural Networkscited by 319
  6. 2019Representation Degeneration Problem in Training Natural Language Generation Modelscited by 250
  7. 2020Search-based User Interest Modeling with Lifelong Sequential Behavior Data for Click-Through Rate Predictioncited by 176
  8. 2021On Feature Decorrelation in Self-Supervised Learningcited by 160
  9. 2017On the Properties of the Softmax Function with Application in Game Theory and Reinforcement Learningcited by 136
  10. 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
  11. 2017Attentional Factorization Machines: Learning the Weight of Feature Interactions via Attention Networkscited by 126
  12. 2020Low-Rank Bottleneck in Multi-head Attention Modelscited by 88
  13. 2019FiBiNET: Combining Feature Importance and Bilinear feature Interaction for Click-Through Rate Predictioncited by 83
  14. 2023ReLLa: Retrieval-enhanced Large Language Models for Lifelong Sequential Behavior Comprehension in Recommendationcited by 76
  15. 2023Towards Open-World Recommendation with Knowledge Augmentation from Large Language Modelscited by 74
  16. 2024HLLM: Enhancing Sequential Recommendations via Hierarchical Large Language Models for Item and User Modelingcited by 63
  17. 2018Field-weighted Factorization Machines for Click-Through Rate Prediction in Display Advertisingcited by 59
  18. 2021MaskNet: Introducing Feature-Wise Multiplication to CTR Ranking Models by Instance-Guided Maskcited by 48
  19. 2025RankMixer: Scaling Up Ranking Models in Industrial Recommenderscited by 41
  20. 2024Diff-eRank: A Novel Rank-Based Metric for Evaluating Large Language Modelscited by 35
  21. 2025OneTrans: Unified Feature Interaction and Sequence Modeling with One Transformer in Industrial Recommendercited by 34
  22. 2021FM2: Field-matrixed Factorization Machines for Recommender Systemscited by 31
  23. 2023On the Embedding Collapse when Scaling up Recommendation Modelscited by 29
  24. 2024Large Language Models Enhanced Collaborative Filteringcited by 27
  25. 2024Breaking the Length Barrier: LLM-Enhanced CTR Prediction in Long Textual User Behaviorscited by 23
  26. 2024How Do Recommendation Models Amplify Popularity Bias? An Analysis from the Spectral Perspectivecited by 21
  27. 2023Towards Deeper, Lighter and Interpretable Cross Network for CTR Predictioncited by 20
  28. 2023CTRL: Connect Collaborative and Language Model for CTR Predictioncited by 14
  29. 2023Hiformer: Heterogeneous Feature Interactions Learning with Transformers for Recommender Systemscited by 14
  30. 2023Towards Mitigating Dimensional Collapse of Representations in Collaborative Filteringcited by 10
  31. 2025AlphaFuse: Learn ID Embeddings for Sequential Recommendation in Null Space of Language Embeddingscited by 10
  32. 2022FiBiNet++: Reducing Model Size by Low Rank Feature Interaction Layer for CTR Predictioncited by 8
  33. 2025Field Matters: A Lightweight LLM-enhanced Method for CTR Predictioncited by 4
  34. 2024Are ID Embeddings Necessary? Whitening Pre-trained Text Embeddings for Effective Sequential Recommendationcited by 3
  35. 2025From Scaling to Structured Expressivity: Rethinking Transformers for CTR Predictioncited by 3
  36. 2026SpecTran: Spectral-Aware Transformer-based Adapter for LLM-Enhanced Sequential Recommendationcited by 3
  37. 2026RankUp: Towards High-rank Representations for Large Scale Advertising Recommender Systemscited by 3
  38. 2026FEDIN: Frequency-Enhanced Deep Interest Network for Click-Through Rate Predictioncited by 1

Built on by

Not cited yet.