Mirror Gradient: Towards Robust Multimodal Recommender Systems via Exploring Flat Local Minima

Shanshan Zhong, Zhongzhan Huang, Daifeng Li, Wushao Wen, Jinghui Qin, Liang Lin · DOI

Abstract

Multimodal recommender systems utilize various types of information to model user preferences and item features, helping users discover items aligned with their interests. The integration of multimodal information mitigates the inherent challenges in recommender systems, e.g., the data sparsity problem and cold-start issues. However, it simultaneously magnifies certain risks from multimodal information inputs, such as information adjustment risk and inherent noise risk. These risks pose crucial challenges to the robustness of recommendation models. In this paper, we analyze multimodal recommender systems from the novel perspective of flat local minima and propose a concise yet effective gradient strategy called Mirror Gradient (MG). This strategy can implicitly enhance the model's robustness during the optimization process, mitigating instability risks arising from multimodal information inputs. We also provide strong theoretical evidence and conduct extensive empirical experiments to show the superiority of MG across various multimodal recommendation models and benchmarks. Furthermore, we find that the proposed MG can complement existing robust training methods and be easily extended to diverse advanced recommendation models, making it a promising new and fundamental paradigm for training multimodal recommender systems.

The Challenge of Multimodal Robustness

Multimodal Recommender Systems (MRS) leverage rich data like images and text to better understand user preferences, mitigating issues like data sparsity. However, they are susceptible to two major "distribution shift" risks:

  1. Inherent Noise Risk: Training data often contains low-quality images or irrelevant text descriptions (e.g., mismatched hashtags).
  2. Information Adjustment Risk: In real-world scenarios, merchants frequently update item tags or photos (e.g., adding promotional banners like "Women's Day") after a model has been trained.
Illustration of Inherent Noise Risk and Information Adjustment Risk in multimodal recommender systems.

Standard training often leads models to "sharp" local minima—regions in the loss landscape where a tiny change in input causes a massive spike in error, leading to confused recommendations when data shifts.

Mirror Gradient (MG): Seeking Flat Minima

To address these risks, the authors propose Mirror Gradient (MG), a training strategy designed to steer models toward flat local minima. In flat regions of the loss landscape, the loss remains low even if the input data is slightly perturbed, ensuring more stable performance.

Comparison of flat and sharp local minima. Flat minima maintain lower error under distribution shifts.

The Algorithm and Implicit Regularization

MG alternates between standard updates and a "mirror" phase. During the mirror phase, the model takes a large step in the gradient direction ($\alpha_1$) and then a smaller "correction" step back ($\alpha_2$).

The core theoretical contribution is the proof that this two-step process is mathematically equivalent to adding a regularization term that penalizes the gradient magnitude ($\Vert\nabla_\Theta L\Vert^2$). Since flat minima are characterized by small gradients in their neighborhood, this implicit penalty naturally pushes parameters toward broad, stable "valleys" rather than sharp peaks.

Experimental Evaluation

The researchers evaluated MG across five diverse datasets, including Amazon Product Data (Baby, Sports, Clothing, and Electronics) and Pinterest. The Electronics dataset served as a high-sparsity stress test with over 1.6 million interactions.

Key Results

  • Performance Gains: MG improved Top-5 metrics (Recall, Precision, NDCG) across eight baseline models. On the Electronics dataset, the average improvement was approximately 7.3%.
  • Robustness to Noise: When Gaussian noise was injected into item embeddings, a standard model (BM3) saw a performance drop of 16.92%, whereas the MG-enhanced version only dropped by 8.99%.
  • Universal Compatibility: MG is a training strategy, not a specific architecture. It improved performance across various optimizers (Adam, SGD, Adagrad) and base models (VBPR, MMGCN, DRAGON).
  • Complementary to Adversarial Training: MG improves the model's fundamental geometry, making it a powerful complement to adversarial training methods that "harden" models against specific noise.

Conclusion

Mirror Gradient offers a simple yet mathematically grounded approach to improving the robustness of multimodal recommender systems. By steering optimization toward flat local minima, MG mitigates the risks associated with noisy or updated input data. While it introduces some computational overhead per iteration, its faster convergence and significant robustness gains make it a promising new paradigm for training reliable recommendation models.

Summary updated

BibTeX
@inproceedings{zhong2024mirror,
  author = {Shanshan Zhong and Zhongzhan Huang and Daifeng Li and Wushao Wen and Jinghui Qin and Liang Lin},
  title = {{Mirror Gradient: Towards Robust Multimodal Recommender Systems via Exploring Flat Local Minima}},
  booktitle = {The Web Conference},
  year = {2024},
  doi = {10.1145/3589334.3645553},
}
Figure