Sequential Recommendation with Controllable Diversification: Representation Degeneration and Diversity

Ziwei Fan, Zhiwei Liu, Hao Peng, Philip S. Yu

TL;DR

This paper identifies "representation degeneration"—where embeddings collapse into a narrow cone—as the mathematical root cause of poor diversity in sequential recommendation. The authors introduce SPMRec, a dual-smoothing regularization technique that flattens the singular value spectrum of embeddings, enabling researchers to precisely control the trade-off between recommendation accuracy and diversity.

What Problem Does This Paper Address?

Sequential Recommendation (SR) models, like those based on Transformers, excel at predicting a user's next interaction by modeling their behavioral history. However, they often fall into "echo chambers," repeatedly suggesting similar items and failing to explore the breadth of a user's potential interests.

The authors argue this lack of diversity isn't just a heuristic failure but a structural one. Due to the long-tail distribution of real-world data (where a few items have many interactions and most have very few), learned embeddings often suffer from representation degeneration. In this state, item and sequence embeddings cluster into a narrow cone in the latent space, making them mathematically indistinguishable. This collapse is characterized by "fast singular value decay," where only a few dimensions dominate the representation space.

Methods

The paper proposes a framework called SPMRec (Singular sPectrum sMoothing for Recommendation) to combat this collapse.

  1. Theoretical Link: The authors mathematically connect recommendation diversity (measured via Determinantal Point Processes) to the singular values of the embedding matrix. They show that maximizing diversity is proportional to maximizing the sum of singular values (the nuclear norm).
  2. AUSC Metric: They introduce a new metric, Area Under the Singular value Curve (AUSC), to quantify the degree of degeneration. A higher AUSC indicates a "flatter" spectrum and a more expressive, diverse embedding space.
  3. Dual Smoothing Regularization: SPMRec introduces an auxiliary loss function that acts on both user sequence embeddings ($\mathcal{L}_{seq}$) and item embeddings ($\mathcal{L}_{item}$). The loss minimizes the ratio of the Frobenius norm to the nuclear norm: $$\mathcal{L}_{smooth} = - \frac{||\mathbf{E}||_*}{||\mathbf{E}||_F}$$ This objective simultaneously suppresses the dominant largest singular value (via the Frobenius norm) and encourages the growth of tail singular values (via the nuclear norm).

  4. Controllable Diversification: By adjusting hyperparameters $\lambda$ and $\beta$, practitioners can tune the strength of smoothing for sequences and items, respectively, to find the optimal balance between accuracy (NDCG/Recall) and diversity.

Intuition of Singular Spectrum Smoothing: The left curve shows fast decay (degenerated), while the right shows the flattened spectrum achieved by SPMRec.

Datasets

The model was evaluated on four standard public benchmarks from the Amazon review dataset:

  • Beauty
  • Toys and Games (Toys)
  • Tools and Home (Tools)
  • Office Products (Office)

These datasets vary in density and sequence length, providing a robust test for the model's ability to handle different levels of data sparsity.

Key Insights and Ideas

  • Degeneration is the Root of Monotony: The most significant "aha" moment is the theoretical proof that representation collapse is not just an accuracy issue but the primary driver of low diversity.
  • The Frobenius/Nuclear Ratio: Using the ratio of these two norms is a computationally efficient surrogate for directly optimizing the singular value spectrum, avoiding the need for full, expensive SVDs during every training step.
  • Expressiveness for the "Tail": By smoothing the spectrum, the model prevents popular "head" items from completely dominating the latent space, allowing "tail" items to be represented more distinctly.

Key Results

  • Superior Performance: SPMRec consistently outperformed state-of-the-art baselines (like SASRec, DuoRec, and STOSA) across all datasets. It achieved relative improvements in ranking performance (NDCG@10) of up to 22.5% over the base SASRec model.
  • Diversity Gains: Intra-list diversity improved by 4.7% to 14.4% compared to the best-performing baselines.
  • Controllability: The authors demonstrated a clear, tunable correlation between the smoothing weight $\beta$ and diversity metrics. As $\beta$ increases, diversity grows, though accuracy eventually plateaus or dips if pushed too far, as shown in Figure 1.
Correlation between smoothing weight $\beta$, diversity, and accuracy (NDCG). Note how diversity increases steadily with $\beta$.
  • Effective for Short Sequences: SPMRec showed particularly strong gains for users with very few interactions (short sequences), where the degeneration problem is typically most severe.

Limitations and Future Work

  • Long Sequence Trade-off: The authors noted that while SPMRec significantly helps short sequences, it can sometimes lead to a slight performance decrease for very long sequences compared to vanilla models.
  • Computational Overhead: Although optimized, calculating singular values in batches still adds a layer of computational complexity compared to standard cross-entropy loss.
  • Future Directions: The authors suggest exploring more adaptive ways to set the smoothing weights ($\lambda, \beta$) dynamically during training, rather than relying on a fixed grid search.
Figure 2: Fast singular values decay of user sequence output and item embeddings of SASRec are observed, implying the representation degeneration exists in both users and items. Singular values are normalized by dividing the largest singu- lar value.

Summary updated

BibTeX
@misc{fan2023sequential,
  author = {Ziwei Fan and Zhiwei Liu and Hao Peng and Philip S. Yu},
  title = {{Sequential Recommendation with Controllable Diversification: Representation Degeneration and Diversity}},
  year = {2023},
  eprint = {2306.11986},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.11986},
}
Figure